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

SUBMIT Question, HEEELLLLPPPP!!!!!!!!!!

Former Member
0 Likes
745

Hey Guys,

Here is my problem. I have an ABAP program that has a selection screen and creates a report in a ALV format. When I double click one of the lines on the report, a new program is called using the SUBMIT command with a RETURN, this new program also has a selection screen and then produces a generic looking report. My problem is that when I hit the back button, I am taken back to the selection screen of my called program, and then when I hit the back button again, I am taken back to the ALV report from the calling program, and then when I hit the back button again I am taken to my selection screen from the calling program. Is there anyway that I could just hit the back button one time and go directly back to the original selection screen with the original values still contained? Any suggestions would be appreciated.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
720

Thanks guys for your answers, my problem is partially solved, I am using the Submit via Selection Screen and Return. I inserted the LEAVE TO SCREEN 0 and it partially worked, however I am still getting the selection screen from the called program, I suspect this is because I am using the submit via selection screen. If I take out the via selection screen, then I am able to go back directly to the first selection screen like I want, but I NEED the via selection screen. Is there anyway to fix this?

5 REPLIES 5
Read only

Former Member
0 Likes
720

Yes. Immediatly after the submit and return statement you call your selection screen using call screen <number>.

- Guru

Read only

Clemenss
Active Contributor
0 Likes
720

Hi,

I assume that the submit takes place in CALLBACK subroutine. The parameter structure has an exit field that should be set to 'X'.

In the submitted program, the BACK function must lead to statement LEAVE PROGRAM.

Regards

Clemens

Read only

Former Member
0 Likes
720

Hi,

Are you using VIA SELECTION-SCREEN..If so ..try removing it..

And

After the SUBMIT AND RETURN..

give...

LEAVE TO SCREEN 0..

Thanks,

Naren

Read only

Former Member
0 Likes
721

Thanks guys for your answers, my problem is partially solved, I am using the Submit via Selection Screen and Return. I inserted the LEAVE TO SCREEN 0 and it partially worked, however I am still getting the selection screen from the called program, I suspect this is because I am using the submit via selection screen. If I take out the via selection screen, then I am able to go back directly to the first selection screen like I want, but I NEED the via selection screen. Is there anyway to fix this?

Read only

0 Likes
720

Hi

If you need to use VIA SELECTION-SCREEN option you have to update the called program in order to insert the command LEAVE PROGRAM (instead of LEAVE TO SCREEN 0), in this way you can force the system to back to calling program.

Max