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 TO EASY ACCESS SCREEN

Former Member
0 Likes
1,519

HI,

I HAVE A REQUIREMENT.

I HAVE DEFINED MY OWN SELECTION SCREEN 500.

I WANT TO LEAVE TO SAP EASY ACCESS SCREEN FROM MY SELCECTION SCREEN WHEN I CLICK BACK BUTTON.

HOW TO DO IT?

HI,

I HAVE A REQUIREMENT.

I HAVE DEFINED MY OWN SELECTION SCREEN 500.

I WANT TO LEAVE TO SAP EASY ACCESS SCREEN FROM MY SELCECTION SCREEN WHEN I CLICK BACK BUTTON.

HOW TO DO IT?

7 REPLIES 7
Read only

Former Member
0 Likes
1,109

Hi

Write the code AND SEE for BACK button as

case sy-ucom.

when 'BACK'.

<b> CALL TRANSACTION 'SESSION_MANAGER'.

LEAVE SCREEN.</b>

ENDCASE.

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
1,109

Hi Viki,

under the Back Button write this Statement,

call transaction 'SESSION_MANAGER'.

Thanks,

Reward If helpful.

Read only

Former Member
0 Likes
1,109

Hello,

if sy-ucomm = 'BACK'

leave program.

endif.

Read only

Former Member
0 Likes
1,109

hi,

i think u can use LEAVE PROGRAM.

LEAVE PROGRAM always leaves the current program - there is never any processing after LEAVE PROGRAM!

Revert back if any issues,

Reward with points if helpful.

Regards,

Naveen

Read only

former_member404244
Active Contributor
0 Likes
1,109

Hi,

case sy-ucomm.

When 'BACK'.

leave to screen 0.

endcase.

Regards,

Nagaraj

Read only

former_member784222
Active Participant
0 Likes
1,109

Hello

You can use: fm SAPGUI_SET_FUNCTIONCODE when user presses back.

CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'\

EXPORTING

FUNCTIONCODE = '/N'.

Regards,

S. Chandra Mouli.

Read only

Former Member
0 Likes
1,109

handle ok_code.ie in the screen attributes define ok_code.

then define ok_code in the program to

data : ok_code like sy-ucomm.

In the PBO module.

set pf-status of the screen.

assign BACK fcode to back button

In the PAI module.

case ok_code.

when ' BACK'.

leave to screen 0.

endcase.

or u can use.

case ok_code.

when ' BACK'.

leave program.

endcase.