Clear selection screen fields on using value help on another field

Hi Experts,
I have 3 fields -  reason1, reason2, reason3.
Now i want to clear fields reason2 and reason 3 when i use value help for reason1.
How do i go about it.
Thanks & Regards
Gaurav Kumar Raghav

Hi,
You use the function module 'DYNP_VALUES_UPDATE', here is a code extract showing its use..
*&      Form  f4_laufd
form f4_laufd .
  data: ls_laufk type ilaufk,
        lt_laufk type table of ilaufk.
  ls_laufk-laufk = space.
  ls_laufk-sign  = 'I'.
  append ls_laufk to lt_laufk.
  call function 'F4_ZAHLLAUF'
    exporting
      f1typ = 'D'
      f2nme = 'F110V-LAUFI'
    importing
      laufd = p_laufd
      laufi = p_laufi
    tables
      laufk = lt_laufk.
  perform set_selection using 'P_LAUFI' p_laufi.
endform.                                                    " f4_laufd
*&      Form  set_selection
form set_selection  using    value(i_field)
                             i_value.
  data: ls_dynpfld type dynpread,
        lt_dynpfld type table of dynpread.
  ls_dynpfld-fieldname  = i_field.
  ls_dynpfld-fieldvalue = i_value.
  append ls_dynpfld to lt_dynpfld.
  call function 'DYNP_VALUES_UPDATE'
    exporting
      dyname     = sy-repid
      dynumb     = sy-dynnr
    tables
      dynpfields = lt_dynpfld.
endform.                    " set_selection
Darren

Similar Messages

  • Selection screen parameter validation using search help/check table

    Hi experts,
    I have a select-option that is tied to a search help and check table (type tq80-qmart). Is there a way to automatically validate the field based on what comes up in the F4 search help? What I mean is, when the user hits F4 on the parameter, the list pops up with several records that the user can choose. When the program is executed, I want the program to show an error if the value is NOT in that F4 list.
    I know this can be done in AT SELECTION SCREEN event with a select, but I was wondering if there was a way ABAP does it automatically. Any help will be greatly appreciated.
    Thanks,
    Juan

    Hello Juan,
    SAP does have a standard way of allowing the the user to select from the list via LISTBOX.
    But list box is restricted to parameters only, you cannot attach list boxes to select-options.
    I think the best place to do this validation would be th AT SELECTION-SCREEN event & from your original post it seems you know what code to write

  • Get values in dropdown field based on f4 help in another field

    Hi Experts,
    How to Get values in dropdown field based on another field which is F4 Help. If I select one value in f4 help field(ex: 1) I need to get values in dropdown field (ex:a, b, c),If I select another value in f4 help (ex:2) I need to populate different values (ex: d). Can any one please provide sample code that can help more.
    Thanks,
    Ashok.
    Moderation: Kindly search and find the solution, before you post.

    Dear Ashok,
    You can take help from this program in SAP named BCALV_EDIT_08.
    Thanks.
    With regards.

  • Search help for a field in table control based on another field value

    Hi,
    I want to attach the Search help for a field in table control based on another field value.
    Please help me asap.
    Will be highly rewarded

    HI,..
      Check these links
    search help in table control
    Re: How to create Search Help for a field in Table control !!
    How to create Search Help for a field in Table control !!
    F4 Help In Table Control
    Control table F4 help
    Problem in F4 help in screen field
    check this code
    DATA: BEGIN OF it_value4 OCCURS 0,
             TEXTCODE  LIKE  ZXX-TEXTCODE,
             TEXTDESC  LIKE  ZXX-TEXTDESC,
           END OF it_value4.
      progname = sy-repid.
      dynnum   = sy-dynnr.
             SELECT TEXTCODE TEXTDESC
               FROM  xxxx
               INTO CORRESPONDING FIELDS OF TABLE<b> it_value4</b>
              WHERE  LOSS_CODE =<b> IT_VALUE1 .</b>
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'TEXTCODE'
          dynpprog    = progname
          dynpnr      = dynnum
          dynprofield = 'ITVALUE-TEXTCODE'  "-->UR  4 th filed value in screen
          value_org   = 'S'
        TABLES
          value_tab   = it_value4.
    endmodule.
    Message was edited by:
            veereshbabu ponnada

  • Selection screen validation when using PNP LDB

    Hi guys,
    I want to validate my selection screen parameters.Thats is if somebody wants to run the program without giving any input parameters to the selection screen(trying to run the report with a blank screen) I want to pop up an error/information message so that it will return the selection screen.I am using PNP Logical database for my selection screen.Please help.Thanks in advance.
    Thanks,
    Karthik.

    Welcome to SDN.
    If you are using PNP logical data base then validating the fields will be little tricky...
    You canc check all the other fields in START-OF-SELECTION and if they are empty return eroor. Remember all the field s on the scree... so I will suggest you to choose HR report Category accordingly.
    Also,when it comes to date field then you need to check for the start and end dates rather than blank fields as SAP defaulted them to system start and end date.
    Still, I will prefer to create a HE Report Category for the PNP database and use the screen while validating....that will be easy...

  • Value Help for a field from custom table in BSP

    Please let me know, the procedure to create value help for a field from a custom table in BSP using HTMLB.
    Thanks

    hi prodigy,
    check this code using drop down list.
    <b>layout for first page</b> 
    <htmlb:dropdownListBox id                = "ddlist"
                                  table             = "<%=t_mara%>"
                                  nameOfKeyColumn   = "matnr"
                                  nameOfValueColumn = "matnr"></htmlb:dropdownListBox>
    <b>event Oninitialization event of first page</b>
    SELECT MATNR UP TO 10 ROWS
      INTO TABLE T_MARA
      FROM MARA.
    <b> event Oninputprocessing event</b>
    **Load the manager class
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    DATA: V_EVENT TYPE REF TO CL_HTMLB_EVENT.
    DATA: DATA TYPE REF TO OBJECT.
    DATA: V_DATA TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
    CALL METHOD CL_HTMLB_MANAGER=>GET_EVENT
      EXPORTING
        REQUEST               = RUNTIME->SERVER->REQUEST
      RECEIVING
        EVENT                 = V_EVENT
    IF V_EVENT->NAME = 'button' AND
       V_EVENT->EVENT_TYPE = 'click'.
    DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST =
                                          RUNTIME->SERVER->REQUEST
                                          NAME     = 'inputField'
                                          ID       = 'matnr'
        V_DATA ?= DATA.
    IF V_DATA IS NOT INITIAL.
         V_MATNR = V_DATA->SELECTION.
    ENDIF.
    NAVIGATION->SET_PARAMETER( NAME = 'v_matnr' VALUE = V_MATNR ).
    NAVIGATION->GOTO_PAGE( 'detail.htm' ).
    ENDIF.
    <b>in the onInitialization event for detail page</b>SELECT MATNR
           ERSDA
           ERNAM
           LAEDA
           AENAM
           VPSTA
           PSTAT
           LVORM
           MTART
      FROM MARA
      INTO TABLE T_MARA
    WHERE MATNR = V_MATNR.

  • =SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value )) =IIF(Fields!OPTION_CODE.Value="P","0",SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value )) =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields

      in this i want to calculate only Option code 'M' Amount in gross total.BUT MY Gross total calculating M and P Amount.  option code P value should visible but not to add.
    please any body help me to writing any function
    =SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    iam writing like below its showing error
    =SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    =IIF(Fields!OPTION_CODE.Value="P","0",SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0,0)

    Hi Pullela venu,
    I have checked the expression and found that you have incude the string "0" in the SUM function which will cause the error, please remove the "" of the value 0 as below to have a test:
    =SUM(IIF(Fields!OPTION_CODE.Value="M",0,Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
     =IIF(Fields!OPTION_CODE.Value="P",0,SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    For the last expression as below is not correct, CDBL function format is CDBL(expression):
    =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0,0)
    Modify as below:
    =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0.0) )
    If the problem still exists, please provide the error message if the expression throw any error.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Clear Selection-Screen Fields

    Hello all,
    How to clear the fields content from a selection-screen when  the user returns from report to sel.screen?
    I try in PBO for selection screen to clear all the fields, works fine but with one exception, when it is pressed Enter,
    all the fields contents are empty.
    Thank you 
    Bogdan

    Hi Bogdan,
    i think you can achieve this with a flag and export/import to SAP-memory:
    AT SELECTION-SCREEN OUTPUT.
      IMPORT back FROM MEMORY ID 'back'.
      IF back = 'X'.
    *clear/refresh your sel-opt/param.
        refresh gjahr.
        CLEAR : gjahr , amount.
        CLEAR back.
        FREE MEMORY ID 'back'.
      ENDIF.
    START-OF-SELECTION.
    *end of your program
      back = 'X'.
      EXPORT back TO MEMORY ID 'back'.
    Andreas

  • Forcing to use F4 help for a field

    Currently if we enter Partner Number or First name or Last name of a partner in Contacts, Employee and Service Group fields, and click on enter we are getting the relevent BP full name. This happens even if we enter Contact BP number in Employee field or Service group fields or vice-versa.
    So to avoid this, we need to restrict the user to use F4 help instead of entering manually in those field.
    Can somebody help me on this?
    Edited by: DP on Jun 10, 2011 3:52 PM

    Hi,
    Hey one option is to educate the user to select the F4 help always.
    By default u need to raise the popup when ever user navigates to the screen from the pop-up u need to set the value and make the field is display mode to prevent typing the value. the only option is to set the value from the pop-up.

  • 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

  • Clear selection screen

    hi friends,
    i have created one report i have four parameter fields in my selection screen there are two ways to give inputs. one is selection screen another one is input from upload file.
    when i chose inputs from file at time my selection screen fileds is clear.
    i chose input file using at selection screen on request.
    how to do this?

    Hi,
    chek the code .may be useful to u.
    PARAMETERS : p_lpn TYPE filename-pathintern
                 DEFAULT c_lpn OBLIGATORY ,          "Logical Path Name
                 p_aserv RADIOBUTTON GROUP grp
                 USER-COMMAND app,                   "Application server
                 p_afile1 TYPE filename-fileextern , "Application File
                                                     "Name for contracts
                 p_afile2 TYPE filename-fileextern , "Application
                                                     "FileName for
                                                     "Long text
                 p_aerfl1 TYPE filename-fileextern , "Error File
                                                     "forcontracts
                 p_aerfl2 TYPE filename-fileextern , "Error File
                                                     "for Longtext
                 p_pserv RADIOBUTTON GROUP grp,     "Presentation Server
                 p_pfile1 TYPE rlgrap-filename ,    "Presentation File
                                                    "Name forcontracts
                 p_pfile2 TYPE rlgrap-filename ,    "Presentation File
                                                    "Name for long
                                                    "texts
                 p_errfl1 TYPE rlgrap-filename ,
                                                    "Error File for
                                                    "contracts
                 p_errfl2 TYPE rlgrap-filename .    "Err File Long text
    IF p_pserv IS  INITIAL.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_PFILE1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_PFILE2'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_ERRFL1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_ERRFL2'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_AFILE1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_AFILE2'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_AERFL1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_AERFL2'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
    Reward if helpful.
    Regards,
    Nagaraj

  • 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

  • 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 - Background submit using JOB_SUBMIT

    Hello friends,
                      I am using 2 reports , say report 1(R1) and report 2(R2).
    I am getting a particular value in selection screen from R2 and based on that value I am submitting the report R1 in background using JOB_OPEN,JOB_SUBMITand JOB_CLOSE. Now  i want  the values from selection screen of R2 which is similar to selection screen of R1 to be populated and the execution to take place .If i use SUBMIT / SUBMIT VIA selection screen Background processing is not possible.thats why I used JOB_OPEN,JOB_SUBMITand JOB_CLOSE.Hope there is no ambigutity in my question.
    Regards,
    K.Sibi
    Edited by: sibi k  kanagaraj on Mar 31, 2009 2:00 PM

    Hello,
            What you can do is use job_open , job_submit and before job_close use submit via selection screen and return .
    Hope this helps!
    Viquar Iqbal

  • Clearing Selection Screen (urgent)

    I have 4 radio buttons in my selection screen. First is selected by default. Now when 2nd will be selected, the contains of the screen fields will be cleared. I have tried with At selection screen output.
    Where the condition is
    if Rd2 = 'X".
    p1 = ' '.
    endif.
    but every time when the 2nd radio button is selected and entering data into screen fields, after  pressing enter all the screen gets cleared.
    Tell me some other options.........

    hi,
    try like this
    PARAMETERS:rad1 RADIOBUTTON GROUP rad1 USER-COMMAND rad,
               rad2 RADIOBUTTON GROUP rad1,
               rad3 RADIOBUTTON GROUP rad1,
               rad4 RADIOBUTTON GROUP rad1.
    PARAMETERS: mat LIKE mara-matnr DEFAULT '101'.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF rad2 = 'X'.
          IF screen-name = 'MAT'.
            screen-input = '1'.
            CLEAR mat.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    reward if usefull...

Maybe you are looking for

  • Evaluate function not working in obiee 11.1.1.7

    Hi all, I have completed In-place upgrade from obiee 11.1.1.5 to 11.1.1.7. After this I am getting an error while running reports,which is created by using evaluate function. [nQSError: 43113] Message returned from OBIS. EVALUATE_SUPPORT_LEVEL inside

  • How to save table to file in Mobile 7.1

    Hello, We are using Mobile 7.1. We are trying to save the table context in the mobile client to the local file. We use a FileDownload element in the screen. The FileDownload is bound to a Resource attribute which contains the table data (as well as n

  • Build portal  with JDeveloper

    I have JDeveloper 10.1.3.1 and installed Jdeveloper extension using portal-addin-install.jar then I started Jdeveloper when I right click on projects and expand the web-tier portlets node appears but there is no items displayed that is Oracle PDK and

  • Adobe Reader X / Windows 7: "Internal error occurred"

    I installed Adobe Reader X for my Windows 7 OS, but each time I attempt to open it I receive an error message: "internal error occurred." There are two (2) user accounts, but only my user account is affected.

  • Purchased before now want to install on new computer

    I bought and downloaded Adobe Photoshop Elements 12 and Premiere Elements 12 in December 2013. I've just changed computers and would like to download the products again. Is there a way to download them from the adobe site again without having to purc