Module pool problem

Hi,
I m using module pool and i have used select-options in the screen, for that i have definged select-options as subscreen and called using call subscreen... in module pool.
My problem is when i validate select-options im thrown error message and that select-options getting disabled i tried to keep chain and endchain in the module program and that says that it can not recognize the select-options(fields).
any solution for this.
Thanks,
Nagaraju.

Hi,
Please check out the below links . they might be helpful.
http://help.sap.com/saphelp_46c/helpdata/en/34/8e72da6df74873e10000009b38f9b8/frameset.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba9e735c111d1829f0000e829fbfe/frameset.htm
Rgds
Mohit

Similar Messages

  • Module pool problem (urgent)

    I am developing one module pool program where I have used custom control... when I am click on a clear button. it clears all the internal tables and fields and even that internal table also which is the source of the custom control. But the screen that means the custom contrl screen holds the record... can any body tell me how to clear that screen.?

    try this
    use refresh_table_display
      IF rc IS INITIAL.                     "reference to custom container
       CREATE OBJECT rc
                                       EXPORTING container_name = 'CONTAINER1'.
        CREATE OBJECT rg                          "reference to grid
                                       EXPORTING i_parent = rc.
      ELSE.
        CALL METHOD rg->refresh_table_display.
      ENDIF.
    Edited by: Kamini Rawat on May 23, 2008 1:57 PM

  • Module pool ---Problem in finding the line index for the table control

    Hi Friends,
    I am working in Module pool programming.
    My requirement is when i select any record on the lead selection I need to find out the index of the line on which  row i have selected.
    Could any one please suggest me the proper solution how to get the line index for the table control in module pool programming.
    Thanks
    Satish Raju

    Hi Raju,
    Follow the steps
    <li>U should take one variable in your internal table or in structure which is used for table control fields.
          DATA :BEGIN OF itab OCCURS 0 ,
                mark TYPE c ,
                matnr LIKE mara-matnr ,
                matkl LIKE mara-matkl,
                maktx LIKE makt-maktx,
            END OF itab .
       controls: tabc types tableview using screen 100.
    <li>This mark variable should be given in Table control properties. follow the path
    double click on the table control-->attributes .->select w/SelColumn and in that give itab-mark.
    <li>Flow logic of the screen
       process before output.
         MODULE status_0100.
         LOOP AT itab with control tabc
         endloop.
       process after input.
         module cancel at exit-command.
         LOOP AT itab.
           MODULE read_table_control.
         ENDLOOP.
         MODULE user_command_0100.
    <li>read_table_control module code
         MODULE read_table_control INPUT.
         MODIFY itab INDEX tabc-current_line."this will update the itab table
                                             "mark field with 'X ' whatever we
                                             "have selected on table control
         ENDMODULE.
    <li>If you want to Delete some of the records from Table control follow this code u2026Create one pushbutton and give Fucnction code to that and write below code
       CASE okcode.
         WHEN 'DELETE'.
           LOOP AT itab WHERE mark = 'X'.
             DELETE itab.
           ENDLOOP.
       ENDCASE.
    I hope that it helps you.
    Thanks
    Venkat.O

  • How to keep f4 help for a particular field in module pool problem-urgent

    hi all,
    i am displaying output using alv list display. here i am showing my pf status here. in this status i have one button called position. when i click this button it is showing pop up inside this pop up  i am showing appln
    for this i need keep f4 help. anybody can tell me how to keep f4 help fo this field.
    thanks,
    maheedhar.t

    Hi Maheedhar,
    You need to use function module POPUP_GET_VALUES.
    If you want see sampl eprogram for this check the program RSSPO410.
    Execute this program and input Example2 = X in the selection screen.
    Code from the above Program:
    DATA: BEGIN OF FIELDS OCCURS 1.
            INCLUDE STRUCTURE SVAL.
    DATA: END OF FIELDS,
          RETURNCODE(1)       TYPE C,
          POPUP_TITLE(30)     TYPE C.
      POPUP_TITLE       = 'Nachrichten anzeigen'(200).
      CLEAR FIELDS.
      FIELDS-TABNAME    = 'T100'.
      FIELDS-FIELDNAME  = 'ARBGB'.
      FIELDS-FIELDTEXT  = 'Arbeitsgebiet'(202). "Text nicht aus DTEL
      APPEND FIELDS.
      CALL FUNCTION 'POPUP_GET_VALUES'
           EXPORTING POPUP_TITLE     = POPUP_TITLE
           IMPORTING RETURNCODE      = RETURNCODE
           TABLES    FIELDS          = FIELDS.
      IF RETURNCODE = 'A'.
        If Cancel is clicked
      ELSE.
        If OK is clicked.
        Table FIELDS congtains the input data.
      ENDIF.
    Thank you
    Ramakrishna

  • Modul pool problem

    hi all,
      I m working on a subscreen and it has a table control, in this table control all field has F4 help except two fields, these 2 fields have POV-request F4 help through FM,
       if i filled any records of this table control internal-table and when press POV help then all records get cleared cause of the PAI event of this screen not run for modify_screen only POV event is running for F4 help and update the table containt,
       is there any option to run PAI event just before POV .
    <b>code like this</b>
    Flow logic
    PROCESS BEFORE OUTPUT.
      MODULE DISPO_DISPLAY.
      LOOP AT T_DISPO WITH CONTROL TC_DISPO.
      ENDLOOP.
    MODULE STATUS_0106.
    PROCESS AFTER INPUT.
      LOOP AT T_DISPO.
        CHAIN.
          FIELD : T_DISPO-MVT,
                  T_DISPO-STLOC,
                  T_DISPO-VALTYPE,
                  T_DISPO-GRP,
                  T_DISPO-TASK,
                  T_DISPO-ITEMCAT.
          MODULE VALIDIATE_DISPOSITION.
          MODULE MODIFY_DISPO .
        ENDCHAIN.
      ENDLOOP.
    PROCESS ON VALUE-REQUEST.
      FIELD T_DISPO-GRP MODULE F4_DISPO .
      FIELD T_DISPO-TASK MODULE F4_DISPO .
    MODULE F4_DISPO INPUT.
    *local data
      DATA: LLINO     LIKE SY-INDEX VALUE 0.
      DATA: LFIELD(20) TYPE C VALUE 'T_DISPO-GRP'.
      GET CURSOR LINE LLINO FIELD LFIELD.
      G_CODEGRPTAB-CODEGRUPPE = 'CT*'.
      APPEND G_CODEGRPTAB.
      CALL FUNCTION 'QPK1_GP_CODE_SELECTION'
        EXPORTING
          I_KATALOGART                 = '2'
      I_CODEGRUPPE                 =
         I_CODE                       = '*'
         I_SPRACHE                    = SY-LANGU
         I_WINX1                      = 10
         I_WINX2                      = 70
         I_WINY1                      = 5
         I_WINY2                      = 25
      I_DISPLAY_MODE               =
         I_RETURN_IF_ONE              = 'X'
         I_PICKUP_MODE                = 'X'
      I_RETURN_IF_MANY             =
      I_NO_USAGEINDICATION         =
      I_NO_AUTHORITY_CHECK         =
        TABLES
          T_QPK1CDTAB                  = IQPK1CD
          T_CODEGRPTAB                 = G_CODEGRPTAB
       EXCEPTIONS
         NO_MATCH_IN_RANGE            = 1
         NO_USER_SELECTION            = 2
         NO_AUTHORIZATION             = 3
         NO_SELECTION_SPECIFIED       = 4
         OBJECT_LOCKED                = 5
         LOCK_ERROR                   = 6
         OBJECT_MISSING               = 7
         OTHERS                       = 8
      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 T_DISPO INDEX LLINO.
      LOOP AT IQPK1CD.
        T_DISPO-GRP  = IQPK1CD-CODEGRUPPE.
        T_DISPO-TASK =  IQPK1CD-CODE.
        MODIFY T_DISPO INDEX LLINO.
      ENDLOOP.
      CLEAR: IQPK1CD,IQPK1CD[].
      CALL SCREEN 100.
    ENDMODULE.                 " F4_Dispo  INPUT
    plz help me out.
    thanks in advance
    Message was edited by: chetan
            chetan vishnoi

    Dear Abhilash,
    Have you checked the upgrade document released by SAP on migrating from 4.7 to ECC 6.0. It may be possible that certain standard functionality might have been enhanced/changed which could affect your output. In this case you may have to align your program accordingly. SAP note search with MP keywords can also be helpful.

  • Problem in custom infotype module pool

    Hi experts,
    I have created custom infotype using PM01 where i am showing fields Basic and HRA. When I enter the value for Basic, automatically the calculation for HRa should be done depending on formula. Also, the HRA fields should be only output field. When I do the changes in the module pool PBO and regenerate the object , the changes I made get disappered. Do I have to create Z of the includes. If so, how to assign it to the infotype?  Please help me to solve this problem since its urgent.
    Thanks in advance.
    Proper solution would be rewarded.
    Ujjwala

    C
    This is the flavour of Infotype.
    When you regenerate the Infotype, you are again reassigning the Chanrecterstcis of your Infotype. so the Existing will get regenerated with the Standard Code.
    To avoid this what I suggest you is.
    After finishing the Regeneration then edit the Module pool of the Infotype basically Screen 200 then add your code and Activate it there itself. Hope you got it.
    If you again Regenerate it you loose your Code.
    If you have further Questions please let me know.

  • Strange problem in module pool programming

    Hi all,
    we have a module pool program which consists of screen 100 and 200 and 3 sub-screens 201,202 and 203.the problem is when we double click on any field we get a pop up message which should appear only when we press the 'SAVE' button for which ok_code is 'CHNG'.I have debugged the program for screen 100 pbo,pai,200 pbo but the value of ok_code is not equal to 'CHNG' then it takes me to screen 200 and when i double click then popup appears and and in 200 PAI the value of ok_code had already got changed  to 'CHNG' without entering the change logic and I have not even pressed the SAVE button which has 'CHNG' code associated with it.Can any one help me solve this problem.I wish I could give a better explanation.
    Thanks and Regards,
    Sangram

    Hi,
    This is because the Shortcut key assigned to SAVE button in PF-STATUS is "F2". F2 is for Double Click. Assign some other Function Key to SAVE or any Button. Try to avoid assigning F2 key.
    This would solve the problem.
    Best regards,
    Prashant
    PS : Please reward all helpful answers !

  • Data type selection Problem in ztable to use in the Module Pool Program

    Dear Experts,
    I have created a z-table which is used in Module Pool Program in which i have to save the information saved by the endusers in z-table. But the problem comming is that the amount of information saved by the endusers is so havey & our table is just limited for the 50 characters which is not sufficiet. So I urge you to please tell me what & which type of data type should I have to use to store maximum amount of information in our zt-able which is available in SAP ECC6.0.
    Thanks & Regards,
    Akg

    Dear Akg,
    u can resolve ur problem in following ways,
    1. You can declare the field in a table without an Data element.
          i.e. In the length field . using F4 help in length field how many characters u want u enter.
    2. In the same u can search for an standard data element and use the same.
    3. Creating an custom data element .
    Reward if helps to u!!!
    Regards,
    MNR

  • Select-options Problem in module pool

    Hi,
         I have created select-options in a seperate program and i have called the subscreen in module pool program.
    I dont have any problem with the display of select-options but whatever the value given is not getting in to the program. Hw to solve this problem
    Assured Points
    Thanks in Advance
    Jai

    hi,
    did you declare that in top include?
    if not declare it globally.
    In stead of subscreen, try to do with screen itself.
    Create screen like this.
    selection-screen begin of screen 300.
    selection-screen begin of block b1 with frame title text-000.
    select-options : so_ebeln for v_ebeln modif id g1,
                     so_vbeln for v_vbeln modif id g2.
    selection-screen end of block b1.
    selection-screen end of screen 300.
    Call this screen : in PAI of ur another screen.
    call selection-screen 300.
    Regards
    Sandeep REddy

  • Problem in Module Pool Program

    Hi All,
    I got one problem in Module pool program.Im using table control.when selected multiple coloms by table control option left top.
    when I want to de-select one by one,unable to de-select. Please suggest me.
    thank you,
    Anu.

    Thank You All.
    Solved my self.
    The coding as below.
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN SUB INCLUDING SY-REPID '110'.
      LOOP AT GT_ITAB INTO WA WITH CONTROL VCONTROL.
        MODULE SET.
        MODULE STATUS_0100.
      ENDLOOP.
    PROCESS AFTER INPUT.
       CALL SUBSCREEN SUB.
      LOOP AT GT_ITAB .
        CHAIN.
          FIELD WA-EBELN.
          FIELD WA-EMATN.
          FIELD WA-EBELP.
          FIELD WA-MATNR.
          FIELD WA-MARK.
          MODULE MODIFY ON CHAIN-REQUEST.
        ENDCHAIN.
      ENDLOOP.
        MODULE USER_COMMAND_0100.
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
        WHEN 'SAVE'.
          PERFORM SAVE_VARIANT.
          PERFORM VARIANT_EXISTS.
        WHEN 'SEL'.
          LOOP AT GT_ITAB INTO WA.
            WA-MARK = 'X'.
            MODIFY GT_ITAB FROM WA .
          ENDLOOP.
    endmodule.
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ZTESTING'.
      SET TITLEBAR 'ZTEST'.
      SET PF-STATUS  'ZTESTING' EXCLUDING IT_EXTAB.
      MOVE:WA-EBELN TO EKKO-EBELN,
           WA-EBELP TO EKPO-EBELP,
           WA-MATNR TO WA-MATNR.
      MOVE:WA-EMATN TO WA-EMATN.
    MODIFY GT_ITAB FROM WA INDEX VCONTROL-CURRENT_LINE.
      VCONTROL-LINES = SY-DBCNT.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    MODULE SET OUTPUT.
      SET CURSOR FIELD CURSORFIELD OFFSET POS.
    ENDMODULE.                 " SET  OUTPUT
    Thank You,
    Anu.

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

  • Selection screen problem in module pool

    Hi friends,
    I am working on module pool programming, I need to put select screen on the screen of the module pool porgramming. I used Input/Output field to do that and activated. But I am getting message invalid field format (screen error) can any one tell me why I am not able to run the seletion screen when I am using input/output field, also please let me know how to solve this problem.
    Regards,
    Line

    Hello,
    Think that this is useful for u/
    SELECTION-SCREEN - Defining selection screens
    Variants:
    1a. SELECTION-SCREEN BEGIN OF SCREEN scr.
    1b. SELECTION-SCREEN END   OF SCREEN scr.
    2. SELECTION-SCREEN BEGIN OF SCREEN scr AS SUBSCREEN.
    Effect
    Defines a selection screen with the number scr. scr may be up to 4 digits.
    SELECTION-SCREEN BEGIN OF SCREEN scr.
    Additions:
    (zu SELECTION-SCREEN BEGIN OF SCREEN scr) 1. ... TITLE title
    2. ... AS WINDOW
    Notes
    In reports (type 1 programs), a selection screen with number 1000 is created automatically when you use the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statments. This selection screen appears when you SUBMIT the report.
    In any type of program (apart from subroutine pools - type S), you can define further selection screens using SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN. You enclose these statements between the SELECTION-SCREEN BEGIN OF SCREEN and SELECTION-SCREEN END OF SCREEN statements.
    You call these screens using the CALL SELECTION-SCREEN statement.
    Screen number 1000 is not allowed (reserved for standard selection screen).
    When you generate the program, all user-defined selection screens are also generated.
    Within a report (type 1 program), all SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements outside a SELECTION-SCREEN BEGIN/END OF SCREEN block form part of selection screen 100 (standard selection screen)
    Regards,
    LIJO JOHN.

  • List Box Problem In MODULE POOL PROGRAM(EDIT MODE)

    I Have Developed A MODULE POOL PROGRAM ,
    It Basically Consists Of   CREATE  EDIT and DISPLAY Modes.
    CREATE MODE:
    When I am Creating For Example FORM NO 1,it is having Fields With drop down list box with values
    A,B and C. if I Choose A then That form will Get Created With A value and Form 1 will be created.
    EDIT MODE:
    The same form If u want to edit In EDIT Mode ,it is displaying value A and it Showing the list box in the fillowing Manner.A,B,C,and A.(This is what the problem I am Facing Know).It Is Displaying the value two times.How to Avoid this ,PLs Help me in this regard.
    Thaks & Regards,
    Anuradha.

    Where ever you are populating the List Box, write a REFRESH statement just before that.
    Means Refresh the old content and add new content

  • Problem in Screen field position ( Module pool )

    Hi Experts,
    We changed the screen field position ( GUI ) of SAP standard module pool program.  we had taken the access key from SAP and modified the layout.
    Our Problem :   We had transported  these change request to Quality and Pre Production. The changes are transferred correctly in Quality .  when coming to Pre Production the changes are not visible on  the screen.
    Checks Performed :  1. We had analyzed the Transport request - They are imported correctly.
                                        2. We had rechecked the layout that we had changed its good and correct.
    Can you experts help me out in identify the exact solution for this problem.
    - Best Regards,
    Sudhakar Puppala
    Edited by: CRM Sudhakar on Sep 16, 2010 11:25 AM

    Hi, no idea can be given without having a look..
    but just check the screen layout in the pre-production itself..instead checking transport..

  • Problem is Module pool custom F4 help

    In module pool selection screen . I have defined vendor field as a select option and attached a custom search help to it . Now the problem is that when i press F4 on that field and select a value from the help , that value is not populated in the input field .
    The other problem is that if we keep this vendor select option as blank , then in the select statement using " IN S_lifnr " gives a dump as it treats the field as blank .( does not function as standard) . does this have anything to do with the custom search help .
    any help would be appreciated .

    Do you mean that u created a custom cearch help using se11 and attached that using F4IF_INT_TABLE_VALUE_REQUEST.
    I dont think that is possible. 
    F4IF_INT_TABLE_VALUE_REQUEST is used to programmatically create an f4 help, fetching data from an internal table.
    here is an eg.
    DATA: BEGIN OF VALUE_ITAB OCCURS 0,
          moldno TYPE zqmrr-zzmoldno,
          END OF VALUE_ITAB.
    DATA: FIELD_TAB LIKE DFIES OCCURS 0 WITH HEADER LINE.
    DATA: RETURN_TAB LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE.
    select-options :           s_moldno  for zqmrr-zzmoldno,
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MOLDNO-LOW.
      REFRESH VALUE_ITAB[].
      REFRESH FIELD_TAB[].
      REFRESH RETURN_TAB[].
      SELECT ZZMOLDNO FROM ZQMRR INTO table VALUE_ITAB.
      FIELD_TAB-FIELDNAME = 'ZZMOLDNO'.
      FIELD_TAB-TABNAME   = 'ZQMRR'.
      APPEND FIELD_TAB.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
       DDIC_STRUCTURE         = ' '
          RETFIELD               =  FIELD_TAB-FIELDNAME
        TABLES
          VALUE_TAB              = VALUE_ITAB
         FIELD_TAB              = FIELD_TAB
         RETURN_TAB             = RETURN_TAB
       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.
      IF SY-SUBRC = 0.
        S_MOLDNO-LOW = RETURN_TAB-FIELDVAL.
      ENDIF.
    compare and try to find  what u are doing wrong,

Maybe you are looking for

  • Cannot login into network accounts when there is no network connectivity

    Hey guys quick question here if anyone can help. What has been done: backuped user's home folder, binded the mac to AD, logged in as the user's AD name, copied everything from the backup into the new user's home folder, users can work flawlessly. Wha

  • Is it possible to tether the IPad 2 to the Galaxy S2?

    im getting both of these devices for christmas and instead of paying the extra £200+ for another contract for the ipad could i just tether my android glaxy s2 to it? thanks

  • ADRMAS IDoc for customer address

    Hi, I am trying to send the customer address information via ALE. We are using a custom message type (ZDEBMAS) to send the customer data. I am aware that additional address information can be sent using ADRMAS. However, this message type is linked to

  • Issues importing RAW files

    I want to store images on my IPAD when travelling. I have a 64GB Ipad with Iphoto and the basic PS loaded. I have to download direct from the camera, whisch is a pain, and then store and group into files from there. However, I attempted this today an

  • Dyanmic Folders..Is it possible

    For a project I am working on, I would like it that when the member signs up for an account, the web site dynamically creates a folder based on the username that they choose. Since there is only one unique username, its shouldn't be a problem. I also