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: 

Call modulepool program in another Executable program passing selection screen values?

divyatg
Explorer
0 Kudos

Hi Experts,

I want to call a modulepool program in some other executable program passing selection screen values from exe prg to module pool program.

We can use Call transaction..but how to pass the Selection screen values??

I didn't found the proper answer in the forum. Can you please provide me the solution.

Thanks in advance.

4 REPLIES 4

matt
Active Contributor
0 Kudos

If both programs are Z, refactor the second program so all the business logic is in a single class that can be called directly from the first program.

Otherwise read the ABAP documentation on "SUBMIT".

0 Kudos

Both are module pool program. We can't use SUBMIT...

matt
Active Contributor
0 Kudos

If both are module pool programs, how are having selection screen values?

Sandra_Rossi
Active Contributor

I think the OP says "module pool" for "program with a screen". But in the title, it's said that an Executable program (type "1") does a CALL TRANSACTION which starts a Module Pool program (type "M") -> if you don't refactor, then you're left with the classic way EXPORT ... TO MEMORY ID ... and IMPORT ... FROM MEMORY ID ...