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

Issue with Submit statement

Former Member
0 Likes
3,032

Hi Folks,

I have facing an issue with submit program. As per my requirement, an ALV output is displayed. Here there is provision to select the output data with the checkbox column. The selected entry data will be subimitted to the report standard report RLS10034 (LT10 transaction). Its successfully submitted and the output of this report is being displayed. When back button is pressed from this standard report output, the selection screen of the z-program is being displayed instead i want to display the output from where the entries are being seleted through the checkbox. Please help me out.

I tried with submit via selection-screen, submit with selection-table. But could not achieve.

Regards

Mallikarjun Reddy G.

13 REPLIES 13
Read only

Former Member
0 Likes
2,422

Hi Mallikarjun,

SUBMIT report AND RETURN?

regards,

Archer

Read only

0 Likes
2,422

Hi Zhang,

I tried that but no use.Thanks for your response.

Read only

Former Member
0 Likes
2,422

Hi,

Please paste your ALV Function Module for display....

Thanks,

Vijay SR

Read only

0 Likes
2,422

Hi Vijay,

Please find the code below. 

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,422

Did you look at code of submitted report?

Hint: Look for "leave to transaction sy-tcode." near END-OF-SELECTION tag.


So any way you call this program, you will end up on the initial screen of the current transaction.


So you have to break this behavior, you could try some tricks (examples)

  • export some data to memory, so when z-transaction start again you get this information in PBO (at selection-screen output) refresh memory (for next call) regenerate the ALV and SUPPRESS the DIALOG to disable selection-screen display.
  • Execute report in another mode (I'll let you analyze this solution)
  • Use some implicit enhancement sport in called report to disbable the LEAVE TRANSACTION when called with SUBMIT.

Regards,

Raymond

Read only

0 Likes
2,422

Hi Raymond,

I observed the program RLS10034. But the statement leave to transaction sy-tcode is not inside either routine,function-module etc. Hence even implicit enhancement wont work here.

Read only

0 Likes
2,422

You could try the end of form ausgabe .

Regards,

Raymond

Read only

0 Likes
2,422

Hi Raymond,

I also tried the implicit enhancement inside routine AUSGABE. I tried as below with

1. Leave list-processing

2. Set screen 0.

    Leave screen.

3. Return

4. Exit

all the possibilities but no use. and i thank you for all your responses inorder to help me out.

Regards

Mallikarjun Reddy G

Read only

0 Likes
2,422

1. Leave list-processing

2. Set screen 0.

    Leave screen.

3. Return

4. Exit

Did you try a LEAVE PROGRAM ?

(if sy-calld EQ abap_true)

Regards,

Raymond

Read only

kabil_g
Active Participant
0 Likes
2,422

Hi Mallika Arjun,

Try wit these below statement.

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
Read only

Former Member
0 Likes
2,422

Hi Kabil,

I tried but not resolved.

Read only

kabil_g
Active Participant
0 Likes
2,422

Hi Reddy,

Provide that check box screen number


ALV Output Screen number is 500


Example :  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 500.




Read only

former_member185054
Active Participant
0 Likes
2,422

hi,

i too done a requirement like this. hope you know about import and export memory.

just use import and then use submit program.

below snapshot from my code.

IMPORT p_werks FROM MEMORY ID 'M_WERKS'.

             IMPORT p_auart FROM MEMORY ID 'M_AUART'.

             IMPORT p_date  FROM MEMORY ID  'M_DATE'.

             SUBMIT zstinppc000008a WITH p_date EQ p_date

             WITH p_auart EQ p_auart

             WITH p_werks EQ p_werks.

so many ways we can do this...

you can call your alv routine too while pressing back button.

With regards,

sampath kumar.