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,

Similar Messages

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

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

  • 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

  • Module pool custom fiel ZTEST doesen't memorize value

    hello, i have create a module pool with a custom field ZTEST declared in the TOP include. The same name i have declared in the Dympro '0100'. In the after input i tried to get the value but the variable ZTEST doesen't contains value also if i have filled in the dympro; infact when i press "enter button" the value is not saved in the CHAIN ENCHAIN.
    Why?
    Please help me
    Marco

    Please check if there is any FIELD statement with the new field in the screen flow logic, viz.,
    FIELD ZTEST
    the system transfers the values of the screen fields to the program fields only after the FIELD statement

  • Module pool-Custom controls

    Hi,
         Cany any one tell me with example how we will use the customccontrols in module pool program..Why it is used

    I got answer, i am using same editor for displaying all the custom controls.
    i.e. was the problem.
    anyway Thanks for looking into this issue.

  • 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 with table control scrolling

    hi,
    i am using the table control in module pool,in the table control i have radion button for all the rows.
    After i got the data into the table control ,if i select radio button and if i press vertical scroll bar button, that radio button is deselecting,how to solve this issue.
    Please help me.

    Hi
    Generally we don't keep radiobuttons in table control for selecting the records
    We keep check boxes for selecting the records
    Radio button is used to select a single from a group of records and at a time only one is selected, where as checkboxes at a time you can select a single or multiple.
    So use checkboxes and code correctly see the doc for Table control
    syntax:
    CONTROLS .
    if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.
    u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.
    Go through this urls.
    www.****************
    www.sap-img.com
    Check the below links.
    http://www.planetsap.com/howdo_a.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
    http://sap.niraj.tripod.com/id25.html
    Reward points if useful
    Regards
    Anji

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

  • Problem creating module pool

    I'm trying to create dialog program ( probably referred to as a module pool in today's terminology) in R/3 4.7 and I'm getting authorization errors when I use the naming convention I have always used  SAP + M + Z + program name.  For example if my program name was TEST the dialog program name would be SAPMZTEST.  In creating this program I answer yes to creating the top include, then yes to the proposed name of the top include which is MZTESTTOP.  Then I get stopped by the authorization error.
    My question is this:  Is there a new way to create dialog programs in 4.7 or is this merely an authorization problem - if so, what value needs to be the object entry of S_DEVELOP
    I would greatly appreciate some guidance on this
    Thanks,
    Brent

    I did that and the basis guys responded that we are only authorized to create programs in the Y & Z name space.  I tried to explain that there was a particular naming convention for module pools.
    I just wanted to make sure that there is no change in the naming convention, and no change in the way those programs are created.
    Thanks,
    Brent

  • Screen problem in Module pool program

    Hi all,
    I have developed a module pool program, in which i have used simple selection screen and after executing it will call screen 9001 to display the data. everything is goin fine but if i leave my output screen as it is for some time (or even if i lock my system then unlock it) i am getting an error message
    "Selection screen ZDEV1110PGM_SF 1000 was not called using CALL SELECTION-SCREEN".
    do any one have idea why this is happining without doing anything further to the output.
    Regards,
    Nilanjana

    Have you used CALL SCREEN ?
    Regards
    Abhii

  • Problem in Module Pool Programming

    hello,
    I am using module pool programming.
    i want to assign the text to textbox during runtime
    thanks!

    Hi Raghvendra Bhanap,
    declare the variable with the same name of text box(In module pool) and in the PAI even write the module by double clicking on that in your program just assign some text to that name then the text automatically come in that text box.
    See this example programm.
    *In Screen Painter PAI Event.*
    moudle assigntext.
    In your Program.
    Data w_name(40). (*In the module pool also put this name only)
    Module assigntext.
    w_name = 'Raghvendra Bhanap'.
    Endmodule.
    Reward if it is useful,
    Mahi.

  • Query on module pool field -f4 help

    Hi all,
    My query is as follows :
    There are 2 fields in module pool screen :
    sector
    lfd
    Now there is a table called sector with 2 fields sector and lfd.
    now when f4 is pressed on the above sector field, this sector table has to be called so that I can select the required sector from the f4.
    I am able to do till above.
    Now the issue is when I press f4 on sector field and select the required sector, the lfd value for this corresponding sector should be automatically populated in lfd field on the the above module pool screen.
    please let me know regarding the above.
    regards,
    srinivas

    Hi
    after assigning the value to lfd field
    call the same screen again. ex: call screen 'screen name'.'
    or
    Try this..
    global variable
    Data: Variable  type c.
    in your PBO
    if variable is not initial.
    lfd = 'Variable'.
    endif.
    clear Variable.
    in POV
    after calling F4IF_FIELD_VALUE_REQUEST function module and assigning the output to sector field
    Variable = lfd value.
    once after executing your f4 functionality, if you press enter you will see the value in lfd field as well
    Regards
    Edited by: Anesht on Sep 30, 2010 5:56 PM

  • Selection OPTION: Date input problem in Module POOL through Subscreen

    Dear ALL,
    Being new to ABAP, I am struck in a Problem.
    Requirement:
    I want an option on the Screen( My Screen 9000) for Date Range. Through this Date-Range I want to filter and pull some data from
    Database.
    As Date Range Selection option is possible only through Sub-Screen integration. Hence I integrated a Sub-Screen 400 (as below) and named the Sub-Screen area as SEL on my screen.
    Problem: As soon as I enter the dates on the screen, then those dates are not taken up by the code.
    During debugging I saw the the S_datum-low and S_datum-high are empty (in fact 00000000)
    The code follows:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9000.
      Call SUBSCREEN SEL  INCLUDING sy-repid '400'.
    PROCESS AFTER INPUT.
      MODULE USER_COMMAND_9000.
    DATA:  gv_datum     Type   dats,
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
        SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    Plz help where I am missing something.
    Regards
    Chandan

    Call the subscreen during the AT SELECTION-SCREEN event.
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
    SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    AT SELECTION-SCREEN.
       CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
       SET PF-STATUS '0100'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
       CASE sy-ucomm.
         WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
           LEAVE TO SCREEN 0.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • Module Pool Programming - F1 help

    hi how to add field help(i.e f1 help) to the custom fields added to the standard transaction as well as to the standard fields in the standard transaction

    hi..
      check the demo program  is defined in the ABAP program like a normal PAI module. The processing logic of the module must ensure that adequate help is displayed for the field in question. Instead of calling an extra screen with text fields, you should use one of the following function modules to display a suitable SAPscript document:
    HELP_OBJECT_SHOW_FOR_FIELD
    This function module displays the data element documentation for components of any structure or database table from the ABAP Dictionary. You pass the name of the component and structure or table to the import parameters FIELD and TABLE.
    HELP_OBJECT_SHOW
    Use this function module to display any SAPscript document. You must pass the document class (for example, TX for general texts, DE for data element documentation) and the name of the document to the import parameters DOKCLASS and DOKNAME. For technical reasons, you must also pass an empty internal table with the line type TLINE to the tables parameter of the function module.
    For further information about how to create SAPscript documents, refer to the Documentation of System Objects documentation.
    regards,
    veeresh

Maybe you are looking for

  • Portal Search doesn't work in Portal Applications forum.

    Portal Search doesn't work in Portal Applications forum.

  • Deploying to shared tomcat instance

    Hi All I'm new to servlet, and even newer to Creator. I'm trying to deploy a relatively simple two page application (Compiles and deploys with no problem locally on sun app server) to a shared instance of tomcat. This means that I can't simply send o

  • Better video quality on my old G3 than my new iMac?!?!

    How is this possible??? The visual quality of my new 17 inch 2 duo iMac 1.83 is horrendous. The screen detail and colors look like they're stuck in thousands instead of millions. Even though the resolution says otherwise (1440x900 millions). As a tes

  • Error 69 when restoring itunes library

    I just recently had to recover my computer. But I did back-up my itunes library on a disc. Now when I try to restore my itunes library from the disc I get an error -69. Can anyone let me know how how I can fix this.

  • Having problem with storing data in array

    Hi, I'm having problem on storing data in array. My problem is that each time it loops, the array just keep overwrite instead save to the next index. Like at 0 the value is 123, and 1 is 234. But i having that all data capture all overwrite at 0 till