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

Back Button Functionality

Former Member
0 Likes
1,384

Dear All,

I have developed a Block List ALV Report . In it I have made a Hyperlink on each column of cells. The Requirement for it is to view more details if any value is clicked. So I have called a Classical Output. Till here it is working fine.

Now when I click BACK Button then it is navigating to Selection Screen but it should go to Block List ALV.

I have tried all the methods like by creating PF Status and capturing SY-UCOMM for BACK button.

Please guide me.

Regards,

Bharti Jain

7 REPLIES 7
Read only

Harsh_Bansal
Contributor
0 Likes
1,253

Hi,

I did similar kind of thing..difference being when user clicks then i called another alv..in that case on clicking back, it used to take me to first alv not selection screen..you can also do the same

Regards,

Harsh Bansal

Read only

former_member213851
Active Contributor
0 Likes
1,253

Hi,

Try this code:

Case: sy-ucomm.

when 'BACK'.

Leave to screen 0.

when ''EXIT' .

Leave Program. "You are using this functionality currently.

endcase.

Read only

Former Member
0 Likes
1,253

Hi,

In the user command for back try calling screen itself rather than leave screen or leave to screen 0 etc.

thanks and regards.

Aswath.

Read only

Former Member
0 Likes
1,253

Hi,

To display alv output you will call screen assume it is screen no 100.

after displaying alv if you press it will go to classical report in another screen.

If you call .....leaave to screen 0 it will go to selection screen,

better you use leave to screen or leave to screen 100(previous) in pai (next screen i.e classsical report ,not in 100.

THANKS,,,,

Read only

Former Member
0 Likes
1,253

Hi,

How do you call your CLASSICAL OUTPUT? If you used CALL TRANSACTION command,

better used it with SKIP FIRST SCREEN. See the sample below.

SET PARAMETER ID 'AUN' FIELD gt_vbak-vbeln.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

Let me know if this work with your requirements.

Thanks,

iostreamax

Read only

Former Member
0 Likes
1,253

Use FM CALL FUNCTION 'TXW_TEXTNOTE_EDIT'

EXPORTING

edit_mode = ' '

TABLES

t_txwnote = It_note.

In User command of first list use the FM with extra text appanding into itab it_note.

Read only

Former Member
0 Likes
1,253

in the report use

DATA OK_CODE TYPE SY-UCOMM.

when you design the screen in the screen element declare in elemnt list a term OK_CODE and activate it in the main program.

in the PAI write

CASE OK_CODE.

WHEN 'BACK'.

LEAVE TO SCREEN 0.

ENDCASE.