Module pool F4-Help problem for a field in custom Infotype(HR).

Dear Gurus,
I have created a custom Infotype and fields are like
P9015-NAM01.
P9015-NAM02.
P9015-NAM03.
all are fields for name.
I want F4 help for these fields with values same as  Family Members-First name  given in 21 Infotype .
for all 3 fields same f4 help values.
But when i see in the screen for first field the values are populating as selected but for second field the selected value is not picking..
DATA: BEGIN OF it_val1 OCCURS 7,
    nam01 LIKE p9015-nam01,
    rel01 LIKE p9015-rel01,
   END OF it_val1.
  SELECT *  FROM t591s INTO TABLE it_t591s WHERE
     sprsl = 'EN' AND
     infty = '0021'.
*SUBTY
*STEXT
  SELECT * FROM pa0021 INTO wa_21 WHERE pernr = p9015-pernr .
    READ TABLE it_t591s WITH KEY subty = wa_21-famsa.
    it_val1-rel01 = it_t591s-stext.
   CONCATENATE wa_21-favor wa_21-fanam INTO it_val-nname SEPARATED BY space.
    it_val1-nam01 = wa_21-favor.
    APPEND it_val1.
    CLEAR : it_val1, it_t591s.
  ENDSELECT.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE         = ' '
      retfield               = 'NAM01'
    PVALKEY                = ' '
     dynpprog               = sy-cprog
     dynpnr                 = sy-dynnr
    dynprofield            = 'P9015-NAM01'
    STEPL                  = 0
    WINDOW_TITLE           =
    VALUE                  = ' '
     value_org              = 'S'
     multiple_choice        = ' '
     display                = 'F'
    CALLBACK_PROGRAM       = ' '
    CALLBACK_FORM          = ' '
    MARK_TAB               =
  IMPORTING
    USER_RESET             =
    TABLES
      value_tab              = it_val1[]
     field_tab              = t_fields[]
     return_tab             = t_return[]
     DYNPFLD_MAPPING        = t_DYNPFLD_MAPPING
  EXCEPTIONS
    PARAMETER_ERROR        = 1
    NO_VALUES_FOUND        = 2
    OTHERS                 = 3
In the same way i am calling for P9015-NAM02. & P9015-NAM03.
Is there any wrong in calling this FM...kindly help.....

Write the FM inside,
at selection-screen on value-request for <nam1>.
It seems that you are calling the funtion module for only first field. Repeat it for other two fields also-
at selection-screen on value-request for <nam2>
call FM.
at selection-screen on value-request for <nam3>
call FM.
Sumit

Similar Messages

  • F4 / Help Functionality for input field in custom java iView

    Hi,
    As we see many F4 help on each input field in a transaction, how can we mimic the same functionality in a Custom Java iView. For example, ME23N, you can search a PO based on some criteria, when i create a new custom java iview using BAPI_PO_DISPLAY, how can provide that F4 or help functionality to the Purchase Order field.
    Your help is really appreciated.
    Thanks,
    Vijay

    Hi Vijay,
    the F4 Help functionality is always of big concern when you're switching from a R/3 or ABAP-SAP GUI environment to a webfront end. First of all: the convinience you're used to of creating a seach help and adding it to your data fields is gone, i.e. the current development status in the portal/java/webdynpro implies that you have to do most of the work on your own. Simple value helps might not be a problem, but complex ones are (as the one you've described). Here is a link to a tutorial in Java-webdynpro, maybe it gives you an idea:
    https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=TutWD9_OVS.htm
    Regards,
    Ulli

  • Different dropdowns for different fields in custom infotype

    Hi All,
    I created a new infotype in HR and for the different fields, I need different dropdowns.
    Example: Infotype 9XXX
    field 1          -   dropdown values (A,B,C)
    field 2          -   dropdown values (D,E,F)
    field 3          -   dropdown values (A,D,F)
    Right now, I am getting the values for the dropdown based on a custom search help.
    The table used in the search help is a custom table, which has all the possible values  A,B,C,D,E,F.
    Is there a way I can have different dropdowns for the different fields in the infotype?
    Or is there is a way I can set different default values in the search help dynamically based on the field in the infotype.
    Is using a search help exit a solution? If so please let me know how i can use it and what code needs to go in it.
    Your inputs are greatly appreciated.
    Thanks!
    Sandeep

    Hi All,
    I created a new infotype in HR and for the different fields, I need different dropdowns.
    Example: Infotype 9XXX
    field 1          -   dropdown values (A,B,C)
    field 2          -   dropdown values (D,E,F)
    field 3          -   dropdown values (A,D,F)
    Right now, I am getting the values for the dropdown based on a custom search help.
    The table used in the search help is a custom table, which has all the possible values  A,B,C,D,E,F.
    Is there a way I can have different dropdowns for the different fields in the infotype?
    Or is there is a way I can set different default values in the search help dynamically based on the field in the infotype.
    Is using a search help exit a solution? If so please let me know how i can use it and what code needs to go in it.
    Your inputs are greatly appreciated.
    Thanks!
    Sandeep

  • Photoshop cs6 crashes with "appcrash - module ig75icd64.dll; no problem for a local admin user however. i've tried giving specified user full access to photoshop.exe and set it to Win XP compatibility. how do i fix this without giving user local admin acc

    photoshop cs6 crashes with "appcrash - module ig75icd64.dll; no problem for a local admin user however. i've tried giving specified user full access to photoshop.exe and set it to Win XP compatibility. how do i fix this without giving user local admin access?

    Danny,
    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • Module pool programming - supressing display of some fields

    Moderator message: better to start a new thread.
    Hi i have similar requirement to this. module pool programming - supressing display of some fields
    suppose i am displying
    BUKRS    0001
    Sales org  0001
    KUNNR    1000
    i dont want todisplay  if the field is blank.
    suppose if sales org is blank
    expected result is liek this
    BUKRS    0001
    KUNNR    1000
    i tried through loop at screen by uisng that
    i am getting output like below.
    BUKRS    0001
    KUNNR    1000
    hello subbarao, could you tell if your problem solved.

    Hi Naidu,
    In PBO put
    DATA: FLAG TYPE I VALUE 0.
    IF SALESORG = SPACE.
      FLAG = 1.
    ENDIF.
    LOOP AT SCREEN.
      IF FLAG = 1.
        IF SCREEN-NAME  = 'SALESORG'.
           SCREEN-INVISIBLE = 'X'.
           MODIFY SCREEN.
        ENDIF.
    ENDIF.
    ENDLOOP.
    Thanks,
    Chidanand

  • PCUI 4.0, Search Help Required for New field

    Hi everyone
    I am working in CRM 4.0 Sales Order application
    We created a new field in CRM sales Order in Header level in SAP GUI through EEWB.
    The search help for the new field is working fine in SAP GUI. We want to add the same field with F4 help functionaliity in PCUI as well.
    The field has been added in structure CRMT_BSP_SLS_OD1_General. It also shows domain value for the field however Origin of input field ie empty
    The field has been added in PCUI and is successfully showing data inputted in SAPGUI
    However we need search help functionality for the field
    i tried these two steps
    1) i checked on domain value checkbox and changed the field from input to dropdown. However the dropdown is empty in PCUI. Whenever i check box domain values for some field then all the possible values in SPA GUI are displayed in PCUI, however this is not working here.
    2) I put Value_table in F4 of the field
    This is also throwing up empty values
    Am i missing something in this case
    Please let me know how to go about it
    TIA
    Asad

    Hi Frederic
    Thanks for your response
    I am not sure what is meant by regenerating the field group in this case
    I added the entries for my view in the field group and generated the layout of the field group (If this is what you mean)
    The field is working fine. I am able to save values to the field and able to see values saved in GUI.
    I haven't linked search help of the field in PCUI
    I am not sure how to go about it.
    I used the data element in the structure for the field.
    The data element has Domain entry in <b>Entry Help/Check</b> of the structure
    If i check the Domain Value checkbox in my field group then the domain values should be available in dropdown if the field is dropdown
    However i am not able to see the possible values of the field (It is present in SAP GUI)
    Does something else needs to be done in this case
    TIA
    Asad

  • Order Import - Validation failed for the field - End Customer Location

    I am trying to import an order using standard import program and it is failing with below error:
    - Validation failed for the field - End Customer Location
    I have checked metalink to debug this and found nothing, the values i have used to populate the interface table or valid.
    Can someone please post your views on this, on where the problem might be.
    Thanks!

    Hello,
    Try the following
    1) Check if any processing constraints are applied to customer/location
    2) Try to create a new customer and associate internal location.
    Create a new order to reproduce the issue
    Thanks
    -Arif

  • Adding field from Custom Infotype in Screen Header-PA30

    Hi all,
    Can we add the fields from custom infotype to the screen header in PA30? When I tried through Change Screen Modifications, I could not see the custom infotype in the Infotype column, so I could not select the required field.
    Please guide.
    Thanks in advance.

    Hi,
    When you take a drop down from the infotype column, you will see a window with infotypes. By default, it is restricted to 500 entries. To change that, click on the narrow bar under u201Crestrictionsu201D (has a downward arrow) and change the maximum number of hits to 999. You will then get all the infotypes including the custom ones.
    Hope this helps.
    Donnie

  • Adding new fields in Custom Infotype

    Hi,
    I need to change some fields of Custom Infotype. But project is already gone live for 1 country. will making changes to infotype affect for existing live country?
    Safe side....We are thinking Adding new fields in Custom Infotype. & displaying corresponding fields for countries in another tab
    & hiding the old tab.
    Please let me know procedure for  Adding new fields in Custom Infotype for displaying in new tab.
    Edited by: Sachin Thigale on Aug 23, 2010 7:04 PM
    Edited by: Sachin Thigale on Aug 23, 2010 7:05 PM

    Please search. Lot of Threads on this.
    Follow these steps.
    Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the u2018Employee Infotypeu2019 radio button.
    4) Select the u2018PS Structure Infotypeu2019.
    5) Click on Createu2026 A separate table maintenance window appearsu2026
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on u2018Allu2019 push button. It takes a few moments.
    10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
    11) Click on u2018Changeu2019(pencil) button
    12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
    13) Give u2018T591Au2019 as subtype table
    14) Give u2018T591Su2019 as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
    18) Click on u2018Changeu2019 (pencil) button
    19) Click on u2018New Entriesu2019
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirementu2026
    25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
    27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Donu2019t forget to u2018Activate at every level
    i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype
    The above details are from the following link
    Re: How to add fields in custom infotype and update its screens

  • Showing fields of Custom infotype in standard infotype screen

    Hi Experts
      I have created a custom infotype 9xxx. Now when I go to the PA30 maintenance screen for a standard infotype 0795, i should also see the fields from custom infotype 9xxx. Can you please let me know how I can enhance the standard infotype 0795, since SAP does not allow me to change it directly.
    Thanks
    Neo

    Hi,
    I'm gonna be an *ss and ask why you wanna see the fields of your 9xxx - infotype in SAP IT0795.
    If this is for information purposes, I believe this should be incorporated in reporting and not within master data infotypes.
    Wilfred.

  • Module pool program - populating values for columns in Table control

    Hi all,
    In my module pool program Table control i  am having 10 columns fields.
    in one of the column field i have used 'PROCESS ON VALUE-REQUEST'   to get the material no.
    in that F4 search help list is having releated information of the material like material group, company code, description etc.
    user while searching for material  they will use F4 search help and in that list they will select the material .
    From the list I need releated information of the materials like material group, company code, description etc
    to be populated in other columns while selecting the material .( User is not ready to enter all the values for the fileds)
    I appended the releated values for the material in the Table control Internal table in the Process on value-request  Module.
    (after selecting material by the user from F4 search help)
    even then I am not getting the data in the screen.
    kindly help me how to proceed  to get the data in other columns.
    Thanks in advance,
    sharma

    Hi Himanshu Verma ,
    Thanks for fast reply.
    but i tried with field names available in F4  Internal table.
    even then I am not getting.
    T_DYNPFLD_MAPPING-FLDNAME = ' MTART.
    APPEND T_DYNPFLD_MAPPING TO ITAB_DYNPFLD_MAPPING.
    T_DYNPFLD_MAPPING-FLDNAME = 'MBRSH'.
    APPEND T_DYNPFLD_MAPPING TO ITAB_DYNPFLD_MAPPING.
      SELECT
      MATNR
    MTART
    MBRSH
    MATKL
    BISMT
    MEINS
    BSTME
      FROM MARA
      INTO TABLE INT_F4
      up to 5000 rows
      CLEAR INT_F4.
    ****function module to get pop-up window of f4.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'MATNR'
          DYNPPROG        = W_PROGNAME
          DYNPNR          = W_SCR_NUM
          DYNPROFIELD     = 'V_TAB-MATNR'
          VALUE_ORG       = 'S'
        TABLES
          VALUE_TAB       = INT_F4
          RETURN_TAB      = RETURN_VALUES
          DYNPFLD_MAPPING = ITAB_DYNPFLD_MAPPING
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS          = 3.
      IF SY-SUBRC NE 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE .
        V_TAB-matnr = RETURN_VALUES-FIELDVAL.
    endif.
    I have used the above code.  I am not getting the field values available in ITAB_DYNPFLD_MAPPING.
    kindly help me how to get the exact row for the F4 table.
    Thanks in advance.
    sharma

  • Module Pool Text Editor Problem

    Hi
    I have developed module pool program which has 3 tab strips. In the last (3rd) Tab Strip I need to input Long Text. I have the done the coding but when I go to the Last tab and then come back to any other tabs, the text editor is overwriting the other fields in the other tabs. Can any tell how to solve this problem
    This is he code I have written
    ****90000******Screen
    PROCESS BEFORE OUTPUT.
      MODULE status_9000.
      MODULE modify_screen9000.
    module test_me.
      LOOP AT t_operation INTO s_operation WITH CONTROL toperation.
        MODULE move_data.
        MODULE modiy_screentblctrl.
      ENDLOOP.
      CALL SUBSCREEN sub1 INCLUDING sy-repid '9001'.
      CALL SUBSCREEN sub2 INCLUDING sy-repid '9002'.
      CALL SUBSCREEN sub3 INCLUDING sy-repid '9003'.
    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
      CHAIN.
        FIELD zaodheader-heatnum MODULE check_heatnumber.
      ENDCHAIN.
      LOOP AT t_operation.
        MODULE update_itab.
      ENDLOOP.
      MODULE user_command_9000.
      CALL SUBSCREEN sub1.
      CALL SUBSCREEN sub2.
      CALL SUBSCREEN sub3.
    **************9003*****
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9003.
      MODULE display_texteditor.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_9003.
    **************9003*****
    DATA : ccont TYPE REF TO cl_gui_custom_container,
           tedit TYPE REF TO cl_gui_textedit.
    MODULE display_texteditor OUTPUT.
      CREATE OBJECT ccont
      EXPORTING
    parent =
      container_name = 'CC'
    style =
    lifetime = lifetime_default
    repid =
    dynnr =
    no_autodef_progid_dynnr =
      EXCEPTIONS
      cntl_error = 1
      cntl_system_error = 2
      create_error = 3
      lifetime_error = 4
      lifetime_dynpro_dynpro_link = 5
      OTHERS = 6 .
      IF sy-subrc <> 0.
      ENDIF.
      CREATE OBJECT tedit
      EXPORTING
    max_number_chars =
    style = 0
    wordwrap_mode = wordwrap_at_windowborder
    wordwrap_position = -1
    wordwrap_to_linebreak_mode = false
    filedrop_mode = dropfile_event_off
      parent = ccont
    lifetime =
    name =
      EXCEPTIONS
      error_cntl_create = 1
      error_cntl_init = 2
      error_cntl_link = 3
      error_dp_create = 4
      gui_type_not_supported = 5
      OTHERS = 6.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE. " DISPLAY_TEXTEDITOR OUTPUT
    Edited by: kumar1819 on Apr 7, 2010 8:05 AM
    Solved

    Hi kumar,
    **************9003*****
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_9003.
    Case SY-UCOMM.
    When 'TAB2'.
    Call screen 9002.
    **************9003*****
    In 9001 and 9002 screen what code u r writing.
    Regards,
    Raj.

  • Search help Problem for Sales Org

    Hi All ,
      I have created a new 'Z' table and have a table maintenance for that . I need to attach search help for the field VKORG . I have attached C_VKORG in the table itself . But I'm not able to see any values for sales org .
      I checked with the other standard table . It has the same search help but it was giving values there . I'm not able to find what the problem is .
      Can you guys suggest any thing ?
    Thanks ,
    Shounak M.

    Hello,
    What is your release of CRM?
    For the values of sales org, should you not use the search help :CRM_ORGMAN_SALES_ORG?
    Regards,
    Frédéric

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

  • Search help clubbed for 3 fields together

    Hi friends,
    I want to build search help for kunnr, lifnr and hkont in same field.
    Is this possible??
    For eg. if we want, we select customer, or vendor or g/l account.
    Please help if anybody has any idea of the possibility.
    Best regards, Neetu

    Hi
    First you have to ensure that all the values of these fields are in a single field and in a single table
    then for that table you can build a elementary search nhelp
    and can useuse the values for these 3 fields
    in SAP all these fields will not be in single field and in a single table
    you can't build and use the same search help for these fields
    Already I hope there are std search helps for these 3 fields
    see the KNA1,LFA1, and SKA1 tables for these fields
    for customer -DEBI
    Vendor -KRED_C
    GL account - SAKO
    are the std search helps
    Regards
    Anji

Maybe you are looking for