11-12-2007 7:03 AM
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
11-12-2007 7:09 AM
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.
11-12-2007 7:10 AM
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.
11-12-2007 7:10 AM
hi kiran
r u activate the table first.
go to table maintain genarator and techinical settings check it .
regards.
kk.