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

Capturing selection screen values after the Submit statement?

Former Member
0 Likes
2,747

Hi All,

I have the requirement like below.

In my report I am calling standard report using SUBMIT statement.

SUBMIT rbnk_merge_reset VIA SELECTION-SCREEN AND RETURN.

After this statement executes, the user will enter the input and execute the report RBNK_MERGE_RESET.

Here I want to capture what the user enters on the screen.

Kindly help, how I can achieve this.

Thanks in advance.

Have a nice Day!!!

Regards,

Priya

12 REPLIES 12
Read only

Former Member
0 Likes
2,033

Hi Priya,

use set parameter id in the program RBNK_MERGE_RESET  and

get parameter id in your program to fetch screen input's.

Regards,

Ashish

Read only

0 Likes
2,033

u can copy program and add single line code at the end..

Read only

Former Member
0 Likes
2,033

Hi Priya,

Try to access the data in the ABAP stack, as its a standard program you will not be able to use SET PARAMETER ID/ GET PARAMETER ID as an option.

Best Regards,

Debo.

Read only

0 Likes
2,033

Hi Debo,

Can you please help, how to use the ABAP Stack?

Regards,

Priya

Read only

0 Likes
2,033

Hi,

So, try in the new debugger. On your right panel you get to see the ABAP stack(Memory) wherein you can try to find the selection screen values. I am not sure, but this should be the right approach if you are not trying to modify or enhancing the standard program.

BR,

Debo

Read only

jay_kumar8
Active Participant
0 Likes
2,033

Hi,

You can try this way.

As you are calling standard program so try for implicit enhancements.

And take values and store values either by using IMPORT/EXPORT or SET PARAMETER/GET PARAMETER.

or...store values in a custom table and after returning to the actual program read values from the custom table.

Regards

Raj

Read only

0 Likes
2,033

Hi kumar

The import /export is bad to multiple users.

The new way with abap OO is better.

Read only

Juwin
Active Contributor
0 Likes
2,033

Can you explain what would you like to achieve after capturing the selection screen values?

Thanks,

Juwin

Read only

Former Member
0 Likes
2,033

HiJuwin,

1. I will run my custom program.

2. In that custom program I will call the report rbnk_merge_reset using submit the statement

3. Then the user will enter the selection screen values and run the transaction.

4. Then it will return back to my custom program.

5. Then I want to use that selection screen values to fetch some data in standard tables.

Regards,

Suresh

Read only

0 Likes
2,033

What you could do is to create same selection screen as in rbnk_merge_reset then call it whenever user want to go to this program, but in submit use WITH SELECTION-TABLE addition passing all variables from your own select options. This way you have all the values directly in your program.

Read only

Juwin
Active Contributor
0 Likes
2,033

Hi Priya,

As per me, method given by Łukasz Pęgiel is the way forward.

Thanks,

Juwin

Read only

ronaldo_aparecido
Contributor
0 Likes
2,033

HI Priya in My opinion you could.

1-Copy the standard program and get the screen value by code when it is executed.

and use the new way to import to memory.

See the examples of this link.

or.

2-create a enhacement in standard program and get the screen value by code when it is executed

and use the new way to import to memory.

See the examples of this link.

I think could to work .

hope helped you.