Mapping Issue(UDF) in HTTP-RFC scenario with URL parameters - Urgent

Hi All,
I am working out an HTTP-RFC scenarion wherein there is no xml data to be pushed.
The data will be coming in the url parameters.
Also we'll exposing our url(created by SAP PI) to 3rd party system to push data in terms of url parameters.
So how do I do mapping? Also what UDF code will contain?
Since I'm working on this kind of scenario for the first time, I need every help from you guys.
Thanks & Regards,
Amit Patil

Hi All,
I have worked on RFC to HTTP scenario wherein URL have to be passed. I used UDF in d same.
But now the case is reverse, how shall I move ahead with what source message type(in the mapping) and how to do mapping.
What kind of UDF will be useful here?
I am completely blank in this kind of scenario where 3rd party system is going to pass four parameters on URL link craeted by us since its an HTTP to RFC scenario.
Please guys help me! Give me some inputs.
Thanks,
Amit Patil

Similar Messages

  • HTTP to RFC scenario with URL parameters

    Hi All,
    I am working on HTTP to RFC scenario using an interface in SAP PI.
    The data will be pushed from API link via 4 URL parameters viz. UID, mobno, phone1, phone2.
    My query is what will be the UDF code for the same.
    Also how to design & configure the same scenario in SAP PI, since I'm working on this scenario for the first time.
    on SAP end, what will be more comfortable to have RFC or Proxy?
    Thanks & Regards,
    Amit S Patil

    Hi All,
    In case of RFC to HTTP scenario wherein we have to pass URL parameters as the request instead of XML/xsd(at the receiver end), there is no need of .xsd file to be imported in SAP PI as target end in request message mapping.
    Similarly in reverse case(HTTP to RFC scenario), if some data will be pushed from external system through URL parameters instead of XML/xsd(at the sender end), how the design & configuration is done in SAP PI?
    Is this reverse scenario possible without any XML/xsd scema at the sender end?
    Please suggest me at the earliest?
    Thanks & Regards,
    Amit S Patil

  • Problem with Http RFC Scenario

    hi all.........
         Am doing an HTTP RFC scenario. The scenario is working fine with all messages in IS, IE and AE being successful. But the problem is the RFC response am getting is not what is expected. When i run the RFC directly with the same input value I get the correct response. Can anybody figure out what is the problem. In the channel (adapter monitoring) what comes is :
    "RFC_HISTORY
    - Error: 2007-01-16 09:47:52 IST: Message processed for interface ZBAPI_NETWORK_CONF_ADD: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.af.rfc.util.bapi.BapiException: Parameter with name RETURN not found.
    - Error: 2007-01-15 19:57:21 IST: Message processed for interface ZBAPI_NETWORK_CONF_ADD: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.af.rfc.util.bapi.BapiException: Parameter with name RETURN not found.
    - OK: 2007-01-15 19:28:31 IST: Message processed for interface ZBAPI_NETWORK_CONF_ADD "
    thanks in advannce

    Hi,
    ><i>I ve used RFC itself as message type for http by importing it into external definition. So since both structures are same i omitted both MM and IM</i>
    Should work fine. Can you look into SXMB_MONI and check what the response is? Make sure that the request message is also as expected.
    Regards
    Bhavesh

  • Mapping issue in idoc to JDBC scenario

    mapping issue in idoc to JDBC scenario
    source structure
    E1KNB1M
      BUKRS = 1000
    E1KNB1M
      BUKRS=  9000
    E1KNB1M
      BUKRS=  2000
    THE NODE E1KNB1M is repeated many times and the field BUKRS is also repeated with E1KNB1M as above
    TARGET field : ISFRANCHISE
    if any where value of BUKRS =9000 we have to pass Y to the target filed, else N
    if BUKRS = 9000   THEN ISFRANCHISE= Y
                   ELSE
                ISFRANCHISE=N
    I've done the mapping as below
    BUKRS = 9000--> IF THEN Y ELSE N--
    > ISFRANCHISE
    BUT everry time the target value is N only
    pl suggest
    rgds
    mojib

    mapped like this
    BUKRS--->SORT---->
                                                 EQUALS --------IF---THEN    Y
    9000------------------------>                                               ----------------->ISFRANCHISE
                                                                  ELSE   N
    context of BUKRS set to parent node
    its worked
    thanks to all for valuable suggestions
    rgds
    mojib

  • HTTP---RFC Scenario

    Hi All,
    I have Done HTTP--RFC Scenario and i got the Bellow Error in Receiver RFC CC
    Receiver channel 'CC_POS_CashJournal_IB' for party '', service 'Sub_ssd_subdev'
    Error can not instantiate RfcPool caused by:
    com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM TYPE=A ASHOST=10.1.1.203 SYSNR=00 GWHOST=10.1.1.203 GWSERV=sapgw00 PCS=1
    LOCATION CPIC (TCP/IP) on local host with Unicode
    ERROR partner '10.1.1.203:sapgw00' not reached
    TIME Fri May 2 18:55:26 2008
    RELEASE 700
    COMPONENT NI (network interface)
    VERSION 38
    RC -10
    MODULE nibuf.cpp
    LINE 4601
    DETAIL NiBufIConnect: connection pending after 60000ms
    SYSTEM CALL connect
    ERRNO 150
    ERRNO TEXT Operation now in progress
    COUNTER 2
       Line 1 / 1
    Regards
    Suman

    Hi,
    Do we need to check and use RFC Meta data Repository in RFC CC???
    Here I used the Business System for RFC Receiver that is configured for IDOC Scenario.
    Is this is Fine and Ok???
    Regards
    Suman

  • Synchronous HTTP - RFC Scenario: Timeout

    Hello together,
    I have just implemented a synchronous HTTP --> RFC scenario. When I test the implementation using the HTTP testing tool within the Runtime Workbench everything works fine.
    However when I use an external HTTP Client I get a timeout exception. This is also raised in the XI Message Monitoring: "Timeout condition of pipeline reached"
    Do you know any reason for this?
    Thank you very much.

    Hello,
    this problem is solved now. It was a problem with the HTTP Client, obviously because a wrong queueID was automatically inserted in the URL.

  • File to RFC scenario with no BPM

    I want to create File to RFC scenario with no BPM. I want to invoke RFC synchronously to verify that I'm getting correct response back, but i dont wanna process the response. So, In SXMB_MONI i can check the response back from RFC right? Or do I need to have BPM if want to see the response back from RFC?
    What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK?
    Thanks,
    Deepesh

    Hi,
    I need to have BPM if want to see the response back from RFC? ... yes
    The BPM will help you find the response very comfortable.
    What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK? ..Yes you can .
    Regards
    Agasthuri Doss

  • Start IC WebClient with URL Parameters

    Hi,
    we are currently implementing IC WebClient 5.0. One of the customer needs is it, to start the IC WebClient with a service order ID, so that the order is displayed immediately without searching and confirming an account. Is it possible to start the IC WebClient with URL parameters to solve that issue?
    Thank you for you help in advance!
    Marcus Walena

    Hallo Marcus,
    This is currently not possible.
    However, you don't need to always confirm the customer. You can use the agent inbox to do the search and navigate directly to the service order. However, if you want to do any processing after that, then you will need to identify the customer. The other option is to implement this yourself.
    BTW: It is possible to navigate via a URL to the service order directly using PC UI.
    Regards,
    Shiv

  • Still Can't Figure Out Returning to Page with URL Parameters

    Hi,
    I am trying to figuring out how after submitting a form to
    return to a previous webpage with URL parameters in it.
    Any ideas?
    Thanks,
    Craig

    I am using dreamweaver and coldfusion. I have been searching
    everywhere for the answer so if you can shed some light on this
    that would be great.
    Thanks,
    Craig

  • File-PI-RFC scenario with extraction of contents in the filename

    Hi All,
    I am working on File to RFC scenario.
    Here the file name is like 'ABCD_XYZ_1234_DATE' where the date is in yyyymmdd format.
    I have to read this filename & the date in the filename is to be mapped with one of the RFC parameter.
    Also how would I trigger the Interface if the file resides in PI server or on local mchine.
    How to configure the processing parameters in sender comm channel if I want to read the file after every 15 mins?
    Thanks,
    Amit Patil

    Hi,
    By writing simple UDF in your mapping you can Acheive this
    Try this Once
    DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    String MyFileName = dynamicconfiguration.get(key);
    String str[] = MyFileName.split("_");
    return str1[1];
    Map this to the date parameter(RFC) in the mapping .
    If the file resides on Local machine then you can use FTP and if it is on PI server then NFS as Transport protocol.
    If you want read the file for every 15 min there are 2 options
    1) Set the poll interval time to 900 sec
    2) Configure ATP in RWB
    Configuring ATP in RWB :
    http://www.dataxstream.com/2010/11/configuring-availability-time-planning-in-sap-pi/
    Thank & Regards,
    Deepthi

  • File-to-File/RFC scenario with reading filename

    Hi,
    i have a File-to-File/RFC scenario which causes some problems in desining it correctly. Maybe some of you has an idea how to do this.
    Scenario:
    - A file is picked up by a File-Adapter. The files are different: pdf, doc, tiff, jpg, txt, ...
    - The file must now go through a business process (not necessary the file, but i need the filename in the business process).
    - The process has to contact several backend systems (SAP R/3) to collect some data. To achieve this the filename has to be send to this systems.
    - The collected data are send via SOAP to a receiver system
    - The file itself has to be stored in a directory via File-Adapter.
    Here's my problem:
    - Is it possible to transport the binary file content within a message which contains other elements (e.g. filename)?
    - Is it possible to do graphical mappings with such a payload (only 1 to 1)? Or must i use Java Mappings only?
    - How to generate a Message from the sender File Adapter which contains binary file content AND filename? Is this possible with a Module?
    - Is it better to create 2 messages with an adapter module? One with the image the other with the filename. Or is it better to split them later in a Mapping?
    Thanks in advance,
    ms

    If all that you need is the file name, use adapter specific settings in the sender file adapter. Then you can access the file name in mapping runtime in UDFs. If you want to have content of the pdf, jpg etc images, i do not think there are ready modules available except for reading pdfs ( you might have to research on this).
    For look ups etc with R3 systems, you can use the file name that you got from the adapter and store it in mapping fields.
    VJ

  • HTTP RFC scenario doubt

    I have created http to RFC scenario in XI
    Previously this interface was using Business Connector and following  XML message was used.
    <? xml version="1.0"?>
    <TAC>
         u2026.
         u2026.
         u2026.
         u2026.
    </TAC>
    Based on it I have created  data type and message type in XI and created interface and following is my incoming XML message.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_TAC xmlns:ns0="urn://Website/CreateServiceOrder">
       <TAC>
         u2026.
         u2026.
         u2026.
         u2026.
       </TAC>
    </ns0:MT_TAC>
    So u201C<ns0:MT_TAC xmlns:ns0="urn://Website/CreateServiceOrder">   </ns0:MT_TAC> are  the extra tags
    Is it required to send these additional tags in the incoming XML Message?
    I hope you have got the question.
    Thanks,
    Vishal

    >
    Kai Lerch-Baier wrote:
    > Hi,
    >
    > the tags <ns0:MT_TAC xmlns:ns0="urn://Website/CreateServiceOrder"> </ns0:MT_TAC> are not basically required. This depends on your message definition. check your XSD / DTD you used to define the message structure in IR. Also you can use a XSLT mapping to remove the tags if not needed.
    >
    > Reagrds,
    > Kai
    i think these are the start and end tags of the MT in IR.....so if i remove them wont i get an error??....how will the incoming payload go into the MT if the structure is different??
    What can be done is create the DT/MT with TAC as name and not MT_TAC.....make a note that it is not according to the naming convention....

  • Step by step File to RFC Scenario with BPM

    hi
    for the following scenario i m following the webblog
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    i have successfully created the design phase
    in the configuration stage
    i need to create a business system or business service will do to create the communication channel
    i have not created the systems so i feel i should not create the business systems
    i would like to create the business service
    so in only one business service can i assign all the communication channel
    useful answers will be rewarded
    Regards
    JM

    There are 3 parts of communication: Sender service to Integration Process (Asynch.), Integration Process to RFC (Synch.), Integration Process to Receiver Service (Asynch.)
    The configurations should be like as follows:
    <b>Sender Service to IP</b>
    Receiver determination:
    Sender Service->Request Outbound Message Interface->Integration Processs.
    Interface Determination:
    Sender Service->request Outbound Message Interface->Integration Process->Request Outbound Abstract Interface. (No interface Mapping is required as the interfaces share the same structure.)
    Sender Agreement:
    Sender Service->request Outbound Message Interface->Integration Process->Request Outbound Abstract Interface>FileRFC_Send
    <b>IP to RFC</b>
    Receiver determination:
    Integration Process->Request Outbound Abstract Interface->Business service.
    Interface Determination:
    Integration Process->Request Outbound Abstract Interface->Business service->RFC Structure->Corresponding Interface Mapping between file structure and RFC structure.
    Receiver Agreement:
    Integration Process->Request Outbound Abstract Interface->Business service->RFC_Receiver
    <b>IP to Receiver Service:</b>
    Receiver determination:
    Integration Process->Response Inbound Abstract Interface->Business service.
    Interface Determination:
    Integration Process->Response Inbound Abstract Interface->Business service->Response Inbound Message Interface. (No interface Mapping is required as the interfaces share the same structure)
    Receiver Agreement:
    Integration Process->Response Inbound Abstract Interface->Business service->FileRFC_Receive.
    Hope you find this useful.
    Regards,
    Amitabha

  • HTTP to File Scenario using URL parameters.

    Hi,
    I am working on a HTTP to file scenario where POST method is hirring the XI server with authentication parameters.
    CAD application is trying to hot our XI server using POST Method and the application does not have ability to send XML payload to XI server directly.
    So we are simply receiving parameters in plain text in inbound payload.
    I need to convert this payload to XML format and am tring to work this out using dynamic configuration.
    But It is throwing parser error.
    BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 73, 75, 62(:main:, row:1, col:3) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:770)
    Here I have to use HTTP sender adapter.
    Please suggest how can I acheive this.??
    Regards,
    Sachi

    Hi Mark and Maciej,
    The Inbpound payload we are reciving is of the kind:
    sap-user=<UserID>&sap-password=<Pwd>&Param1=Sachi&submit=submit
    As in HTML we ar using hidden parameters to given authentication details and submmit button to hit XI serrver.
    Can you please help me to out how can I add prolog and epilog.
    How can I change my payload to XML format.
    Regards,
    Sachi

  • Performance issue in linux while using set with URL object

    Hi,
    I am facing performance issue while using Set(HashSet) with URL object on linux. But it is running perfectly on windows.
    I am using
    set.contains(urlObject)
    Above particular statement is taking 40 sec on Linux, and only a fraction of ms on windows.
    I have checked the jre version on both OS. It is the same version (jre6)
    on both the OS.
    Could anyone please tell me what is the exact reason, why the same statement is taking more time on linux than windows.
    Thanks & Regards
    Naveen

    jtahlborn wrote:
    I believe the URL hashCode/equals implementations have some /tricky behavior which involves network access in order to run (doing hostname lookups and the like). you may want to either use simple Strings, or possibly the URI class (i think it fixed some of this behavior, although i could be wrong).The second new thing I have learned today. I was wrong in reply # 1 because looking at the URL code for 1.6 I see that the hash code is generated from the IP address and this has a lazy evaluation. Each URL placed in a HashMap (or other hash based collection) requires a DNS lookup the first time the hash code is used.
    P.S. 40 seconds does seem a long time for a DNS lookup!
    Edited by: sabre150 on Feb 13, 2008 3:40 PM

Maybe you are looking for