Application Development and Automation 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: 
Read only

calling program

Former Member
0 Likes
755

Dear Experts,

I have a requirements explained below.

I have writen a Z program with the selection screen, i need to execute the standard program RIMHIO00 (grid report)from Z Program by passing values to the selection screen of standard program after execution is completed i need the final internal table(object_tab) values back in my Z program for further process..

i tried with the submit export to memory statement but it is not working for grid report, Is there any other way to do the above requirements

pls help me in this,

thanks in advance

karthik

7 REPLIES 7
Read only

Former Member
0 Likes
717

have you used the addition

EXPORTING LIST TO MEMORY

AND RETURN

in submit ?

then you can process the list by fm

'LIST_FROM_MEMORY' or 'WRITE_LIST' or 'DISPLAY_LIST' .

it may work

regards

shiba dutta

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
717

Hi,

Copy the standard program into z program and then before outputting the grid,just use export statement for exporting the internal table.

Import the internal table from your main program.

Message was edited by:

Jayanthi Jayaraman

Read only

0 Likes
717

Hi jayanthi,

Can you explain your logic briefly, bez i don't want to display the report from the standard program , i need the internal table values for further process.

thanks

Message was edited by:

karthik karthik

Read only

0 Likes
717

Hi,

In the copy of the standard program,you will be getting final internal table values before displaying alv grid.Once the final internal table is arrived,just export the internal table.Just remove the coding related the grid display.Then from your original program,import the internal table.

Check here for export and import command.

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm

Kindly reward points by clicking the star on the left of reply,if it helps.

Message was edited by:

Jayanthi Jayaraman

Read only

Former Member
0 Likes
717

First and foremost do u wanto use the std program RIMHIO00 as it is or u can copy the program into Z. If possible copy the program into Z and before this program outputs the grid you can EXPORT the internal table generated by this ZRIMHIO00 into memory or database and then in your first Z program u can read this internal table and do further processing.

Read only

0 Likes
717

Dear abhijit,

You logic sounds good, i copied the standard program i want to know how to suppress the grid from displaying. and also let me know commands how to export and import the interbal table.

thanks

Read only

0 Likes
717

I think , in the newly created program you can add the code line to export the internal table to the Memory using the statement

EXPORT <ITAB> TO MEMORY '<MEMORY ID>'.

Regards,

Durga