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: 

Passing values to FG from program

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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?

0 Kudos

Hi Edwin

The field symbol is not assigned in the debug mode.Ya I will use export and import now.

Thank You.

Regards

Giri