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: 

Reading a structue From another program

Former Member
0 Kudos

Hi Experts,

I had a requirement of reading a internal table from the standard report.

In my report for a particular material I need to get the Intransit quantity. For the Intransit quantity we had a standard transaction MB5T and the report is RM07MTRB . In this report there is a structure BESTAND which is passed to the ALV.

how to call this standard report and get this values in this structure BESTAND in my custom report

Edited by: Pavan Kumar Grandhi on Oct 6, 2008 10:57 PM

1 REPLY 1

naimesh_patel
Active Contributor
0 Kudos

I guess you have to do like:

Copy the std program to Z program

At last before generating the output, you can export that table or structure to memory using EXPORT

Submit the Z program with the List to memory option to avoid the list

In your program, Read the data from the memory using the IMPORT.

We can dynamically access the data with help of the field symbols, but for that it should be in the same call stack. Like, if you want to access any table inside a user exit which is not avaliable to you via the Parameters of FM. But, I don't think we can implement that strategy in your scenario.

Regards,

Naimesh Patel