Skip to Content
Scenario:

Here the input parameter for the RFC is sent through a file and the response from the RFC comes into XI which is then written into a file. The diagram of the following is shown below:

image
Fig1. File to RFC Sychronous Scenario

Design Steps:
  • Import the RFC (BAPI_COMPANY_GETDETAIL) which is available in SAP systems.
  • Create two Data Types FileRequest_DT and FileResponse_DT as shown below
  • image
    Fig2.Input File Data Type
    image
    Fig3.Output File Data Type
  • Create Message Type FileRequest_MT and FileResponse_MT for both the data types as shown below
  • image
    Fig4.Input File Message Type

    image
    Fig5.Output File Message Type

  • Create Message Interface for the message types as shown below
  • image
    Fig6.Message Interface FileRequest_OUT_MI of Input File

    image
    Fig7.Abstract Interface FileRequest_AI of Input File

    image
    Fig8.Message Interface of FileResponse_IN_MI Output File

    image
    Fig9.Abstract Interface FileResponse_AI of Output File

    image
    Fig10.Abstract Interface FileDetails_Sync_AI for File<->RFC

  • Create Message Mappings Request_MM(File to RFC) and Response_MM(RFC to File )as shown below
  • image
    Fig11.Request Message Mapping

    image
    Fig12.Response Message Mapping

  • Create the Interface Mapping File_RFC_IM as shown below
  • image
    Fig13.Request Interface Mapping

    image
    Fig14.Response Interface Mapping

  • Create BPM File_RFC_BPM as shown below
  • image
    Fig15.BPM

     In the following BPM the first block receives the file and hence triggers the BPM.The second block is a synchronous send block which triggers the call to RFC, takes the output and sends it further to the Asynchronous send step. The third step finally sends data to a file.

Configuration Steps:

  • Create an Integration Process File_RFC_BP for the BPM which we have created in Design.
  • Create three Communication Channel FileRFC_Send, RFC_Reciever and FileRFC_Recieve as shown below-
  • image
    Fig15.File Sender Channel

    image
    Fig16.RFC Receiver Channel

    image
    Fig17.File Receiver Channel

  • Create a Sender Agreement for sending file
  • image
    Fig24.Sender Agreement

  • Create three Receiver Determination as shown below
  • image
    Fig18.Receiver Determination for File ->Integration Process

    image
    Fig19.Receiver Determination for Integration Process->R/3

    image
    Fig20.Receiver Determination for Integration Process ->File

  • Create three Interface Determination as shown below
  • image
    Fig21.Interface Determination b/w File Service and Business Process

    image
    Fig22.Interface Determination b/w Business Process and R/3

    image
    Fig23.Interface Determination b/w Business Process and File Service

  • Create two Receiver Agreement one for the RFC and other for file as shown below
  • image
    Fig25.Receiver Agreement for RFC

    image

    Fig26.Receiver Agreement for File

Input:

The xml content which we are sending in the Info.xml file
image

The Info.xml file placed in the Input folder will be picked and deleted since the processing mode is delete.

image

Output:

The xml content which will receive in the Detail.xml file as output.
image
The Detail.xml is created in the output folder.

image

To report this post you need to login first.

35 Comments

You must be Logged on to comment or reply to a post.

      1. sati kuma

        Hi Siva,<br/><br/>when i am trying to compile this blog. i am getting one error message. that message is <br/><br/> <SAP:Category>XIAdapter</SAP:Category> <br/>  <SAP:Code area=”BPE_ADAPTER”>UNKNOWN_MESSAGE</SAP:Code> <br/>  <SAP:P1 /> <br/>  <SAP:P2 /> <br/>  <SAP:P3 /> <br/>  <SAP:P4 /> <br/>  <SAP:AdditionalText /> <br/>  <SAP:ApplicationFaultMessage namespace=”” /> <br/>  <SAP:Stack>No object type found for this message</SAP:Stack> <br/>  <SAP:Retry>M</SAP:Retry> <br/>  </SAP:Error><br/><br/>Could you please help me to fix this problem<br/><br/>Thank you<br/><br/>kum

        (0) 
  1. Anonymous
    Hi Arpith,

    Good blog…

    I don’t think backslash (“\”) is a part of URN character set.

    Regards,
    Sridhar

    (0) 
        1. Community User
          >>Right way
          Well sri…:-) …if u r talkin abt right way…then even i won’t prefer “\”.
          But i thot u were askin whether namespaces are allowed using this character”\” in a technical error sense 😉

          Cheers

          (0) 
  2. Karthik Sunil
    During the migration process problems have been reported for this blog. The blog content may look corrupt due to not supported HTML code on this platform. Please adjust the blog content manually before moving it to an official community.
    (0) 
  3. Anonymous
    Hi Arpit,

    Are we not supposed to give BAPI request and BAPI response as in Abstract Interface of RFC outbound message and inbound message???

    Navin

    (0) 
    1. Monica A
      During the migration process problems have been reported for this blog. The blog content may look corrupt due to not supported HTML code on this platform. Please adjust the blog content manually before moving it to an official community.
      (0) 
  4. Roman Becker
    Great bolg. I am sure I would have no problems if I would be a little deeper experience in XI.

    So some questions: (maybe some more screenhots would be great)

    1. Do I have to create actions in design time and how do they look like?
    2. Do I have to create an Integration Scenario and how does it look like
    3. how do I create all this in Configuration time

    I try to run the scenario for a week now and do not get any results due to not understanding the things I asked.

    Kind regards on any help.

    If anybody has this scenario running maybe she/he can send me some more screenshots. (becker.roman @ web.de)

    Thanks to all

    Roman

    (0) 
  5. Marco Enes
    Hi all,

    I’m having trouble setting the BPM Objects (2 Receive and 1 Send).
    Can anyone tell me what to set on their properties and any containers please?
    Thanks!

    Regards,
    Marco Enes

    (0) 
  6. Lewis Hamilton
    hi i am trying this scenario as you explained. just a little confusion in configuration should there be three business services? and if i am right the file system service has two communication channels. i am stuck and receiver determination.
    (0) 
  7. Sudheer J
    This blog is very clear on wht and all configurations to be done for getting the scenario done, especially the screen shots helped more for getting the scenario done. I could finish doing this scenario for my application in the project.

    Thank You Very Much!!!

    (0) 
  8. Lynn Wood
    This is a very good blogg and exactly what I need for my scenario.  The problem is I have no experience with BPM.  I have setup the Integration process as I think it should be but I get an error.  Would it be possible to go through the BPM steps in more detail?  Screen shots of the properties and containers on each step would be very useful.  Thanks.
    (0) 
  9. Robert Warde
    It’s supposed to cover BPM yet that is what it doesn’t cover. The detailed information that everyone wants to see is mossing. Very dissapointing and a waste of time.
    (0) 
  10. Abhishek Paul
    Hi Boss,
            I am following this blog to do my scenario but cud not understand why to use a different Business Scenario for the BAPI.
    confused.
    and problem facing with the bpm also.
    (0) 
  11. Prasad Kamath
    First timers may be stuck on the BPM part (as I was). Just a small extension to the BPM exlanation:

    You have to create container objects before you can attach the msg interfaces to the steps.

    In case while creating the container object you get the error: “XXX is not an abstract, asynchronous interface”, then refer this thread:

    Cant add an interface to a container in BPM

    (0) 
  12. Kiran Kanaparti
    hi i am trying this scenario as you explained. just a little confusion in configuration should there be three business services? and if i am right the file system service has two communication channels. i am stuck at receiver determination
    (0) 
  13. sai ch
    Hi Arpith,

    My scenario is File to Soap using BPM, i am getting error message in Integration Process(IR)
    below is the ERROR message displayed
    “Expression of simple type xsd:string expected” so could please guide me in this aspect.

    (0) 
  14. Dinesh Kumar
    Receiver Determination for Integration Process->R/3

    Could you please explain me, how do you create the receiver determination for Integration Process, with the Receiver – SAP02 and the BAPI – in the Receiver(Partner Service). I am not able to perform the same.

    (0) 
  15. jaime eduardo alvarez reyes

    i’m trying to use this example for my scnenario is XML to RFC TO XML, and my XML structure is next:so i want t know if is posible use this example for my scenairo,becuse the bmp is receiving many messages

    (0) 

Leave a Reply