About Running Remote Search Helps in SRM via Webdynpro ABAP

Hi there,
I am having troubles trying to implement an input help for a custom field in the standard Shopping Cart Portal page for item level.
I would like to implement the same input help used in field Network of Activities, but as I can see in WDA component '/SAPSRM/WDC_UI_DO_ACC', it seems to use another component in order to run a remote Search Help (I assume it is an original search help from PS system).
Does anybody know how to use this backend search help WDA Component? (/SAPSRM/WDC_UI_BACKEND_SH)
I haven´t found any information regarding that :S.
Another option would be to create a new RFC FM in PS returning the expected values, and use these entries to build a list value selector associated to the corresponding context attribute (This is not what I would like...)
Thanks in advance!

Vicente Ángel Lopez Romero wrote:
> Hi there,
>
> I am having troubles trying to implement an input help for a custom field in the standard Shopping Cart Portal page for item level.
>
> I would like to implement the same input help used in field Network of Activities, but as I can see in WDA component '/SAPSRM/WDC_UI_DO_ACC', it seems to use another component in order to run a remote Search Help (I assume it is an original search help from PS system).
>
> Does anybody know how to use this backend search help WDA Component? (/SAPSRM/WDC_UI_BACKEND_SH)
>
> I haven´t found any information regarding that :S.
>
>
> Another option would be to create a new RFC FM in PS returning the expected values, and use these entries to build a list value selector associated to the corresponding context attribute (This is not what I would like...)
>
> Thanks in advance!
Figured it out.
/SAPSRM/WDC_UI_BACKEND_SH is a 'freely programmed' search help used in SRM.
1. Add this helpview (HV) component usage to your component controller, and view controller.
2. Map HV SELECTION context to your view
3. Modify the context attribute you want backend searchhelp to 'freely programmed', and select the component usage created in step above (note this is done dynamically in SAP code, b/c attribute is defined as dictionary search help in SAP components) -- this took a bit to figure out.
4. IMPORTANT: Give your context attributes the SAME NAME (COST_CTR in my case) as those in structure /SAPSRM/S_CH_WD_MAP_ACC (how obvious was that)
5. IMPORTANT: Set your LOGSYS in /SAPSRM/CL_PDO_VALHELP_FACTORY class - love those those factories (tic)
DATA: lo_helper TYPE REF TO /SAPSRM/IF_PDO_ACCT_ASSGT_HLPR,
CALL METHOD /SAPSRM/CL_PDO_VALHELP_FACTORY=>GET_ACCT_ASSGT_HELPER
RECEIVING
RO_ACC_ASSGT_HELPER = lo_helper.
CALL METHOD lo_helper->set_searchhelp_control
EXPORTING
iv_logsys = ls_logsys-logsys.
6. Now handle event DATA_SELECTED to get data from SELECTION, and move to your Context field.
How simple was that? Yikes. I should have just built a custom dictionary search help to RFC over and call the BAPI for Cost Center List.
- Tim

Similar Messages

  • Restricting vendors in search help in srm portal

    Hi,
    I need to restrict certain vendors in search help in srm portal while creating shopping cart.
    These vendors should not be visible to the users for selection.
    I tried in the BBP_F4IF_SHLP_EXIT_VENDOR_EXP of the search help BBP_BUPA_VENDOR, but its not working.
    Thanks in advance.
    Aravind

    Hi,
       1) Use tcode BP and enter the vendor number and in the last tab (control). Select central block.
       2)  Use program BUPA_TEST_DELETE for the vendors.

  • How can I replace a standard search help in SRM 7.0 as enhancement?

    Hi experts.
    In SRM 7.0, Shopping Cart, Account tab - when using search help for the Cost Center field, a search help 'KOST' is called in the backend system.
    I need to replace this functionality with a call to a local search help.
    Being newbie in WebDynpro, I expected to be able to make this change in the Context field, search help attribute as an enhancement, but that was not possible.
    Thanks in advance!
    Per

    Hi again.
    I tried the proposed solution with no luck.
    The problem is, that the standard program is dynamically accessing the attributes of the field I deleted and then I got a short-dump
    The solution was however quite simple, when I first had the idea.
    If SAP can access a screen field dynamically adding a search help, then I probably could do the same.
    So I created a enhancement post exit in view method "WDDOMODIFYVIEW" with this code:
    DATA lo_nd_account_detail TYPE REF TO if_wd_context_node.
    * navigate from <CONTEXT> to <ACCOUNT_DETAIL> via lead selection
      lo_nd_account_detail = wd_context->path_get_node( path = `COMP_CONTEXT.ACCOUNT_DETAIL` ).
      DATA lr_node_info TYPE REF TO if_wd_context_node_info.
      lr_node_info = lo_nd_account_detail->get_node_info( ).
      CALL METHOD lr_node_info->set_attribute_value_help
        EXPORTING
          name            = `COST_CTR`
          value_help_mode = lr_node_info->C_VALUE_HELP_MODE-DDIC
          value_help      = 'BBP_COSTCENT_VALUE'
      CALL METHOD lr_node_info->set_attribute_value_help
        EXPORTING
          name            = `G_L_ACCT`
          value_help_mode = lr_node_info->C_VALUE_HELP_MODE-DDIC
          value_help      = 'Z_GL_ACCOUNT'
    The above code sets the search help for two fields in the Context.
    Hope this helps someone out there!
    Best regards
    Per

  • Collective search help in SRM 7.0

    Hello all,
    Does any body has an idea why the custom elementary search helps wont get displayed in SRM7.0 When we add for a collective search help.
    For ex.. BBP_BUPA* SOURCE_OF SUPPLY is the standard collective search help where we added custom search helps to it,
    While upgrading we try to implement the same in 7.0 also, But theya re not at all visible in the  Drop down of Preferred supplier.
    I tried to check web dynpro componenet  WDR_F4_COLLECTIVE method   in debug mode  but was unable to trace it out,
    Can any body help me how can i include them to standard collective search helps  in web dynpro.
    Thanks and Regards
    geetha

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • Calling search help in SRM system

    Hello all!
    I have a problem with using the functional module ‘F4IF_FIELD_VALUE_REQUEST’ in SRM system. I need to call search help by this function module and retrieve output parameter. If I’ve connected by SAP GUI all works splendid, but in HTML environment a behavior of this FM is very strange. In the HTML connection after I’ve select the subordinate search help for selection criteria field search help becomes disappeared and main screen becomes shown as modal (sic!) window.
    Does anybody know how to avoid this?
    This is piece of code with FM call
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname           = 'ZSRM_002_SCR_REQITEM'
          fieldname         = 'PRDID'
          searchhelp        = 'COM_PR_COLLECTION'
          shlpparam         = 'PRODUCT_GUID'
          dynpprog          = 'SAPLZSRM_PP_SELECT_SCREENS'
          dynpnr            = '9003'
          dynprofield       = 'ZSRM_002_SCR_REQITEM-PRDID'
        TABLES
          return_tab        = lt_return
        EXCEPTIONS
          field_not_found   = 1
          no_help_for_field = 2
          inconsistent_help = 3
          no_values_found   = 4
          OTHERS            = 5.
    Best regards and thanks in advance.

    Is my explanation not clear or nobody knows how to win this problem?

  • Dump with calling Custom search help in SRM Portal

    Hi,
    We are calling a WBS search help from Shopping Cart Cost Assignment screen.
    It works fine with ITS and get the results for WBS elements, but when we try to access the search help through the Portal, after clicking on the FIND button it Dumps "SYSTEM_CANNOT_WRITE_TABLE".
    Any Ideas ??
    Thanks in Advance...!!!

    Hi
    <u>This is clearly a SAP BASIS problem. You need to install GUI Patch 332 (gui46D_332.exe).</u>
    <b>Please go through the links below  for more details -></b>
    Note 842824 - Disposal of the BC-FES-OAC component
    Note 392208 - Automation: Error in the automation controller
    Hope this will definitely help.
    Do let me know.
    Regards
    - Atul

  • How to use Search help PRCTR_EMPTY in Web dynrpo ABAP

    Hi,
    I have a requirement to use search help PRCTR_EMPTY as F4 help for an InputField in my application. But, in the F4 help, if I select "Profit Center Via Standard heirarchy" and search, it is giving me the following error:
    "Sending of dynpro SAPLSPO4 0300 not possible: No window system type specified"
    Here the search help is trying to call a R/3 screen from web dynpro.
    Pelase suggest me if there is any other way to use this search help in web dynpro.
    Thanks,
    Manogna

    hello,
    Any search help where R/3 screen is called, will not work in WD ABAP environment. You can create search help using OVS and follow the similar way of data selection as in search help.
    Regards
    Vishal kapoor

  • Search Help Exit with portal (webdynpro)

    Hi,
    I'm implementing a customised search help for CAT2. In the portal it is using the webdynpro. I'm using the search help exit to populate the hit list that i want it to appear at both the R/3 backend and the portal side. I've also added the search help to the the table TCATS_SHLP_ITS where it defines the display field for the portal side.
    It is working fine where the hit list is populating correctly. However, when the user select the record from the hit list, i want to display another value that i've populated at the search help exit to the expected field on the portal screen. HOw can i do that? FYI, the 1st display field in the table TCATS_SHLP_ITS, is not the value that i want it to display at the selected field on the portal screen.
    Kindly assist. Many thanks.
    Cheers,
    Loo

    Hi,
    Were you able to resolve this issue.
    Thanks,
    Tanuj

  • Search Help exits using Web Dynpro abap

    Hi,
    Before returning the values selected by the user to the input field, i have to set a column of the F4 result list based on some computation. How can i do that?
    i.e to set a field value dynamically using search help exit
    plz reply.
    Thanks & Regards,
    Raji.

    Hi Raji,
    The blog mentioned by micheal is written by me.
    Go through the blog and let me know your queries.Lets see if i can help you

  • Attach Search Help to Context Attribute (WD ABAP)

    Hi,
    I'm fairly new to the ABAP WD technology. After I've worked out the provided tutorials I'am now encountered a problem on attaching a search help to an context attribute.
    The search help I would like to use has several exporting fields. Is there a possibility to dertermine which exporting field of the search help should be bound to the context attribute? As far as I recognized the system behavior it is every time the first exporting field.
    Thanks in advance and regards,
    Matthias

    Hi Matthias,
    It works the same as of within the good old Dynpro. If you use a structure and put (at least) the desired fields inside and attach that structure to the context node, the values of the exporting fields should be moved back properly.
    Best regards,
    Thomas

  • Search help in Web Dynpro in ABAP

    Hi,
    I am starting with WD for ABAP (NW04s). I am using PA0022 table as model and displaying these values on the view. By default most of the fields like country, education centre, Faculty, Branch, Score come with an F4 option. But the value displayed in these fields are always key fields(Numeric), which would not make any sense for the end user. Now I would like the Text/Descriptions to be displayed against each field.
    Can anyone help me out.
    Regards,
    <i><b>Seema.</b></i>

    Hi Phil
    This is the dump i m getting,
    Note
    The following error text was processed in the system D35 : Attribut LANGU konnte nicht gefunden werden. ¥&#43970;¦
    The error occurred on the application server RETHR6_D35_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE_INFO~GET_ATTRIBUTE of program CL_WDR_CONTEXT_NODE_INFO======CP
    Method: GET_AND_FORMAT of program CL_WDR_DATA_CONTAINER=========CP
    Method: IF_WDR_SHLP_CONTEXT_MANAGER~GET_VALUES of program CL_WDR_DEFAULT_SHLP_CONTEXT===CP
    Method: CREATE_SEARCH_HELP of program CL_WDR_DDIC_SEARCH_HELP=======CP
    Method: CONSTRUCTOR of program CL_WDR_VALUE_HELP_HANDLER=====CP
    Method: HANDLE_DD_SHLP of program CL_WDR_VALUE_HELP_HANDLER=====CP
    Method: HANDLE_VALUE_HELP of program CL_WDR_VALUE_HELP_HANDLER=====CP
    Method: HANDLE_AFTER_UPDATE_DATA of program /1WDA/LSTANDARD===============CP
    Method: IF_WDR_CLIENT~AFTER_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: DO_AFTER_TRANSPORT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Plz help me out.
    Regards,
    Seema

  • How to build search help for company code (BUK) in SRM

    Hello,
    I am new to SRM and was wondering if any have come across similar requirement. I am a workflow developer and we are building a custom table to derive deadline escalation timelines. We are also adding a field in our custom table for company code so that we can have company specific deadlines. table T001 is empty in SRM and hence we are unable to use F4 (search help). Is there existing functionality in SRM that gets this search from the backend ECC system and displays when F4 is pressed. How can I use that functinoality?
    Appreciate any info folks.
    Thanks again.
    Samir

    Hi
    Which SRM version are you using ?
    <b>Related links -></b>
    Re: Search Help on SRM front end screen
    F4 Help for WBS Element
    Re: Company Code defaults
    Re: Search help for Custom Item level field
    Custom field in SRM as a dropdown field with values stored in R/3
    Calendar help for Date i/p field in SRM 5.0 shopping cart
    Company code
    Problems assigning values via F4 or search help
    Also There is a standard table in SRM which contains Plant data ->
    <b>BBP_LOCMAP</b> (Mapping Table Business Partner --> System --> Location)
    Try creating a  custom search help based on this Table, defined as selection method and assign the same to the related field.
    Do let me know.
    Regards
    - Atul

  • Preventing Blocked Cost Center in SRM Search help

    Hi All ,
      We need to prevent the blocked cost centers  in  the search help  in SRM  .
    I checked the BADI'S
                  BBPF4_READ_ON_ENTRY_
                  BBPF4_READ_ON_EXIT_    and method GET_COSTCENT. but  both of these will not trigger when we give the cost center in search help and press start.
    so is there any other BADI  or Customer exit  for this requriment.
    Please help
    Regards
    Channappa

    Hello,
    These BADI can not be used for this kind of search help, as this is an R/3 search help and not an SRM search help.
    Helpful discussion threads:
    Re: Search Help for Cost center
    Re: Cost Assignment  - Search
    Hope this helps.
    Thanks
    Ashutosh

  • Enhancing F4 Search Help Issue - Standard Component

    Hello All,
    We have a requirement in SRM to customize couple of standard Search helps attached to the Webdynpro components. As such I know the concept of how we can handle this requirement but hitting an issue.
    Standard Working scenario -
    1) Standard Structure available with multiple fields. Two fields that are of our interest are SH_VALUE and SH_VALUE_LABEL.
    2) Standard Search help for this being used has fields VALUE and VALUE_LABEL.
    3) In the Structure the both the fields SH_VALUE and SH_VALUE_LABEL are mapped to the Search help VALUE and VALUE_LABEL.
    4) In the WD component the node is mapped to the standard structure.
    Running the application and the picking up the values from F4 on the SH_VALUE field will return its corresponding value and also map the SH_VALUE_LABEL field with the Label from the F4 since the structure and Search help mapping are there.
    So far good when its standard.
    Issue I am facing -
    We need to modify this standard search help to customize our needs.
    1) Did a Copy of the standard Search help and then modified to suit our needs. The output structure of the search is still the same as the standard one.
    2) Did a Post Exit in the WD component to call our custom search help through the below code -
    data lo_nd_attrib type ref to if_wd_context_node.
    data lo_nd_attrib_info type ref to if_wd_context_node_info.
    lo_nd_attrib = wd_context->path_get_node( path = `ATTRIBUTES_DATA.ATTR_DTLS_MULT` ).
    lo_nd_attrib_info = lo_nd_attrib->get_node_info( ).
    lo_nd_attrib_info->set_attribute_value_help( name = 'SH_VALUE' value_help_mode = '121' value_help = 'Z_ORG_ATTR' ).
    lo_nd_attrib_info->set_attribute_value_help( name = 'SH_VALUE_LABEL' value_help_mode = '121' value_help = 'Z_ORG_ATTR' ).
    Running the application just returns the SH_VALUE field but does not get the data for the SH_VALUE_LABEL.
    Is there something wrong in the way I am calling the Custom Search help or should I need to approach this differently?
    Thanks,
    Nagarajan.

    Hi Nagarajan,
    Well, you are trying to set the search help to both attributes ( sh_value, sh_value_label) individually and it is having no link between these two attributes
    i.e. once you select a value from search help of SH_VALUE, its no where linked that the other details to be passed to SH_VALUE_LABEL.
    We generally, do the linking of attributes to search help parameters at structure level as below
    So, if you need the same behaviour, then you need to assign the Zsearch help at strucuture field SH_VALUE and link the parameters to both fields SH_VALUE & SH_VALUE_LABEL
    In case, if find it not possible to to this way,
    You need to populate the value of field SH_VALUE_LABEL upon selection of value from search help of SH_VALUE.
    i.e. by registering the search help selection event to an OnEnter action and write the logic to populate the value to SH_VALUE_LABEL
    Please refer the below link
    Automatically Trigger onEnter event after selecting value from the Value Help(F4 Help)
    Hope this helps you.
    Regards,
    Rama

  • Search help results of cost center

    Hi everybody
    Cost center is normally assigned to SC item based on the attribute set in PPOMA_BBP (attribute CNT). Now, when you're in the item details screen and want to change that default cost center you can search for other ones using the "glasses icon". This starts some kind of a F4 search help screen and returns a list of all available cost centers existing in the backend system.
    Our SRM users are NOT created in the backend system, therefore we're not able to control cost center authorizations via backend user authorizations.
    So the problem we have is, that in the result screen we get by far too much cost centers from which the enduser can make his choice. We'd like to reduce this result list to only the cost centers assigned via CNT attribute on org. unit level in PPOMA_BBP.
    I already looked at BAdIs BBP_F4_READ_ON_ENTRY and BBP_F4_READ_ON_EXIT (method GET_COSTCENT) and to verify if they could do what I wanted simply tried to delete all entries from table ET_COSTCENT_LIST and ET_COSTCENT_FAVOURITES... no changes, the result list still contains a complete overview of all our backend cost centers.
    To all SRM gurus out there: how is it possible to restrict the result list of cost center search help?
    Thanks again anyone for some help.
    Kind regards,
    Renaud

    Hi Case,
      We can get this functionality with out changing any standard program.
      Herewith I am sending details.
    1.     Implement the badi using definition BBP_DRIVER_DETERMINE and write below  mentioned code in method DETERMINE_DRIVER.
            IF functionname = 'B470_SHLP_CALL' AND sy-tcode NE 'PPOMA_BBP'.
    functionname = 'ZB470_SHLP_CALL'.
            ENDIF.
    2.     Copy the standard FM B470_SHLP_CALL to ZB470_SHLP_CALL then make        
           the changes in ZB470_SHLP_CALL.
           Here you have to make two changes.
    a.     Clear the destination name (LV_DESTINATION) for calling search help
                            from SRM
    b.     Give your own search help name (ZCOST_CENTER we need to create this search help in SRM )
           Now it will call the search help ZCOST_CENTER from SRM only
                   Sample code
              CASE shlp_field.
            WHEN gc_g_l_acct.
          lv_shlpname = 'SAKO'.
           lv_shlpparam = 'SAKNR'.
            WHEN gc_cost_ctr.
          lv_shlpname = 'ZCOST_CENTER'.
          lv_shlpparam = 'KOSTL'.
          CLEAR lv_destination.
    3.      Create you won search help (ZCOST_CENTER) in SRM and write code in search help exit for getting the cost centers from user attributes. For reading the cost centers from user attributed you can use the FM BBP_READ_ATTRIBUTES (pass the CNT as attribute ID)
    Regards,
    Padmaraju
    If it useful to you,please reward points.

Maybe you are looking for

  • 2 ipods on 1 computer, but only 1 works.

    My boyfriend and I both got ipod nanos, he got his first so we installed everything onto my computer and his is working just fine, it updates when we download new music and has no problems. Then I bought mine and assumed it would work just as well, b

  • Error while configuring SQL 2012 DB as a Subscriber to a Oracle Publisher.

    When Configuring the Subscription for Oracle as a publisher, we receive the following error message. Msg 18757, Level 16, State 4, Procedure sp_replpostcmd, Line 1 Unable to execute procedure. The database is not published. Execute the procedure in a

  • Working with shadows

    hey guys, i've been working on my new web layout. i have currently 1 image that's jpeg (the background) and 5 other images saved as png files in photoshop CS2 (with transparency and drop shadow effects). Problem i have now is, when i tried to import

  • [Partially solved] AwesomeWM - Hide borders on the fly

    Hello there! I'm looking for a way to hide 1px borders from selected ( or all ) windows on the fly, with the keystroke, just like I can hide and show statusbar with alt+b thanks to awful.key({ modkey }, "b", function () mywibox[mouse.screen].visible

  • Transacation codes

    Hello,       I am new to SAP XI. So could you please tell me the transaction codes which we use in SAP XI. I know so many transaction codes were there, but at least which were important to note. And what are the main objects to learn. Thank you