Gui status in selection screen
hi,
How to add a gui status in a selection screen
Hi,
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
Similar Messages
-
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 -
Setting pf-status on selection screen isue...
Hello Gurus,
I have a sample code as below. Now when I execute this one system automotically creates a default application tool bar, menu bar, etc.
Now, I have a requirement where I have to add a custom button in application toolbar but the other default stuff should work as it is like back buttin, variant button.
How can I do this ? I defined a pf-status creating anew program and tried to use as follows but it does not show the new pf-status.
SELECTION-SCREEN COMMENT /1(50) COMM1.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
parameters:
max_res(8) default '20'.
SELECTION-SCREEN END OF SCREEN 100.
SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab_block FOR 5 LINES,
TAB (20) tab1 USER-COMMAND tabpush1
DEFAULT SCREEN 100,
END OF BLOCK tab_block.
start-of-selection.
set pf-status 'INDEXSCREEN' OF PROGRAM 'ZINDEX'.
Please help.
Regards,
Rajesh.hi,
In your program, just use
Set PF-STATUS 'TEST'.
Double click on TEST, it forward navigates to a new screen where you need to give values for function keys i.e. if any required application tool bar buttons, you have icons over there which show BACK , CANCEL and exit.
Just fill the blanks with the above values.
In your program use the statement AT USER-COMMAND.
check for sy-ucomm value using.
CASE sy-ucomm.
WHEN 'FC05'. " This is ex. function code you assign to a key in the application toolbar for custome button
PROCESS.
when 'BACK' OR 'CANCEL' OR 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
Thanks and regards
Sharath -
How to hide gui buttons in selection screen
In Selection screen how to hide buttons like back, exit,cancel buttons.
can any one help.Hi,
Create a new GUI Status for your program.. put whatever button you require for it..
In the AT SELECTION-SCREEN OUTPUT event..
SET pf-status xxx.
Regards,
Anand -
Change Status in Selection Screen
Hi Experts!
Is possible change de status in a Selection Screen?
In Dynpro 1000 there is MODULE %_PF_STATUS, but i don't is is possible change it.
ThanksYes, use the FM [RS_SET_SELSCREEN_STATUS|http://help.sap.com/abapdocu_70/en/ABENSELECTION_SCREEN_OVERVIEW.htm] (ref [Changing the Standard GUI Status|http://help.sap.com/saphelp_nw04/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/frameset.htm]) - If you only need to add some new functions use [SELECTION-SCREEN FUNCTION KEY|http://help.sap.com/abapdocu_70/en/ABAPSELECTION-SCREEN_FUNCTIONKEY.htm] (ref [Pushbuttons in the Application Toolbar|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba80935c111d1829f0000e829fbfe/frameset.htm])
Regards,
Raymond -
PF status of Selection screen and ALV Grid
Hi,
I need to create a report where on clicking the<b> 'ENTER'</b> key on application toolbar on the <b>selection-screen</b> the processing logic should get executed ( instead of clicking execute pushbutton).
For this i need to capture the function code associated with ENTER key on selection screen. How can i find this?
Also , on clicking enter i have to display <b>an ALV grid</b> with the <b>SAVE</b> key activated on the toolbar.How can i activate SAVE key on application toolbar of ALV GRID. (<b>Selection-screen should not have save key</b> )
thanks,
vartikaHi
you can just copy the alv standard pf status into your alv.
goto se41.
enter "SAPLSLVC_FULLSCREEN"
then copy the standard pf status " STANDARD_FULLSCREEN" to your program "xyz".
in your prog, when you call the alv grid,
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = l_v_repid
i_callback_pf_status_set = 'SET_PF_STATUS' <----
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'ALV_TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
tHEN CPOY PASTE THIS CODE:
NOTE: No need to make a perform for this....
* FORM SET_PF_STATUS *
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS '/FIR/RRF2S0BG_ALV'.
"Copy of standard pf_status from
ENDFORM. "set_pf_status
Now can see the full tool bar enabled in your alv grid.
delete all the unwanted buttons from your programs pf status .
Hope that helps.
Cheers
Ravish Garg.
<i>
Reward if useful</i> -
Hi,
Am calling a screen 104 from the main screen, using the following statement..
CALL SCREEN 104 STARTING AT 10 5.
It is including the GUI status of the main screen. But I dont want any GUI status for the screen 104. I need only Title bar. How can I exclude the previous GUI status? Is it like by creating the new GUI status( without any buttons ) or is there any other efficient way to do this?
Regards,
SAP LoverHi,
The GUI status of a selection screen is generated by the system. The SET PF-STATUS statement in the PBO event of the selection screen has no effect on the standard GUI status. If you want to use your own GUI status for a selection screen or deactivate functions in the standard GUI status in exceptional cases, you can use one of the following function modules in the PBO event of the selection screen:
RS_SET_SELSCREEN_STATUS
Sets another GUI status defined in the same ABAP program, or deactivates functions of the standard GUI status.
RS_EXTERNAL_SELSCREEN_STATUS
Sets a GUI status defined in an external function group. You must use the SET PF-STATUS statement to set the status in a special function module in this function group. You must pass the name of the function module that sets the status as a parameter to the function module RS_EXTERNAL_SELSCREEN_STATUS.
For further information, refer to the function module documentation.
REPORT demo_sel_screen_status.
DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.
AT SELECTION-SCREEN OUTPUT.
APPEND: 'PRIN' TO itab,
'SPOS' TO itab.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.
In this example, the Print and Save as variant functions are deactivated. To find out the function codes of the standard GUI status, choose System ® Status and double-click the GUI status field.
regards,
preet
reward if useful.. -
Help Needed for selection screen
Hi Experts
I'm doing one report of pm module using one standard program called me RIQMEL10
my query is if u execute this stand.prog u'll get one selection screen ,and having three selction-screen blocks. first sel-scr block name is Notification status this selection screen is calling dynamically by using sap stand.prog SAPDBQMI
SCR NO : 1000
can any one send me the default code of this selection screen block ( Notification status ) which sap is providing .INCLUDE DBQMISEL
It will be automatically included into the database program.
If the source code is automatically generated,
please perform the following steps:
1. Replace ? by suitable names (at most 8 characters).
2. Activate SELECT-OPTIONS and PARAMTERS (delete stars).
3. Save source code.
4. Edit database program
Hint: Syntax-Check is not possible within this Include!
It will be checked during syntax-check of database program.
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-011.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS dy_ofn LIKE rihea-dy_ofn FOR TABLE diqmel.
SELECTION-SCREEN COMMENT 3(11) text-001
FOR FIELD dy_ofn ID 001.
PARAMETERS dy_rst LIKE rihea-dy_rst FOR TABLE diqmel.
SELECTION-SCREEN COMMENT 16(10) text-002
FOR FIELD dy_rst ID 002.
PARAMETERS dy_iar LIKE rihea-dy_iar FOR TABLE diqmel.
SELECTION-SCREEN COMMENT 29(10) text-003
FOR FIELD dy_iar ID 003.
PARAMETERS dy_mab LIKE rihea-dy_mab FOR TABLE diqmel.
SELECTION-SCREEN COMMENT 42(10) text-004
FOR FIELD dy_mab ID 004.
SELECTION-SCREEN COMMENT 52(10) text-005
FOR FIELD selschem ID 005.
PARAMETERS: selschem LIKE tj48t-selid FOR TABLE diqmel.
SELECTION-SCREEN PUSHBUTTON 73(5) p_addr USER-COMMAND addr
FOR TABLE diqmel ID 006.
PARAMETERS dy_adrfl NO-DISPLAY FOR TABLE diqmel.
SELECTION-SCREEN COMMENT 79(30) ad_icon FOR TABLE diqmel ID ic1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK block1.
SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-012.
SELECT-OPTIONS:
qmnum FOR diqmel-qmnum MATCHCODE OBJECT qmeg,
qmart FOR diqmel-qmart,
tplnr FOR diqmel-tplnr NO-DISPLAY,
strno FOR diqmel-strno MATCHCODE OBJECT iflm,
equnr FOR diqmel-equnr MATCHCODE OBJECT equi,
matnr FOR diqmel-matnr MATCHCODE OBJECT mat1,
serialnr FOR diqmel-serialnr,
deviceid FOR diqmel-deviceid,
aufnr FOR diqmel-aufnr MATCHCODE OBJECT orde.
*--- date from - until
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(28) text-009 FOR FIELD datuv.
SELECTION-SCREEN POSITION 33 FOR TABLE diqmel.
PARAMETERS datuv LIKE rihea-termab FOR TABLE diqmel DEFAULT sy-datum.
SELECTION-SCREEN COMMENT 51(6) text-010 FOR FIELD datub.
PARAMETERS datub LIKE rihea-termbi FOR TABLE diqmel DEFAULT sy-datum.
SELECTION-SCREEN END OF LINE.
*--- partner function, partner
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(9) text-006 FOR FIELD dy_parvw.
SELECTION-SCREEN POSITION 10 FOR TABLE diqmel.
PARAMETERS dy_parvw LIKE ihpa-parvw FOR TABLE diqmel
AS LISTBOX VISIBLE LENGTH 22.
SELECTION-SCREEN POSITION 33 FOR TABLE diqmel.
PARAMETERS dy_parnr LIKE ihpa-parnr FOR TABLE diqmel VALUE-REQUEST.
*--- button classification
SELECTION-SCREEN PUSHBUTTON 73(5) text-013 USER-COMMAND clse
FOR TABLE diqmel.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK block2.
*--- freie Abgrenzungen für log.Datenbankselektion -
SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE diqmel ID 010.
SELECTION-SCREEN BEGIN OF VERSION 001 text-v01.
SELECTION-SCREEN EXCLUDE PARAMETERS: dy_mab, dy_ofn, dy_rst, dy_iar,
selschem, dy_adrfl.
SELECTION-SCREEN EXCLUDE IDS: 001, 002, 003, 004, 005, 006, 010, ic1.
SELECTION-SCREEN END OF VERSION 001.
SELECTION-SCREEN BEGIN OF VERSION 002 text-v02.
SELECTION-SCREEN EXCLUDE IDS: 010.
SELECTION-SCREEN END OF VERSION 002.
*--- Parameter für Selektionssteuerung -> es sollen nicht -
*--- automatisch alle Segmente der log.DB selektiert werden -
*--- neu mit P30K047900 -
PARAMETERS: ldb_ihpa NO-DISPLAY DEFAULT 'X' FOR TABLE diihpa,
ldb_iflo NO-DISPLAY DEFAULT 'X' FOR TABLE diiflo,
ldb_equi NO-DISPLAY DEFAULT 'X' FOR TABLE diequi,
ldb_qmfe NO-DISPLAY DEFAULT 'X' FOR TABLE diqmfe,
ldb_qmma NO-DISPLAY DEFAULT 'X' FOR TABLE diqmma,
ldb_qmmx NO-DISPLAY DEFAULT 'X' FOR TABLE diqmmax,
ldb_clas NO-DISPLAY DEFAULT 'X' FOR TABLE diclass,
ldb_clda NO-DISPLAY DEFAULT 'X' FOR TABLE dicldat,
ldb_qmsm NO-DISPLAY DEFAULT 'X' FOR TABLE diqmsm,
ldb_qmsx NO-DISPLAY DEFAULT 'X' FOR TABLE diqmsmx,
ldb_aufk NO-DISPLAY DEFAULT 'X' FOR TABLE diaufk.
regards
vinod -
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 -
Error when generating the selection screen "0100" of report "SAPMZMATMAS
How to over come this error
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
*SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(6) TEXT-002 FOR FIELD P_STATUS.
PARAMETERS: P_STATUS(18) TYPE C." ZMATMAS-STATUS.
SELECTION-SCREEN COMMENT 24(8) TEXT-003 FOR FIELD S_MATNR.
SELECT-OPTIONS: S_MATNR FOR ZMAT-MATNR NO-EXTENSION.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 100 .
100 screen i am generating as selection screen
1100 is my main screen
please reply,
Thanks in Advance.
VamsiIf you look at the selection screen, you'll probably find that there are overlapping elements (text elements over select-options) or something like that.
Rob -
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 -
Multiple selection screens with status gui
Hi,
I want to make a report with two selection screens and i should create a status gui for these two.
So, I've tried to do, the following:
* FIRST SCREEN
SELECTION-SCREEN BEGIN OF BLOCK bk WITH FRAME.
PARAMETERS: pa(200) TYPE c.
SELECT-OPTIONS: so FOR sflight-carrid.
SELECTION-SCREEN END OF BLOCK bk.
* /FIRST SCREEN
* SECOND SCREEN
SELECTION-SCREEN BEGIN OF SCREEN 2000.
SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME.
PARAMETERS: pa2(200) TYPE c.
SELECTION-SCREEN END OF BLOCK bk1.
SELECTION-SCREEN END OF SCREEN 2000.
* /SECOND SCREEN
AT SELECTION-SCREEN OUTPUT.
SET PF-STATUS 'Z_STAT'.
SET TITLEBAR 'COISO'.
AT SELECTION-SCREEN.
IF sy-dynnr EQ '1000'.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANC'.
LEAVE TO SCREEN 0.
WHEN 'EXECUTAR'.
CALL SELECTION-SCREEN 2000.
IF sy-subrc <> 0.
LEAVE TO SCREEN 1000.
ENDIF.
ENDCASE.
The problem is that on the first selection screen i have the status gui that I've created, but when i use CALL SELECTION-SCREEN 2000
the status gui (Z_STAT) is not assigned with the screen 2000.
Is this possible? If yes how, and how can i capture which button on status gui of screen 2000 was clicked, because the field sy-ucomm after the call selection-screen 2000 is not updated?
Regards,
Pedro Bessaharsh bhalla,
its the same report. with two selection-screens. Can't i have status gui for both of them?
Gurpreet Singh,
I have a selection screen. Not a screen. Can a have a pbo for a selection-screen? or one for each selection-screen?
The table SSCRFIELDS and the field sy-ucomm stays with the value from the first selection-screen.
Regards,
Pedro Bessa -
Adding Radio button & regular button to selection-screen without new gui
Hi,
Is there a way to add a radio button & regular button to a selection-screen without having to create a new gui, status and etc?
Thanks,
JohnHi
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 4(30) TEXT-001 FOR FIELD P_1.
SELECTION-SCREEN POSITION 1.
PARAMETERS: P_1 RADIOBUTTON GROUP R1 DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 4(30) TEXT-002 FOR FIELD P_2.
SELECTION-SCREEN POSITION 1.
PARAMETERS: P_2 RADIOBUTTON GROUP R1.
SELECTION-SCREEN END OF LINE.
Where the symbols text TEXT-001 and TEXT-002 have the label for the radiobuttons
Max -
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 -
'SET PF-STATUS EXCLUDING fcode' not working in Selection Screen event
Hi all,
I am trying to set PF-Status dynamically in Selection Screen based on Radio button.
For that i have inserted following code under event --> AT SELECTION-SCREEN OUTPUT
* SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS: s_inc RADIOBUTTON GROUP rad DEFAULT 'X'
USER-COMMAND inc MODIF ID mod,
p_inc(10) MODIF ID m1,
s_lbr RADIOBUTTON GROUP rad,
p_lbr(10) MODIF ID m2.
SELECTION-SCREEN END OF BLOCK b1.
* AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
REFRESH fcode.
IF s_inc IS INITIAL.
APPEND 'CRTE' TO fcode.
APPEND 'CHNG' TO fcode.
APPEND 'DISP' TO fcode.
APPEND 'PRNI' TO fcode.
APPEND 'CRTL' TO fcode.
SET PF-STATUS 'STATUS_IN' EXCLUDING fcode.
ELSE.
SET PF-STATUS 'STATUS_IN'.
ENDIF.
Though s_inc is initial, i can see all the buttons from Status 'STATUS_IN' after execution of above code. EXCLUDING statement is not taking any effect which we normally get in Module pool program.
Please tell me what went wrong in above code?Problem solved ......Thanks Keshav,
Giving code correction -->
* SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS: s_inc RADIOBUTTON GROUP rad DEFAULT 'X'
USER-COMMAND inc MODIF ID mod,
p_inc(10) MODIF ID m1,
s_lbr RADIOBUTTON GROUP rad,
p_lbr(10) MODIF ID m2.
SELECTION-SCREEN END OF BLOCK b1.
* AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
REFRESH fcode.
IF s_inc IS INITIAL.
APPEND 'CRTI' TO fcode.
APPEND 'CHGI' TO fcode.
APPEND 'DISI' TO fcode.
APPEND 'DELI' TO fcode.
APPEND 'PRNI' TO fcode.
APPEND 'CRTL' TO fcode.
APPEND 'DATA' TO fcode.
ELSE.
APPEND 'CHGL' TO fcode.
APPEND 'DISL' TO fcode.
APPEND 'PRNL' TO fcode.
ENDIF.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = 'STATUS_IN'
P_PROGRAM = sy-repid
TABLES
p_exclude = fcode
Maybe you are looking for
-
Hello, I have an Epson cx4800 that I can't find a driver for that is compatible with OS X. Does anyone know if one exists? Thank You, Rob
-
Help: how to get text from IFRAME
<!-- The box where we type--> <IFRAME class="mytext" width="100%" ID="mytext" height="200"> </IFRAME> someone can tell me how i get text in my servlet from <IFRAME> thankx in advance...
-
i am unable to download updates for my iphone 4 using my pc. i have turned off firewall and spam however the downloadkeeps stopping about halfway through saying i have been disconnected from the network and to check my settings. very frustrating! hel
-
Mysql.sock error with php
Hi, I'm trying to get MySQL working on my Mac running OS X 10.5.1 The server runs and I have imported one of my databases into it. However when I run Dreamweaver and try and add the new database I get this error in Dreamweaver; Can't connect to local
-
Can not install bootcamp 3.1 to win7
win7 32bit. bootcamp 3.0 now. I've downloaded BootCamp_3.1_32-bit, but only the display card is installed. bootcamp is still 3.0 I have a big problem is that I can not use the USB WEB ADAPTER, that is to say I can only use WIFI, and can not use the l