write simple program in SAP SOFTWARE
Sure, here is a simple program written in SAP ABAP language:
REPORT zprogram_example.
DATA: lv_name TYPE string,
lv_age TYPE i.
PARAMETERS: p_name TYPE string,
p_age TYPE i.
lv_name = p_name.
lv_age = p_age.
WRITE: 'Name:', lv_name.
WRITE: / 'Age:', lv_age.
This program defines two data variables, `lv_name` of type string and `lv_age` of type integer. It also has two parameters `p_name` and `p_age` which the user can enter while executing the program.
The program then assigns the values of the parameters to the data variables `lv_name` and `lv_age`. Finally, it displays the values of the variables using the WRITE statement.
Please note that this is a very basic program just to demonstrate the usage of variables and parameters in SAP ABAP. In a real SAP software, you would have much more complex logic and functionalities.
Comments
Post a Comment