‎2013 Mar 29 1:30 PM
Dear Experts,
I have given a button on module pool that calls an ALV report.
How i managed?
I created a button defined as activity type 'T' ie Transaction and made sure that fcode assigned is tcode itself.
Problem:
If i am in selection screen of alv and press back button ,i can not manage to go back to module pool screen from
where i pressed button previously.Instead i go to SAP Easy Access first screen.
I also tried doing submit alvreport and return and even that doesnot work.Can someone guide me if anyone faced this issue ?
‎2013 Mar 29 2:06 PM
while pressing back ,Did you use
LEAVE TO TRANSACTION 'ZCOS(specify your custom tcode)'.
‎2013 Mar 29 2:14 PM
Z report has back button overridden by standard functionality which always leave it to last accessed screen.But its not happening in my case.
‎2013 Mar 29 2:36 PM
Hi adi,
Place it in application tool bar then click that button and see the results.
where you have placed that push button ?
‎2013 Mar 29 2:43 PM
Try this,
Place one icon in application tool bar in module pool program by using SET PF STATUS.
if u press that icon means,it has to call your customize report.
if you have follow this method means,you will get back to your module pool screen when you
click report selecion screen back button.
Regards,
Bastin.G
‎2013 Mar 29 4:38 PM
‎2013 Mar 29 4:44 PM
Hi Aditya,
here its working fine dude .i have list out d follwing steps what i have done .
Step 1 : In module pool program at initial page, i have set one icon in application tool bar,after that i wrote following code in PAI user command like
case:sy-ucomm.
when 'TEST'
call transaction 'ZIMG'.
endcase.
that's it . its working fine if you placed icon in application toolbar by using SET PF STATUS.
‎2013 Mar 29 5:07 PM
I cant use blank function activity type because it prompts me to fill mandatory fields.I know call transaction do work.
‎2013 Mar 29 5:14 PM
okay, make one check box in module pool initial page at anywhere in screen.
Check Box okay right ?
if u select that checkbox means,it has to call your customize report.
if you have follow this method means,you will get back to your module pool screen when you
click report selecion screen back button.
‎2013 Mar 29 3:08 PM
In the user command of ALV , Check the action code of user.
If it is equal to fcode of back button then you can call you custom module pool program.
It is not exactly going back but you can use this as an alternative.
‎2013 Mar 29 4:41 PM
Dear Bilal,
We never create back button coding in any new Z report,we only define selection screen.The behaviour is implicit.
‎2013 Mar 29 4:51 PM
Hi Aditya,
Technically we dont create this functionality.
But i was trying to provide an alternative.
Check the ABAP stack and see which programs are in the stack.
One more alternative is in the module pool program change the button fcode from transaction to something else. whenever the user clicks this button use the user command to check for the fcode of this button and the either use call transaction or submit and return.
‎2013 Apr 01 8:38 AM