2015 Jun 15 9:52 AM
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.
2015 Jun 15 9:56 AM
2015 Jun 15 10:35 AM
2015 Jun 15 10:59 AM
Hi,
Please paste your ALV Function Module for display....
Thanks,
Vijay SR
2015 Jun 15 12:00 PM
2015 Jun 15 12:16 PM
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)
Regards,
Raymond
2015 Jun 15 2:14 PM
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.
2015 Jun 15 2:36 PM
2015 Jun 15 5:33 PM
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
2015 Jun 16 1:57 PM
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
2015 Jun 16 12:05 PM
Hi Mallika Arjun,
Try wit these below statement.
| LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0. |
2015 Jun 16 1:45 PM
2015 Jun 16 1:57 PM
Hi Reddy,
Provide that check box screen number
ALV Output Screen number is 500
Example : LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 500.
2015 Jun 16 5:37 PM
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.