Issue Related to Module pool

Hi,
I have issue related to module pool Prog.
Actually i have one screen[Dialog] in that i am having one field <b>License No</b> as input enabled.
In that <b>License No</b> field when i press <b>F4</b>
i am using one Function module called <b>REUSE_ALV_POPUP_TO_SELECT</b> to populate some fields in it.
In <b>SE51</b> i called that code as below.
<b>PROCESS ON VALUE-REQUEST.
  FIELD v_zzexgen MODULE f4_help_for_zzexgen.</b>
Now when i select one row/record from all the populated records it is filling only value into <b>License No[v_zzexgen]</b> , There in the same screen i am not able  to get the values for other fields like <b>v_modco,v_gennr</b> etc..
Though they are in populated screen.
Actually after calling <b>POPUP</b> F.M i had written follow code:
    READ TABLE i_pdata INDEX k_selfield-tabindex.
<b>    IF sy-subrc EQ 0.
Then move all the fields of selected record into 9002 screen
      v_zzexgen  = i_pdata-zzexgen.
      v_zzgeart  = i_pdata-zzgeart.
      v_modco    = i_data-modco.
      v_zzgmaxw  = i_pdata-orgamt.
      v_zzgaufw  = i_pdata-conamt.
    ENDIF.</b>
Can anybody tell me what is the issue out here for not filling other fields.
What is the reason for populating only one field when i am getting other field values also to be populated!
Thanks in advance.
Thanks & Regards,
Rayeez.

call function <b>'DYNP_GET_STEPL'</b>
            importing
              povstepl        = step_line
            exceptions
              stepl_not_found = 1
              others          = 2.
          clear: ltab_fields.
          refresh : ltab_fields.
          ltab_fields-fieldname  = 'ZMM_TABLE-TABNAME'.
          ltab_fields-fieldvalue = t_f4_table-tabname.
          ltab_fields-stepl = step_line.
          append ltab_fields.
          ltab_fields-fieldname  = 'ZMM_TABLE-FLDNAME'.
          ltab_fields-fieldvalue = t_f4_table-fieldname.
         <b> ltab_fields-stepl = step_line.</b>   
          append ltab_fields.
          ltab_fields-fieldname  = 'ZMM_TABLE-VALUE'.
          ltab_fields-fieldvalue = t_f4_table-fieldtext.
          ltab_fields-stepl = step_line.
          append ltab_fields.
          call function <b>'DYNP_VALUES_UPDATE'</b>
            exporting
              dyname     = lc_dyname
              dynumb     = lc_dynumb
            tables
              dynpfields = ltab_fields
            exceptions
              others     = 8.
          commit work and wait.
OR u have to use<b> SET PARAMETERS ID</b>
IN <b>PAI</b>
regards
vinod

Similar Messages

  • Module pools mixed in MP001600 GUI

    Hello everybody,
    I am facing a strange issue related to module pool. I have defined ZP001600  module pool for IT0016, which is shown for all the employees. However, if the employee belongs to Belgium, then an additional module pool is shown in the IT0016 GUI, which is specific and standard for Belgium (MP010900) and this one is appear mixed with the custom one ZP001600. I have tried to seek for a table where a sequence or order for this module pool are defined but I just found two different tables where are customize both modulule pool for this tables:
    T582V - Assignment of Infotypes to Views
    IT view ind. Infotype Name of view for infotypes Dialog module                  Program Name                             Screen number
    12           0016     V109                                                      MP010900                                 0100
    T582C Include Screens for Infotypes
    Module Pool                              Standard screen Program Name                             Standard screen
    MP001600                                 2000            ZP001600                                 0200
    Could you please assist me?
    Thanks in advance

    April,
    Thanks for your reply.  HR_PK_EXCEL_TO_INTERNAL_TABLE does not show up in our system when doing a search on function modules.  It is good to know that TEXT_CONVERT_XLS_TO_SAP has been released for customer use in newer systems than we are currently using.
    I think that I'll use this function module, TEXT_CONVERT_XLS_TO_SAP, and call it a day. 
    Although, I am still interested in other solutions if anybody out there has one.
    Bruce
    Message was edited by: Bruce Tjosvold

  • Checkbox issue in module pool program

    Hi all,
    I have a small issue in a module pool program using checkboxes. The requirement is that my basic list should contain the data with checkboxes and as per the selection by the user, the selected records should appear in the next screen (secondary list). But after selection, all the records barring the last record is appearing in my secondary list. Below are the screenshots of my program:
    These are the global variables I declared:
    The layout for the  basic list is as shown. The function code is cbox for checkbox.
    The flow logic :
    The code for user-command:
    Now on executing the program,
    As you can see, sales orders 4970,4972,4974 and 4975 are selected. So after clicking NEXT, in the secondary list , the data for these selected sales orders from VBAP table should come up. But instead, the records from 4970, 4972 and 4974 are displayed except the last sales order which is 4975.
    This is happening for all the records. The last selected sales order is not getting selected. Why is it so?
    Thanks.
    Manish

    Hi Ali,
    I have modified the code but there are still a couple of things which are confusing me. In the below screenshot you can see the modified version of the code:
    Now to see what is going wrong, I tried to debug the code. I placed the breakpoint on 'NEXT' as shown. Then I selected the following sales orders and pressed NEXT.
    In the debugger, IT_VBAK1 correctly holds the 2 selected values:
    IT_VBAP displays the values correctly as well.
    Now, this is where the issue is. On clicking the BACK button and selecting another sales order (4974):
    IT_VBAK1 holds the additional sales order 4974 along with the previous ones as well:
    IT_VBAP also displays the values accordingly as per the debugger:
    But in the table control, the sales order 4974 is not displayed. Only the initial sales orders are displayed.
    1) There is nothing wrong with the code as the debugger shows the records are held and displayed correctly by the internal tables. So what could be the reason for the data not to be displayed correctly in the table control? I also tried refreshing IT_VBAP after the BACK button, but still it isnt working. 
    2) Also, another thing I've seen that is after clicking the BACK button, when I select the sales orders, only data from 2 sales orders are displayed in the secondary list.
    For example, if I select any number of sales orders and press NEXT, then all the data are displayed correctly in the secondary list. Once I click the BACK button and deselect all of them and then I checkbox 3 sales orders (more than 2), then only the records for 2 sales orders are displayed, not the 3rd one.   Why is this happening?
    Regards
    Manish.

  • Links/Docs for Module Pool Programing using abap objects

    Hi all,
    Can anyone send me links/docs related to Module Pool programing using Abap Objects.
    Thanks n Regards
    Maruthi Rao. A

    hi maruthi rao,
    check the below link
    http://abapcode.blogspot.com/2007/06/object-oriented-alv-sample-program-to.html

  • How to execute module pool (Dialog programs)

    hai gurus,
    i have  created one module pool prm using se38,
    and using se51 i had design two push buttons in Layout.
    and the PAI flow logic i have written the code like ...
    CASE : SY-UCOMM.
    WHEN 'DISP'.
    MESSAGE  I001 WITH 'DISPLAY BUTTON PRESSED'.
    WHEN 'EXIT'.
    MESSAGE I002 WITH 'EXIT BUTTON PRESSED'.
    LEAVE PROGRAM.
    ENDCASE.
    as the same code will work for executable program and this is not working Module Pool program why .
    and How can i execute with the use of module pool program
    please help me

    hi
    good
    go through these links which ll give you complete idea about the module pool programmin and the relation between module pool programming and ABAP.
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    reward point if helpful.
    thanks
    mrutyun^

  • Module pool data buffer refresh

    Hi,
    I am facing a strange issue in my module pool program for a infotype
    I have created module pool with different screens.
    screen  contains 2 tabs and 2 subscreens.
    in one subscreen, if i go into edit mode and change the values in screen, If i save (usnig standard SAVE button) it is not holding the new value.  it is refreshing picking the value from old value only.
    Please help me here

    Hi,
    What you need to do is to modify the contents of the table control back into the internal table whenever any user action is performed.
    So in PAI of the screen on which you have a table control write code to modify the internal table from the table control.
    it_zekpo is my internal table w/o header line,
    wa_zekpo is work area.
    Name of input/output fields on screen are:-
    wa_zekpo-field1,
    wa_zekpo-field2, and so on...
    At Screen Logic:-
    PROCESS BEFORE OUTPUT.
    *  MODULE status_8003.
      LOOP WITH CONTROL po_tab. "po_tab is table control on screen 8003
        MODULE read_data.
      ENDLOOP.
    PROCESS AFTER INPUT.
    *  MODULE user_command_8003.
      LOOP WITH CONTROL po_tab.
        MODULE modify_data.
      ENDLOOP.
    In PBO:-
    *&      Module  READ_DATA  OUTPUT
    MODULE read_data OUTPUT.
      READ TABLE it_zekpo INTO wa_zekpo INDEX po_tab-current_line. "po_tab is table control name
      data : line_count type i.
      describe it_zekpo
      lines line_count.
      po_tab-lines = line_count + 10.
      "to increase the number of lines in table control dynamically
    ENDMODULE.                 " READ_DATA  OUTPUT
    In PAI,
    *&      Module  MODIFY_DATA  INPUT
    MODULE MODIFY_DATA INPUT.
      MODIFY IT_ZEKPO FROM WA_ZEKPO INDEX po_tab-currentline.
      "this will modify the contents of existing line
    ENDMODULE.                 " MODIFY_DATA  INPUT
    Now whenever you change contents in table control and perform any user action, PAI will be triggered and data in internal table will be modified. Now when PBO is executed then it will read the data again from internal table (modified in this case) into table control.
    Hope this helps you.
    Regards,
    Tarun

  • Please help me out... provide me your module pools simple programs

    Dear Friends,
    Can you please help me out in getting some simple module pool programs like
    using
    INSERT
    UPDATE
    BACK
    commands....

    Dear Hazi Valli,
    Post your queries in relevant Forum. You could post queries related to module pool in UI Programming Forum of ABAP Development. Search the Forum for generic queries.
    Visit following links:
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e4/2adbef449911d1949c0000e8353423/content.htm
    http://www.thespot4sap.com/Articles/SAP_Design_Dynpro.asp
    Regards,
    Naveen.

  • F4 help in module pool

    Hi experts,
                       Plz help me on below issue. In module pool i create F4 help for customer field. If we choose f4 for customer field it display customer number, plant, serial number and material.
    for example in f4 its showing 10 records. If i select 5 th record I need to store mateiral serail number . How to do this one? I am using F4IF_INT_TABLE_VALUE_REQUEST for customer field f4.

    hello,
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
    *   DDIC_STRUCTURE         =
        retfield               = 'KUNNR'
    *   PVALKEY                = ' '
        DYNPPROG               = sy-cprog
        DYNPNR                 = sy-dynnr
        DYNPROFIELD            = 'P_KUNNR'
    *   STEPL                  = 0
    *   WINDOW_TITLE           =
    *   VALUE                  = ' '
       VALUE_ORG              = 'S'
    *   MULTIPLE_CHOICE        = ' '
    *    DISPLAY                = 'X'
    *   CALLBACK_PROGRAM       = ' '
    *   CALLBACK_FORM          = ' '
    *   MARK_TAB               =
    * IMPORTING
    *   USER_RESET             =
      tables
        value_tab             = lt_itab
    *   FIELD_TAB              =
       RETURN_TAB             = lt_ret
    *   DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 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.
    read table lt_ret into ls_ret index 1.
    if sy-subrc is initial.
      read table lt_itab with key kunnr = ls_ret-FIELDVAL.
       lv_matnr =  lt_itab-matnr.                                  "this you need
       lv_serial = lt_itab-sernr.                                    "this you need
    endif.
    Regards,
    Diwakar

  • Module pool Issue

    Hi
    I have created  a module pool program , its working fine on development , bbut when transporting in quality server there is coming error in include  SAPMPROGTOP  in line 8  DDIC ztable is not active while ztable is active in Development server ,
    even after it i activated Ztable then tranported it but issue is same in quality even i checked ZTABLE in quality there is showing status  NEW instead of active while in DEV this is active. how can i resolve this
    Thanks .

    Hi Chandra,
    There is a possibility that if you had created any data elements or domains which are dependent on this table and did not transport them first, the table will not get activated. Check if any such sub elements you have created are not transported, if yes, transport them first and then the table.
    Vikranth

  • Issue With Search Help in Module Pool

    Dear All,
    I have an Issue with Search help. I have created a Module Pool Program. In this module pool, User requires the search helps for the fields.
    Imagine there are 3 fields on a screen. Field1, field2 and field3.
    Field2 entries depends on field1 and field3 entries depends on field1 and field2.
    I have created a collective search help. and created the corresponding Ztables to maintain the search help entries.
    Now I assigned the same collective search help to both the fields . i.e. field2 and field3. But when i execute the module pool program, and press F4 on these fields , the data shown is write. BUT for the 3rd field, when I select F4, The second field values are transfered to the screen, instead of third field value.
    Any Idea will be appreciated .
    Help me , Its very Urgent.
    Regards,

    Did you check the screen field names & search help name? is it identical & unique?
    Raja T

  • Selection screen regeneration issue in Module pool

    Hi experts,
    I have designed a module pool in which i have included a selection screen as sub screen , and for the scenario i need to give custom f4 help for the selection  field for that i have included logic ,My issue is when ever i am changing other code in the programs (other screen logic) the selection screen  is reverting back to normal ...again i have to do the flow logic and screen change of selection screen.
    Suggest me how i can avoid this .
    Regards,
    Siva Prasad.

    and for the scenario i need to give custom f4 help for the selection  field for that i have included logic
    was the error, use some AT SELECTION-SCREEN ON VALUE-REQUEST FOR {para|selcrit-low|selcrit-high} or PARAMETERS/SELECT-OPTIONS MATCHCODE OBJECT search_help  statement, and your problem will vanish... (Edition of a generated object is hardly ever a good idea and never good practice)
    Regards,
    Raymond

  • Checkbox positioning issue in module pool program screen

    Hello All,
    I am facing one issue with the checkbox positioning in module pool program.I have designed the screen in 'SAP Signature Theme' and the checkbox position looks fine (while tested the screen in SE80) as shown below.
    Test Result from 'SAP Signature Theme':
    But the lead has a different theme in his SAP system and he got the below result where the checkbox automatically shifts right with the same code and screen design as shown below.
    Test Result from'Enjoy'  theme :
    Could you please help me resolve this strange issue as soon as possible.
    Thanks in advance!!!
    Thanks & Regards,
    Hafizul

    Hi Bhaskar,
    Sure , in fact this is has been created by dragging and dropping of the the standard checkbox template availabe in the layout,no custom code has been written for this.
    Please find the layout properties for this checkbox below.
    P9021-COMPLI_CONF is one character field.
    Please let me know if you need any other details on the same.
    Thanks & Regards,
    Hafizul

  • Default values in module pool screen issue

    Hello,
    I have 6 input fields in one of my module pool tab-strip. I can able to populate default values in 4 fields, but 2 fields are not showing default value on the screen. I am passing these default value for all 6 fields in PBO module of that screen. My question is, why only these 2 fields are not showing default values on the screen?
    Thanks,
    Shree

    Edgar,
    Thanks for the reply, I checked again, the screen fields and variables name is exactly same.
    Here is the sample code:
    MODULE status_2050 OUTPUT.
      gv_id_no_2050 = '200'.
      gv_matnr_2050 = '232020191'.
      gv_ebeln_2050 = '20019100'.
      gv_qty_2050 = 3.
      gv_bukrs_2050 = 'JP01'.
      gv_comments_2050 = 'my comments here'.
    ENDMODULE.

  • Module pool related problem

    Dear all,
    No, Suppose i have created one Module pool.
    When i m going to use code Inspector for that one error is occured......................ZZWERKS1 has no accessible label.
    Actually for Plant i have created only input field without Label as per requirement.
    Now my question is that how i can hide this error message.
    Plz help me as soon as possible.

    I don't think you can hide this message, but an alternative would be to create the input field anyway and set it to no-display (setting in the attributes of the screen layout).
    The other alternative would be to ignore the error message at all. If you can activate the report / module pool, there really is no problem. Code inspector is just very thourough when it comes to these kind of things.

  • Module pool issue (Urgent Plz Help)

    Hi All,
    I have a requirement in which when i click on the image in the module pool then i have to navigate to some other screen but
    1. how could i know that the user has clicked the image ?
    2. What is the use of PF_STATUS?
    Please help me out i have already loaded the image in my module pool screen but don't know how to go further please help me as soon as possible.
    Thanks in advance
    Message was edited by:
            Rachit Khanna

    Dialog Status for Lists
    To allow the user to communicate with the system when a list is displayed, the lists must be able to direct user actions to the ABAP program. As described in User Actions on Screens, function codes are used to do this. Function codes are maintained in the GUI status of the list screen. You define a GUI status using the Menu Painter tool in the ABAP Workbench. The system assigns function codes to list-specific user actions.
    The most important of these functions is for selecting list lines by double-clicking. As described in Using a GUI Status, the double-click function is always linked to the F2 key. If a function code is assigned to the F2 key in the GUI status, it will be triggered when you double-click.
    The Standard List Status
    As with normal screens, you can define your own GUI status for lists and attach it to a list level using the SET PF-STATUS statement. If you do not set a particular GUI status, the system sets a default list status for the list screen in an executable program. In other programs, for example, when you call a list from screen processing, you must set this status explicitly using the statement
    SET PF-STATUS space.
    This default interface always contains at least the functions described in the Standard List section.
    Unlike normal dialog statuses, the default list status is affected by the ABAP program.
    If you define event blocks in your program using the event keywords AT LINE-SELECTION or AT PF]
    This statement sets the status  parameters. To display an ampersand character ‘&’, repeat it in the title ‘&&’.
    Examples
    Example for dialog status in a list.
    REPORT demo_list_menu_painter.
    START-OF-SELECTION.
      SET PF-STATUS 'TEST'.
      WRITE:  'Basic list, SY-LSIND =', sy-lsind.
    AT LINE-SELECTION.
      WRITE:  'LINE-SELECTION, SY-LSIND =', sy-lsind.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'TEST'.
          WRITE:  'TEST, SY-LSIND =', sy-lsind.
      ENDCASE.
    This program uses a status TEST, defined in the Menu Painter.
    Function key F5 has the function code TEST and the text Test for demo.
    Function code TEST is entered in the List menu.
    The function codes PICK and TEST are assigned to pushbuttons.
    The user can trigger the AT USER-COMMAND event either by pressing F5 , or by choosing List ® Test for demo, or by choosing the pushbutton Test for demo.The user can trigger the AT LINE-SELECTION event by selecting a line.
    Example of setting a dialog status for the current list
    REPORT demo_list_set_pf_status_1.
    DATA: fcode TYPE TABLE OF sy-ucomm,
          wa_fcode TYPE sy-ucomm.
    START-OF-SELECTION.
      wa_fcode = 'FC1 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'FC2 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'FC3 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'FC4 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'FC5 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'PICK'. APPEND wa_fcode TO fcode.
      SET PF-STATUS 'TEST'.
      WRITE: 'PF-Status:', sy-pfkey.
    AT LINE-SELECTION.
      IF sy-lsind = 20.
        SET PF-STATUS 'TEST' EXCLUDING fcode.
      ENDIF.
      WRITE: 'Line-Selection, SY-LSIND:', sy-lsind,
           / '                SY-PFKEY:', sy-pfkey.
    AT USER-COMMAND.
      IF sy-lsind = 20.
          SET PF-STATUS 'TEST' EXCLUDING fcode.
        ENDIF.
        WRITE: 'User-Command, SY-LSIND:', sy-lsind,
             / '              SY-UCOMM:', sy-ucomm,
             / '              SY-PFKEY:', sy-pfkey.
    Suppose that the function codes FC1 to FC5 are defined in the status TEST and assigned to pushbuttons: The function code PICK is assigned to function key F2 .
    When the program starts, the user can create detail lists by selecting a line or choosing one of the function codes FC1 to FC5. For all secondary lists up to level 20, the user interface TEST is the same as for the basic list:
    On list level 20, EXCLUDING ITAB deactivates all function codes that create detail lists. This prevents the user from causing a program termination by trying to create detail list number 21.
    Example of setting a dialog status for the current list
    REPORT demo_list_set_pf_status_2.
    START-OF-SELECTION.
      WRITE: 'SY-LSIND:', sy-lsind.
    AT LINE-SELECTION.
      SET PF-STATUS 'TEST' IMMEDIATELY.
    After executing the program, the output screen shows the basic list and the user interface predefined for line selection (with function code PICK).
    When you choose Choose, the user interface changes. However, since the AT LINE-SELECTION processing block does not contain an output statement, the system does not create a detail list: The status TEST is defined as in the previous example.
    Example: Titles of detail lists.
    REPORT demo_list_title .
    START-OF-SELECTION.
      WRITE 'Click me!' HOTSPOT COLOR 5 INVERSE ON.
    AT LINE-SELECTION.
      SET TITLEBAR 'TIT' WITH sy-lsind.
      WRITE 'Click again!' HOTSPOT COLOR 5 INVERSE ON.
    In this program, a new title is set for each detail list. The title is defined as follows: "Title for Detail List &1".

Maybe you are looking for