F4 help on standard field

Hello,
I would like to create a F4 help on a standard field without existing help (EKPO-AFNAM) in a standard transaction (ME22N).
An idea ?

Hi,
refer the below sample code to provide our own F4 functionality for the selection-screen field.
REPORT zsample_f4 .
TABLES: mara.
DATA:
     BEGIN OF x_matnr OCCURS 0,
           matnr LIKE mara-matnr,
     END   OF x_matnr.
DATA:
     l_dynprofld      TYPE help_info-dynprofld,
     l_matnr(7) TYPE c VALUE 'P_MATNR',
     l_prog     TYPE sy-repid,
     l_dynnr    TYPE sy-dynnr.
PARAMETERS: p_matnr LIKE mara-matnr.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
   PERFORM f_get_values.
FORM f_get_values.
DATA: i_return LIKE ddshretval OCCURS 0.
   SELECT matnr FROM mara INTO TABLE x_matnr.
  l_prog = sy-repid.
  l_dynnr = sy-dynnr.
  l_dynprofld = l_matnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
    retfield               = 'MATNR'
   dynpprog               = l_prog
   dynpnr                 = l_dynnr
   dynprofield            = l_dynprofld
   value_org              = 'S'
  TABLES
    value_tab              = x_matnr
   return_tab             = i_return.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.                    " F_GET_VALUES
Reward if useful.
Thanks,
Sreeram.
Edited by: Sreeram Prasad on Jan 2, 2008 12:28 PM

Similar Messages

  • F4 HELP for standard field..

    i want to put F4 help for standard field FERTH in mm01 and mm02 ...
    is there any way to put F4 help for this field..

    try this
    1. First go to SE11 and create your own search help( if you dont know how to create a search help please feel free to ask me, it is very easy).
    2. Now in your module pool program program go to the layout of your screen.
    3. Now when you see the attributes of this field in the Dict tab you will find the field Search Help. Now here you can specify the name of the search help you created in SE11.
    There is also another mehtod to create the dynamic search help. eg:- in a posted document data get the Document nos related to that company code.
    The sample code is like this:-
    First of all declare the module below in the flow logic of your screen then create it in your main program.
    You declare the module in the PROCESS ON VALUE-REQUEST.
    PROCESS ON VALUE-REQUEST.
    FIELD TXT_DOCNO MODULE VALUE_BELNR.
    You also need to create an internal table where you wil store results of the select query fired below in the module.
    here you will get a F4 help on the filed Document Number(TXT_DOCNO) based on the field Company code (TXT_CODCO)
    MODULE VALUE_BELNR INPUT.
    progname = sy-repid.
    dynnum = sy-dynnr.
    CLEAR: field_value, dynpro_values.
    field_value-fieldname = 'TXT_CODCO'.
    APPEND field_value TO dynpro_values.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname = 'BKPF'
    fieldname = 'BUKRS'
    dynpprog = progname
    dynpnr = dynnum
    dynprofield = 'TXT_CODCO'.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    dyname = progname
    dynumb = dynnum
    translate_to_upper = 'X'
    TABLES
    dynpfields = dynpro_values.
    READ TABLE dynpro_values INDEX 1 INTO field_value.
    SELECT BUKRS BELNR
    FROM BKPF
    INTO CORRESPONDING FIELDS OF TABLE it_doc1
    WHERE BUKRS = field_value-fieldvalue.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'BELNR'
    dynpprog = progname
    dynpnr = dynnum
    dynprofield = 'TXT_BELNR'
    value_org = 'S'
    TABLES
    value_tab = it_doc1.
    ENDMODULE. " VALUE_BELNR INPUT

  • How to change search help for standard field in me51n.

    hi frnds,
              I want to change search help option for 'Advice code' field under Additional DFPS tab in me51n. But i dont know how to change or add search help for standard field. so plz help..
    best regards,
    sudip biswas

    Hi Abhi,
    Try using any one option:
    Create a Search Help in SE11.
    Now Goto SE11 -> Enter Ztable -> Select that field -> Click Search Help and try to assign the created Search help to that field in your Ztable explicitly
    OR
    Create a Zdata element in SE11.
    In Data Element, under Further Characteristics tab, enter Name  Parameters of Search Help.
    Assign this data element to that field in ur Ztable.
    OR
    Create a Zdomain and maintain a Value Table or Fixed Values for it.
    Assign this domain to that field in ur Ztable.

  • How to add search help for standard field LIKP-TRAID

    Hi friends,
    How to add search help for standard field LIKP-TRAID ,
    refer screen
    Program Name       SAPMV50A  
    Screen Number      2108      
    TrnsIDCode ( LIKP-TRAID ) ..
    I need to add a search help, so that i can retrieve data from Ztable.
    Thanks.
    Abhi

    Hi Abhi,
    Try using any one option:
    Create a Search Help in SE11.
    Now Goto SE11 -> Enter Ztable -> Select that field -> Click Search Help and try to assign the created Search help to that field in your Ztable explicitly
    OR
    Create a Zdata element in SE11.
    In Data Element, under Further Characteristics tab, enter Name  Parameters of Search Help.
    Assign this data element to that field in ur Ztable.
    OR
    Create a Zdomain and maintain a Value Table or Fixed Values for it.
    Assign this domain to that field in ur Ztable.

  • Custom seach help for standard field in Web dynpro application

    Hi All,
    I have a requirement in SRM portal where in I have a to add a custom search help to the 'WBS_ELEMENT' field in the the 'ACCOUNT ASSIGNMENT' tab of the Shopping cart creation screen with some input parameters on the search help.
    As the SRM Shopping cartcreation screen is a standard web dynpro application.
    Can anyone help me in this regard for addition of search help for a field with some custom fields in the Search help screen.
    Any inputs will be very helpful.
    Thanks in advance.
    Regards,
    Ahmed.

    Hi Ahmed,
    If it is an standard application then you will have to do ENHANCEMENT in the component. And for using customised value help you will have to declare attribute in CONTEXT and dynamically change the binding of the Value property of UI element inside post-method of WDDOMODIFY. You can create your own customised value help for newly added attribute.
    Thanks,
    Vishesh

  • Search help for standard field BASEG-ZUONR

    Hi Guys,
    I am working on the standard transaction FB60 for vendor invoice posting.In this transaction item level we have the field Assignment Number BSEG-ZUONR.
    I need to provide the search help for this field.In SAP we don't have search help for this field.
    Please suggest me the best way to provide the search help for this.
    Is it possible to provide the search help through the transaction variant.
    Regards,
    Ramesh

    Hi,
    May be you can refer to the following link
    [Search help enhancement in VA01;
    Regards,
    Mahesh

  • Search Help for standard field

    I need to enhance the existing collective search help provided for a certain standard field(ex.Field XXX).
    However while providing this additional search help, I need to show XXX data along with YYY( this is maintained in some other table but linked to XXX) .Is it possible.

    Hi,
    You can create view and join both tables. Then use this view in search help.
    Krzys

  • Attaching Search Help to Standard Field

    Hi,
       In QAPP table, i want to attach customized Search Help to USERN2 field. So i take access key for that data element but still it's not modifiable mode.
      so can you please tell me how to attach search help to that field.
    Regards,
    Pushkar.

    Hi,
    Goto to the table QAPP, goto the entry help/check tab and in that keep the cursor on the field USERN2 and press the search help button below the tab and you can insert the search help only if you have the access key to changes.
    Reward if useful.
    Thanks,
    Muthu.

  • Adding a search help to standard field

    hi
    My requiremnt is to add a search help to the field Corporate Group(KONZS)  in XD01(customer Master data) table KNA1
    Can anyone suggest how to go about
    Thanks in Advance.

    Hi
    Sorry, but I think that you must see the SAP Note 512840 - Search customer master record with search term 1/2
    Regards
    Eduardo

  • Add search help to standard field in shopping cart

    Hi Experts,
    We are on a SRM 5.0 implementation for classic scenario.
    In the item basic details we have a field tracking number. (BE_TRACKING_NO). We have a requirement to add a search help (drop down with fixed values) to this field. Is this possible to do on a standard way? The fixed values we will need to get from the attributes the user has assigned.
    Regards,
    Tom

    it needs to be done from backend
    you can customise the field to appear from the backend in the portal, and then add a code like  a normal field has to build
    a help
    check ptarQ>customising > additional fields

  • Search Help for standard field in WEB GUI

    Hello Experts
    There are F4 help for Business Partners (street and district that are standard address fields) and it is visible from SAP GUI. However in WEB UI there are no input help (although they are standard) for these fields.
    Is there customizing step for it or do we need to write some codes (get_v, get_p methods) in order to get F4 help.
    Thanks in advance,
    Erkan

    Try creating design layer in SPRO>CRM>UI FRAMEWORK>UI FRAMEWORK DEFINITION>MAINTAIN DESIGN LAYERS
    Enter component for business partner and define new design layer. To this layer assign a field by which you want to search.
    Then go to SPRO>CRM>UI FRAMEWORK>UI FRAMEWORK DEFINITION>CONFIGURE USER INTERFACE. Again enter the same component and go to the relevant context node and then field. Then assign to that field newly created design layer.
    Info about components, context nodes and fields you get by pressing F2 on thous 2 fields in WEB UI.

  • Custom  search help on standard field of PO Item

    Hi all,
    any one know a way to build a custom search help on field EKPO-AFNAM in transaction ME21n,ME22N?
    I'd prefer don't change the standard data element adding the search help. Is there a standard way, like badi or user exit?
    I'm using ECC 6.0
    Regards,
    enzo

    Check all Ewxits
    Transaction Code - ME21N                    Create Purchase Order
    Exit Name           Description
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a GR
    LMELA010            Inbound shipping notification: Transfer item data from IDOC
    LMEQR001            User exit for source determination
    LMEXF001            Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001            Customer-Specific Source Determination in Retail
    M06B0001            Role determination for purchase requisition release
    M06B0002            Changes to comm. structure for purchase requisition release
    M06B0003            Number range and document number
    M06B0004            Number range and document number
    M06B0005            Changes to comm. structure for overall release of requisn.
    M06E0004            Changes to communication structure for release purch. doc.
    M06E0005            Role determination for release of purchasing documents
    ME590001            Grouping of requsitions for PO split in ME59
    MEETA001            Define schedule line type (backlog, immed. req., preview)
    MEFLD004            Determine earliest delivery date f. check w. GR (only PO)
    MELAB001            Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MEVME001            WE default quantity calc. and over/ underdelivery tolerance
    MM06E001            User exits for EDI inbound and outbound purchasing documents
    MM06E003            Number range and document number
    MM06E004            Control import data screens in purchase order
    MM06E005            Customer fields in purchasing document
    MM06E007            Change document for requisitions upon conversion into PO
    MM06E008            Monitoring of contr. target value in case of release orders
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processing
    MMAL0004            ALE purchasing info record distribution: Inbound processing
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    AMPL0001            User subscreen for additional data on AMPL
    No of Exits:         35
    Transaction Code - ME22N                    Change Purchase Order
    Exit Name           Description
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a GR
    LMELA010            Inbound shipping notification: Transfer item data from IDOC
    LMEQR001            User exit for source determination
    LMEXF001            Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001            Customer-Specific Source Determination in Retail
    M06B0001            Role determination for purchase requisition release
    M06B0002            Changes to comm. structure for purchase requisition release
    M06B0003            Number range and document number
    M06B0004            Number range and document number
    M06B0005            Changes to comm. structure for overall release of requisn.
    M06E0004            Changes to communication structure for release purch. doc.
    M06E0005            Role determination for release of purchasing documents
    ME590001            Grouping of requsitions for PO split in ME59
    MEETA001            Define schedule line type (backlog, immed. req., preview)
    MEFLD004            Determine earliest delivery date f. check w. GR (only PO)
    MELAB001            Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MEVME001            WE default quantity calc. and over/ underdelivery tolerance
    MM06E001            User exits for EDI inbound and outbound purchasing documents
    MM06E003            Number range and document number
    MM06E004            Control import data screens in purchase order
    MM06E005            Customer fields in purchasing document
    MM06E007            Change document for requisitions upon conversion into PO
    MM06E008            Monitoring of contr. target value in case of release orders
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processing
    MMAL0004            ALE purchasing info record distribution: Inbound processing
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    AMPL0001            User subscreen for additional data on AMPL
    No of Exits:         35
    Rewards if useful....................
    Minal

  • Re: Search Help for Standard field in a Standard Component

    Dear Experts
    i enhanced  a standard screen with one inputfield and mapped a context attribute(The attribute is also standard one which doesnot have search help) my requirement is to assign a search help to the context attribute so that at runtime the user can click on the search help and the value will be passed to backend for processing.
    i tried it with dynamic programmin but im getting null access error,
    Experts please guide me to set a dynamic search help to the standard context attribute.
    Regards
    Arun.K.P

    Hi Friends,
    I solved the issue this is the solution
    DATA lo_nd_location_data TYPE REF TO if_wd_context_node.
    navigate from <CONTEXT> to <ACCOUNT_DETAIL> via lead selection
    lo_nd_location_data = wd_context->path_get_node( path = `LOCATION_DATA` ).
    lo_nd_location_data = wd_context->get_child_node( name = wd_this->wdctx_location_data ).
      DATA lr_node_info TYPE REF TO if_wd_context_node_info.
      lr_node_info = lo_nd_location_data->get_node_info( ).
      CALL METHOD lr_node_info->set_attribute_value_help
        EXPORTING
          name            = `COMPANY_CODE`
          value_help_mode = lr_node_info->C_VALUE_HELP_MODE-DDIC
          value_help      = 'BBP_LOCATION_VALUE'.
    Best Regards
    Arun.K.P

  • Add search help/drop down list to a standard field in MIR7

    Hi All,
    I have a requirement to add  a search help on one of the strandard field in MIR7. This field has no search help in dictionary (SE11). Do you have any idea on how to do this? Is there any exit that i can use to?
    Please help!
    Thanks in advance.

    Hi Akira,
    Please check the below threads.
    [how to create F4 for the standard transaction]
    [F4 HELP for standard field..;
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/daeda0d7-0701-0010-8caa-edc983384237]
    [Re: Adding a field in standard search help;
    Edited by: Prasath Arivazhagan on Apr 13, 2010 5:38 AM

  • F4 help for a field in module pool

    Hello Experts,
    I need to provide f4 help on field sales office(VKBUR) in my module pool program.
    I have searched forums about it. but all forum contains either doc. no or customers etc.
    these field are directly available on table, so very easy to find.
    But for sales office, how can i provide f4 help. there is no straight entries in tables like for this company code this sales office.
    so its getting difficult for me to provide help.
    so if anybody know the solution plz help, and if anyone know table where all sales offices are stored, i will be thankful.
    Thanks,
    Amar

    Hi amar_war,
    use screen painter to edit the screen layout where the field VKBUR is on. Double click the field to get the details screen. Here you can attach a search help to the field.
    H_TVBUR has no more parameters, it will display a list of al sales offices with description text
    H_TVBVK will also show the sales group, if VKGRP is a screen field, it will restrict the result list automatically on matching VKGRP.
    H_TVKBZ has also VKORG VTWEG SPART - it will take those values from screen if filled.
    If you are not satisfied with the results, you can easily create your own search help using own selection method and own search help exits if required.
    Try standard search help for standard field first.
    You can create a copy of VKBUR as ZVKBUR and attach search help there, you can create your own screen structure and attach the search help there - 50 ways to get your search help...
    Regards,
    Clemens

Maybe you are looking for