Problem in dropdown list display in module pool

Hi All,
   One of the fields of  my module pool program is a drop down list. I am able to populate the values to the list but when i select any value, it doesnot come to the field.
Can any one help me out in this ?
Thanks in advanve ...
Ranjita

hi Ranjitha,
Ensure that you are doing the following activities:
1-> in the field attributes, you have mentioned FCODE.
2-> use function module DYNP_VALUES_UPDATE to set the selected value to the field.
sample code:
put selected value into a dynpro field--
     IF dy_field-fieldvalue NE l_seark.
       REFRESH dy_field.
       APPEND  dy_field.
       CALL FUNCTION 'DYNP_VALUES_UPDATE'
            EXPORTING
                 dyname               = sy-cprog
                 dynumb               = sy-dynnr
            TABLES
                 dynpfields           = dy_field
            EXCEPTIONS
                 invalid_abapworkarea = 1
                 invalid_request      = 2
                 no_fielddescription  = 3
                 undefind_error       = 4
                 others               = 99.
Hope this helps,
Sajan Joseph.

Similar Messages

  • Is it possible to enter our own value in dropdown list box in Module Pool. How?

    Dear Experts,
    Being new to ABAP, I am trying my hands on Dropdownlist box on Module Pool.
    I want to pull data from Ztable(Custom Table) into Dropdown list box on Screen in Module pool and be able to edit it, delete it and enter new data through it, thus thereby able to manage the Ztable. Is it possible in dropdown.
    Looking forward for experts advice.
    Regards
    Deepika

    Dear Kannan,
    Thanks. But why sud I write an event in Table maintenance generator. My code is in Module Pool and it has no connection with Table Msintenance.
    The I/O field Drop down list box is on the Screen in my Module Pool. I am able to pull data in it from Ztable but now I want to edit this pulled data and also want to enter new data in this dropdown list box.
    Regards
    Deepika

  • Dropdown list in a module pool screen

    Hi,
    There are 2  radio buttons in module pool for 2 Plants.
    Now another plant has to be added in the screen. The radio button has to be replaced with a drop down list for these 3 plants.
    How can we acheive this?
    Thanks,
    Kumar.

    Hi, 
       If u want a dropdown for the third plant you enter on the screen, You can use the FM  'VRM_SET_VALUES' to get the dropdown.
    Just refer to this sample code to get a dropdown.
    TYPE-POOLS: vrm.
    PARAMETERS p_werks LIKE mseg-werks AS LISTBOX
    VISIBLE LENGTH 20 OBLIGATORY.
    DATA: t_werks TYPE vrm_values,
    w_line LIKE LINE OF t_werks.
    INITIALIZATION.
    SELECT werks  FROM mseg INTO table t_werks."(w_line-key, w_line-text).
    *APPEND w_line TO t_carrid.
    *ENDSELECT.
    AT SELECTION-SCREEN OUTPUT.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'P_werks'
    values = t_werks.
    *END-OF-SELECTION.
    WRITE: / 'Selected Carrid value:', p_werks.
    Hope this is helpful.
    Edited by: Kalyan Chakravarthi on May 29, 2008 11:55 AM

  • How to populate list box in module pool program

    How to populate list box in module pool program.
    Please give me reply as soon as posible
    regards,
    Venu.

    hi,
    go thrugh the folling code .
    TABLES sdyn_conn.
    DATA   ok_code TYPE sy-ucomm.
    Global data
    TYPES: BEGIN OF type_carrid,
             carrid type spfli-carrid,
             carrname type scarr-carrname,
           END OF type_carrid.
    DATA itab_carrid TYPE STANDARD TABLE OF type_carrid.
    *& Processing Blocks called by the Runtime Environment                 *
    Event Block START-OF-SELECTION
    START-OF-SELECTION.
      CALL SCREEN 100.
    Dialog Module PBO
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    Dialog Modules PAI
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'SELECTED'.
          MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
      ENDCASE.
    ENDMODULE.
    Dialog Module POV
    MODULE create_dropdown_box INPUT.
      SELECT carrid carrname
                    FROM scarr
                    INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'CARRID'
                value_org       = 'S'
           TABLES
                value_tab       = itab_carrid
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
    ENDMODULE.
    the following code should be included in flow logic of screen
    process on value-request.
      field scarr-carrname  module create_dropdown_box.
    in module pool select list box.
    hope it is useful.
    regards,
    sreelakshmi.

  • Icon display in Module pool screen not visible to some users

    Hi,
    I have added an icon in one of the module pool screen with dynamic quick info.  The page is rendered fine and the info is also displayed well for most users except some.  I can't figure out why the icon is not being displayed for some users.
    Do someone has any solution for this?
    Thanks,
    Sumith

    As I recall, the icons are actually stored in a file on each PC so some users may have a corrupted or out-of-date file with the icons.  You can look for posting on "how to add an icon" to see a discussion on this topic.
    I found some useful info at:
    Create and Add Icons to table ICON?
    Message was edited by: Charles Folwell

  • Problem with I/O field in module pool

    hi experts,
            I am displaying some text in I/O field in module pool screen. I am giving the attributes of I/O field as "output only" type and no input. Initially the input was not enabled for it, only it should be in display mode. Once i click on 'CHANGE' pushbutton then only the input should be enabled and it should be in change mode.will u tell me how to do it programatically.

    HI,
    In PAI of that screen..
    when the sy-ucom is 'Change' then use the Loop at screen--Endloop to modify the attributes value.
    example..
    LOOP AT screen
          CASE screen-name.
           WHEN 'Fieldname.
              screen-input = 0.
              screen-active = 0.
             MODIFY screen.
         ENDCASE.
    Edited by: avinash kodarapu on Dec 10, 2008 12:16 PM

  • Display Mode - Module Pool

    Hi Friends,
    Need help in Module Pool,
    when button click want to display screen in Display Mode only.....

    Hi Sharavan,
    I hope you want to achieve the Toggle Display Functionality. To achieve this you have perform this following steps:
    1. Define the names Properly for each of the individual Screen Elements. Like for Button you can do BTN_01.. etc etc...
    2. In the PBO Module define a Module like MODULE screen_settings. In this you will run the following code:
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'BTN_01'.
            SCREEN-INPUT = 0.
            MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    For a group of BTNs or Text Elements you can form a GROUP and can Enable and Disable all at once.
    3. The Next step is the handling of the Table Control.In the PBO event there you will have the LOOPing the Table control.
    There inside the loop place a Module and enable and disable each and individual rows.
    You must keep a central Instance from where you can check whether you want the screen elements in DISPLAY/CHANGE mode.
    Hope this will help.
    Thanks,
    Samantak.

  • Problem with DropDown List and ValueChange

    Hi,
    I have the following problem (I use NetBeans 6.1): I have a page, made with the Visual Web Designer, where there is a DropDown List component. The expected behaviour is once I select an item from the dropdown list, something (depending on the item I clicked) appears or happens (so, without any submit button or action link).
    This is the code I have at the moment:
    JSP (Pagina1.jsp):
    <h:selectOneMenu binding="#{Pagina1.dataTypeDropDown}" id="dataTypeDropDown" immediate="true" onchange="return getSearchFields(this);" style="height: 24px; left: 192px; top: 24px; position: absolute; width: 744px" valueChangeListener="#{Pagina1.dataTypeDropDown_processValueChange}">
        <f:selectItems binding="#{Pagina1.dropdown1SelectItems}" id="dropdown1SelectItems" value="#{Pagina1.dropdown1DefaultItems}"/>
    </h:selectOneMenu>
    Bean (Pagina1.java):
    public void dataTypeDropDown_processValueChange(ValueChangeEvent vce)
        String selectedValue = (String)vce.getNewValue();
        System.out.println(selectedValue);    // nothing happens!
        System.out.println("Hello");    // nothing happens!
    [...]My problem is that, whenever I select an item form the dropdown list, ehm... nothing happens.
    What could I do? Isn't that a kind of "change of value"? JavaScript events work fine, but no way with the ValueChange.
    And please consider that I'd like to obtain the same result with both Standard Components and Woodstock Components.
    Any help would be greatly appreciated!
    Thanks!

    try adding "*this.form.submit();*" to your on change attribute of select menu.
    Your on change will look like onchange="return getSearchFields(this);this.form.submit();"
    This should work.

  • List output in Module pool programming

    Hi Gurus.,
            I need to use write statement to display output using Call Screen xxx starting at xx ending at xx as dialog box .. How can i achieve this ...I tried the following in PBO of the screen but only a blank screen comes as output ...
    *&      Module  STATUS_0102  OUTPUT
          text
    MODULE STATUS_0102 OUTPUT.
      SET PF-STATUS 'MENU1' OF PROGRAM 'ZHM053C_MB01_J1IFQ_J1IF13'.
    SET TITLEBAR 'xxx'.
      ULINE.
      WRITE: / '                                                *************EXECUTION SUMMARY*************                                               ' COLOR 4.  ULINE.
      WRITE / ''.
      SKIP 1.
      LOOP AT IT_MESS.
        IF IT_MESS-MSGTYP EQ 'E'.
          FORMAT COLOR 7 .
          WRITE :  IT_MESS-MESSAGE.
        ELSE.
          FORMAT COLOR 2 .
          WRITE :  IT_MESS-MESSAGE.
        ENDIF.
        AT END OF TCODE.
          WRITE / SY-ULINE.
        ENDAT.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0102  OUTPUT
    please help me its very urgent
    Regards.,
    S.Sivakumar

    Hi,
    REPORT demo_leave_to_list_processing .
    TABLES sdyn_conn.
    DATA: wa_spfli TYPE spfli,
          flightdate TYPE sflight-fldate.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE user_command_0100.
      CALL SCREEN 500.
      SET SCREEN 100.
    ENDMODULE.
    MODULE call_list_500 OUTPUT.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      SET PF-STATUS space.
      SUPPRESS DIALOG.
      SELECT  carrid connid cityfrom cityto
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF wa_spfli
        WHERE carrid = sdyn_conn-carrid.
        WRITE: / wa_spfli-carrid, wa_spfli-connid,
                 wa_spfli-cityfrom, wa_spfli-cityto.
        HIDE: wa_spfli-carrid, wa_spfli-connid.
      ENDSELECT.
      CLEAR: wa_spfli-carrid.
    ENDMODULE.
    TOP-OF-PAGE.
      WRITE text-001 COLOR COL_HEADING.
      ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
      WRITE sy-lisel COLOR COL_HEADING.
      ULINE.
    AT LINE-SELECTION.
      CHECK not wa_spfli-carrid is initial.
      SELECT  fldate
        FROM  sflight
        INTO  flightdate
        WHERE carrid = wa_spfli-carrid AND
              connid = wa_spfli-connid.
         WRITE / flightdate.
      ENDSELECT.
      CLEAR: wa_spfli-carrid.
    This example switches to list processing during the screen processing for screen 100. Screen 100 has a single input field - the component CARRID from the ABAP Dictionary structure SDYN_CONN.
    The flow logic of screen 100 is:
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
      MODULE user_command_0100.
    The PAI module user_command_0100 calls screen 500 using the CALL SCREEN statement. This screen encapsulates a basic list. It has the following flow logic:
    PROCESS BEFORE OUTPUT.
      MODULE call_list_500.
    PROCESS AFTER INPUT.
    The module call_list_500 defines the basic list and switches to list processing. Since the next screen after list processing is screen 0, screen 500 is a one-screen screen chain. After list processing, control returns to the position in user_command_0100 from which screen 500 was called.
    If the user selects a line on the basic list, a detail list appears. This is achieved through the event block AT LINE-SELECTION. The program also contains event blocks for TOP-OF-PAGE and TOP-OF-PAGE DURING LINE-SELECTION, which define page headers for both the basic list and detail list.
    Since there is only one list system in this program, there is no need for case distinctions within the list events.
    With thanks & regards,
    Sravani yendru.

  • Problem with ALV list display

    Hello experts,
    When i call the funcation module for REUSE_ALV_LIST_DISPLAY to display for than 5 field columns , then it gives dump saying field symbol not assigned, but the same thing using REUSE_ALV_GRID_DISPLAY works fine for any number of columns.
    Kindly help how should this be done??

    Hi,
    Here is the code using 'REUSE_ALV_LIST_DISPLAY'
    just check this out...
    tables: mara.
    type-pools:slis.
    data: itab type standard table of mara.
    data: fcat type slis_t_fieldcat_alv.
    data i_repid like sy-repid.
    select * from mara into table itab.
    i_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       I_PROGRAM_NAME               = i_repid
      I_INTERNAL_TABNAME           = 'ITAB'
       I_STRUCTURE_NAME             = 'MARA'
      I_CLIENT_NEVER_DISPLAY       = 'X'
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
      CHANGING
        ct_fieldcat                  = fcat
    EXCEPTIONS
      INCONSISTENT_INTERFACE       = 1
      PROGRAM_ERROR                = 2
      OTHERS                       = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
      I_CALLBACK_PROGRAM             = ' '
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
    IT_FIELDCAT                    = fcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       = itab.
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks & Regards
    Ashu Singh

  • Tab in Tabstrip Control in display mode (Module Pool)

    Hi friends,
    I am trying to give authorization based on sy-uname, in runtime based on uname the particular tab should be opend in a display mode and some in change mode.  please help me out in this
    Edited by: shravan sonayila on Aug 12, 2008 8:06 AM

    Hi,
    when u creating tabstrip,while defining each tab in tabstrip , u have to
    create one subscreen for each tab.i think u want one tab for display
    mode and one tab for edit mode. if u want this way , in one tab try to
    give fields all in invisible mode this for display mode and goto second tab if u want all visible only keep like that only other wise u have create geoups.when u press enter ,groups will be change.it means visible , invisible modes.
    u have to give logic for screen in pbo.
    *&      Module  STATUS_0300  OUTPUT
          text
    module status_0300 output.
      set pf-status 'GUI_300'.
      set titlebar 'TITLE_300' with v_title.
      if i_aktyp = 'H'.
        if temp_flag = 1.
          loop at screen .
            if screen-group1 = 'GP2'.
              screen-input = 1.
              modify screen .
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 0.
          endloop.
        else.
          loop at screen.
            if screen-group1 = 'GP1'.
              screen-input = 1.
              modify screen.
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 1.
          endloop.
        endif.
      elseif i_aktyp = 'V'.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-input = 1.
            modify screen.
          else.
            screen-input = 0.
            modify screen.
          endif.
        endloop.
      endif.
    endmodule.                 " STATUS_0300  OUTPUT
    Try to give this logic.
    Regards,
    Ramya

  • Problem with REUSE LIST DISPLAY , need to add std button in list.

    HI All,
    I make a ALV report with the use of ALV_GRID_DISPLAY after that if we click on perticular column then secondry list should be display for that i use :
                CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
                  EXPORTING
                    i_callback_program    = sy-repid
                    is_layout             = w_gs_layout1
                    it_fieldcat           = w_gs_fieldcat[]
                    i_save                = c_x
                    i_screen_start_column = c_start_column
                    i_screen_start_line   = c_start_line
                    i_screen_end_column   = c_end_column
                    i_screen_end_line     = c_end_line
                  TABLES
                    t_outtab              = tl_nonlabor_comb[]
                  EXCEPTIONS
                    program_error         = 1
                    OTHERS                = 2.
                IF sy-subrc <> 0.
                  MESSAGE text-072 TYPE c_s DISPLAY LIKE c_e.
                  LEAVE LIST-PROCESSING.
                ENDIF.
    data is comming perfectly but i need one std button in secondrly alv for EXCEL DOWLOAD , so how can i include?
    Thanks ,
    jaten

    Hi,
    Create a copy of PF-STATUS of the screen of the ALV grid which is displayed to your program.
    Add the new button in the  PF-STATUS.
    Create a subroutine within your program.
    In this subroutine SET PF-STATUS (copied pf-status).
    Pass the form routine name for setting the copied  PF-STATUS to the parameter I_CALLBACK_PF_STATUS_SET.
    Create a new subroutine in your program to handle the oK_CODE for the new button.
    Pass this subroutine name to the parameter I_CALLBACK_USER_COMMAND of the FM.
    Pass the value of call back program (sy-repid) to the parameter I_CALLBACK_PROGRAM.
    Regards,
    Ankur Parab

  • How to place multiple list box in Module Pool Program having same option.

    I have a screen. I want to place multiple i/o box with listbox option having 10 option of each . Is it possible ?

    Hi Manoj,
    Sorry, did not got you. You mean list box with 10 options, just this?
    Or Cascading list box?
    regards,
    Archer

  • How to add Currency field with dropdown on screen layout (module pool)

    I need to add a field called <b>Currency( field label )</b> with <b>dropdown (like SKB1-WAERS). </b>
    The <b>field label</b> and <b>input output field </b> should default as being hidden and
    sould be visible only when other field value ( on the same screen ) should match with the value in the database table . 
    Could you please suggest me how to create dropdown
    and give this functionality with coding ?
    Thanks in advance.

    Hi,
    In the field attributes of the SKB1-WAERS..in the group attributes..give a group name G1..Add the same G1 for the field lable also.
    Then in the PBO of the screen..
    ***Check the conditions..when other field value (on the same screen) matches
    ***with the value in the database table.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'G1'.
        SCREEN-INPUT = '0'.
        SCREEN-INVISIBLE = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Thanks,
    Naren

  • How to create dropdown list for custom remote function module

    HI ,
           I created a custom remote function module for a ztable.table having four fields.But now the requirement is to maintain the dropdown list for input parameter .
    For eg: I maintain Input parameter as action.For that Action we have to maintain a dropdown list(display,insert,update and delete  values ) in function module.Is it possible.

    Hi
    Try using POPUP_GET_VALUES function module in the begining of the Function module this gives a POP to provide a value to you
    In this you can provide a value
    Check the import parameters of this Function module if it has COMBOBOX as parameter ( I dont have SAP access at this point of time) you can pass X to it so you get List box for the following fields
    Create a domain to field and assing fixed values to it and use it in any table(As this works with only existing tables)
    refresh fields.
    DATA: fields LIKE SVAL OCCURS 0.
    fields-tabname = 'MAKT'.
    FILEDS-FIELDNAME = 'MAKTX'.
    APPEND FIELDS.
    CALL FUNCTION 'POPUP_GET_VALUES'  " Try copying this in a Test program and execute
            EXPORTING
              POPUP_TITLE  = 'Enter Mail Id here'
              START_COLUMN = '5'
              START_ROW    = '5'
            IMPORTING
              RETURNCODE   = SRETURN
            TABLES
              FIELDS       = FIELDS.
    Cheerz
    Ramchander Rao.K
    Edited by: Rob Burbank on Nov 23, 2011 9:50 AM

Maybe you are looking for

  • Epson Color 777 wants OS 9--- I upgraded to Tiger

    I upgraded my G4 with Tiger software. I had to use the erase hard drive method because of some corrupt files. Now, I want to use my Epson Color 777 printer on this computer. I have the original installation CD. It wouldn't install because it wanted t

  • Import sites to a Mac that already has created its own iWeb sites

    Working different places I have been using iWeb on 3 different Macs. On these Macs I have created different iWeb sites, and now I would like to merge them all onto one computer, so that I can work with all of my iWeb sites from the same location. I h

  • I reset my 4S now my texts come in as numbers instead of contacts

    I reset my 4S now my texts come in as numbers instead of contacts

  • Problem Changing MDB Destination.

    Greetings. I am gettign some rather odd errors in my deployment. It is almost as if the destination topics for my MDBs are being coded into the generated container files. Snippet of my weblogic deployment descriptor. <weblogic-enterprise-bean> <ejb-n

  • Error when updating to OS 4.2

    When trying to update my sons touch to 4.2 the unit tries to back up and then comes up with the error message -5000 Can you suggest a solution? Thanks