RFC-Adapter, order not put in

Hi,
my scenario File -> XI -> R/3-Backend will be precessed successful. The Response Payload have the items and in detail of messages appears  succes status
"RFC adapter received an asynchronous message. Attempting to send tRFC for BAPI_PO_CREATE with TID XIfr1OyAQS4Td..."
But in R/3 the order ísn't put on.
Does one of you have an idea why???????
Thanks
Hüsniye

Try this code. This works perfectly for us:
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
  EXPORTING
    SALESDOCUMENTIN               =  SALESDOCUMENTIN
    ORDER_HEADER_IN               =  ORDER_HEADER_IN
    ORDER_HEADER_INX              =  ORDER_HEADER_INX
    SENDER                        =  SENDER
    BINARY_RELATIONSHIPTYPE       =  BINARY_RELATIONSHIPTYPE
    INT_NUMBER_ASSIGNMENT         =  INT_NUMBER_ASSIGNMENT
    BEHAVE_WHEN_ERROR             =  BEHAVE_WHEN_ERROR
    LOGIC_SWITCH                  =  LOGIC_SWITCH
   TESTRUN                       =  TESTRUN
    CONVERT                       =  CONVERT
IMPORTING
   SALESDOCUMENT                  =  SALESDOCUMENT
  TABLES
   RETURN                         =  RETURN
   ORDER_ITEMS_IN                 =  ORDER_ITEMS_IN
   ORDER_ITEMS_INX                =  ORDER_ITEMS_INX
    ORDER_PARTNERS                =  ORDER_PARTNERS
   ORDER_SCHEDULES_IN             =  ORDER_SCHEDULES_IN
   ORDER_SCHEDULES_INX            =  ORDER_SCHEDULES_INX
   ORDER_CONDITIONS_IN            =  ORDER_CONDITIONS_IN
   ORDER_CONDITIONS_INX           =  ORDER_CONDITIONS_INX
   ORDER_CFGS_REF                 =  ORDER_CFGS_REF
   ORDER_CFGS_INST                =  ORDER_CFGS_INST
   ORDER_CFGS_PART_OF             =  ORDER_CFGS_PART_OF
   ORDER_CFGS_VALUE               =  ORDER_CFGS_VALUE
   ORDER_CFGS_BLOB                =  ORDER_CFGS_BLOB
   ORDER_CFGS_VK                  =  ORDER_CFGS_VK
   ORDER_CFGS_REFINST             =  ORDER_CFGS_REFINST
   ORDER_CCARD                    =  ORDER_CCARD
   ORDER_TEXT                     =  ORDER_TEXT
   ORDER_KEYS                     =  ORDER_KEYS
   EXTENSIONIN                    =  EXTENSIONIN
   PARTNERADDRESSES               =  PARTNERADDRESSES
**checking if the BAPI returned some errors*****
LOOP AT return ASSIGNING <bapiret>.
    IF <bapiret>-type = 'E' OR <bapiret>-type = 'A'.
      success = space.
      EXIT.
    ENDIF.
  ENDLOOP.
IF success = 'X'.
****in case of success commit the BAPI*********
     CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait   = 'X'
      IMPORTING
        return = wa_bapiret.
ELSE.
      ROLLBACK WORK.
     ENDIF.
Also you need to pass on the information for "inx" structures. What I mean is , if you are sending data to field REF_1 in header_in, then ref_1 in header_inx needs to be passed witha value of 'X'.
The update flag in inx structure needs to be 'C' for create.
If have items in your sales order, then you have to pass the values for item_in and item_inx. Additionally you need to pass values for schedule lines also.
Hope this helps.
Thanks,
Bhaskar

Similar Messages

  • HTTP and RFC Adapter are not Required Sender

    Hi All,
    I have one dought....
    Why Plain HTTP and RFC Adapter are not Required Sender Communication Channel and Sender Agreements...
    I Know this two Adapter are in ABAP Stack....
    Please clarify my dought...
    Regards

    Idoc Adapters do NOT require Sender Communication Channel.
    The Sender System identifies itself at the Integration Server, with the fields SNDPOR and Client of the Control Record.
    Sender Communication channels are used for communication betweeen the Application System and the Integration Server.
    In the case of Idocs, all idocs are tranferred to the Integration Server pipeline and NOT to the regular EDI/IDOC interface.
    The RECEVIER DETERMINATION is based on the values in the Control Record.
    If you are doing ALE, then you have to maintain the idoc types which are NOT to be transferred to the Integration server by executing report IDX_SELECT_IDOCTYP_WITHOUT_IS.
    By maintaining the Idoc Types using this report, only these idoc types are sent to the regular EDI/IDOC interface.

  • HTTP Response code 404 - RFC Adapter des not connect to Integration engine

    Hi,
    I seem to have problem with XI Integration engine. My integration process does not go beyond adapter engine and it fails with the following error,
    Begining of the erorr report -
    2006-01-23 13:35:53 Success RFC adapter received sRFC for ZSCEN2_XI from <sysno>/<client>. Attempting to send message synchronously
    2006-01-23 13:35:54 Success Application attempting to send an XI message synchronously using connection AFW.
    2006-01-23 13:35:55 Success Trying to put the message into the call queue.
    2006-01-23 13:35:55 Success Message successfully put into the queue.
    2006-01-23 13:35:55 Success The message was successfully retrieved from the call queue.
    2006-01-23 13:35:55 Success The message status set to DLNG.
    2006-01-23 13:35:55 Error Returning synchronous error notification to calling application: Received HTTP response code 404 : Not Found.
    2006-01-23 13:35:55 Error Transmitting the message using connection http://<host>:55300/sap/xi/engine?type=entry failed, due to: Received HTTP response code 404 : Not Found.
    2006-01-23 13:35:55 Error The message status set to FAIL.
    2006-01-23 13:35:55 Error Returning to application. Exception: Received HTTP response code 404 : Not Found
    end of error report -
    and the runtime workbench does not connect to Integration engine and fails with the following error,
    begin error report -
    javax.ejb.CreateException: Unable to log on to system XID in language en with user XIRWBUSER
         at com.sap.aii.mdt.server.integrationengine.IntegrationEngineMonitoringBean.ejbCreate(IntegrationEngineMonitoringBean.java:374)
         at com.sap.aii.mdt.server.IntegrationEngineHomeImpl10.create(IntegrationEngineHomeImpl10.java:185)
         at com.sap.aii.mdt.server.IntegrationEngineHome_Stub.create(IntegrationEngineHome_Stub.java:56)
    end of report -
    Have anyone experienced the same issue?. Are we missing some post installation configuration?.
    Thanks in advance
    Regards,
    Arul

    HI Anulraja,
    Your Adapter Engine searches the pipeline url of the integration engine from the SLD.
    Check the Bussiness System in Sld , which you'll have defined for XI Server.
    It should have ROLE : Integration Server And
    pipeline url: http://ux0800:55300/sap/xi/engine?type=entry
    should be this if your http port is 55300.
    Check if this url is right in SLD-Bussiness System.
    You can check the exact http port in transaction sxmb_adm.
    Go to Integration engine configuration and then click on check icon(F7).
    It should match with that provided in the BS in SLD.
    By default it should be 8000.
    Check all these things and then try.
    Regards,
    Yomesh

  • RFC ADAPTER : Data not getting trasfered to XI

    Hi All,
    I am using an RFC to File adapter scenerio , The sender is RFC FM ,The config has some constants on reciving side . When the outbound program is run , only the  constants are transfered to XI , but the other fields are not getting populated in XI .
    Best Regards
    Chan

    hi,
    this means that you're not populating them
    duing the FM call
    put a break before the CALL function
    of your RFC and check if all fields
    are populated correctly
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • RFC adapter does not work

    I create a RFC Receiver CC, I got the following trace error in XSMB_MONI in receiver call adapter phase&#65306;
    - <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP">
      <Trace level="2" type="T">old values in cache (no lock found) - start reading from SLD</Trace>
      <Trace level="1" type="T">error reading SAP_XIAdapterFramework from SLD</Trace>
      <Trace level="1" type="T">error reading details from SLD for Adapter Engineaf.di1.usmdlsdowa122</Trace>
      <Trace level="2" type="T">Get logon data for adapter engine (SAI_AE_DETAILS_GET):</Trace>
      </Trace>

    You have to create a business system of type WEB AS ABAP. In the corresponding Technical System specify all the details of SAPR3 server on which this RFC exists.
    Then import the RFC in IR and this Business system in ID.
    And create your Receiver CC under this business system.
    -Gouri
    Award points if helpful

  • Queries on RFC adapter

    Hi,
      Reading up on RFC adapter at the moment
      Read that RFC has limitations such as No Call-Back, no RFC-GUI-Debug, no qRFC and no SNC.
      Is there any link that will give a more detailed explaination on the above items?
      Thanks.

    Hi,
      These links provide more information
    http://help.sap.com/saphelp_nw04/helpdata/en/11/028417f9f8b24cbe1b0b398e1cb76a/frameset.htm
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii (search for RFC adapter)
    SAP note : 730870
    Regards
    Vishnu

  • Why is the RFC Adapter so unstable

    Hi all,
    I have a scenario where an IDOC is sent from the sender system and an RFC enabled Function Module is called on the target system. Sometimes I get an error in the Adapter for no aparent reason. I check the RFC adapter trace file but none of the exceptions was raised and I am not able to see what was the problem.
    But, if I restart the RFC Adapter and send the IDOC again, everything's allright. Why? Is there any other trace avilable somewhere? Is there any way to restart the RFC Adapter periodically and automatically?
    Thanks and regards,
    Nuno

    This sounds like a bizarre scenario.  Why would a Idoc (asynchronous) be calling an RFC (synchronous)?
    Unless the RFC is doing update?  Then you have more problems.  You are mixing your QoS from EO to BE.  The delivery is no longer guaranteed.  The posting to the RFC could work but XI may not get the acknowledgement - RFC adapter does not do commit so you must have a commit in the remote function.  If no acknowledgement is received, do you resend and risk duplicate updates?  How do you guarantee EO delivery?  The sender system is right in expecting EO for it's outbound Idoc.
    In all the training material RFC is intended for data retrieval, not data posting.  This is consistently done with Idoc (EO, or EOIO).
    I would consider changing the scenario to Idoc->xi->Idoc.

  • RFC adapter with load balacing

    Hi Guys,
    I have configured RFC adapter for load balancing and i am getting the following error.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: RfcAdapter: receiver channel has static errors: 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 message server host failed Connect_PM TYPE=B MSHOST=sapdev02 GROUP=PUBLIC R3NAME=EDV MSSERV=sapmsEDV PCS=1 ERROR service 'sapmsEDV' unknown TIME Mon Jun 4 17:11:55 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -3 MODULE niuxi.c LINE 1725 DETAIL NiPGetServByName2: service 'sapmsEDV' not found SYSTEM CALL getservbyname_r COUNTER 1</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    any help would be appreciated
    Thanks,
    srini

    Hi,
    check out these:
    1) SM59 - test connection
    2) look all the parameters of Receiver RFC adapter configuration
        Proper authentication details etc
    3) Save the RFC adapter channel and activate the same
    4) Refresh the cache for the Adapter metadata. Go to Integration BuilderAdmin>Cache Overview-->Directory -->Adapter Metadata
    5) Probably the problem may be becuase of RFC Adapter is not active. Restarting the RFC adapter at J2EE admin level may solve your problem
    Hope this helps,
    Regards,
    Moorthy

  • When RFC-Adapter is down, only the adapter-status shows error flag

    Hi all,
    How can I reprocess a message that did not reach the endpoint because the rfc-adapter was down, if the overall status of the message is "Message Processed"?
    Thaks,
    Nuno

    Hi,
    The question is about receiver RFC adapter and not about the sender RFC adapter. So single / mass re-start from SM58 won't help (Report RSQIWKEX for q-RFC and report RSARFCEX for t-RFC).
    If RFC adapter is down, message won't reach to the destination system via adapter engine. IE monitoring will say that message is successfully processed (so report RSXMB_RESTART_MESSAGES will not help) . In this case, if you go to adapter engine monitoring from RWB, you will be able to see the status Waiting or System error.
    I'm not sure how to re-start this message, but probably you can do this through MDT.
    May be SAP note - 813993 will help you.
    Good Luck & Bapu, Jalasa Kar........

  • RFC adapter in XI 3.0 not working properly with BAPI in R/3 4.6C

    Here is the scenario.
    An XML file is received from our customer. This file contains purchase order information that is used to create a sales order in our SAP 4.6C system. Once the sales order is created an acknowledgement is generated and this is returned back to our customer in an XML format.  This scenario is working perfectly fine in our XI 2.0 system but is not working properly in our XI 3.0 test environment. Our custom function module in R/3 is a wrapper function that uses a standard SAP BAPI to create the sales order. Part of the function module does use the statement
    call function 'BAPI_TRANSACTION_COMMIT'
    The last thing the BAPI does is call another function module that using an RFC destination that will return and order acknowledgement.
    Here is what happens within XI and our SAP system.
    The XML file is received and mapped to our imported RFC. The RFC adapter is called and the information is passed onto SAP where our customer function module executed. The sales order is created within SAP without any problems and the second function module is called which references an RFC destination assigned to our XI 3.0 system. The information is sent back to XI and an appropriate file is created for our customer.  All seems to be working properly except that when the original RFC is sent from XI to SAP,  SAP creates a short dump stating
    "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:" Then it is put back into the que where 5 minutes later it executes again and trys to recreate the sales order in SAP. (again, this same function module executing from XI 2.0 works fine)
    I believe I have everything configured properly because the SAP side is being executed and I am successfully passing information back from SAP to XI. However the original function module in SAP is failing with the above error message. It appears that the original function module cannot communicate back with XI. I have had SAP looking at this issue and they have not been successful yet in solving this problem.
    Any ideas.
    Thanks,
    Jim d'Hulst

    Hi,
    I think the problem is with the send back of acknowledgement to XI. Does the DeliveryException state something about the sender agreement? I guess you are using a statement like below:
    CALL FUNCTION 'ZABCD'
    destination <tcp/ip destination>
    exporting
    input = ack.
    In that case, check whether the TCP/IP destination is working fine. Also, to be able to exchange message, the structure of the Function Module ZABCD needs to be identified as the sender in XI Configuration (Integration Directory).
    Also, check your config with the blog mentioned below:
    <a href="/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit">/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit</a>
    Regards,
    Amitabha

  • RFC adapter not responding

    Hi guys,
    We are facing the following problem:
    We have a receiver RFC adapter that executes some RFC functions on a SAP R/3 system connected to XI. When the R/3 system is down (e.g. for maintenance reasons) the RFC adapter (communication channel) has a red "error" status in Communication channel monitor (that could not connect to R/3), which is ok. However, when the R/3 system goes up, the RFC communication channel remains in the same error status, irrespective of the fact that the R/3 is now up. Morever, it needs some manual stop and start from CC monitor in order to be able to "see" that the R/3 is now up. This has an impact on our interfaces that it may be the case that sometimes the administrators, fail to notice this and the corresponding interfaces that make us of the RFC adapter, fail for no reason.
    Is there a way to avoid this undesirable situation?
    Best Regards
    Evaggelos Gkatzios

    Hi Gkatzios,
                          we also facing same problem as your,,when the R3 system is down for some maintenance reason at the same time XI expects something from R3 ,in this situation RFC adapter is going to error state,when R3 is up RFC adapter works fine but CC still shows error status.but some times we have to stop and start CC manually.
    everytime when we open the CC monitoring particular CC always in error state eventhough it is working fine..
    If you find any solution for this please let me know.
    Thanks for your time.
    Regards
    Rao

  • Need to raise a restriction that user can not put multiple PO references in PO Number field in Sales Order.

    Hi,
    reference to subject we need a restriction that user can not put different PO reference within an Order. One Sale Order should have one PO reference at Header and Line's of the sales order. Currently what is our issue that all the sales order are created by Quotes from quoting module. Whatever the line items come from quotes into sales order having no PO Number reference with them but when user completing the sales order user puts the PO reference at Sales Order Header which can not be linked or passed on those line items who captured from quotation. Due to this PO reference value difference between Lines and Header system generates multiple AR invoices based on unique PO Number references within an order.
    we need single PO reference per sales order. How can we restrict this if line level PO number reference is different from Header PO number reference that user can not proceed further?
    Regards
    Kaleem A. Bhatti

    Dear Zakir,
    Thanks a lot for your favorable response. The query is solved now by defaulting rules.
    Regards
    Kaleem A. Bhatti

  • RFC Adapter not Call

    Hello Friends,
    I am working on XI 2.0
    My Scenario is
    IDOC --> XI --> RFC Adapter --> R/3 System
    I am configuring the RFC adapter for the SAP system.
    But when I am able to try to call using the Integration Engine it’s not call the RFC adapter.
    I define the end point as
    RFC Adapter
    (X) Load Balancing Deactivated
           Application Server -- <host name>
           System Number      -- 00
    When I run the scenario it show me in the <b>sm58</b> transaction as
    <b>Connection Close (no Data)</b>
    And in the SXMB_MONI Transaction it shows
    <b>A. Status</b> as <b>Green Flag</b> means <b>Message schedule on outbound side</b>.
    So can you please identify and suggest me the solution or what else configuration is required.
    Thanks & Regards,
    Gaurav Jain

    try to register all queues in SXMB_ADM -> Manage queues.
    I think that should help you solve the issue.

  • RFC Adapter not getting data

    Hi experts!
    I am developing a RFC to File scenario on PI 7.1 EHP1 and ECC 6.0 which is synchronous. Following the Help page Setting Up an RFC Destination for the RFC Adapter I created two destinations. The fist one is a TCP/IP, name RFCDE1COMPANY2, program id BAPI_COMPANY_GETLIST and corresponding gateway host and service I found at SMGW (Parameters). The second one is a Logical with name RFCDE1and reference entry RFCDE1COMPANY2.
    At my RFC Sender Adapter I configured the same gateway info and the same program id. After that I tested both destinations and it worked. I created the following report to call the bapi on that destinations::
    REPORT  ZREP_BAPI_COMPANY_GETLIST.
    DATA: company_list TYPE STANDARD TABLE OF BAPI0014_1.
    CALL FUNCTION 'BAPI_COMPANY_GETLIST'
      IN BACKGROUND TASK
      DESTINATION 'RFCDE1'
      TABLES
         COMPANY_LIST = company_list.
    COMMIT WORK.
    At SXMB_MONI the request message was processed and the output file generated, but it has only the root tag. At moni the inbound message has no data (company data).
    I tested the BAPI_COMPANY_GETLIST at SE37 and there are 149 entries. When I executed this same BAPI with RFC target sys configured to my destination, it didn´t show any data and has an exception called SYSTEM_FAILURE. I think probably the error is on RFC destinations but I can´t figure it out what is wrong.
    Best Regards,
    Gabriela

    Hi experts,
    Thank you all for your quick response.
    At the TCP/IP Destination there is a button "Unicode Test", according to this test my target system is unicode (character size 2). I changed the option at MDPM&Unicode on that TCP/IP Destination like Madhusudana described. I also selected the checkbutton "Unicode" on sender RFC communication channel.
    About the sync/async, I will not use sync async bridge because this scenario can be async. One think that I realized is that when I call my report, I am implicitly calling PI asynchronously and when I call the BAPI directly by the test tool, I am implicitly calling PI synchronously. That is why most part of my tests did not work before.
    Now I can see on SXMB_MONI that the scenario worked and the file was generated. But the data are still not being showed on inbound payload. I think something is wrong with my destinations but I can´t figure it out what is.
    Ps.: I would prefer to use XI proxies, but this scenario will be configured (not now) on a XI 3.0 with ERP 4.6 C. Now I´m just learning how to handle with RFC Adapter.
    Any ideia?
    (Points granted)
    Thank you and best regards,
    Gabriela

  • When I try to Bookmark a new page, I do not get the "Page Bookmarked or Edit This Bookmark" window. I t does place the site into my bookmarks but I have to go to "organize" bookmarks in order to put it where it belongs.

    When I try to Bookmark a new page, I do not get the "Page Bookmarked or Edit This Bookmark" window. I t does place the site into my bookmarks but I have to go to "organize" bookmarks in order to put it where it belongs.

    How are you saving a new bookmark?
    There 5 ways to save a new Bookmark in Firefox, the first 4 should offer to save the new bookmark in a folder:
    1.
    2. Right-click and select Bookmark this Page.
    3. Bookmarks > Bookmark this Page
    4. Double-click the Star that is on the right side of the Location bar.
    4a. (A single-click on the Star will save the new Bookmark to the Unsorted Bookmarks folder, without opening the Edit this Bookmark dialog.)
    5. Drag the website image in the URL bar into the Sidebar view of Bookmarks
    or to the Bookmarks menu bar item and then into the drop-down or onto the Bookmarks Toolbar

Maybe you are looking for

  • How can I install WXP on my U100?

    I am the happy owner of several 100CTs and 110CTs, and after being so disappointed by my UMPC Packard Bell XS-20, I decided to buy a few broken Libretto U100s. After many patient hours, I have now got a fully working Libretto. But...... I have finall

  • Can I convert an standar account into an admin one since Terminal?

    Hi, Everybody! Trying to overcome some bugs on my MacBook, I decided to erase some folders from system and install Mac OS X from its original DVD. Bad idea. Now I only have one account, which may be the Admin one, but appears as a Standar one. I'm bl

  • Creating triggers in a logical standby database

    Does anyone know if its possible to create and enable a trigger in a logical standby database on a 'guarded' table? I've been able to create the trigger (as an after insert trigger) and it appears to be valid but it never seems to fire, despite inser

  • After most recent Reader update can't save fillable forms.

    After the most recent Adobe Reader XI update, we can no longer save PDFs with fillable forms on the first save attempt. A little background for you. We have forms that we periodically need to change the information in. My users came to me with this i

  • Focus Rails

    I just purchased a canon MP-E 65mm macro lens, I have checked on line for different styles of focusing rails to many to choose from. I need some info on what would work best for me, I seem to like the Novoflex MFR # castel mini. I have a canon 60 D,