Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

about user inputs

Former Member
0 Likes
655

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

6 REPLIES 6
Read only

Former Member
0 Likes
616

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

Read only

0 Likes
616

yes

Read only

0 Likes
616
test this report

report ytest.

parameters : p_date like sy-datum default sy-datum.

write : p_date.
Read only

Former Member
0 Likes
616

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

Read only

Former Member
0 Likes
616

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
616

They are some function modules to insert data in a program without developing a dynpro, try any of these :

G_POPUP_FOR_ENTERING_VALUES " use field, table and a title to get any type field of a table

CC_POPUP_INT_INPUT " for an integer

CC_POPUP_STRING_INPUT " for a string

etc.

Regards