05-20-2009 6:57 AM
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.
05-20-2009 7:02 AM
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
05-20-2009 7:06 AM
Activate the Staus which you have created first and then try activating the whole object .
05-20-2009 7:14 AM
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 .
05-20-2009 7:21 AM
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
05-20-2009 7:23 AM
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.
05-20-2009 7:27 AM
Activate the status first and activate the program where you are using that GUI.
05-20-2009 7:29 AM
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.
05-20-2009 7:34 AM
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
05-20-2009 7:46 AM
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.