PF status in a normal selection screen.

Hi guyz !
   I have got a situation here , in a normal report program , how can i change the PF status or apply new status into the selection screen. Its not a dialog prog.
Please advice .
Thanks
jahan

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 = 'ZSELK'           "your status
      TABLES
        P_EXCLUDE = EXCLUDE
      EXCEPTIONS
        OTHERS = 1.
   ENDIF.
Also check program DEMO_SEL_SCREEN_STATUS .
Hope this will help.
Regards,
Srilatha.

Similar Messages

  • 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 created

    Make 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

  • Status profile for the selection screen ?

    Dear Shymal,
    The link of thread which you sent have this line status profile for the selection screen for QA33 and QA32 . I don't users ti get those lots which are having status LTCA.
    Now how can i do this? Can you explain me?
    Regards,
    Kaushal Rai

    Dear Kaushal,
    It is written in that reply status profile, is just a slip of mind/Fingers only. We can say a typographical error. I hearty apologies for the same.
    Now a accept my regret and pls find the rectification herewith.
    That is "Selection Profile", to create rather I can say configure it,
    - Run trx BS42, create new profile, Name it Logically.
    - Double click on the "_Selection Conditions_",system will lead you to the screen named Change View "Selection Conditions": Over View.
    - Here Enter the LTCA, in the Fourth Column "STATUS".
    - Click on the check box under Sixth column 'not'.
    The settings should be as.....
    1st Column,,,Link :- No Links (Blank0
    2nd Column,,,Usr:- Don't check this box.
    3rd Column,,,St.Prof.:- Blank
    4th Column,,,Status:- LTCA.
    5th Column,,,Status:- Lot canceled
    6th Column,,,not:- Check this box.
    7th Column,,,Status:- It will be 'Active' by default.
    Now SAVE.....
    Now in QA32, pick the section profile you just created.
    Let me know if it don't work.
    Regards,
    Shyamal

  • PF status in dynamic selection screen

    Hi,
    I am creating a dynamic selection screen ,it is having the default PF_status .But now i want to give a different PF_status in that dynamic selection screen.
    Like if i press the back button it should take me to the previous screen,but now it is going to next screen.So,Please help to change the functionality of the BACK button.
    thanks in advance
    Sravanthi

    Hi Sravanthi,
    Set your PF status in event 'At selection-screen output' of your dynamic selection screen.
    Handle Back operation in event 'At selection-screen'.
    AT SELECTION-SCREEN OUTPUT.
      SET PF-STATUS 'TEST'.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
        WHEN 'BACK'.
      " Ur code
      ENDCASE.
    Thanks,

  • How to add a gui status in selection screen

    hi
    experts can u help me plzzzzzzzzzzzzzzzzzzzzzz
    for this

    Hi 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

  • Back on a CALL SELECTION-SCREEN from an ALV

    Hi all,
    I have created a program with a normal selection-screen (1000).
    According to the selected values, when I press "Execute" I go to a next selection-screen (2000) with instruction CALL SELECTION-SCREEN 2000.
    Then I display an ALV.
    When I press the back button, I want to go back to screen 2000, but actually I go directly to screen 1000.
    PARAMETERS : p_choic1 RADIOBUTTON GROUP cho DEFAULT 'X'.
    PARAMETERS : p_choic2 RADIOBUTTON GROUP cho.
    SELECTION-SCREEN BEGIN OF SCREEN 2000.
    PARAMETERS : p_table TYPE char10.
    SELECTION-SCREEN END OF SCREEN 2000.
    START-OF-SELECTION.
      IF NOT p_choic1 IS INITIAL.
        CALL SELECTION-SCREEN 2000.
        PERFORM alv_process.
      ENDIF.
    Have you got any idea of what I can do to return to screen 2000 from the ALV after pressing Back button ?
    Thanks.

    Hi,
    Follow below sample code...
    SELECTION-SCREEN BEGIN OF SCREEN 2000.
    PARAMETERS p_mat  TYPE matnr.
    PARAMETERS p_enam TYPE ernam.
    SELECTION-SCREEN END OF SCREEN 2000.
    START-OF-SELECTION.
    set PF-STATUS 'STATUS'.
      WRITE:/ p_mat,
              p_enam.
    AT USER-COMMAND.
      CASE SY-UCOMM.
      WHEN 'S2000'.
          CALL SELECTION-SCREEN 2000.
      WHEN 'EXIT'.
          EXIT.
      ENDCASE.
    Ram.

  • Logical Database (PNPCE) , selection screen hide.

    Hi Gurus,
             i have couple of questions related to logical database pnpce.
    1.Since i know logical database has there own selection screen , my requirement is i want to add my custom fields to the selection screen other than what is provided is it possible or not.
    2. i want to hide the selection screen of the logical database, but i do want to create my own in which i will be declaring some select options of the standard logical database screen has, like pernr, organisation unit, etc, how do i communicate the entered data with the logical database if i dont use the logical database standard selection screen, hope i could able to explain my problem, please see into my problem and let me know thanks in advance,
    hussaini

    Hussain,
    LDB have standard selection screens, if at all you want to customize those standard selection screen you would have to define a report category for your program. You`ll have to configure in the spro settings for your corresponding report category.
    If you would like to declare your own selection criteria, you can very well do it and these criteria are visible below the standard selection criteria. You can process these elements in your program and not in the LDB standard program. Use the normal selection screen events in your program for processing your selection criteria.
    Hope this info is helpful, reward points if convinced.
    Regards

  • Cursor on a error-data field in the Selection-Screen

    Hi all,
    I have a normal selection-screen in which I have 4 select-options.
    I require that when user enters a wrong data in the 3rd field, the cursor should blink in that field.
    I tried to use AT SELECTION-SCREEN ON fld  event, but through this, the other's field input is disabled which I don't want.
    What should I do?
    Can I do it using SCREEN table?
    Regards,
    Saurabh A. Buksh

    Hi Saurabd,
    you could use the general event
    AT SELECTION-SCREEN.
    with no restriction on the fields. Then
    SET CURSOR FIELD error_field.
    MESSAGE Exxx...
    Best regards,
    Florin

  • Include a dialog screen in tabstrip of selection-screen

    Hi All,
    Could anyone please tell me how to include a dialog screen into selection-screen? We have a normal selection screen for a report but now we need to add some more function and this requires to key in material number in first column and quantity in second column in a tabstrip subscreen(eg. screen 2000) and put current select-options(screen 1000) in another tabstrip to make user easily switch between new filters and previous filters. I've no idea if it's possible to have a dialog screen included in a tabstrip in the selection-screen. So please give me some suggestion. Thanks.
    Best Regards,
    Jeff

    Hi Jeff,
    In the selection screen you need to call a custom tab strip that would have two sub-screens 1000 and 2000. It is completely designing of tab strip and its code manipulation.
    Did you search for TAB STRIP IN SELECTION-SCREEN ?
    This will  help you in from start-up designing of tab-strip. It's not possible here in forum to explain all the steps in details.
    For your help you can refer the link
    [Sub-screen in Tab strip|Tabstrip and Subscreen;
    This link gives you a complete idea on Tab strip
    [Creating a Tab Strip Control|http://help.sap.com/saphelp_nw04/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/frameset.htm]
    Still you can search and find more as per your requirement.

  • Probelm in module pool selection screen

    Hi,
    I wanted to create transaction variant for my selection screen which i have to design through module pool
    if use the following code im not able to get the screen fields during trancation varian creation
    call screen 1001.
    SELECTION-SCREEN BEGIN OF SCREEN 101.
      SELECTION-SCREEN BEGIN OF BLOCK BL1.
       select-options:s_matnr for mara-matnr.
      SELECTION-SCREEN END  OF  BLOCK BL1.
    Kindly giv me a solution for the above query.
    Thanks In Advance,
    Santhiya B

    Hi,
    The easy way out is use a report program so you can have a normal selection screen and enjoy the variant capability for free. You can then do a 'call screen' so the rest of your processing will behave like a dialog program.
    If that's not possible, here's another option. It's not elegant, but I've done it. If others have better ways, please do share.
    1) Create a dummy program (ZXXXVARI). In this program, all it needs is the selection fields similar to what you have in your module pool.
    2) Add buttons to your dialog screen so users can choose variants, save variant, etc.
    3) Define internal array VALUTAB LIKE RSPARAMS.
    4) When user wants to save their selection, populate VALUTAB, then call FUNCTION 'RS_CREATE_VARIANT' EXPORTING CURR_REPORT = "ZXXXVARI", etc., or call function 'RS_CHANGE_CREATED_VARIANT', depending on whether the variant already exists on the table VARI or not.
    5) When user wants to choose a variant to use, just display the variants in VARI under his id. Once he selects a variant, CALL FUNCTION 'RS_VARIANT_CONTENTS' to retrieve the values saved and put them on the dialog screen.

  • Disable selection screen application toolbar button

    Hi All,
    Could you please let me know how to hide or disable application toolbar pushbuttons in the selection screen default screen 1000??
    Thanks & regards,
    Santhosh

    Hi,
    Try this way.
    "Create table for function codes
    DATA: it_exclude TYPE TABLE OF sy-ucomm.
    PARAMETERS: r1 RADIOBUTTON GROUP gr1 USER-COMMAND uco1,
                r2 RADIOBUTTON GROUP gr1.
    INITIALIZATION.
      "Create two buttons with function codes FCODE1 and FCODE2.
      SET PF-STATUS 'MY_GUI'.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 = 'X'.
        APPEND 'FCODE1' TO it_exclude.
        CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
          EXPORTING
            p_status  = 'MY_GUI'
          TABLES
            p_exclude = it_exclude.
      ELSE.
        REFRESH it_exclude.
      ENDIF.
    Thanks
    Venkat.O

  • Selection screen on moudle programming

    The business needs selection parameter for select options to an existing module program. All the functionalities for a select-option in selection screen should be available.
    I know that we can have normal selection screen 1000 and then call the relavent screen using call screen.
    My need is for the exisiting module program.
    Is it possible if yes then how can that be achieved...?

    Hi ,
      You can define the selection screen in the top include...and use the syntax CALL SELECTION-SCREEN..
      check the F1 help for call selection-screen...
    Thanks
    Naren

  • Custom field in COOIS selection screen

    Hi all,
    how do I add a custom field (IOHEADER-ASTTX, User status) in the COOIS selection screen ?
    Thank's
    Edited by: Marco De Caro on Dec 6, 2011 2:15 PM
    Edited by: Marco De Caro on Dec 6, 2011 2:16 PM

    Hi,
    Use the BADI : WORKORDER_INFOSYSTEM
    Method: TABLES_MODIFY_LAY
    In the method TABLES_MODIFY_LAY there are many table parameters for different data display of the production order.In this scenario only the header detail structure is being extended with append structure. 
    Add the extra fields to be displayed to through append structure to IOHEADER_TAB.
    Example code :
    DATA : BEGIN OF st_matkl,
               matkl TYPE matkl,
               END OF st_matkl.
      DATA : st_header TYPE ioheader.   LOOP AT ct_ioheader INTO st_header.
        IF NOT st_header IS INITIAL.
          SELECT SINGLE  matkl
                 FROM mara
                 INTO st_matkl
                 WHERE matnr = st_header-matnr.
        ENDIF.
        st_header-matkl = st_matkl-matkl.
        MODIFY ct_ioheader FROM st_header.
      ENDLOOP.
    When you run the report will be able to see the added field in the ALV.
    Thanks,
    Shailaja Ainala.

  • AT SELECTION-SCREEN ON/END OF FIELD

    Hi all,
         I want to know the exact difference between AT SELECTION-SCREEN ON field and AT SELECTION-SCREEN ON END OF field. Could you give me the answer with an example.
    Sathish.

    Hi,
    Let`s say you have a radio button on your selection screen and you want to perform some action once the user clicks the radio button. You can attain this functionality by using AT SELECTION-SCREEN ON FIELD. This event block is raised before the AT SELECTION-SCREEN event, on action performed on that particular field.
    "AT SELECTION-SCREEN ON END OF field",
    Consider the following example :
    AT SELECTION-SCREEN ON END OF <seltab>
    event is triggered. This event block allows you to check the whole selection table <seltab>. Warning messages are displayed as dialog boxes, not in the status line.
    AT SELECTION-SCREEN ON END OF CARRID.
      LOOP AT MATNR.
        IF MATNR-HIGH NE '   '.
          IF MATNR-LOW IS INITIAL.
            MESSAGE Wxxx(MSG).
          ENDIF.
        ENDIF.
      ENDLOOP.
    Hope the info. is helpful, if so reward points.
    Regards

  • Saving Selection Screens in Webdynpro Abap

    Hi ,
    Could you please throw some light on how to save the selection screens in Webdynpro Abap ?? Just like variants in normal Abap?
    Thanks and Regards
    Alok Sharma

    HI,
    I dont think there is automatic saving of varients in web dynpros  just like normal selection-screen.
    Just check this link you might get some idea.
    Link[Save Varient|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f028c2b9-1730-2d10-71ae-ce300ea00573?quicklink=index&overridelayout=true]
    Regards and Best wishes.

Maybe you are looking for

  • Accessing tables from remote machine

    I using the following code, to update the record from the emp table. This table is created locally in my machine. Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection conn; String db = "jdbc:odbc:NewDsn"; String username = "test"; String passwor

  • Can't set media kind to movie

    I imported a video in to iTunes, and it came in as a movie. It's an educational video, so I thought it would be nice to set its media type to iTunes U. I did that, then clicked iTunes U in my left hand pane, and the video did not appear. I created a

  • Hal won't start

    hi, i just did an update with pacman earlier and now i'm having some problems with gnome (several gnome apps were updated).  the first thing i noticed after reboot is that hal will not start.  i try to run it from /etc/rc.d and it will not start and

  • ArrayIndexOutOfBoundsException during query execution (COUNT() + brackets)

    Hi The following query (and almost any other query combining a "select count" and a node written with brackets) raised an ArrayIndexOutOfBoundsException : PREFIX someinfo:<http://.......someuri/info#> SELECT count(?item) ?kind ?item someinfo:Kind [so

  • Best Router for Infinity FTTP

    Hi, Can anyone advise on alternative routers for Infinity Fibre to the Premises as the Home hub 3 is a bit basic. Obviously it needs to support PPPoE, but I could also use something that would allow my to establish IPSec VPN's to a Cisco 3000 concent