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: 

Problem with set pf-status

Former Member
0 Kudos

Hi Team,

I have created a screen for which I am trying to set GUI status.

I have created a status by using set pf-status command.

Here I am using BACK, EXIT and CANCEL buttons. I have given the function codes to these buttons and written the coding for these.

Here the problem is these push buttons are not coming in active mode even though I have activated the objects properly.

While creating this GUI STATUS, in attributes the processing status is coming as customer object and after activation the status is showing as Modified / Active.

I have switched of the modification assistant also. Still these buttons are not coming in active mode.

Thanks,

Rakesh.

9 REPLIES 9

Former Member
0 Kudos

Hi Rakesh,

Please Check the function codes.. agian..check the case ..make it Upper case..

and write the code in PBO by creating a module there

case sy-ucomm.

when 'CANCEL'.

leave program.

when 'BACK'.

leave program.

when 'EXIT'.

leave program.

endcase.

go to se80 activate the whole program from the program level..

Edited by: Safel007 on May 20, 2009 11:33 AM

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Activate the Staus which you have created first and then try activating the whole object .

Former Member
0 Kudos

Hi Rakesh,

What is the code you have written for these function codes.

Please Write "Leave to screen 0".

else try to create the pf-status again .

Former Member
0 Kudos

Hello Rakesh,

1. Have you set the F2 to pick

2.Have you given the name of pf status starting with Z

3. Have you used the CAPS for the cancel and other buttons.

Comradely,

K.SIbi

Former Member
0 Kudos

Hi Rakesh,

For the buttons BACK, EXIT and CANCEL the system will automatically handle the functionality. You just have to specify their function codes in the pf-status for them to be active on the screen. And once you have entered the function codes, activate the pf-status. Then check it.

Regards,

Swapna.

Former Member
0 Kudos

Activate the status first and activate the program where you are using that GUI.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Just check whether the following things are done correctly.

1. SET PF-STATUS 'ZSTATUS'.

Here ZSTATUS is the name of the status and that should be in capital letters.

2.The statement should be written in the PBO of the correct screen.i.e., if you want the GUI to be shown in screen 9000, statement should be written in PBO of 9000 screen.

Former Member
0 Kudos

Hi,

u can go to tn se80-> select function group -SALV-> gui status-> STANDARD.

Copy that gui status to ur program.

by doing this u will get all the standard toolbar.

u can create ur customized button also. just gave them name different then standard ones

like if u want DEL then write 'DELETE'. change the name little bit.

then in report write st.

set pf_status 'STANDARD'.

activate it.

Now button will come....

hope it helps u!

Regards,

Mamta

Former Member
0 Kudos

Hi ,

as u set the pf-status , in the interface u hv the Function Keys-> Standard Toolbar

thr for all three buttons-BACK,EXIT,CANCEL. specify the function code 'EXIT'.

and in PAI of screen

CASE SY-UCOMM.

WHEN 'EXIT'.

LEAVE PROGRAM.

endcase.

Regards.