Skip to Content
0
Former Member
Sep 20, 2007 at 01:21 PM

Passing values to FG from program

12 Views

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