12-29-2013 8:14 AM
Hi All ,
I am doing enhancement and in debug mode i can see the values inside the table (SAPLFKB4)XXXXX[] .
I want to validate this (SAPLFKB4)XXXXX[] inside my program , when i write the code with the if condition , i am getting error as this is not declared .
So i came to know , i have to get this value by reading the stack ,
Please share your ideas how to read the stack and how to get the value inside my program ? and i have to declare the same table which has the values in DEBUG mode .
Thanks,
Pradeep.
12-29-2013 9:01 AM
Try the following.....
It relates to obtaining the table contents using field-symbols.....
data : name(100) type c.
field-symbols: <global> type any table.
name = '(SAPLFKB4)XXXXX[]'.
assign (name) to <global>.
if sy-subrc = 0.
" Pass values from <global> to your specific internal table Type
endif.
Hope It Helps.
12-29-2013 8:55 AM
You will have to declare field symbol type table of internal table. Then use assign statement assign (progaram name (itab)) to fs
12-29-2013 9:01 AM
Try the following.....
It relates to obtaining the table contents using field-symbols.....
data : name(100) type c.
field-symbols: <global> type any table.
name = '(SAPLFKB4)XXXXX[]'.
assign (name) to <global>.
if sy-subrc = 0.
" Pass values from <global> to your specific internal table Type
endif.
Hope It Helps.
12-29-2013 9:30 AM
Hi Nabheet and Byju ,
Its working fine now , Thanks for help and sharing .