Problem solve Get help with specific problems with your technologies, process and projects.

Retrieving variables between call programs

Need to access variables between call programs? Try the approach in this ABAP developer tip.

There are times when you want to access variables from a call program within a function module or user exit. Since...

you cannot define variables outside of the current program, try the following to complete this task.  

*Step 1: Assign the program/field name of calling program variable to field symbol 1
assign '(zcall_program_name)fname_from_call_program' to &ltfs1&gt. 

*Step 2: Assign field Symbol contents to field symbol 2 assign (&ltfs1>) to &ltfs2&gt.
*Step 3: Assign Field Symbol 2 to avariable in the current function module/Program vbak-vbeln = &ltfs2&gt.
This was last published in July 2005

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close