Assign GUI-status to screen
How do we Assign new GUI-status to screen that we create.At present by defualt 'MEN' is coming
but i didn't created however ?.I am new to screen programming.Plz help.
Hi,
Follow code:-
At screen logic:
PROCESS BEFORE OUTPUT.
MODULE status_8001.
In the PBO of the screen,
MODULE status_8001.
SET PF-STATUS 'ZPF_STAT'.
ENDMODULE.
Now in every screen use same concept and set appropiate status for the desired screen.
Every time a screen is called, the PBO of screen is executed and PF status will be changed.
Use code to remove a status from the screen:-
SET PF-STATUS space.
Say if from one screen you move to another and you dnt want any pf-status on that screen, then this will remove the pf-status from the next screen.
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir
Edited by: Tarun Gambhir on Feb 17, 2009 11:16 AM
Similar Messages
-
hello i learning how do module pools , i have a custom menu for my module and i am trying call a screen when i press a opcion in the menu ( example : File: update_screen ) but dont work , this is the code:
*& Modulpool Z_PP_LOTE_ETIQUETAS
INCLUDE Z_PP_LOTE_ETIQUETAS_TOP . " global Data
INCLUDE Z_PP_LOTE_ETIQUETAS_O01 . " PBO-Modules
INCLUDE Z_PP_LOTE_ETIQUETAS_I01 . " PAI-Modules
INCLUDE Z_PP_LOTE_ETIQUETAS_F01 . " FORM-Routines
*& Include Z_PP_LOTE_ETIQUETAS_TOP Modulpool Z_PP_LOTE_ETIQUETAS
PROGRAM Z_PP_LOTE_ETIQUETAS.
data: ok_code(4) type c.
internal table
data: i_ZC2P_LOTE_ETIQUE type STANDARD TABLE OF ZC2P_LOTE_ETIQUE WITH HEADER LINE.
Table Control Declartion.
tables:ZC2P_LOTE_ETIQUE,
ZC2P_LIDER_MODUL.
*& Include Z_PP_LOTE_ETIQUETAS_O01
*CALL SCREEN 101.
*& Module STATUS_0101 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'Z_PP_LOT_ETIQ_MENU'.
SET TITLEBAR 'Z_PP_LOT_ETIQ'.
ENDMODULE. "STATUS_0100 OUTPUT
MODULE status_0101 OUTPUT.
SET PF-STATUS 'Z_PP_LOT_ETIQ_MENU'.
SET TITLEBAR 'Z_PP_LOT_ETIQ'.
ENDMODULE. "STATUS_0100 OUTPUT
*& Z_PP_LOTE_ETIQUETAS_I01
module user_command_0100 input.
case ok_code.
when 'LIDMOD'.
call SCREEN 101.
clear ok_code.
when 'CANC'.
clear ok_code.
set screen 0. leave screen.
when 'EXIT'.
clear ok_code.
LEAVE PROGRAM.
when 'BACK'.
clear ok_code.
set screen 0. leave screen.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
i have in the custom menu define LIDMOD as Cod. and screen 101 exist ( empty but exist ) when i debug it in the case perfom don't enter in : "when 'LIDMOD'.
thanksok_code ist 4 chars long
"LIDCODE" is longer fin fact 6 chars so it contains only "LIDM"
regards
Matthias -
i have used EXECUTE in gui status for screen 500. so wats the code am suppose to write to execute the code upon cliking the execute icon?
hi..
chk the SY-UCOMM eq 'SAVE' like that...
write the code..
<b>ex : IF SY-UCOMM EQ 'EXIT'.
LEAVE PROGRAM
ENDIF.</b>
With Rgds,
S.Barani -
Is gui status that is created by us for a particular program is local for that progam or it is global, so that we can use it in other programs.
Waiting for replies
thanx in advanceHi,
GUI STATUS are screen specific, different for each screen. If u want to use same in other prg then copy gui status to that program in se80-gui status-status name - right click -copy.
Hope it will helpu.
Jogdand
PS: Award if helpful -
Urgent : program to copy or download GUI status
Hi Experts,
I have to copy Screens and GUI status, GUI titles from one SAP sysytem to another SAP system. Do anyone have the solution for it.
Or any program that could download to local system and then to upload the GUI Status and Screens to another syatem....
Thanks,
GovindHi Govind,
You can download the entire code one by one in simple flat file and can upload the same in the target system. It will reduce a lot of effort on your part. But as for the screens I think you need to put the data elements again. But you can check it as I have never tried.
The process to upload and Download the entire code is given below:
To download
SE80->Utilities->More Utilities->Upload/Download->Download. ( use this to download in a simple flat file.)
To Upload
SE80->Utilities->More Utilities->Upload/Download->Upload. ( now upload the simple file in the target system in the same way.)
Thanks and Regards,
Samantak.
Rewards points for useful answers. -
How to add a gui status in selection screen
hi
experts can u help me plzzzzzzzzzzzzzzzzzzzzzz
for thisHi Ravi,
Refer
how to add a gui status in a selection screen?
gui status in selection screen
gui status in selection screen
how to set my own gui status when i use selection-screen
Reward if it helps
Regards,
Santosh -
How to set my own gui status when i use selection-screen
how to set my own gui status when i use selection-screen command
and
how to set the names in the application tool bar when function keys are createdMake sure that you do this in event "AT SELECTION-SCREEN OUTPUT".
Run Txn ABAPDOCU and check 'DEMO_SEL_SCREEN_STATUS' for sample.
Also check out following discussion -
Selection Screen PF-STATUS
Cheers,
Sanjeev -
Gui status in selection screen
hi,
How to add a gui status in a selection screenHi,
You can use FM RS_SET_SELSCREEN_STATUS at event AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
IF SY-DYNNR = 1000.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
P_STATUS = 'SELK "your status
TABLES
P_EXCLUDE = EXCLUDE
EXCEPTIONS
OTHERS = 1.
ENDIF.
Also check program DEMO_SEL_SCREEN_STATUS and this link.
https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FthreadID%3D51617%26tstart%3D195
Regards,
Ferry Lianto -
Transport GUI Screen (SE51), GUI-status (SE41) and Titlebar - how?
Hi,
Please help me with the following:
How do you transport the following objects:
GUI Screen (SE51)
GUI-status (SE41)
Titlebar for the GUI
Thanks,
JohnYou can not create a screen or gui status or gui title without having a program, so there is always a reference to the program. If you go to SE80, and enter your program name, and hit enter, you will see folders for the screens, gui statuses, and gui titles.
The code in your PBO is simply saying that you want to use those for that particular screen, they must already exist in your program.
In reality, you should always create all of the objects of your program in SE80, and forget about SE51 and SE41, in doing so you will see how all of the objects of your program are together when using SE80.
And yes, to confirm, the screen and gui status/titles will be transported with your program.
Regards,
Rich Heilman -
What is the exact meaning for Screen Texts, GUI Status & GUI Titles
What is the exact meaning for Screen Texts, GUI Status & GUI Titles and where we can find in SAP.
What is called as these : Screen Texts, GUI Status & GUI Titles
Kindly let me know.
Akshtiha.Hi Akshitha,
<b>Screen text</b>:They are labels that you can display beside your selection-screen parameters/select-options.. from the ABAP editor, use the menu option Go to> Text Elements>Selection Texts.
<b>GUI STATUS</b>:go through this link
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba99935c111d1829f0000e829fbfe/content.htm
<b>gui title</b>:The GUI status and GUI title are interface elements of screens. You create both of them using the Menu Painter in the ABAP Workbench. On screens, GUI statuses of type dialog status are used.
Thanks
Vikranth Khimavath -
Transport Screen objects-GUI status(SAP does not create request, why)?
Hi experts,
I use SE80 to change GUI status, but system does not create a transport request for me to transfer? why?Hi,
Thanks for replay. Actually, the SE80->program->Gui status have some objects and they are already transfered. But I can't see them on target system. But When I create exactly the same name, the system tell me they are already created. I think it becuase the original language is 'DE' but I use default language 'EN' to modify and create the request? -
Hi,
I had created GUI status for output list in one report. its status is active in program but in report output this created status is not activated (Menu bar, application toolbar). Has anybody face this kind of problem before?
Regards,
Diliphi,
use command
SET GUI-STATUS 'menu1' -> double click on menu1 ->select menu bar radio button from available radio buttons -> click on expand butt0n -> select required buttons n give function codes n select user-command optionfor those buttons ->activate -> back ->activate the report prgm.
i think in our case you didn't activated the menu painter screen. check it once n dont forget to assign f.code n to give user-command after giving static text for buttons that u will use in prgm.
if helpful reward some points.
with regards,
suresh babu aluri. -
GUI status: codes for standard functions
Hi Experts,
I have created a custom GUI status in my screen and enabled BACK, CANCEL, EXIT, PRINT and FIND buttons.
With coding BACK, CANCEL and EXIT are working fine but what codes i should write for PRINT and FIND? Can anybody give me some sample codes.
Points assured.
Jogdand M BHi
For PRINT:
NEW-PAGE PRINT ON.
WRITE: 'Bye Bye'.
For FIND, something like
FIELD-SYMBOLS: <FIELD> TYPE ANY.
LOOP AT SCREEN.
ASSIGN (SCREEN-FIELD) TO <FIELD>.
IF <FIELD> CS MY_STRING'.
SET_CURSOR = SCREEN-FIELD.
EXIT.
ENDIF.
ENDLOOP.
In the PBO
SET CURSOR FIELD SET_CURSOR.
Max -
How to get GUI Status(Push Buttons) in ALV Report
Hi Friends
I have a requirement in a way that:
Once selection-screen was processed,an ALV report has to come and above the ALV List,I need a custom GUI Status(4 Push Button) with Push Buttons Logic.
Once I had clicks on thesse push button,I need to display one more ALV List and above this List,again I need a custom GUI Status(2 Push Buttons) with Push Buttons Logic.
Can anyone throw some light how we can achieve this.
Thanks for your cooperation!
Regards,
Madisettydata: rt_extab type slis_t_extab,
g_ucomm like sy-ucomm ,
g_selfield type slis_selfield.
form alv_display .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMM'
it_fieldcat = it_fldcat
tables
t_outtab = it_final1
perform pf_status using rt_extab.
perform user_comm using g_ucomm g_selfield .
endform.
form pf_status using p_rt_extab.
set pf-status 'PF_STATUS' excluding p_rt_extab.
endform.
form user_comm using p_ucomm like sy-ucomm
p_selfield type slis_selfield.
data: l_row type i.
case p_ucomm.
when 'DISPLAY_PO'.
loop at it_final1 into wa_final1.
if wa_final1-sel eq 'X' .
l_row = l_row + 1.
endif.
if l_row gt 1.
message e004.
endif.
clear wa_final1.
endloop.
p_selfield-fieldname = 'SEL'.
read table it_final1 into wa_final1 index p_selfield-tabindex .
set parameter id 'BES' field wa_final1-ebeln.
call transaction 'ME23N'.
endcase.
endform.
*create user interface for gui status by double clicking on 'PF_STATUS'.
*Check the above sample code . -
How to put separator lines in menu items in a gui status ?
Hi,
I have created gui status for my z transaction
I need the separator lines in the menu items like it is seen in std transactions
For example, in any screen , in the Help menu, we can see the following.
Application Help
SAP Library
Glossary
(line)
Release notes
(line)
SAP Service Marketplace
could you please help me how to put the lines ?
thanksHi,
Goto Your GUI status.click on your MENU bar.
under the menu bar you will have your own menu items.
where ever you want separator line do the following way.
you will have 2 columns under menu bar
1) code
2) text.
under code dont put anything.
but under text column you put dashes and enter or select right click there and choose separator line.
you will get separator line.
activate and run the ztcode.you will get .
code text
Application Help
SAP Library
Glossary
Release notes
SAP Service Marketplace
Thanks
Parvathi
Maybe you are looking for
-
Getting this message all the sudden - what is it about? This computer's local hostname "first name -last name-iMac-6.local" is already in use on this network. The name has been changed to "first name-last name-iMac-7.local". thanks,
-
Hi, Something strange has happened to my 5800, last week all of my text messages deleted themselves and the ringtone defaulted to the Nokia tune. Since then very few of the applications on my phone work correctly. The internal web browser works fine
-
I have a strange occurence to report and I hope someone can answer my question. I am using Mail, and my "get mail" button on the main window in the program has disappeared, and I don't know what to do about it. I mean it simply doesn't appear on the
-
Microsoft has been trying to update Siverlight for the past few weeks - each time failing. It says that HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@Microsoft.com/NpCtrl,version=1.0 is the problem. I have tried to delete it & the whole Mozilla key but
-
How do you fix error OXE8000065?
My computer will not let me sync my iPhone 3GS. This is the error code the keeps popping up... how do I fix it?