You are on page 1of 1

Sanjivani SAP Training Programme

Program 02: To develop the selection screen to the user

REPORT Z1208PROG2.

*Parameters : p_x type i, " parameter variableis used to make the output scr
een customer specific
* p_y type i.

*Parameter : p_x type i default 10, " Default keyword is used to assign the
default value to the variables of parameters
* p_y type i default 20.

*data v_z type i.


*
*v_z = p_x + p_y.
*
*write : / ' sum of two no. is' , v_z.

Parameter : p_x type i default 10 obligatory, " OBLIGATORY is used to make t


he field mandatory on selection screen means some input should be always prov
ided
p_y type i default 20 obligatory,
p_str type string lower case. "STRING Keyword is used
to display characters on the LSP screen
"LOWER CASE Keyword is
used to make the string as it is mentioned

data v_z type i.

v_z = p_x + p_y.

write : / ' sum of two no. is' color 3 , v_z color 2.

format color 5.

write : / 'Entered string is' ,p_str.

format color off.

write : / 'End of program'.

write : / 'system fields'. " These are the fileds already defined by SAP and
always starts with sy-

write : / 'current date is' , sy-datum. " application server date


write : /' current time is' , sy-uzeit. " application server time
write : /'current user is' , sy-uname. " login user
write :/ 'current program name is' , sy-repid. " current program name
Prepared By: Salkar Sailee R (SAP Co-Incharge, SAP ABAP Trainer, Sanjivani College of Engineering
Kopargaon)

You might also like