Selection Screen: change F4 Help values

HI,
i using a selection screen with:
parameters: pstat like edidc-status obligatory.
is it possible to midify the entries in the case the user is performing the F4 help ?
example: i want to show the values beginning with "5*" only (in the F4 help screen)
Edited by: Gordon Breuer on Oct 27, 2008 2:48 PM

Now, it´s working but without any entries.
at selection-screen on value-request for p_status.
  data: begin of value_tab occurs 0,
         status type edids-status,
         STATXT type edids-statxt,
               end of value_tab.
  data : return_tab like ddshretval occurs 0 with header line.
  data : x type string.
  refresh value_tab[].
  refresh return_tab[].
  value_tab-status = '53'.
  value_tab-statxt = 'processed'.
  append value_tab.
  value_tab-status = '51'.
  value_tab-statxt = 'not processed'.
  append value_tab.
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield               = 'STATUS'
   dynpprog               = sy-repid
   dynpnr                 = sy-dynnr
    dynprofield            = 'P_STATUS'
    tables
    value_tab              = value_tab
    RETURN_TAB             = return_tab
   exceptions
     parameter_error        = 1
     no_values_found        = 2
     others                 = 3
if sy-subrc eq 0.
  p_status = return_tab-fieldval.
endif.

Similar Messages

  • AT selection-screen on ON HELP-REQUEST

    Hi
    What is normally done in the Selection Screen event :
    AT selection-screen on ON HELP-REQUEST.
    Normally pressing F1 helps gives Documentation present in Data Element assoicated with the field. Exactly in what cases would we be needing to use this event.

    Hi,
    That event is used for search.
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
           exporting
                field_name = 'p_file'
           importing
                file_name  = p_file.
    If you code in the same manner in the selection screen you will able to search and select a file from your work station, so that it will be uploaded in SAP.
    I hope this will help you, if not plzzz be back.
    CHEERS
    If your problem is solved award points and close the thread.

  • Selection screen / how to clear values in screen parameters parameters

    Hello ,
    I am developing report . It is simple one with standard screen 1000  ( Not Dynpro ).
    On the screen I have several parameters and select options . When I run program , display list
    and press the "Back" Button from tool bar  ,entered values still remain in screen parameters.
    I  code I did 'clear' of parameters  , so after pressing "back" button and before selection screen
    is displayed the parameters show up as initial ( empty ) but once selection screen is displayed
    the values are in parameters again .
    Can you advice how I can clean up the values from  screen parameters  .
    Thank you

    Hi,
    Try the below code....
    DATA: executed TYPE n.
    SELECT-OPTIONS : selop1 FOR sy-datum.
    INITIALIZATION.
    executed = 1.
    AT SELECTION-SCREEN OUTPUT.
      BREAK-POINT.
      IF executed = 1.
        executed = 0.
        REFRESH: selop1.
        CLEAR : selop1.
      ENDIF.
    Regards
    Arbind

  • Function Module Changed - Selection Screen still has old values

    Hi All,
    Our data source uses a function module while extraction. (generic)
    We have changed the Text Symbols in our function module.
    In the function module we fill one particular field (master data) as per the logic.
    The changes done are reflected in the dataloads and data is fine in BW.
    our problem is the selection screen in BW and in the reports, it shows the older values as well for that particular field.
    Can anyone help us in this regard?
    thanks
    Sudeepti

    Sudeepti,
    run program
    rsdds_aggregates_maintain for the relevant infoobjects and see if the change is carried over..
    Also check if the text tables for the same refer to the older values...
    Arun
    Assign points if useful

  • LDB selection screen Change

    hi i have a unusual requirement
    Presently in one of my HR reports I am using 'PCH' LDB.
    In the selection screen we have the object ID which is defined in standard program with no-intervals like this.
    SELECT-OPTIONS:
    PCHOBJID FOR OBJEC-OBJID VALUE-REQUEST              "ObjektId
                             MODIF ID $OB NO INTERVALS.
    Now in my program I want to have it as regular select option. Can we change this in anyway.
    I was able to modify the rest of the fields by using AT-SELECTION-SCREEN OUTPUT EVENT.
    Please help me with this, points guaranteed

    Hi rhaul,
    1. I don't  we can directly do as per ur requirement.
    2. Bcos No-Intervals cannot be modified using Loop at screen.
    3. Another option is to copy the standard Ldb and use it.
    regards,
    amit m.

  • Selection screen as Subscreen help required

    Hello All,
    I am facing a problem by calling selection screen as subscreen, Here is my problem
    In my main screen i have create a sub screen as search help
    so in my sub-screen i have select-options
    If i click the button to include and exclude some values i don't see  the dailog box for selections is not appearing.
    Please provide help. I need to allow the user to enter some n values?
    Regards,
    Lisa

    Hi,
    There is a small mistake that you are doing..
    In the subscreen donot create the select options... What you need to do is... in the TOP Include write lines like..
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECT-OPTIONS s_proj FOR zimple_crmt_1000-title_part.
    SELECT-OPTIONS s_cr      FOR crmd_orderadm_h-object_id.
    SELECTION-SCREEN END OF SCREEN 1010 .
    Then.. in the screen where you have subscreen to be included write
    PBO
    CALL SUBSCREEN subs_1010 INCLUDING sy-repid '1010'.
    PAI
    CALL SUBSCREEN subs_1010.
    By doing this... the select option will appear on your subscreen with the extension and interval options.
    All the best.

  • Submit program with selection screen parameters - getting blank values

    Hi, I'm submitting a program with selection screen parameters. when I pass '000' (I_TPLSCN  )value for Planning Scenario and when this goes to selection screen then I don't see value for Planning scenario as '000'(I_TPLSCN  ) but the value is blank in selection screen. I'm using the below code for this.
    SUBMIT RMCPAMRP WITH MATNR_GL EQ I_MATNR   SIGN 'I'
                      WITH WERKS_GL EQ I_WERKS   SIGN 'I'
                      WITH PLSCN    EQ I_TPLSCN  SIGN 'I'
        via selection-screen        AND RETURN.
    Could anyone please help me how to display value '000' rather than blanks.
    thanks in advance.

    If I_MATNR, I_TPLSCN and I_WERKS are variable then try with
    SUBMIT rmcpamrp
      WITH matnr_gl = i_matnr
      WITH plscn    = i_tplscn
      WITH werks_gl = i_werks
      via selection-screen       
       AND RETURN .
    If I_MATNR, I_TPLSCN and I_WERKS are of type range then try  with
    SUBMIT rmcpamrp
      WITH matnr_gl IN i_matnr
      WITH plscn    IN i_tplscn
      WITH werks_gl IN i_werks
    via selection-screen       
       AND RETURN
    Edited by: Pawan Kesari on Dec 24, 2009 3:33 PM

  • Dynamic selection screen change in Selection Screen.

    Hi Experts,
    I am not getting dynamic screen change on selection screen. can you give solution for the following scenario.
    I have 3 radio buttons on selection screen. Example: R1, R2, R3.
    I have 5 fields on selection screen. Example : F1, F2, F3, F4, F5.
    When i select radio button 1 i will get F1 field screen only.
    When i select radio button 2 or 3 i will get F2 and F3 fields screen only.
    When i select radio button 3 i will get F4 and F5 fields screen only.
    Any one give me solution for the above scenario very much thankful.
    Thanks in advance,
    Sai

    Hi
    try this code,
    REPORT ZTEST_3RB.
    TABLES : KNA1,EKKO,VBRK.
    PARAMETERS : SALES RADIOBUTTON GROUP VIJJ USER-COMMAND VJY ,
    PUR RADIOBUTTON GROUP VIJJ ,
    BILL RADIOBUTTON GROUP VIJJ ,
    TOTAL AS CHECKBOX.
    SELECT-OPTIONS : S_CUSTNO FOR KNA1-KUNNR MODIF ID AKP DEFAULT 1000 TO 1033,
    S_PONO FOR EKKO-EBELN MODIF ID VKP,
    S_BNO FOR VBRK-VBELN MODIF ID PKP.
    INITIALIZATION.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SALES = 'X'.
    IF SCREEN-GROUP1 = 'VKP'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'PKP'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    MODIFY SCREEN.
    ENDIF.
    ELSEIF PUR = 'X'.
    IF SCREEN-GROUP1 = 'PKP'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'AKP'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    MODIFY SCREEN.
    ENDIF.
    ELSEIF BILL = 'X'.
    IF SCREEN-GROUP1 = 'AKP'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'VKP'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDIF.
    ENDLOOP.
    i think this will help your problem,
    Regards,
    Vijay

  • Selection Screen Change & Impact on background scheduled reports

    Hi,
    I have modified the selection screen of a report program by adding additional selection criteria. This report is background scheduled and runs several times with different variants in a day. I am worried that the background jobs may fail in Production if the latest changes are moved. But I think, background jobs will not fails unless the selection criteria that are part of variants that used in the background jobs not modified. But not sure. I just want to make sure, I am doing correct thing.
    Please let me know your thoughts. Appreciate your help!
    Thanks,
    Kannan.

    >
    Advait Gode wrote:
    > When you transport the program to production after changing the selection screen, you will have to re-create all the variants once again. Otherwise the scheduled jobs will fail.
    >
    > regards,
    > Advait
    I don't think so.
    But of course you will have to update the variants to reflect the new selections.
    Rob
    Edited by: Rob Burbank on Jan 14, 2009 10:56 AM

  • Within FM not possible AT SELECTION-SCREEN or PROCESS ON VALUE-REQUEST

    Hello !
    Within a "User Help Exit" must be called the FM named
    C14F_LOV_WAID. How can I adress this FM
    for a field.
    The goal is if user klicks on F4 the this FM mist be called.
    please notice a user help exit is like a Function Modul.
    e.g.
    FUNCTION zuser_help_exit.
    ENDFUNcTION.
    Within this block FM block above I can't say:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR<FIELD>
    or
    PROCESS ON VALUE-REQUEST.
    FIELD <field-name> MODULE create_dropdown_box.
    Regards
    Ertas Ilhan

    HI
      well I am not sure about this it works or not but we have various function modules which we can call in other function modules to provide F4 help i mean to say that call Function module inside a Function Module
    F4IF_INT_TABLE_VALUE_REQUEST
    F4IF_FIELD_VALUE_REQUEST.
    Try out these Fm calling ..
    I hope it helps you am not sure
    Regards
    Pavan

  • Selection-Screen and Search Help

    Hi
    I'm trying to show a Search Help (using trabstrip) from an internal table, but when I execute the code, search help is showed twice.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    SELECT-OPTIONS:
                a0 FOR ZCTRL01-ZSTATUS,
                a1 FOR ZCTRL01-ZLOTE,
                a2 FOR ZCTRL01-BELNR.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 100.
      wa_estejec-zstatus = 'E'.
      wa_estejec-zdescrp = 'Error'.
      APPEND wa_estejec TO ti_estejec.
      wa_estejec-zstatus = 'P'.
      wa_estejec-zdescrp = ' Processed'.
      APPEND wa_estejec TO ti_estejec.
    AT SELECTION-SCREEN on value-request for A0-low.  PERFORM search_help.
    AT SELECTION-SCREEN on value-request for A0-high. PERFORM search_help.
    *&      Selection-screen
    AT SELECTION-SCREEN.
      CASE sy-dynnr.
        WHEN 1000.
          CASE sy-ucomm.
            WHEN 'PUSH1'.
              mytab-dynnr = 100.
              mytab-activetab = 'BUTTON1'.
              MESSAGE s888(sabapdocu) WITH text-010.
              sy_ucomm = 'PUSH1'.
              PERFORM inicializar.
         ENDCASE.
    FORM SEARCH_HELP.
    *&      Form  SEARCH_HELP
    FORM SEARCH_HELP.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'ZSTATUS'
          dynprofield = 'A0'
          dynpprog    = sy-cprog
          dynpnr      = sy-dynnr
          value_org   = 'S'
        TABLES
          value_tab   = ti_estejec.
    ENDCASE.
    Thanks in advance.

    Well, the code you posted won't pass a syntax check. You have an extra form statement, a missing endform statement and an extra endcase statement.
    But have you put the assignments to ti_estejec in the INITIALIZATION event??
    Rob

  • Screen element with help values..

    hey,
    for example i want to have a ship to user entry in my screen, how do i create it ? i need only the ship to customers to be listed when he selects the drop down arrow..pl advise the code and the field name.
    thks

    You want that F4 options in the Selection screen or Dialog screen.
    If it is selection screen
    You can define it using MATCH CODE oBJECt
    parameters: p_a type c matchcode object  <shelp>.  if no help then you have to use at selection screen on value request event.
    if it is Dialog screen then you can Set the F4 help u, set the Attribute in for that field in screen painter.
    if no Search help then You have to use POV( process on Value Request event)

  • At selection screen output  plz help

    hi all ,
    i written below code . my req is if users select radio button r_com all elements in block b2 should be invisable.
    this code is not working becuase r_com is populated with 'X' VALUE at rumtime in the event .
    tables : coep ,SSCRFIELDS.
    SELECTION-SCREEN : BEGIN OF BLOCK B1  WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_GJAHR FOR COEP-GJAHR NO INTERVALS NO-EXTENSION
    OBLIGATORY ,
                     S_PERIO FOR COEP-PERIO NO INTERVALS NO-EXTENSION
    OBLIGATORY.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT   1(20)   TEXT-002.
    PARAMETERS : r_Com RADIOBUTTON GROUP mai user-command rusr .
    SELECTION-SCREEN COMMENT   25(15)  TEXT-003.
    PARAMETERS : r_group RADIOBUTTON GROUP mai  .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : END OF BLOCK B1 .
    SELECTION-SCREEN : BEGIN OF BLOCK B2  WITH FRAME TITLE TEXT-002.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30)   TEXT-003 MODIF ID B21.
    parameters : p_0001 like AFRU-ISMNW OBLIGATORY MODIF ID B21.
    SELECTION-SCREEN COMMENT 45(40) TEXT-004 MODIF ID B21.
    parameters : p_0002 like AFRU-ISMNW  OBLIGATORY MODIF ID B21 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) TEXT-005 MODIF ID B21.
    parameters : p_0003 like AFRU-ISMNW OBLIGATORY MODIF ID B21.
    SELECTION-SCREEN COMMENT 45(40) TEXT-006 MODIF ID B21.
    parameters : p_0004 like AFRU-ISMNW OBLIGATORY MODIF ID B21 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : END OF BLOCK B2 .
    at selection-screen OUTPUT.
    IF R_COM EQ 'X' .
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'B21'.
       SCREEN-ACTIVE = 0 .
       MODIFY SCREEN.
       ENDIF.
    ENDLOOP.
    thanks ,
    sridhar

    AMIT ,
    IT IS WORKING , thanks  but when i use another block like below and using this code it is not working .
    SELECTION-SCREEN : BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-002..
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30)   TEXT-003 MODIF ID B22.
    parameters : p_0005 like AFRU-ISMNW OBLIGATORY MODIF ID B22.
    SELECTION-SCREEN COMMENT 45(40) TEXT-004 MODIF ID B22.
    parameters : p_0006 like AFRU-ISMNW  OBLIGATORY MODIF ID B22 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) TEXT-005 MODIF ID B21.
    parameters : p_0007 like AFRU-ISMNW OBLIGATORY MODIF ID B22.
    SELECTION-SCREEN COMMENT 45(40) TEXT-006 MODIF ID B22.
    parameters : p_0008 like AFRU-ISMNW OBLIGATORY MODIF ID B22 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN : END OF BLOCK B3 .
    at selection-screen OUTPUT.
      IF R_COM EQ 'X' .
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'B21'.
            SCREEN-ACTIVE = 0 .
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      elseif r_group eq 'X'.
        LOOP AT SCREEN .
          IF SCREEN-GROUP1 = 'B22'.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
      my question is , whne i select one radio button how to diable block .
    thanks,
    sridhar

  • How can i set dynamice for week on Selection screen..pls help me..Urgent

    Hi..All
    please Help me .. i am very  confused..
    i need to set a varient for week which is dynamic on selection screen.
    b) Week from current week to current week + 2. (<b>Dynamic selection)</b>how can i set dynamice for week on Selection screen,,
    how can i do this..i am alrady set dynamice variant for Date.. there is option for D.. but in case of week there is a no option.
    pls help me..urgent
    thamks in advance.
    mayukh

    Hi,
    I think the way out is use the dynamic select option while setting up the varinat and use sy-datum to sy-datum+9 which should essentially serve the purpose.
    While saving the variant, for that particular date field check the Selection variable checkbox, then Choose D
    option and then choose current days + or - option from there.
    Rgds,
    HR

  • Selection screen fields in which values have been entered

    Hi All,
    Is there any standard function module which enables us to determine which fields on the selection screen have values entered for them. In other words, I wish to determine which selection screen fields are no longer initial.
    Thanks and Regards,
    Vidya.

    Hi,
    Why cant you simply use in this way?
    if sel_screen_field1[] is not initial.  "for selet-options
    endif.
    if sel_screen_field1 is not initial.  "for parameters
    endif.
    is it not suitable for your case?
    //Kothand

Maybe you are looking for