Application Development 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: 

BACK button

Former Member
0 Kudos

i have created a PF-status and created a BACK button but it is not working do i need to code for it.............

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try this in PAI

if sy-ucomm = 'BACK'.

leave to screen 0.

endif.

6 REPLIES 6

Former Member
0 Kudos

hi

Yes you have to code for it. Check the value of sy-ucomm and if it equals the func code for the back button, then 'leave program' .

like

if sy-ucomm = ' <func code for the back button>'

leave program.

Hope this helps to solve ur problem....

<b>do reward if useful....</b>

regards

dinesh

jaideeps
Advisor
Advisor
0 Kudos

hi,

check whther u have mentioned exact name as BACK ..

and check whther it is activated properly...

thanks

jaideep

*reward points if useful..

Former Member
0 Kudos

yes everythin is right........

Former Member
0 Kudos

Try this in PAI

if sy-ucomm = 'BACK'.

leave to screen 0.

endif.

former_member196280
Active Contributor
0 Kudos

What is the ok_code for back button.. if OK_CODE = 'BACK" then write the code like this

if sy-ucomm = 'BACK'.

leave to screen 0.

endif.

Rgds,

SaiRam

former_member196299
Active Contributor
0 Kudos

hi ,

Definately you need to code for the PF status and the BACK button options .

In the PBO of your screen you can use the PF status .

And in the PAI of your screen you can use the BACK button checking the sy-ucomm values adn code accordingy .

Regards,

Ranjita