CRM_BSP_FRAME search help problem

Dear firends 
  I m having a problem with populating the search help for the Product profile wich has appliation CRMM_BSP_ACCOUNT_FS, I have created a search help with user exit Z_BP_GET_ADDRESS_EXIT, here i am accessing the address numbers, I have usesd this exit in Transaction EEWB ZBP_Product_Profile..under the (TASK) CRM_BUPA_PCUITD for the portal,, where this search work in SAP GUI...(i have attached this fumction module for BP transaction also) correctly and have no trouble. where it is not working in portal.. please tell me the what could be the problem is i ll be really thankful to you...
I m giving you the search help code also...
FUNCTION Z_BP_GET_ADDRESS_EXIT.
""Local Interface:
*"  TABLES
*"      SHLP_TAB TYPE  SHLP_DESCT
*"      RECORD_TAB STRUCTURE  SEAHLPRES
*"  CHANGING
*"     VALUE(SHLP) TYPE  SHLP_DESCR
*"     VALUE(CALLCONTROL) TYPE  DDSHF4CTRL
  IF CALLCONTROL-STEP = 'SELECT'.
    DATA: PARA TYPE tpara-paramid VALUE 'BPA',
          PARTNER TYPE BU_PARTNER,
          ADDRESS TYPE BU_ADDSC,
          T_ADD_NO TYPE STANDARD TABLE OF BAPIBUS1006_ADDRESSES_INT,
          LINE TYPE SEAHLPRES,
          ADD_NO_LINE TYPE BAPIBUS1006_ADDRESSES_INT.
   GET PARAMETER ID PARA FIELD PARTNER.
MOVE '0000000061' TO PARTNER.
    DATA: ES_BUT000     TYPE     BUS000___I,
ES_BUT000_OLD     TYPE     BUS000___I,
ET_partner TYPE TABLE OF BAPIBUS1006_KEY.
    CALL FUNCTION 'BUPA_ADDRESSES_GET'
     EXPORTING
       IV_PARTNER                     = PARTNER
  IV_PARTNER_GUID                =
  IV_ADDRESS_TYPE                =
  IV_OPERATION                   =
  IV_VALID_DATE                  = SY-DATLO
IMPORTING
  EV_STANDARD_ADDRNUMBER         =
  EV_STANDARD_ADDRGUID           =
  EV_STANDARD_USED_INSTEAD       =
     TABLES
       ET_ADDRESSES                   = T_ADD_NO
  ET_ADDRESSES_ALL               =
  ET_RETURN                      =
    LOOP AT T_ADD_NO INTO ADD_NO_LINE.
      CALL FUNCTION 'BUA_ADDRESS_DESCRIPTION_GET'
       EXPORTING
          I_PARTNER                        = PARTNER
    I_PARTNERGUID                    =
    I_OPERATION                      =
          I_ADDRNUMBER                     = ADD_NO_LINE-ADDRNUMBER
    I_ADDRGUID                       =
    I_BUT000                         =
    I_XMEMORY                        = ' '
    I_XWA                            = ' '
    I_VALDT                          = '00000000'
    I_VALDT_SEL                      = '00000000'
    I_VALDT_SEL_NAMES                = SY-DATLO
       IMPORTING
    E_DESCRIPTION                    =
          E_DESCRIPTION_STREET             = ADDRESS
    E_XSTANDARD                      =
    E_XFIX                           =
    E_DESCRIPTION_LONG               =
    E_ADDRNUMBER                     =
    E_DESCRIP_STREET_WITH_NAME       =
  EXCEPTIONS
    NO_ADDRESS_FOUND                 = 1
    WRONG_PARAMETERS                 = 2
    INTERNAL_ERROR                   = 3
    DATE_INVALID                     = 4
    OTHERS                           = 5
      IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CONCATENATE ADD_NO_LINE-ADDRNUMBER ADDRESS INTO LINE-STRING.
      INSERT LINE INTO TABLE RECORD_TAB.
    ENDLOOP.
    CALLCONTROL-STEP = 'DISP'.
  ENDIF.
ENDFUNCTION.
thanking you..
regards,
Naim
Message was edited by: Naim Khan S Babi

Hi,
I think you may use F4 Help feature on the PC-UI.
1. Inherit model access class where the field is defined.(field type must be "Input field" and F4 Application "VALUE_TABLE"). Update blueprint tables.
2. Redefine FILL_DROPDOWN_LISTBOX method.
3. Insert your logic to fill CT_DROPDOWNLB_DATA parameter as required.
Code sample
METHOD if_crm_bsp_model_access_il~fill_dropdown_listbox.
  TYPES:
    BEGIN OF t_listbox_data,
      key   TYPE AD_ADDRNUM,
      value TYPE AD_STREET,
    END OF t_listbox_data.
  DATA:
    lw_data TYPE REF TO data,
    lw_listbox_data TYPE t_listbox_data,
    li_data TYPE REF TO data,
    li_listbox_data TYPE TABLE OF t_listbox_data,
    li_listbox_data_temp TYPE TABLE OF t_listbox_data.
  FIELD-SYMBOLS:
    <fi_listbox_data> TYPE table,
    <fw_listbox_data> TYPE t_listbox_data,
    <fw_ddlb> TYPE crmt_dropdownlistbox_data.
* HERE FILL li_listbox_data WITH YOUR LOGIC)
* Looping over all dropdown list values
  LOOP AT ct_dropdownlb_data ASSIGNING <fw_ddlb>.
*   When the custom field is processed
    IF <fw_ddlb>-fieldname EQ 'YOUR_FIELD'.
*     Creating the objects.
      CREATE DATA li_data TYPE TABLE OF t_listbox_data.
      CREATE DATA lw_data TYPE          t_listbox_data.
*     Assigning field symbols.
      ASSIGN li_data->* TO <fi_listbox_data>.
      ASSIGN lw_data->* TO <fw_listbox_data>.
*     Copying the retrieved lines.
      <fi_listbox_data>[] = li_listbox_data[].
*     Name of the key column
      <fw_ddlb>-keycolumnname   = 'KEY'.
*     Name of the value column
      <fw_ddlb>-valuecolumnname = 'VALUE'.
*     Moving the data to the table
      MOVE li_data TO <fw_ddlb>-data.
    ENDIF.
  ENDLOOP.
ENDMETHOD.
Hope it helps,
David

Similar Messages

  • Search Help Problem - Passing parameter between to search helps.

    I created following 2 table for entering data in PO screen using ME21N using Custom Data Tab.
    ZSTATE_TAB - State table  (has elementary search help ZSTATE_SH - Value of SCODE is exported)
    SCode(Key)     Description
    S001           New York
    S002          Virginia
    S003          West Virginia
    ZCITY_TAB - City Table  (has elementary search help     ZCITY_SH - Value of SCODE is imported)
    SCode(Key)     CCode (Key)     Description          Level
    S001          C001          New York City          L001
    S001          C002          Rochester          L002
    S001          C003          Buffalo               L003     
    S002          C004          Richmond          L029     
    S002          C005          Fairfax               L030
    I have created an custom input field LEVEL in t-code ME21N in Customer Data Tab.
    I want to create search help for LEVEL using import parameter STATE & CITY .
    On selection screen of search help two selection parameters STATE and CITY are displayed. 
    Step 1:User press F4 for getting list of state and selects any state using search help ZSTATE_SH (Value of SCODE is exported)
    Step 2:User press F4 to get the list of City using search help ZCITY_SH, based on state selected in Step 1.  (Value of SCODE is imported)
    In Step 2, I want to see only the cities selected in Step 1. But instead all Cities are displayed in hit list.
    I also created a table maintenance program SM30 for ZCITY_TAB, the search help ZCITY_SH is correctly displaying the data in hit list according to the State selected in ZSTATE_SH.
    But it is not displaying the correct list for cites in ME21N.
    Kindly help me in fixing this problem.
    Thanks in advance.

    here is the answer from [sap library - Value Transport for Input Helps - Parametrizing the Import Parameters of the Search Help|http://help.sap.com/saphelp_nw2004s/helpdata/en/35/bdb6e2c48411d1950800a0c929b3c3/frameset.htm] :
    If the search help is attached to the table field ( Attaching to Table Fields) or to the check table of the field ( Attaching to Tables), a value transport can take place for all the screen fields that are linked with a parameter of the search help.

  • In condition records section Search help problem at one data type

    hi there,
    we are upgrading 4.6c version to ecc 6.0 past january. but in
    vk11/vk12/vk13 condition master records sections, we have a problem for
    one data type search help. when we want to join sales deal code to sales
    detarmination condition, at one tables rows type price list (data type =
    pltyp_d) does not allow f4 (search help).
    thanks your interesting.
    Sinan Alt&#305;ner
    Betek Boya ve Kimya Sanayi A.&#350;.
    SAP CONSULTANT / ABAP Developer

    Hi surya,
    I per your suggestion i did like this ,
    data : date1 like sy-datum.
    types : w_date1 type sy-datum.
    date1 = w_date1(ztable-date1). "ztable-date1 - is screen field.
    but it is giving error "The field "W_DATE1" is unknown, but there is a field with the similar name "DATE1" . . . ."
    actually that value is coming after triggering PBO event but i want that value in at time of calling F4 help at that screen filed
    suppose on screen the fields like
    date : 30.08.2008.
    matnr : ( .............F4 )  '".....on this field when i m pressing F4 that time only that above date materials should come as per my first query see my first thread.
    thanks,
    Sanket.

  • Search help problems

    Hi All,
    we are facing problems with search helps. The search help doesnt work when ever there is an error in the UI.
    If there is an error in the application window and the user press F4, the error is coming up on the search help window also. Now any value selected in the personal value list is working fine. But if we go to More Values to provide filter criterion, the search help window hungs up. It wont respond at all.
    Any one knows how to resolve the issue. Please let me know.
    Thanks,
    Anand

    Maybe thats a SAP standard error.
    Have you looked at OSS / notes search page?
    Regards, Matthias

  • Search help - problem

    Hi All,
    i have created a search help with input parameters. i have  a material number as a input field and other parameters as well and MARA is the selection table. When i enter material no, say XX_XXXXX*  in the  input field, i expect to get all the materials in that pattern in the hitlist. Problem is matnr stored in other format in MARA say XXXXXXXXXX. So its returning null entries..
    how to handle this problem
    Regards
    Shekhar

    Hi Shekar..
    this is sample code just copy and execute. it to set your desired result..i think it will set you requirement.
    SAMPLE CODE:
    REPORT  ZGSHELP                       .
    tables: vbak,vbap,likp,lips.
    parameters: p_vbeln like vbak-vbeln.
    at selection-screen on p_vbeln.
    ranges: gr_vbeln for vbak-vbeln.
    data: begin of gt_vbeln occurs 0,
            vbeln  like vbak-vbeln,
          end of gt_vbeln.
    data: gv_repid   type  sy-repid,
          gv_dynnr   type  sy-dynnr.
      gr_vbeln-sign = 'I'.
      gr_vbeln-option = 'CP'.
      gr_vbeln-low   = p_vbeln.
      append gr_vbeln.
      select vbeln
        from vbak
        into table gt_vbeln
      where vbeln in gr_vbeln."5000000355
       where vbeln like '50000005'.
       if sy-subrc eq 0.
       call function 'F4IF_INT_TABLE_VALUE_REQUEST'
         exporting
           retfield               = 'VBELN'
          DYNPPROG               = gv_repid
          DYNPNR                 = gv_dynnr
          DYNPROFIELD            = 'P_VBELN'
         tables
           value_tab              = gt_vbeln.
       endif.
    UR's
    GSANA

  • Process On Value Request with Search Help Problem

    I have a screen with a field that has a custom search help attached to it.  I am using Process On Value-Request which ultimately uses function module F4IF_FIELD_VALUE_REQUEST to return the selected value from the search help. The value is then moved to the screen field.
    THE PROBLEM: If I enter a value in a field on the screen, then use the search help from a different field the first value I entered gets cleared. Here is a code sample. Any suggestions as to why this is happening?
    NOTE: The values that get cleared are fields on the screen that I do not reference at all in user_command_2501.
    *****SCREEN 2500 FLOW LOGIC*********
    PROCESS BEFORE OUTPUT.
      MODULE status_2500.
    PROCESS AFTER INPUT.
      MODULE user_command_2500.
    PROCESS ON VALUE-REQUEST.
      FIELD makt-matnr MODULE user_command_2501.
    MODULE user_command_2501 INPUT.
      ok_code = sy-ucomm.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                searchhelp      = 'ZWS_ASSETMATR'
                fieldname       = ' '
                tabname         = ' '
           TABLES
                return_tab      = search_itab
           EXCEPTIONS
                no_values_found = 1.
      MOVE search_itab-fieldval TO: makt-matnr.
      REFRESH search_itab.
      SELECT SINGLE maktg FROM makt INTO crea_description
        WHERE matnr = search_itab-fieldval.
      MOVE 'I' TO scrn_attr_sw.
      sy-ucomm = 'ENTER'.
      LEAVE SCREEN.
      CALL SCREEN 2500.
    ENDMODULE.                 " user_command_2501  INPUT
    Message was edited by: Jason DeLuca
    Message was edited by: Jason DeLuca

    Hi Jason
    It seems you should first revise your code since your POV is not implemented so good.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • 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

  • Saving Search Help - Problem assigning package

    Hi,
    I have developed a ALV report, Where I have used only one 'Z' table. I want to create search help for a particular input field  in the selection screen.
    I tried to create search help in se11.
    After giving all the required information, I am not able to save it under any package at all.
    It gives an information saying, Search help cannot be assigned under this package.
    I have tried it under many packages and also tried to save it as a local object, But no go.
    How can I save and activate this ?
    Please help !
    Thanks in advance
    Edited by: Matt on Sep 5, 2011 6:40 AM

    Hi
    I think you created search help name not starting with Y or Z, but with SAP reserved names. Because of this you are not able to save by assigning a package and TR.
    Please change the same to starting with Y or Z.
    Custom Search Help
    Shiva

  • Search Help problem in IT0033 (Statistics) in ECC 6

    Hi All,
    Iu2019m facing an error when trying to update the Statistics in HR Master Data.
    I enter the Personnel no. and Infotype 33 (Statistics) and press Display button. It takes you to Display Statistics Screen.
    The error occurs when I hit the dropdown button of the second line of Statistical Exceptions.
    Letu2019s say that I have two Statistics (01 and 02) and the Statistical exceptions for each one.
    When I hit the dropdown button to see the Statistical exceptionsu2019 list for the Statistics 01, the Search Help brings only the Statistical exception related to this Statistics (01). But, when I do the same thing for Statistics 02, the Search Help brings me all the Statistical exceptions, not only values related to Statistic 02.
    Debugging the program I could see that for each dropdown the debug starts in a different point of the program.
    Someone please could help me?
    Thanks.

    Hi Muralidaran,
    make sure that you have the right kernel for your service pack. SAP notes 919184 and 902694 tell you the required kernel patch level for SP 15 and SP 16.
    Best regards,
    Klaus

  • Search help problem in ALV output for field TD24A-DISMM

    Hi Abap-Experts,
          I have one issue regarding simple ALV report.
          I need to display search-help for field DISMM.  I have used below code in ALV fieldcatalog.
          ts_fieldcat - tabname = 'TD24A'.
          ts_fieldcat - tabname = 'DISMM'.
          I have attached search-help for fields such as MATNR and WERKS too.
          The search-helps are getting displayed for MATNR as well as WERKS.
          But, the search-help is not gettting displayed for field DISMM(RP-TYPE) .
             The output displayed is done using Simple ALV.     
            Could anyone please help me and correct my code or logic i have used.

    Hi,
      I have changed code a bit...and used T438A table.
      CLEAR ts_fieldcat.
      ts_fieldcat-col_pos = '5'.
      ts_fieldcat-fieldname = 'DISMM'.
      ts_fieldcat-seltext_l = text-014.
      ts_fieldcat-outputlen =  2.
      ts_fieldcat-reptext_ddic  = ''.
      ts_fieldcat-ref_tabname   = 'T438A'.
      ts_fieldcat-ref_fieldname = 'DISMM'.
    ts_fieldcat-ddic_outputlen = '2'.
      ts_fieldcat-input         = 'X'.
      APPEND ts_fieldcat TO gt_fieldcat.
    still it is not showing me the F4 help in simplae ALV output..
    kindly help me

  • Standard search help problem with merchandise category

    Hi,
    I am not sure if i am posting into the right forum. Any hints would help.
    The transaction RWBE is run on ECC6 and a search help is triggered for merchandise category (first field).
    A second screen appears to enter the range..I just press enter and it gives me a range of value to select from.
    It works fine.
    But the same transaction is called in our Portal and the search help goes for a short dump when pressing enter from the second screen.
    I debugged both ECC and portal for this transaction and found that the function module TABCONTROL_RETRIEVE_SEL_OPTS is returning different values that is causing the short dump in portal.
    The value of the parameter for select_options is returned as
    SHLPNAME                       SHLPFIELD                      SIGN OPTION
      HUGO                          |1801                          |I   |IQ     | 
      HUGO                          |1803                          |I   |IQ     |
    if you see the option is returned as IQ and hence causing the short dump.
    I am not able to find out how this value is returned. Because if you see inside the above function module, another function module DP_GET_TABLE returns the above value. But when i debug it, i am directed to DDIF_FIELDINFO_GET fm and hence not able to understand how the above values are retrieved.
    Any help would be rewarded.

    Try using shlp instead of table shlp_tab

  • KOST : Search Help Problem

    Hello All,
    we are doing ECC6 Upgrade, due to return to standard, custom elemetary search helps are missing in standard collective search help KOST.
    I have added two custom elementary search helps to standard collective search help KOST.
    now the issue is, selected possible values are displayed and then after choose any value it's not returned to screen field.(this issue is only with custom search help added but other standard search help are working fine)
    i checked all, even import and export are selected correctly in my custom elementary search help.
    Only the difference is search help exit available in ECC6 for KOST but not in 4.7.
    Kindly let me know suggestion on this issue.
    Thanks,
    Munvar Basha.

    Hi Max,
    Thanks for your answer.
    They are executing the search entering selection criteria. In this case they should not tget their personal list.
    I already tried and created my own personal list, and I was able to execute the search properly.
    Br.
    Csaba

  • Search help  for Uploading Point in shopping cart

    Hi all,
    My search help for uploading point in SC, which is created in DDIC, is not visiable in SC on html.
    Could someone tell me how to make F4 visiable on html?
    Thank you the most.
    Regards,
    Danijela

    Hi,
    I think there is a single template for F4 help on SRM for all standards Search Helps.
    Danijela,
    Concerning your Search Help problem, first try to launch the SC transaction in SAPGUI, in order to check that the SE works fine.
    If you have a external ITS, you are also able to launch the transaction from ITS in debug mode.
    The problem may come from the Search Help template, and the ITS functions, but I don't have a system here, so....
    Regards.
    Vadim

  • Search Help Parameter Default - Problems with VKO and VTW in Sales Order

    Hello,
    we've implementend an own serchhelp for the material-search.
    The fields VKORG and VTWEG have the default VKO and VTW.
    If I open this searchhelp in VA03 those values are not filled, if I open it in MM03 or ME23N those values are filled.
    My user has the VKO and VTW-parameters set.
    We have no custom "preselect-code" implemented.
    If I change the values to VKU and VTW the output is the same (works in MM03 / ME23N but not in VA03) (copied default values from MAT1S search help, didn't change my user parameters!)
    What could be the problem?

    Our searchelp was in our own append ZA_SD_MAT1.
    Solution:
    We deleted this append and added our search-helps to SD_MAT1 and now everythings works in mm03, me23n and va03.

  • Problem in assigning value from search help

    Hi experts,
              I have created an elementary search help for the custom field (Say for example YFIELD1) via SE11. Selection method's field name is YFIELD2 with same type as YFIELD1.  
    But when I press F4 on YFIELD1, I could see the values list but when i selected any value, it is not getting assigned to my field.
    What my doubt is whether YFIELD1 and YFIELD2 should have same name?
    Please help me to solve this issue.
    Thanks,
    Peri

    Dear Peri,
    Greetings.
    there should not be any problem if your field names are different.
    While creating elementry search help.... make sure that U check both import (IMP) and export (EXP) parameters and activate the search help once again.
    If Ur EXP parameter is unchecked then U will be able to see the list of entries but  it won't get into the field while creating entries in the main table.
    Hope this helps.
    Sathya

Maybe you are looking for

  • Lightroom 4.3 Will not install on Win 7 64 bit (As previously with 4.2, 4.1 etc!!)

    I am unable to install the 4.3 update. The installer runs, extracts ("Extracting: Adobe_Lightroom_64.msi...") and then when the bar is complete the popup closes and nothing else happens. I can't beleive Adobe PERSISTS in sending out this BROKEN insta

  • Upgrading from OSX 10.1.5... no idea what i'm doing... please help?

    First of all, hello! This is my first post on these boards. So here's the deal: I'm lazy. Terribly lazy. And I haven't updated my OS since buying this computer four years ago. So now I'm in a pickle... I'd LIKE to upgrade, but I haven't a clue how to

  • Permission change timestamp

    how set permission for other user to change timestamp of file owned by me? I can set write permission via 'chmod 664 file' for any user in the same group.  Then these user can write to the file.  but they are not permitted to issue a 'touch file' com

  • Is there a 'how-to' anywhere about upgrading the hard drive?

    Hi Guys, I'd quite like to upgrade the hard drive in my 24 inch 3.06GHz iMac to 2TB. Is there a step-by-step 'how to' available anywhere or has anyone done it successfully? I've done laptops on many occasions but the iMac has a difficult looking case

  • Safari has been deleted

    Now, first of all I want to make it perfectly clear that I didn't do this. My friend did this. She deleted Safari. Yes, it's completely deleted. What do we do to get Safari back on her macbook pro? It's a little too big to send as an email attachment