Response structure empty for HTTP to RFC synchronous scenario

Hi experts,
I have a HTTP to RFC synchronous scenario.
The request is given to Price List ZBAPI.
The input to the BAPI is date, material no, customer no and condition type.
The output I am fetcching from access sequence table into the table FINAL  type structure ZFINAL which is
then sent back to source as a response.
But the problem is that I get this table as empty although BAPI returns data
Regards,
Mozila

Dear Mozila,
How did you check that BAPI returns data? Did you use an exact message sent from PI to the receiver business system? If not, I would suggest to take the message which was sent by PI to the receiver business system and use it when performing BAPI test.
Are table contents received by RFC adapter on PI side (can you see BAPI execution results in message contents for response message received by RFC adapter)?
Can you see any errors in RFC communication channel?
Did you check message monitor in Integration Server for the particular message? Are there any errors?
Please also check your message mapping - this may also cause the error in case RFC adapter receives correct results, but HTT client receives empty table.
My regards,
Vadim

Similar Messages

  • HTTP to RFC synchronous scenario Issue

    Hi Folks,
        Currently I'm working on a HTTP to RFC synchronous scenario.  Everything went well till i triggered the message. While triggering the message i'M GETTING IS AS BELOW
    Result:
    http-Status:  500 Internal Server Error
    Payload:
    <SAP:Error>
    <SAP:Category>Application</SAP:Category>
    <SAP:Code>MAPPING.EXCEPTION_DURING_EXECUTE</SAP:Code>
    <SAP:P1>com/sap/xi/tf/_MM_Comcode_</SAP:P1>
    <SAP:P2>java.lang.NullPointerException</SAP:P2>
    <SAP:Stack>java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_MM_Comcode_: </SAP:Stack>
    </SAP:Error>
    I also tried executting the message testing tool to see the trace and the below result I got
      <?xml version="1.0" encoding="iso-8859-1" ?>
    - <Top>
      <First>BeginTrace</First>
      <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
      <Trace level="2" type="T">......attachment XI_Context not found</Trace>
      <Trace level="3" type="T">Mapping is determined</Trace>
      <Trace level="1" type="T">Interface Mapping http://www.http-rfc.com IM_Comdet</Trace>
      <Trace level="3" type="T">Object ID of Interface Mapping CA9DBC0BCB27311FBAA3C4CE387CEC3B</Trace>
      <Trace level="3" type="T">Version ID of Interface Mapping 226C2EB123A711DFC0F4FAEBC0A80020</Trace>
      <Trace level="3" type="T">Mapping Steps 1 JAVA com/sap/xi/tf/_MM_Comcode_</Trace>
      <Trace level="3" type="T">Dynamic Configuration Is Empty</Trace>
      <Trace level="2" type="T">Mode 3</Trace>
      <Trace level="3" type="T">Creating Java mapping com/sap/xi/tf/_MM_Comcode_.</Trace>
      <Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._MM_Comcode_</Trace>
      <Trace level="2" type="T">Java mapping com/sap/xi/tf/_MM_Comcode_ completed. (executeStep() of com.sap.xi.tf._MM_Comcode_</Trace>
      <Trace level="3" type="T">Dynamic Configuration Is Empty</Trace>
      <Trace level="1" type="E">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
      </Top>
    But still I'm not able resolve this issue kindly help.
    Regards,
      Santosh

    Looks like there is some mapping problems ,may be the RFC connection is not properly configured .Here is the link to configure the connection between ECC and PI :
    http://wiki.sdn.sap.com/wiki/display/XI/ConnectionSettingsbetweenECCandPIsystem
    May be there is no value retrieved from the ECC system so it is saying null value.
    For proper configuration check you can refer the following blog:
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    I am a beginner so not the full answer is there but may be this would help you.
    Regards
    Ravi Anand

  • Message Interface for HTTP to JDBC synchronous scenario

    Hi Experts,
    Could you please explain the Message Interface from the below blog. Actually, I am confused with the Outbound Interface. Is it correct?
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
    1. LoginData_Sync_OUT_MI
    Input Message : Role_MT
    Output Message : LoginData_MT  
    2. LoginData_DB_Sync_IN_MI
    Input Message : LoginData_DB_DT
    Output Message : Dummy_DT
    Regards
    Sara

    Hi All,
    Here is my Interface mapping's problem details.
    Scenario : I have to pass EmpId as a request from webservice to JDBC, If we have the EmpId address in the JDBC then we have to return the address of the employee as a response to Webservice.
    Please find the below datatype, message type and etc., which I have used it for the scenario.
    1. Data Types:
    a) DT_REQUEST ( Webservice to XI request)               
         1. EmpId
    b) DT_JDBC_REQUEST  ( XI to JDBC request)               
         1. EmpId ,2. EmpName, 3. Company,4. AddressLine1
         5. AddressLine2,6. City,7. State
    c) DT_JDBC_RESPONSE (JDBC to XI response)          
         1. EmpId ,2. EmpName, 3. Company,4. AddressLine1
         5. AddressLine2,6. City,7. State
    d) DT_RESPONSE  (XI  to Webservice response)               
         1. EmpId ,2. EmpName, 3. Company,4. AddressLine1
         5. AddressLine2,6. City,7. State
    2. Message Type created according to the Data Type.
    3. Message Interface:
    a) MI_Outbound
    <b>Output Message :</b> MT_REQUEST
    <b>Input Message :</b> MT_JDBC_RESPONSE
    b) MI_Inbound
    Input Message : MT_JDBC_REQUEST
    Output Message : MT_RESPONSE
    4. Message Mapping:
    a) MM_REQUEST[EmpId mapping]
    Source Message : MT_ REQUEST
    Target Message : MT_JDBC_REQUEST
    b) MM_RESPONSE [Mapping for all the fields]
    <b>Source Message : MT_JDBC_RESPONSE
    Target Message : MT_RESPONSE</b>
    5. Interface Mapping
    IM_WEB_DB
    Source Interface : MI_Outbound
    Target Interface : MI_Inbound
    Request :
    Source Message : MT_REQUEST
    Target Message : MT_JDBC_REQUEST
    Response :
    <b>Source Message : MT_RESPONSE
    Target Message : MT_JDBC_RESPONSE</b>
    Here the source Message should be MT_JDBC_RESPONSE and the Target Message should be MT_RESPONSE. But when I tried to create the Interface Mapping I am getting the above bolded Response Messages automatically populated by XI.
    Actually, I have followed Siva's blog to do this scenario. Finally confused with the Interface Mapping's response messages. So, please help me out with this scenario steps.
    Regards
    Sara

  • Jdbc-rfc synchronous scenario

    Hi...All,
    we r plaing to do JDBC-RFC Synchronous Scenario with out BPM,please tell me any settings are required for this scenario.any body is having any links regarding this type of scenario pls share with me...that is helpfull for me...
    thanks in advance,
    Pasi.

    Hello Pasi,
    JDBC-RFC Synchronous Scenario with out BPM,
    Go through this links...
    JDBC Sync - RFC Sync Scenario without BPM
    File - RFC - File without a BPM - Possible from SP 19.
    JDBC-RFC-File
    Re: jdbc-rfc synchronous
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    JDBC-RFC Scnario mapping problem
    Thanks,
    Satya Kumar
    JDBC---RFC will Support Sync?????????

  • File to RFC synchronous scenario stopped Picking the files

    Hi Experts,
    We have a File to RFC synchronous scenario. Till yesterday night it is working fine.
    But suddenly it is stooped working.In moni, i can see the failed messages with the Mapping error " Can not create target element, values missing in the queue context "
    No Payload in moni / communication channel monitoring / Message monitoring. I've noticed that, wrong files placed in the To-be- processed files and the adapter picked those files and failed in mapping.
    I tried by stop and start the communication channel / did some dummy changes in the communication channel and activated. cleared the cache.
    But still the communication channel is not working.when i stop and start the communication channel it will try to process the wrong files and failed.
    Give me your valuable inputs to resolve this issue.
    Regards
    Bhargava krishna

    Hi Bharghav,
    Please go through the below,
    Symptom
    FTP Adapter is being used in the business scenario for message processing.
    During file processing it is noticed, that the FTP sender channel stops
    polling. There is no error in the channel monitor or the trace/log files
    and the polling jobs are correctly displayed in the AFW scheduler table.
    The issue is observed after a network connection issue with the FTP server.
    In order to remove the hanging locks from the FTP Adapter, the parameter
    'ftp.timeout' setting is required to be set, which releases the lock once
    the timeout value is expired. But in the above situation, the value for the
    'ftp.timeout' is not taken properly while establishing the data connection
    by File Adapter.
    Other terms
    FTP Adapter, sender, FTP, adapter, timeout, stalled, network, hang, polling
    Reason and Prerequisites
    Program error
    Solution
    The hanging situation has now been improved by code changes. Please see
    section "SP Patch Level" of this note for a list of updated software
    components.
    To get this correction available in your Support Package you need to apply
    the patch matching to your Support Package version as per the instructions
    in the NetWeaver Support Package Stack guide which can be found on the SAP
    Service Marketplace as described in SAP Note 952402.
    Thanks & Regards
    Uday.S

  • Java Proxy - XI - RFC Synchronous Scenario OUTBINDING Problem.

    Java Proxy -> XI -> RFC Synchronous Scenario. Problem
    Hi,
         I'm doing a Java Proxy -> XI -> RFC Syncronous Scenario.
         A Java Server Socket is running as a Demon. When a client make a request to the Java Server Socket, this one call Java Proxy Client and set up the parameters.
         The first time that execute the scenario it works perfectly but no the next one and so on.
         The error when I check the monitor (TCODE: SXMB_MONI) is in PLSRV_OUTBOUND_BINDING.
    <Trace level="1" type="B" name="CL_XMS_PLSRV_OUTBINDING-ENTER_PLSRV">
      <Trace level="1" type="T">no outbound binding found.</Trace>
      <Trace level="1" type="T">No standard agreement found for , DES210_DEV, , JPX_DEV, urn:servipago:SERVIPAGO_SAP_02, mi_os_t1</Trace>
    </Trace>
    <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    And it has sense, because my scenario doesn't begin with the execution of FM (RFC).
    A Hint, my services in the first try are:
         <b>Sender Service:</b>          JPX_DEV (Java Proxy Client)
         <b>Receiver Service:</b>     DES210_DEV (R/3 4.6C)
    But the second try and so on the services that I saw in the monitor are:
         <b>Sender Service:</b>          DES210_DEV (R/3 4.6C)
         <b>Receiver Service:</b>     JPX_DEV (Java Proxy Client)
    I can't understand why they swich each other.
    Any idea?

    Hi,
    Outbound binding problem is because of Reciever Determination/Agreement is not activated or refreshed correctly.
    Try to recreate or refresh and activate it. Then check it.
    also do the cache refresh in SXI_CACHE.
    Also in go to Integration Builder(XI home page)->Administration->Cache Overview and do all the cache refresh.
    Hope this helps
    Regards,
    Moorthy

  • HTTP and RFC related scenarios

    Hi
    Can you give HTTP and RFC related scenario links ?
    Urgent pls
    Thanks,
    Message was edited by:
            s s

    Hi s s,
    see the below links, they will help u.
    HTTP to RFC
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci983752,00.html
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/e002416225f023e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/f6/daea401675752ae10000000a155106/frameset.htm
    Is it possible to use the RFC sender adapter for asynchronous calls?    Async call
    <a href="http://File to RFC using BPM-Starter Kit: By Arpit Seth">File to RFC using BPM-Starter Kit: By Arpit Seth</a>
    regards
    sreeni

  • HTTP to RFC  - Async scenario

    Hello Experts,
    I am getting the following error when working with HTTP to RFC Asynchronous scenario (In this scenario, my client sends data through scheduling like per day at around 25 to 30 messages out of which 1 or 2 messages are in errored out with the following error message)
    ERROR:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!-- Request Message Mapping --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>Application</SAP:Category>
    <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
    <SAP:P1>com/sap/xi/tf/_MM_xxxxxxxxxxxx_~</SAP:P1>
    <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
    <SAP:P3>Invalid byte 1 of 1-byte UTF-8 sequence.</SAP:P3>
    <SAP:P4/>
    <SAP:AdditionalText/>
    <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_xxxxxxxxx_~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Invalid byte 1 of 1-byte UTF-8 sequence.
    </SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    However if I process the same error message manually, it is processing sucessfully.
    Please help me in resolving this issue.

    Hello Stefan,
    I don't find any non-ascii character in that respective XML Tags.
    As I explained you, Suppose when there is an invalid character in the XML tags, even it should not process the message when I process it manually, But it is sucessfully processing(when manually processing).
    Below are the few XML Tags at which the invalid character is comming(message is errored out) in this XML Tags, but i dont find any invalid character in these
    Can you please help us in resolving this.
    Regards
    Madhu

  • Http-xi-RFC synchronous call - multiple records ?

    Hi Gurus,
    Can we have multiple records processing in RFC synchronous call ? for ex, BAPI_COMPANY_GET_DETAIL. I want to feed multiple company ids and get the responses in browser.
    I have changed cardinality in message mapping and interface mapping as <b>o to unbounded.</b> Tested the same which works fine.
    But, <b>when I activated the interface mapping, I get an error</b> which says I can not use multi mapping in synchronous RFC call.
    what is the alternative ? please help.

    HI,
    It is better to use the RFC lookup in mapping and get the multiple records , i men each one for one lookup , so that in your mapping use UDF for RFC lookup.
    see the below link
    Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    Also read thru this to get more idea on lookups - http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0
    Lookup’s in XI made simpler - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    /people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
    Lookups - /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    Lookups - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
    Regards
    Chilla

  • SOAP to RFC synchronous scenario with File

    Hi,
    My scenario is 
    Java application is sending SOAP message to PI and PI should route that message (after converting SOAP message to XI message) to RFC.
    2) After receiving the response from RFC PI should send the response to java application. Now here comes the little tweak, we need to map RFC response to File as well apart from sending SOAP response message (which is generated after mapping RFC response message to Java application response structure) back to Java application.
    Is it possible without BPM?

    Without BPM you can try below approach, but i would recommend you to use BPM.
        Develop    SOAP---->PI(rfc look up) -
    > SOAP/JAVA application
    map RFC loop up response to SOAP receiver and JAVA application/.
    Regards,
    Raj

  • HttpURLConnection , Response Code : 404 for HTTP method HEAD  302 for GET

    After establishing the connection For the URL : http://calendar.google.com/ the response code is different for different HTTP METHODS.
    For the method HEAD the response code is 404
    For the method GET the response code is 302
    Ideally according to W3 standards the header part for both methods should be same.
    www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
    Unfortunately all the websites are not following the same standards.
    The above brings up an important issue.
    (i.e) soley depending on the HEAD method for checking the validity of the link may fail sometimes even if the link is
    valid.
    Please put up your comments and observations on this.
    Sample Code
    public static void main(String[] args) {
    try{
    URL myurl = new URL("http://calendar.google.com");
    URLConnection connection = myurl.openConnection();
    if(connection instanceof HttpURLConnection) {
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    HttpURLConnection.setFollowRedirects(true);
    httpConnection.setRequestMethod("HEAD");
    httpConnection.connect();
    System.out.println("Response = "+httpConnection.getResponseCode());
    catch(Exception e) {
    System.out.println(e);
    Edited by: rama.krishna on Dec 3, 2007 3:47 AM

    Iam not encountering any problem.It's just a discussion.

  • File to RFC synchronous scenario

    Hello Friends,
    I have a file to RFC scenario.
    Sender is sending file synchronously and based on conditions within file i have to make call to various ECC instances and returning responses.
    I am using BPMmulticastparallel. Implemented conditional receiver determination and the correlation.
    Does anyone have such scenario example.
    Kindly share.
    Edited by: vishal kharat on Aug 5, 2011 2:47 PM

    Hi Mr.
    You can follow this example, regarding BPM implementation:
    http://www.riyaz.net/blog/a-step-by-step-guide-to-bpm-asynch-sync-bridge/technology/sap/170/
    For XPath Receiver Determination, follow this links:
    http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
    http://wiki.sdn.sap.com/wiki/display/XI/EnhancedReceiverDeterminationinSAP+XI

  • JDBC to RFC synchronous scenario (Urgent).

    Dear forum,
    My requirement is data is populated in oracle data base.we are fecthing the data from database through XI and sending it to R/3. RFC is sending the response (suceess/failure) to XI. And XI is updating the status message into database.
    For this,I have done the JDBC - RFC - JDBC syncronous scenario using BPM. .I got the successfull message under message monitering.Problem is I cannot able to find the data for RFC and JDBC reciever.
    Please find the following Configuration steps for the above scenario
    3 data types
    JDBC request, JDBC response one dummy structure to capture RFC response messages.
    3 message types for the above data types
    5 message interfaces.
    OB request,
    OB ABS request,
    IB Asyn for dummy,
    Syn ABS (JDBC req and dummy structure),
    IB JDBC response.
    4 message mappings.
    Mapping between JDBC request to JDBC request dummy.
    Mapping between JDBC request dummy to RFC request.
    Mapping between RFC response to JDBC response dummy.
    Mapping between JDBC response dummy to JDBC response.
    3 Interface Mappings.
    JDBC request to JDBC request dummy.
    JDBC request dummy to RFC request and RFC response to JDBC dummy response(Synchronous request and responce) .
    JDBC dummy response to JDBC response.
    Integration Process.
    Used following steps.
    Recieve step asynchronous -> Send synchronous -> Send asynchronous
    I can able to see the payload for sender under communication channel.But the data is not reached to RFC.can any one help me to come out of this problem.
    Points will be awarded for helpfull answers.
    Thanks & Regards,
    Naresh.K

    Hi Seshagiri,
    We are trying the same scenario with out using BPM.
    Following steps has been done in design(IR).
    2 data types for JDBC request & JDBC response.
    2 message types for the above data types.
    1 outbound synchronous message Interface.
    2 message mappings (JDBC request -> RFC request) and (RFC response -> JDBC  response)
    1 Interface Mapping.
    Could you please let me know how to maintain the collaborative profiles & and agreement details in Configuration(ID).
    Your valuable assistence is required to complete the interface.
    Thanks in advance.
    Kind Regards,
    Naresh.K

  • SOAP to RFC synchronous scenario with File without BPM

    Hi Folks,
    I have a requirement that has to be done with out BPM!!!
    Requirement:
    Soap will trigger the request to SAP(RFC) and SAP sends the response to a file and then after SOAP has to recieve the ACK from PI.
    1) Can we do this by without using BPM
    2)Can we use without BPM module entries for SOAP Sender
    Please suggest and help me out in this
    Thanks in advance,
    Regards
    vivek

    Hi Vivek,
      Why not have the SOAP interface defined as synchronous?
    You can avoid using BPM that way.
    Best Regards,
    Ravi

  • Soap to RFC  synchronous scenario

    Dear experts,
    i am doing a SOAP to RFC(BAPI_INTERNALORDER_GETDETAIL) sync scenario and the rfc returns a structure with the records as well as the BAPIRET2 records . 
    Do i need to use fault message types here ?
    If yes what would be its purpose in this scenario ?
    Ravi

    Hi,
    if you have BAPIRET2 then all the errors will be over there
    so I guess there is no need to use a fault message
    Regards,
    Michal Krawczyk

Maybe you are looking for

  • Why is my left audio output not working, when I have brand new headphones? (6th Generation Ipod Nano)

    I have recently been having problems with my Ipods audio output... The Left headphone puts out No sound at all... I am positive it is not my headphones... Any solutions or is it a harware problem?? Hope to hear Back ASAP thanks

  • Input file size limition in File Reader Adapter

    Hi, We have a File Read Activity(using File Reader Adapter) which works on a Polling model. Whenever a input file is found in a designated directory it invokes our BPEL web service. During load testing we found out that if input file size exceeds 7 M

  • Photo Transfer to 5G Questions

    I'd like to download photos from my digital camera to my 5G but don't really wish to spend $50 Can for the adapter that Apple sells. Was wondering then if my camera USB cable and iPod USB cable could simply be connected with a USB female-female conne

  • Compressing document with forms

    I have 1500 PDF documents to compress so they can easily be downloaded/sent (seperately or in small groups) via email. - They are engineering drawings of various industrial products, hence have images on them. - They also have fillable form fields, u

  • Need a Clarification in defining a Partner Profile

    Hi Experts, I have a requirment wherein i need to send delivery idoc delvry01 for all the deliveries created for a shipping point. I have created a output type ZLD0 and has Shipping point as the access seq. I have maintained condition records for the