‎2006 Dec 22 6:02 AM
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
‎2006 Dec 22 6:09 AM
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
‎2006 Dec 22 6:16 AM
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
‎2006 Dec 22 7:10 AM
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
‎2006 Dec 22 7:41 AM
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
‎2006 Dec 22 7:19 AM
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.
‎2006 Dec 22 7:33 AM
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
‎2006 Dec 22 7:42 AM
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