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: 

Create a new session when calling a new/different transaction

former_member552974
Participant
0 Kudos

Hello Everyone,

I have a dialog program in which I have a button that calls a different transaction. I would like for this transaction to open in a new session. This can be easily done (and there are several posts on this) with FM's TH_CREATE_MODE or ABAP4_CALL_TRANSACTION. Additionaly it can be done by remote enabling a custom FM and have the transaction call within your custom FM.

My issue is that I want to pass the transaction a table so that it fills a select-options table at the selection screen. Then of course I want to skip the selection screen and execute the transaction. I can pass data if the selection field is a parameter field, but I need to pass the new transaction a table so that a select-options field can be filled. Does anyone know how to do this and could recommend a proper approach?

Best Regards,

Scott

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

It seems that you want to start of a new report by calling the ABAP4_CALL_TRANSACTION. There is a parameter USING_TAB which you can use to fill up the data (must be BDC data) to be able to pass to called transaction. Since you are dealing with the select-options this is not a good idea.

I would suggest:

From your Module pool,

Fill the select option table and export it to ABAP memory using EXPORT

Now,

1. Create a dummy program ZDUMMY to SUBMIT your report ZREPORT.

2. IMPORT the exported select option table from memory in ZDUMMY

3. SUBMIT report ZREPORT with the select option

4. Attach transaction code say ZDUMMY.

In your module pool, after exporting the memory call the FM ABAP4_CALL_TRANSACTION with ZDUMMY transaction.

Regards,

Naimesh Patel

Former Member
0 Kudos

Since it is a report, can't you simply use SUBMIT and fill the SELECT-OPTIONS that way?

Rob