‎2007 Feb 06 10:15 AM
how can add a any valur or string through user..?
like in c++ cout<< " enter a value";
cin >>sring;
ok..some of like this example how can i use in sap?
in sap plz give me this example in sap
‎2007 Feb 06 10:17 AM
Hi ,
You mean to say that you want to enter a value to a variable and in same way display it .
To print you need to use Write command.
Regadrs
Arun
‎2007 Feb 06 10:21 AM
‎2007 Feb 06 10:25 AM
test this report
report ytest.
parameters : p_date like sy-datum default sy-datum.
write : p_date.
‎2007 Feb 06 10:17 AM
You can have parameters on the selection screen.
parameters: p_str(10) type c.
Then you should go into Goto->Text Elements->Selecton Texts.
GIve the text for p_str and save it and activate the program.
Regards,
Ravi
‎2007 Feb 06 10:19 AM
Data types available in ABAP is: Integer(I); Character(C); Date(D); Numeric(N).
To declare the variable to accept the data from User.
parameters: abc type i.
parameters: xyz(20) type c.
The above statements generate GUI screen asking the user for both abc and xyz variables. Like:
abc_________________________----
xyz_________________________----
.
Cheers.
‎2007 Feb 06 10:24 AM