2007 Dec 07 3:15 AM
hi experts,
I have a typical design of a program. As per my requirement I have to call a report program from the same report program using job_open and other FMs. I also have to pass the internal table data of the calling program to the called program. I tried the combination of job_open and SUBMIT statement but could not find a way to pass the data to the called program. Please suggest me some ways . Thanks in advance.
regards
hi experts,
I have a typical design of a program. As per my requirement I have to call a report program from the same report program using job_open and other FMs. I also have to pass the internal table data of the calling program to the called program. I tried the combination of job_open and SUBMIT statement but could not find a way to pass the data to the called program. Please suggest me some ways . Thanks in advance.
regards
2007 Dec 07 4:14 AM
If you want to do that you will have to have another dummy program, you call the dummy program from this program then call back the main program.
Hope the issue is solved.
2007 Dec 07 4:16 AM
hi,
Sorry I was not clear with the solution. I also metioned I have to passs the internal table data and other variables as well. Can u please elaborate on that. Thanks a lot.
2007 Dec 07 4:31 AM
Create another dummy program say
z_prog_dummy, now call the main program
z_prog, ( using SUBMIT )
The flow of the program would be that the instructions in the main program will get executed from the first line till SUBMIT is encountered, then it goes to the dummy program, in the dummy program when you use SUBMIT again, then it will call the from the 1st line of the main program.
If you want the internal table and variables also to be visible, then you could use the memory ID's IMPORT and EXPORT.
2007 Dec 07 4:37 AM
Hi,
to call the report from other report imagine tht u hav 1st prog as z_prog1 and u want to call 2nd prog Z_prog2 use the syntax as...
Submit Z_prog2. then it will automatically call the other report.
If in case ur are dealingw with modle pool programing u can go for syntax
Submit Z_pog2 via selection-screen..
Hope it might work..
Regards,
Sana M.
reward for useful answers...
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |