cancel
Showing results for 
Search instead for 
Did you mean: 

Help Required ! How to get a value from a text box ?

Former Member
0 Kudos

Hi All,

Iam new to SAP ABAP and Iam learning ABAP.

I was trying to design a form for user login for a user using screen painter.

But Iam not able to read a value from the textbox so that I can compare the value to the database.Now to do this do we any function how can we implement this.

If anybody can help me that would be great and also i would appreciate if you could mail me the codes to my id nranjith@aol.in

Waiting for reply Friends.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

while u create a screen by screen painter , u have to give name for every thing (i.e. for Label, Button, Text Field and for all other also ).

then in driver program which will drive that screen , there u have to give screen details.

in PAI event u wite ur slect query and assign the corresponding retrived dat to respective screen elements

now ur data is going displayed after PBO event.

suppose ur screen field s r Txtmatnr and txtMaktx

PAI.

Module selectmaktx.

select single * from makt where matnr = txtmatnr

txtmaktx = makt-maktx.

endmodule.

Note : where Txtmatnr is Text field name on the screen as well as defined in drver program .