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

Selection screen back to module pool

Former Member
0 Likes
2,618

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 ?

12 REPLIES 12
Read only

bastinvinoth
Contributor
0 Likes
2,125

while pressing back ,Did you use 

LEAVE TO TRANSACTION 'ZCOS(specify your custom tcode)'.

Read only

0 Likes
2,125

Z report has back button overridden by standard functionality which always leave it to last accessed screen.But its not happening in my case.

Read only

0 Likes
2,125

Hi adi,

Place it in application tool bar then click that button and see the results.

where you have placed that push button ?

Read only

0 Likes
2,125

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

Read only

0 Likes
2,125

Tried placing in both.Same result.

Read only

0 Likes
2,125

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.

Read only

0 Likes
2,125

I cant use blank function activity type because it prompts me to fill mandatory fields.I know call transaction do work.

Read only

0 Likes
2,125

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.

Read only

Former Member
0 Likes
2,125

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.

Read only

0 Likes
2,125

Dear Bilal,

We never create back button coding in any new Z report,we only define selection screen.The behaviour is implicit.

Read only

0 Likes
2,125

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.

Read only

Former Member
0 Likes
2,125

This message was moderated.