09-20-2007 2:21 PM
Hi all
Please help me to sort this problem.I have to call a screen in the Function group from a report program so I am using below code to call it.
clear bdcdata_wa.
bdcdata_wa-program = 'SAPLZSECURITIES'.
bdcdata_wa-dynpro = '0300'. "where 300 normal screen
bdcdata_wa-dynbegin = 'X'.
append bdcdata_wa to bdcdata_tab.
call transaction 'ZDOCS_SECURITIES' using bdcdata_tab.
Now I have to access the values from the program in FG screen after calling the screen.So I used below code but it is not working.Please help me to sort it out.
assign ('(ZCML_DOCS_SECURITIES)I_VDARL') to <fs_vdarl>."I_VDARL Structure
if sy-subrc = 0.
move <fs_vdarl> to i_vdarl.
endif.
Thank You.
Regards
Giri
09-20-2007 2:49 PM
That would work if it's an include/form, and you read data from the main program. But I do not know if it can be used with a call transaction. Maybe the problem is that it is not the same LUW... But I am not sure.
I can't see anyting wrong with the code itself.
When debugging, is the field symbol <fs_vdarl> assigned?
Can you use an export to memory instead?
09-20-2007 3:05 PM
Hi Edwin
The field symbol is not assigned in the debug mode.Ya I will use export and import now.
Thank You.
Regards
Giri