Application Development 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: 

how to read tables and fields from a transaction screen.

Former Member
0 Kudos

hi all,

i am having problem in reading fields and tables from a screen, could any one help me in mapping tables from a structure as well.

it will be very help full if u had any documentation.

Thanking u

kiran

3 REPLIES 3

Former Member
0 Kudos

Hi,

In classical debug mode from CALL STACK tab try to find out the structures holding the screen values .

Capture the values from transaction using FIELD SYMBOLS .

See the below code.

DATA : l_prog_val(50) TYPE c VALUE '(SAPLCTMS)WI[]'.

**To get the (SAPLCTMS)WI value in this program from call stack.

FIELD-SYMBOLS: <wi> TYPE ANY.

*Assign the structure (SAPLCTMS)WI to field symbol

ASSIGN (l_prog_val) TO <wi>.

IF sy-subrc NE 0.

EXIT.

*Assign the structure (SAPLCTMS)WI to internal table

ELSE.

it_wi[] = <wi>.

ENDIF.

Sastry.

Former Member
0 Kudos

HI,

if u want to get the field name ,table name of a field in the screen place the cursor in that field and press F1.F1 help will come.in that screen technical information button will be there click on that u can see all information in the dialog box that will appear to u.

rgds,

bharat.

Former Member
0 Kudos

hi kiran

r u activate the table first.

go to table maintain genarator and techinical settings check it .

regards.

kk.