0% found this document useful (0 votes)
31 views1 page

Basic Programming in ABAP

The document is a basic programming report in ABAP that defines a structure for storing sales order data. It initializes a data record with specific values and includes conditional logic to modify the name field based on its current value. Finally, it outputs the values of the data record to the screen.

Uploaded by

Make U Think
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views1 page

Basic Programming in ABAP

The document is a basic programming report in ABAP that defines a structure for storing sales order data. It initializes a data record with specific values and includes conditional logic to modify the name field based on its current value. Finally, it outputs the values of the data record to the screen.

Uploaded by

Make U Think
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Basic Programing

REPORT zrpractice_kiran.

TYPES: BEGIN OF gty_test,


vbeln TYPE vbeln_va,
name TYPE ernam ,
erdat TYPE erdat,
aenam TYPE aenam,
aedat TYPE aedat,
vkorg TYPE vkorg,
vtweg TYPE vtweg,
spart TYPE spart,
END OF gty_test.

DATA: gs_test TYPE gty_test.

BREAK-POINT.
gs_test-vbeln = '1'.
gs_test-name = 'Ranjith'.
gs_test-erdat = '20210218'.
gs_test-aenam = sy-uname.
gs_test-aedat = sy-datum.
gs_test-vkorg = '100'.
gs_test-vtweg = '10'.
gs_test-spart = '01'.

IF gs_test-name = 'Kiran'.
gs_test-name = 'Kiranmayi'.
ELSEIF
gs_test-name = 'Ranjith'.
gs_test-name = 'Kiranjith'.
Else.
gs_test-name = 'KiranmayiP'.

ENDIF.

WRITE:/ gs_test-vbeln,
gs_test-name ,
gs_test-erdat,
gs_test-aenam,
gs_test-aedat,
gs_test-vkorg,
gs_test-vtweg,
gs_test-spart.

***********************************************************************************
****

You might also like