Search help in RFC

Hi
I have five import parameters for search which don't have common tables . I am wondering I will have to write so many combinations to acheive this. Is there any simple way or if I can use search help without pop up and can return results to the external system.
It's kind of urgent, if anyone can help me would be highly appriciated.
Regards
Ria

Hi,
  Looks like you are trying to get the PO details for the importing parameters..
  I think you should have atleast one mandatory field and rest of them make it as optional.
  For the optional parameters create a ranges and use the IN operator in the SQL..If the record is passed then the records will be filtered based on that otherwise it will bring all the records..
  RANGES: r_matnr FOR mara-matnr.
  if not im_matnr is initial.
   r_matnr-sign = 'I'.
   r_matnr-option = 'EQ'.
   r_matnr-low = im_matnr.
   append r_matnr.
  endif.
  In the SQL..
  Select * from xxx
         where matnr IN r_matnr..
  Is this what you are looking..Otherwise please explain more..
Please award points for helpful answers.
Thanks,
Naren

Similar Messages

  • 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

  • RFC and Search Helps

    Hi
    I have a custom development which consumes a custom RFC from R/3 system. Now this View has got plenty of fields that have an Search Help(F4) option. They are mapped to the Standard structures and Tables present in the RFC. I am not able to get a Search Help for these fields(Though search help is available in R/3 screen for the same fields).
    I have read about SVS, EVS and OVS methods in WebDynpro. Now if I have to enable these search helps, am i left only with the option of using these alone. Since I am talking about Standard Tables & Structures in RFC, I have no option of modifying them.
    I would like someone to share their views on this. If suppose I have to to use OVS methods, then what should be done in my custom RFC level to incorporate these search helps. I repeat, I have got about 15 fields that need search help option.
    Good suggestions will be rewarded.
    Regards,
    Murali.

    Hi
    Try This Thread
    Re: Search Help in Web Dynpro
    Re: Attaching Search helps dynamically to an attribute
    Kind Regards
    Mukesh

  • Help on RFC to JDBC and JDBC to RFC

    Help on RFC to JDBC and JDBC to RFC
    Hi Gurus
    I have the scenario where an RFC will be triggered in SAP , to write to a DB2 database and insert new records in a table
    and vice versa the JDBC has to read som data from a table based on a primary key, mark them as read for not be read next time and send the data to an RFC where a table in SAP will be updated.
    I have never worked with JDBC before , pls advice.
    is there any new issue to consider in PI 7.0 regarding JDBC
    Thanks.

    The requirement looks standard,
    SEARCH IN SDN FOR JDBC scenarios,you will find many docs for sender as well as Receiver.
    >
    > is there any new issue to consider in PI 7.0 regarding JDBC
    >
    no issue with PI7.0.
    Regards,
    Raj

  • Cost Center and G/L account search help not working

    Hi Gurus,
    I am facing a problem with the search help button for cost assignment in Shop screen.
    When I press the search button for cost center, there is no new screen coming up asking me the search criteria to be given as input. Same is the problem when I search for G/L accounts.
    I have defined the backend RFC user as dialog user and also defined the RFC(dialog) in the SRM system for the backend RFC.
    My user id has authorization object M_BBP_SHLP in my profile.
    What may be the reason for this issue?
    Note: I am currently using SRM5.0 system with backend R/3 4.7 version. This SRM system is already connected to another backend system ECC6.0, and the search help is working fine for those users.
    Pls. guide me on how to resolve this issue.
    Regds,
    Ancy

    Hi Ancy,
    Don't give wild search. Give some words following with * like "UK*" lists all the UK Cost centers. For the G/L accounts: G/L Accounts will get updated in the SC automatically depend upon the product category what you have selected.
    Check the configuration  Cross Application Basic settings->Account Assignment ->Define G/L Account for the product category.
    If you have maintained the configuration for the paritcular G/L Account and Product cateogyr then when G/L Account is updated automatically in the SC (Depend upon this configuration)
    Kind Regards
    Sameer

  • Search help for a field using a selection method which has a text table.

    Hello all,
    I am trying to create a search help for one of the fields in a structure say RFCDEST. Now for this i am giving the selection method as the DB table where all the RFCDEST are maintained. However there is a text table which is also comes up for this selection method and the description of the filed RFCDEST is in that text table and the description is not stored in the main table which i specified as the selection method.
    My query is that on F4 now all the rfc destinations are being shown however the description i am not able to show them because there is no field in the table specified in the selectionmethod which hold s the description but instead it is there in the text table, how can i fetch the description from there and display in the search help.
    Warm Regards,
    Naveen M

    look at search help FC_RFCDEST. that problem has already been solved with this search help.

  • Company code to be displayed in search help for vendors/Business partners

    Hi,
    We have a requirement to display the company code along with the vendor/business partner number when searching for preferred vendors while creating the shopping cart.
    In standard the search help exit used is BBP_F4IF_SHLP_EXIT_SOS. This search help does not have logic to find the company code for the vendor/business partner. It only finds and displays the purchasing organization.
    Can someone tell me where I find the company code agains the vendor?
    I tried searching in SRM and couldnt find the table where this relationship is found.
    Or is it that this data is not stored in SRM and we need to make an RFC call to R/3 using FM B470_VENDOR_GET_DATA.
    Please let me know!
    Thanks,
    Srivatsan

    I have the same problem due to multiple backends and 1 purchasing org to 2 company codes, have you got a fix for this yet would appricieate help if any one has ideas on this one
    Tom May
    <removed by moderator>

  • Populating error message based on search help

    Hi team,
    How can we populate error message in a shopping cart account assignment "order " field for the bellow two senarios. I am adding a custom field called "Operational Activity" in account assignment. based on which search help has to be done
    the 2 senarios are
    1. When user does not select the "Order" but tries to search for the operational activity, he should get error .
    2. When user selects the "Order" and this order has an operational activity linked to it, then give error message to input the OA The logic will be to do a RFC call to ECC by sending the SRM Order number BBP_PDACC-ORDER_NO to ECC table AFKO and see if there is AUFPL.
    Edited by: goutam kolluru on Nov 16, 2011 5:48 AM

    Hi Anshu,
    Thank for u replay.
    yes it can be done using doc_check_badi, but my question is how can we display error message by comparing search help values.
    if user is not entering value of order field and select  search help for custom operational activity field how it can be done in check badi.
    Edited by: goutam kolluru on Nov 16, 2011 6:54 AM
    Edited by: goutam kolluru on Nov 16, 2011 6:59 AM

  • Calling a standard search help from MS Office

    One of the companies I work for has integration with Microsoft Office so users can create SAP DMS (document management system for those who aren't familiar with it) entries directly from e.g. Microsoft Word. The integration solution is a custom .Net application.
    In addition to the obvious integration to create the DMS info record and assign the document as an original the integration solution lets the user provide classification data. Some changes are now being planned, and one of them is challenging as a new characteristic (for the classification) will be used to store an organization unit. This is straightforward when the user is in the SAP GUI, as the standard search help can easily be displayed from custom code.
    Being a technology optimist I was hoping that with the new fancy technologies SAP would have provided a way to use .NET integration to display a standard search help from the MS Office integration dialogue - but so far I have not been able to find any information supporting this hope. Luckily I am not the developer working with the integration dialogue, but unless the mentioned possibility exists it looks like we have to resort to passing all organization units to the interface so a hierarchy can be constructed and displayed to the user for selection.
    Another alternative (I think) is to recreate the dialogue as a web dynpro screen, which will give us all the advantages of operating "inside" SAP. However, I am not sure if this is possible either. Can a web dynpro screen be called from an MS Office application (.Net), and can that web dynpro screen return values to the (external) calling application? In my simple view of the world this should be doable, if not otherwise it should at least be possibly by wrapping the screen in a function module that is exposed so the .Net application can call it - either by RFC or as a web service.
    Microsoft Office version is 2003.
    SAP release is ECC 6.0 (Netweaver 7.0).
    I think this is the right forum for my question. My apologies if it isn't (and any guidance towards a more appropriate forum would then be appreciated).

    Not solvable I suppose. There should be a way to close messages without marking them as answered.

  • Customer field account assignment - F4 - search help exit

    Hi all,
    I have a question with regard to a F4 search help exit I'm try to build for a new CUF in the account assignment (include INCL_EEW_PD_ACC_CSF).
    I've successfully created everything (search help + F4 search exit (read R/3 table)), but when I want to include restricted the search with certain filter values entered on the screen I'm stuck.
    I tried to achieve this by passing the parameters entered on the search screen to the RFC read table function, but in fact I'm not able to read the <b>screen values</b> (using 'DYNP_VALUES_READ'):
    CALL FUNCTION 'DYNP_VALUES_READ'
            EXPORTING
              dyname               = lc_dyname_1
              dynumb               = lc_dynumb_1
              translate_to_upper   = 'X'
            TABLES
              dynpfields           = li_fields_filter
    I'm always getting an invalid dynpro error (I've tried passing SAPLBBP_PDH_ACC, SAPLBBP_SC_UI_ITS, SAPLBBP_CUF,...).
    Does anybody know how I can include de filter values of my search screen in my search ?
    Thanks in advance,
    Kristof

    Hi
    Which SRM version are you using ? What's your detailed requirement ?
    <b>You need to call these function modules inside your search help exit to fetch the user-entered value and then process it accordingly as per your requirements.</b>
    <u>Please go through these function modules.</u>
    *--- Get the user-entered fieldname
    <u>    CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'</u>
    *--- Map the Results
    <u>    CALL FUNCTION 'F4UT_RESULTS_MAP'</u>
    <b>Other related links -></b>
    Re: Search helps - CASE sensitive
    Re: Search Help - format problem
    Hope this will help.
    Regards
    - Atul

  • CREATE SEARCH HELP IN WD

    hi expert´s,
    I have a WD in r/3 and i need to create a search help IN R/E in WD to show OBECT_ID and DESCRIPTION from CRMD_ORDERADM_H (SRM).
    How I can I build a match-code FROM RFC funtion?

    Hi As,
    Please go through this link and find my answer..
    Re: how to create an elementary and collective search help in webdynpro
    Cheers,
    Kris.

  • How to Search Help ?

    I have a java webdynpro screen with a few input fields that need a search help. There are a lot of threads regarding to this topic and everyone has different information and links to many other threads.
    Could anyone please tell me what is the best/fastest/easiest way to do it?
    I am not talking about "Simple Value Selector" neither Extended Value Selector". I need a implement/use a search help like the ones in R/3 when you run transaction SE16 and enter values in the input fields using F4.
    One time I had one running where I did not need any coding at all, everything was done on the attributes of the field, but I do not recall how to do it anymore. The problem with it was that it just displayed one column and I needed it two, the column with the value itself and a second column with the text. What I need this time is the two columns.
    Thanks in advance,
    Diego.

    Diego,
    1. You can try OVS over content nodes. Create your context (most probably dynamically) according to metadata available with BAPI_HELPVALUES_GET_SEARCHHELP. Then attach OVS extension with custom IWDOVSNotificationListener that performs search for help values using BAPI_HELPVALUES_GET.
    2. You may proceed with the very same BAPI_HELPVALUES_GET_SEARCHHELP / BAPI_HELPVALUES_GET pair but inside your custom component. Next instead of OVS you may add Button / Link2Action near every field and invoke your custom component in pop-over window (read about IWDWindowManager API in NWDS help)
    3. You may use existing BAPIs (for example, BAPI_COMPANYCODE_GETLIST) or create own RFMs to provide value help. Then just use OVS with BAPI as described in WebDynpro tutorial on SDN.
    Actually, I tried (or 'am trying' first approach. However besides search help challenges I've faced a lot of limitations from OVS component. Btw, here is blog post by <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=5%2bhlk9c3p0q%3d">thomas Jung</a> that I find very useful for this task: <a href="/people/thomas.jung3/blog/2004/11/01/bsp-value-input-help-popups-version-20-part-2">BSP Value Input Help Popups Version 2.0</a>. Also he is talking about BSP, number of techniques is applicable to WD Java. Sure, certain "translation" is required. And you are even in worse position: BSP is "inside" R/3 and may utilize all the ABAP power while WD Java has only narrow Adaptive RFC / JCo window
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Standard F4 (search help) in the web dynpro JAVA

    Hi,
             I have a small doubt in web dynpro Java. Basically I am an ABAP developer. We created some custom Remote function modules (RFM). Now are able to call RFM through web dynpro JAVA in the portal. We are able to run the RFMs in the portal.
             But we have problem with search help. How can I built the search help for the input fields in the portal using web Dynpro  Java.
             Can we bring standard search help (which is exist in R/3) in the portal?

    Hi,
    I think there is no standered functionality available in WDJava to achieve this functionality like ABAP or WDAbap. but, you can still achieve this using OVS option. to do this also, first you should have an interface which can talk to the R3 system and search the dB as per the query parameters i.e, an RFC which can the desired form of input and give you the desired output.
    for more info on OVS, please look into this below links.
    OVS:
    Web Dynpro Java Tutorials and Samples NW 2004 [original link is broken]#51 [original link is broken]
    WDJ tutorials:
    Web Dynpro Java Tutorials and Samples NW 2004 [original link is broken]

  • Search Help with Web Dynpro call on another system

    Hi all,
    I have to create a search help with web dynpro on a field but the database is on another system... How can I do?
    Many Thanks in advance...

    I would use a search help exit. Nothing WDA specific here, as this has been possible long before WDA came around.  With a search help exit you define the search help like normal, but instead of database table or view being the source of selection, you have a function module.  Within the coding of this function module you can call an RFC to read data from another system or call a web service if you need to bridge over to something that isn't ABAP based.
    You can read more about Search Help Exits here:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm

  • Search Help with Web Dynpro

    Hi all,
    I have to create a search help with web dynpro on a field but the database is on another system... How can I do?
    Many Thanks in advance...

    I would use a search help exit. Nothing WDA specific here, as this has been possible long before WDA came around.  With a search help exit you define the search help like normal, but instead of database table or view being the source of selection, you have a function module.  Within the coding of this function module you can call an RFC to read data from another system or call a web service if you need to bridge over to something that isn't ABAP based.
    You can read more about Search Help Exits here:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm

Maybe you are looking for

  • Data recovery on iPhone 5

    Just before Christmas, I bought an iPhone 5 to replace an iPhone 3g. Intending to copy over my contacts to the new phone, I made the mistake of restoring the previous 3G backup on the iphone 5.  When I restored, it erased all the photos and video I h

  • Is there any way to use video with the new Flash CC HTML5 Canvas?

    I am a long time Flash user trying to determine if this new version of the program is something to add to the workflow again (after the last several years of not being able to use it) and the tutorials I have seen are not well written. Is there a way

  • IMac 20" - Gradient on display

    I have recently bought a second hand iMac - (20" 2.4Ghz Intel Core Duo - Aluminium). All was great for the first day untill I did my first bit of design on it. The design had a thick red stripe at the top and bottom of the page. I was confused to see

  • Installing oracle validated rpm

    Hi, I have installed oracle enterprise linux version 5.4 on sun virtual box.I want to install oracle 10g,so I downloaded oracle -validated-1.0.0-5.e15i.386.rpm for oracle requird updates.I am trying to run the oracle -validated-rpm using yum install

  • Can I print phone contact list?

    Can I print my phone contact list? If so, how do you do it?