Search Help Exfit for Material

Hi,
Scenario:
in the F4 dropdown for material, I have added a new elementary search help which will search a laterial based on material description(makt-maktx)/basic material(mara-wrkst)/size & dimension(mara-groes).
Requirement:
I need to add one more field in my search help "Global Search". In this field whatever has been entered has to be searched in all the tree fields mentioned above. For eg.
If i enter "valve" in my global search field, then 'valve' should be searched in makt-maktx & mara-wrkst & mara-groes and should give me the total result.
Solution Lead:
I created a search help exit and inside that I found out that I have to write my code under:
IF CALLCONTROL-STEP = 'SELECT'.
Now Im not able to figure out how to write the code inside IF CALLCONTROL-STEP = 'SELECT'.
Please help.
Regards,
Shobhit

Hi!
Say you've define input parameter PARAM for your search help. Then you should proceed as follows:
IF callcontrol-step = 'SELECT'.
    DATA:
      param_val TYPE ddshiface-value.
    CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
      EXPORTING
        parameter               = 'PARAM'
      OFF_RESULT              = 0
      LEN_RESULT              = 0
      FIELDNAME               = ' '
     IMPORTING
       value                   = param_val
      TABLES
        shlp_tab                = shlp_tab
        record_tab              = record_tab
      SELOPT_TAB              =
      RESULTS_TAB             =
      CHANGING
        shlp                    = shlp
        callcontrol             = callcontrol
     EXCEPTIONS
       parameter_unknown       = 1
       OTHERS                  = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    DATA:
      it_hitlist TYPE STANDARD TABLE OF z_your_hitlist_structure.
    IF param_val IS INITIAL.
*TODO: fill it_hitlist correspondingly
    ELSE.
*TODO: fill it_hitlist correspondingly too
    ENDIF.
    IF sy-subrc = 0.
      callcontrol-step = 'DISP'.
    ELSE.
      callcontrol-step = 'EXIT'.
    ENDIF.
    CALL FUNCTION 'F4UT_RESULTS_MAP'
    EXPORTING
      SOURCE_STRUCTURE         =
      APPLY_RESTRICTIONS       = ' '
      TABLES
        shlp_tab                 = shlp_tab
        record_tab               = record_tab
        source_tab               = it_hitlist
      CHANGING
        shlp                     = shlp
        callcontrol              = callcontrol
     EXCEPTIONS
       illegal_structure        = 1
       OTHERS                   = 2
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
ENDIF.
Regards,
Maxim.

Similar Messages

  • Issue Search Help Exit for Material Group

    Dear Expertsl,
    I developed a search help exit for material group for the search helps both H_T023 and H_2023_MEPO to restrict certain material groups from the actual display as follows
    1)  I developed custom table to hold the Invalid material groups
    2) Developed search help as same as in the bellow link
    link:[https://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterial+Group]
    3) Before the statement
        SELECT matkl wgbez wgbez60 FROM t023t INTO s_t023t
          WHERE matkl IN t_matkl
    i selected the Invalid materials from the custom table into an internal table
    4)    i am restricting the entries with the following code.
    LOOP AT a_tab.
    only move values that meet the requirements
    after you convert to upper case.
         MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
         TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
            MOVE      a_tab-wgbez        TO a_tab-wgbez_test.
            TRANSLATE a_tab-WGBEZ_test   TO UPPER CASE.
            MOVE      a_tab-wgbez60      TO a_tab-wgbez60_test.
            TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
          IF a_tab-wgbez60_test IN i_wgbez60 AND
             a_tab-wgbez_test   IN i_wgbez   AND   
             a_tab-matkl        IN i_matkl.
            ADD 1 TO findex.
            MOVE a_tab-matkl   TO temp_tab-matkl.
            MOVE a_tab-WGBEZ   TO temp_tab-WGBEZ.   
            MOVE a_tab-wgbez60 TO temp_tab-wgbez60.
            IF findex > callcontrol-maxrecords.
              MOVE 'X' TO callcontrol-maxexceed.
              EXIT.
            ENDIF.
            READ TABLE i_invalid INTO w_invalid
            WITH KEY matkl = a_tab-matkl.
            IF sy-subrc NE 0.
              APPEND temp_tab.
            ENDIF.
            CLEAR temp_tab.
          ENDIF.
        ENDLOOP.
    This is working fine when we press F4 in ME21N Transaction and give some description and then press enter the popup screen.
    But my requirement is user will enter some description in ME21N material group field and press enter ( Not pressing the F4 here) at this moment this is not going through the search help exit and displaying all the entries including the Invalid materials.
    Note: We can delete the Invalid material groups but the documents which are having the invalid material already will have an issue and need to be corrected all the documents. But our requirement is only to use the correct materials  groups from now onwards.
    I would appropriate if any one can helping this regard.
    Thanks in advance.,
    Regards,
    Venkat

    Hi Venkat,
    You can call your ZSEARCH_HELP from the PAI , on the event SY-UCOMM = Enter using the function module F4IF_FIELD_VALUE_REQUEST.
    For example, your screen field is MARA-ZXXXX, screen 0100 and search help :  ZSEARCH_HELP
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname                   = 'MARA'
          fieldname                  = 'ZXXXX'
          searchhelp               = 'ZSEARCH_HELP '
          dynpnr                      = '0100'
          dynprofield                =  'MARA-ZXXXX'
    TABLES
       return_tab                = lt_returntab.
    This F4IF_FIELD_VALUE_REQUEST will call your custom search help exit.
    Regards
    Deepa.

  • Custom search help tab for "Material" in ME21N...

    Experts,
    I have a requirement to create a separate tab in the standard collective search help that is triggered in F4 at the Material field in PO items for ME21N to add an additional search criterion for Materials by Material Group, there by reducing the number of material groups displayed.
    Ex: ME21N -> F4 on Material -> Just like the tab "Material by Mat Group" on the collective search help, there has to be an extra tab for "Materials by non-taxable Material Groups".
    Please advice on how I go about it. Using Exits/BADIs?
    Thanks in advance
    NW

    Hi,
    GO TO SE11. Under Search help radio button enter the standard search help name MAT1.
    From menu clicke on "Append Search Help (F5)" and enter a name ZAMAT1 (Match Code by Material and Material Group)
    Enter field names as follows:
    Srch Help parameter                   Data element     Def.value
    MATNR               MATNR                         
    WERKS               WERKS_D     WRK
    MATNR_B               MATNR                         
    PLNTY               PLNTY                         
    PLNNR               PLNNR                         
    PLNAL               PLNAL                         
    MATNR_HTN          EMATN                         
    VKORG               VKORG                    VKO
    VTWEG               VTWEG          VTW
    Regards,
    Subramanian

  • Search help (PREM) for personal no. is not coming in ALV grid table control

    hi experts,
    Search help (PREM) for personal no. is not coming in ALV grid table control.
    i have assigned the srch help (prem) to my 'ZFIEXP_PROJALLOC' table for the emp_id.
    but in output it is now showing the help.
    ls_fcat-fieldname = 'EMPLOYEE CODE'.
      ls_fcat-ref_table = 'ZFIEXP_PROJALLOC'.
      ls_fcat-ref_field = 'EMP_ID'.
      ls_fcat-outputlen = '10'.
      ls_fcat-key = 'X'.
      ls_fcat-edit = 'X'.
      ls_fcat-coltext = 'EMPLOYEE CODE'.
      ls_fcat-seltext = 'EMPLOYEE CODE'.
      append ls_fcat to pt_fieldcat.
      clear ls_fcat.
    Then i tried to solve it using the PA0002 . ie.,
    ls_fcat-fieldname = 'EMPLOYEE CODE'.
      ls_fcat-ref_table = 'PA0002'.
      ls_fcat-ref_field = 'PERNR'.
      ls_fcat-outputlen = '10'.
      ls_fcat-key = 'X'.
      ls_fcat-edit = 'X'.
      ls_fcat-coltext = 'EMPLOYEE CODE'.
      ls_fcat-seltext = 'EMPLOYEE CODE'.
      append ls_fcat to pt_fieldcat.
      clear ls_fcat.
    with this it is showing the help in employee code, but, when i click on an empl number, it is not added to my table control and allowing me to add the number by typing them.
    plz help me.
    thanks.

    Hi 
    In the layout give layout-sel_mode  = 'A'.  and
    pass  'A'    to  i_save  exporting parameter to method  set_table_for_first_display.
    The same thing if you are working with function module
    reuse_alv_grid_display.
    Reward points for useful answer.
    Venkat

  • Steps for creation of search help exit for a search help

    Hi,
    I have created a search help. I need to create a search help exit for this search help.
    Please let me know how to create a search help exit as well as how to link it to my search help.

    1)Copy the FM F4IF_SHLP_EXIT_EXAMPLE to write your own FM. (check the documentation and coding of FM F4IF_SHLP_EXIT_EXAMPLE).
    2)write your code depending upon the functionality you want.
    3)attach the FM in search help through SE11 in "search help exit" field.
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    For more detailed information please refer to the documentation describing the concept of the search help exit.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.

  • 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

  • Search help Enhancement for the Material Number (MAT1 - Search help name)

    Hi ,
    In my Requirement if the user clicks on the Material Number Search help(eg in ME51N - T.code: Material )
    It will shown a additional Search help along with the existing one.
    That search help would have input parameter fields as Material Number , Material Group , Material description , Plant and storage location.
    The output screen has to display the Available Quantity for the input  material, plant and  storage location.
    The available quantity has to calculated from various Tables like mard , mssq etc.
    My question is how to display the available quantity in the search help screen, i tried with search help exit but not successful.
    I am displaying the remaining fields(except available quantity)  using database view from different tables like Mara , Mard ,Makt.
    where to write the Logic for the Available Quantity to display it in search help.
    Thanks and Regards,
    Prakash K

    Hello,
    if this search help is collective then you could delete standard single (SAP allows maintain collective search help with out object key registration) one and insert custom search help which has the same structure plus additional field.
    best regards,

  • Problem in including search help exit for MM03 transaction.

    Hi,
    i am trying to include search help for MM03 trasaction based on MATKL(material group)  WGBEZ (description) in the form of alv tree display.
    Fuctionality i want to achive is :
    1. after pressing F4 on MM03, it prompts to select material group screen, on pressing F4 on material group, now i am able to get the ALV tree display of all the materials and description based on the selection screen criterion.
    2. now, after selecting one material group from ALV screen, i am able to map the corresponding value on the material group on the previous(intermediate) screen, but after pressing enter on this screen, i need to get the corresponding material to be mapped on the MM03 transaction, which i am unable to get.
    when i press enter, it is again going to ALV tree display only and values arent getting refreshed.
    Please help me in solving this.

    Hi joydeep mazumder  ,
    This is the work of the ABAPer, pls ask them to do it.
    Anyway here is the way ...
    You can use append search help to add a new search help to an existing standard sap search help..
    Pls have a look at this....
    http://help.sap.com/saphelp_nw70/helpdata/en/4c/ab0d79e5ce11d295f900a0c929b3c3/content.htm
    Regards,
    Vvieks

  • Search help exit for CSH_T003 not working in FB60

    Hi. We need to restrict document types per transaction code.
    I know we can use authorisations but it would look nicer to actually restrict the list available, so the user can only choose a valid one, rather than choose any but then be told of authorisation problems.
    I put a user exit on the collective search help CSH_T003 and also on the individual H_T003 and set a break point right at the start of the user exit, but it does not break in transaction FB60.
    Does anyone know if it is possible to use a search help exit in transaction FB60? If it is possible what am I doing wrong?
    Thanks a lot for your help.
    Regards,
    Dave.

    Hi ,
    If you are looking to retrict a specific document type for FB60. You can do so, by customizinng "a/c payable & receivable> Busi Trans > Outgoing invoices/Credit memo>Outgoing invoices/Credit memo enjoy.
    Then in Fb60, go to "editing option" and hide the doc type under "Document type option". This will only work if you want to use a specific doc type for FB60.
    Thanks
    Ron
    Edited by: Ron on Dec 2, 2009 8:45 PM

  • Search Help Exit for ECC 6.0

    Greetings,
    I'm working in ECC 6.0. I'm trying to create a Help screen exit using F4IF_SHLP_EXIT_EXAMPLE as a model. The problem is that it will not compile due to the fact that a 'LIKE'  parameter type is used in the function definition tables tab. This is not allowed in 6.0.
    I've tried several work arounds without success. I have search for a 6.0 version of this function without success.
    Does anyone have a solution?
    rv

    Hi Richard,
    We too are running ECC 6.0 (release 701) and the LIKE definition doesn't cause a problem in our system. Maybe it has to do with a particular support pack level. Anyway, since you have presumably copied F4IF_SHLP_EXIT_EXAMPLE to a custom function module, you can manually change the typing of the Changing parameter. I tried this below and the search help exit executes as expected.
    If this doesn't resolve the issue for you, you may want to repost your question to the ABAP Development community.
    Cheers,
    Amy

  • Search help icon for select option

    hello all...
    can some one let me know , how to attach F4 help icon to select option..??
    in select option im referrin to a data element, this data element has a domain which has value range.
    if i press F4 on the select option, im gettin the values in the search help but the icon is not appearing..
    any suggestions...
    regards..
    vishal

    Hi,
    Select TABLE-FIELD GOTO>Search help>For field.
    If you have Search help you can assign here or else you need to create search help through SE11.
    Or programatically you can code like below.
    See below code........
    selection-screen: begin of block B1 with frame title text-001.
    select-options: s_pernr for zfdmr_records-pernr,
    selection-screen end of block B1.
    data: begin of t_itab occurs 0,
          pernr like zfdmr_records-pernr,
          end of t_itab.
    DATA: t_return like ddshretval occurs 0 with header line.
    *at selection-screen on value-request for s_pernr-low.
    perform get_values changing s_pernr-low.
    *at selection-screen on value-request for s_pernr-high.
    perform get_values changing s_pernr-high.
    *&      Form  get_values
          text
         -->P_S_PERNR_LOW  text
    FORM get_values CHANGING    P_S_PERNR.
      refresh t_itab.
      clear t_return.
      select pernr  from zfdmr_records into table t_itab.
      delete adjacent duplicates from t_itab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = ' '
          RETFIELD               = 'PERNR'
      PVALKEY                = ' '
         DYNPPROG               = sy-cprog
         DYNPNR                 = sy-dynnr
         DYNPROFIELD            = 'ZFDMR_RECORDS-PERNR'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
         VALUE_ORG              = 'S'
         MULTIPLE_CHOICE        = ' '
         DISPLAY                = 'F'
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
        TABLES
          VALUE_TAB              = t_itab
      FIELD_TAB              =
         RETURN_TAB             = t_return
      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 t_return INDEX 1.
      p_s_pernr = t_return-fieldval.
    ENDFORM.                    " get_values
    Thanks.
    If this helps you award points and close the thread.
    Message was edited by: Deepak333 k
    Message was edited by: Deepak333 k

  • Using search help icon for a button

    Hi Experts,
    For a Webdynpro layout I have created a button and I want to assign an icon/image similar to the search help image(two squares type).
    Is there any way to assign the webdynpro search help icon to a button?
    I was searching in ImageSource under Button property but did not find any similar image. Else Is there any option to upload and assign an image to the button?
    Thanks.

    Hi,
    Under properties of button press F4 in image source attribute, you can select standard SAP icons, if not you can upload icon to your web dynpro component and then press F4 and select Component images tab and select your icon.
    For uploading icons to web dynpro abap check this reference: [Displaying Logos in WDA|http://www.****************/Tutorials/WebDynproABAP/Logo/Page1.htm]
    Hope this helps u.,
    Thanks & Regards,
    Kiran.

  • Search Help - logic for getting output.

    Hi,
    I am trying to create search help for Vendor number field. And input selection has a fields from various Vendor related tables ( LFA1,ADRC,LFB1,LFBK,LFBW,LFM1,LFZA).
    If user enters any of the input field values (from the above table selected fields)then need to get corresponding vendor number details  from all of the above tables(selected fields from the above tables).
    can any one let me know  how to compose the logic for this?
    1. I created search help and trying to put the logic in EXIT for the search help to get the values.
    Thanks in advance.
    Rajesh.

    rajesh,
    check tis out,
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm
    http://fuller.mit.edu/tech/search_helps.ppt#260,5,Simple
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm
    http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm

  • Search help(f4)  for function module input

    can we create a serch help for  function module input giving process

    Hello basichodary,
    You can encapsulate the function module within a program.  Include the search help in a parameter statement in the calling program and pass the parameter to the function module.  For example, suppose you want to have field i_carrid to have a search help.  Use the following code. 
    report  call_function_module.
    parameters p_carrid type s_carr_id matchcode object demo_f4_de.
    call function 'FUNCTION_MODULE'
       exporting
          i_carrid    = p_carrid
    Kind Regards,
    Rae Ellen Woytowiez

  • Search Help functionality for Custom Field in CRM 6.0

    Hi,
    We have added custom field  PRODUCT_ID into component BT120H_CPL.  For this field, I need to provide search help in WebUI.  Can you please give some suggestion on the same.
    Regards,
    Ramki.

    Hi Ram,
                     Here is the sample code.
    Outbound plug:
    Global attribute : GR_CITYCODE_F4     Instance Attribute     Private     Type Ref To     IF_BSP_WD_POPUP
    data declaration
      DATA: LT_COL_DEF       TYPE TABLEVIEWCONTROLTAB,
            LS_COL_DEF       TYPE LINE OF TABLEVIEWCONTROLTAB,
            LV_REGION        TYPE REGIO,
            LV_COUNTRY       TYPE LAND1,
            LR_ENTITY_HEADER TYPE REF TO CL_CRM_BOL_ENTITY,
            LR_ENTITY_ADDR   TYPE REF TO CL_CRM_BOL_ENTITY.
      TRY.
          LR_ENTITY_HEADER ?= TYPED_CONTEXT->header->COLLECTION_WRAPPER->GET_CURRENT( ).
        CATCH CX_SY_MOVE_CAST_ERROR.
      ENDTRY.
      CHECK LR_ENTITY_HEADER IS BOUND.
      LR_ENTITY_ADDR ?= LR_ENTITY_HEADER->GET_RELATED_ENTITY( IV_RELATION_NAME = 'BuilStandardAddressRel' ).
        CHECK LR_ENTITY_ADDR IS BOUND.
    getting region and country
      CALL METHOD LR_ENTITY_ADDR->GET_PROPERTY_AS_VALUE
        EXPORTING
          IV_ATTR_NAME = 'REGION'
        IMPORTING
          EV_RESULT    = LV_REGION.
      CALL METHOD LR_ENTITY_ADDR->GET_PROPERTY_AS_VALUE
        EXPORTING
          IV_ATTR_NAME = 'COUNTRY'
        IMPORTING
          EV_RESULT    = LV_COUNTRY.
    appending citycode and description to internal table
      LS_COL_DEF-COLUMNNAME = 'ZZCITYCODE'.
      LS_COL_DEF-TITLE      = 'City Code'.
      APPEND LS_COL_DEF TO LT_COL_DEF.
      LS_COL_DEF-COLUMNNAME = 'TEXT'.
      LS_COL_DEF-TITLE      = 'Description'.
      APPEND LS_COL_DEF TO LT_COL_DEF.
      CLEAR: GT_CITYCODE[].
    fill the internal table  GT_CITYCODE whcih must appear in popup.
      FREE GR_CITYCODE_F4.
      GR_CITYCODE_F4 = COMP_CONTROLLER->WINDOW_MANAGER->CREATE_DECISION_POPUP( IV_TITLE             = 'City Code'
                                                                               IV_DESCRIPTION       = 'City Code'
                                                                               IV_VISIBLE_ROW_COUNT = 10
                                                                               IV_DISPLAY_TABLE     = GT_CITYCODE
                                                                               IV_VISIBLE_COLUMNS   = LT_COL_DEF ).
      GR_CITYCODE_F4->SET_ON_CLOSE_EVENT( IV_EVENT_NAME = 'CITYCODE_F4_SELECTED'
                                          IV_VIEW       = ME  ).
      GR_CITYCODE_F4->OPEN( ).
    on close event ****************************************************************
    where you can set the value of the  field *********************************
    METHOD EH_ONCITYCODE_F4_SELECTED.
    Added by wizard: Handler for event 'CITYCODE_F4_SELECTED'
    data declaration
      DATA: LR_OUTPUTNODE  TYPE REF TO CL_BSPWDCMP_BSPWDCOMPONEN_CN01,
            LR_ENTITY      TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS,
            LR_HEADER      TYPE REF TO ZL_BP_HEAD_ACCOUNTDETAILS_CN00,
            LV_ROW_INDEX   TYPE STRING,
            LV_EVENT_NAME  TYPE STRING,
            LV_VALUE       TYPE STRING,
            LS_CITYCODE    TYPE ZTB0000A31PL2T .
      LR_OUTPUTNODE ?= GR_CITYCODE_F4->GET_CONTEXT_NODE( 'OUTPUTNODE' ).
      LV_ROW_INDEX = LR_OUTPUTNODE->GET_SELECTEDROWINDEX( ).
      LV_EVENT_NAME = LR_OUTPUTNODE->GET_EVENT_NAME( ).
      GR_CITYCODE_F4->CLOSE( ).
      IF LV_EVENT_NAME = 'OK'.
        LR_ENTITY ?= ME->TYPED_CONTEXT->HEADER->COLLECTION_WRAPPER->GET_CURRENT( ).
        READ TABLE GT_CITYCODE INTO LS_CITYCODE INDEX LV_ROW_INDEX.
        LR_HEADER ?= ME->TYPED_CONTEXT->HEADER.
        LR_HEADER->GS_CITYCODE_F4 = LS_CITYCODE.
        LV_VALUE = LS_CITYCODE-ZZCITYCODE.
      setting city code
        LR_ENTITY->SET_PROPERTY_AS_STRING( IV_ATTR_NAME = 'ZZCITYCODE'
                                           IV_VALUE     = LV_VALUE ).
      ENDIF.
    ENDMETHOD.
    Hope this helps.
    Regards,
    Ruby.

Maybe you are looking for

  • Response from Verizon about lack of Lumia device support

    I am wanting to know what the exact problem is with issuing Lumia updates from this carrier. As of today in the United States the only carrier that has to issue an update to Cyan for Lumia devices is Verizon. We have the Denim update coming to Lumia

  • HD TV Resolution - Help Please!

    I just purchased a 32" Samsung LCD TV as a secondary monitor for my new MacBook Pro (running Leopard 10.5.2). I purchased an HDMI cable to run from my computer to the TV, however when running the resolution on the TV at 1920x1080 images look great bu

  • How can I send a large pdf file (42MB) attachments by icloud ??

    How can I send a large pdf file (42MB) attachment by email in Icloud ???

  • Firewire Drives & mirroring

    I use Lacie drives, both 400 & 800 at our office for backups and storage, but I will be using this for audio/video editing at home on my personal system. I am leaning towards buying (2) 1 TB drives. On one of Callbox's DVDs and they recommended using

  • 10.1.2. to 10.1.3 Human workflow task migration issue

    Hi all, I am currently looking at the possibility to migrate our 10.1.2 bpel processes, containing human workflow task, to 10.1.3.1.0 Everything seems to migrate smoothly except the human workflow functionality. The initateTask invoke action returns