Skip to Content
Author's profile photo ROSHAN CHHAJED

Receiving IDOC in Business Objects Data Services (BODS) from SAP

Document Purpose

This document provides steps required to load data in BODS from SAP using IDOC interface. This document will be used at the time of proof of concept to demonstrate the ability of Business Objects Data Services (BODS) Real-Time job to receive data using IDOC interface from SAP.

The main objectives are:

·         Loading data in BODS from SAP using IDOC

·         Demonstrate how BODS can be used to receive data using IDOC

·         Display required configurations step-by-step & invocation

·         Demonstrate actual sample load using BODS Real-Time job


This document provides systematic approach for the data load in three sections:

  1. Configuration Required at SAP Side:
  2. Configuration Required at BODS Side:
  3. Demonstration Sample Load using BODS Job:

Each of above sections provide information as in how to configure the specific parameters required to get both SAP & BODS ready to communicate with each other. Screen shots provided for better understanding of the parameters & their configuration.


SAP [ECC 6.0] Configuration for Outbound IDOC Communication

1.   Display IMG [/nsale]

Connect to SAP System using SAP [ECC 6.0] GUI

Use Transaction Code (TCODE) /nsale to “Display IMG”


                                                  1.0 Display IMG

2.   Defining Logical System


      Expand Logical Systems tree & click on the Clock icon in front of “Define Logical Systems


                                   2.0 Logical Systems: overview

Click on the “New Entries” Button

For SAP Outbound IDOC, two Logical Systems are required

First Logical System for SAP (ID4CLNT100)

Second Logical System for BODS (ID100CBODS)

Create these two Logical System as shown below


                    2.1 New Entries for Logical System

Click on the “SAVE” Button to save both the Logical Systems.

Confirmation message “Data was Saved” will be displayed as shown below.


                                   2.2 Data Saved Conformation

Verify two (2)  Logical Systems are present in the SAP


               2.3 Verifying Logical System

3.   Configure RFC Connection [/nsm59]

Use TCODE “/nsm59” to configure RFC Connection


                                        3.0 Configurations of RFC Connection

Select TCP/IP Connection as shown above & click on the Create Button to configure new RFC Connection.


                                  3.1  Creation of New RFC Destination: Technical Settings

Provide required information as shown above

Note: We are using registered Program ID as “DI_RFC_Client”. This could be any simple name, but the same name should be used while configuring “RFC Clients” using BODS Administrator. (Ref: 2.Client Interfaces, page no 21)

Click on the MDMP & Unicode tab


                      3.2 Creation of New RFC Destination: MDMP & Unicode

Note: We have selected “Unicode” radio button because BODS Target RFC Client is Unicode.

Important: There are two buttons “Connection Test” and “Unicode Test” we will test RFC Connection after “Configuring RFC Client” using BODS Administrator in Steps provided later in this document.  (Ref: 3. Testing RFC Client from SAP, page no 23)

4.   Create Transactional RFC Port [/nwe21]

Use TCODE “/nwe21” to configure the RFC Port

Expand Ports tree to go to “Transactional RFC”


                                        4.0 Creation of New Transactional RFC Port

Select Transactional RFC and click on “Create” Button.


   4.1 Transactional RFC Port Name

Provide Name “DI_PORT” as shown above.

Click on Continue button 


Port Name “DI_PORT” will appear in the list as shown below.


                        4.2 Transactional RFC Ports Overview

Click on the DI_PORT to provide Description & RFC destination (“DI_RFC_DESTINATION” ) that we have created in earlier section (Ref: 3.Configure RFC Connection, page no 7)

5.   Create Partner Profile [/nwe20]

Use TCODE “/nwe20” to configure Partner Profile.


                                               5.0 Creation of New Partner Profile

Click on Create button to create new partner profile

Create partner profile as shown below 


1. Provide partner no.  “ID100CBODS “ i.e same as BODS Logical System.

2. Agent  50010120 “EDI Department”  is necessary to communicate with non-SAP systems like BODS. Without this agent IDOC communication will not be successful.


                                      5.1 Partner Profile Permitted Agent

Click on the Save button to save the partner profile

After saving the “Create outbound parameter” will be activated in “Outbound paramtrs”


                                      5.2 Create outbound paramtrs.

Click on “Create outbound parameter”   button in “Outbound paramtrs” section.


                                       5.3 Partner Profile: Outbound parameters

Provide the Message Type “MATMAS” & IDoc Basic type “MATMAS01″

Save “Partner profile: Outbound parameters” using Save button

Confirm Partner Profile & Outbound Parameters added.


                                                          5.4 Outbound Parameters Overview

6.   Change Distribution Model [/nbd64]

Use TCODE “/nbd64” to configure Change Distribution Model


                                                       Screen Shot 6.0 Change Distribution Model

Click on the “Create Model View”

Note: If this button is inactive then select the Model View in left hand tree and click on Edit button to enable “Create Model View” button & active.


                       6.1 Create Model View

Provide Short text & Technical name as follows:

Tech name same as short text.Click continue button

The DI_MODEL will be added to the list as shown below


                                        6.2 Distribution Model Changed overview

Select DI_MODEL and click on “Add Message Type” button


               6.3 Add Message Type for Changed Distribution Model

Sender is SAP Logical System & Receiver is BODS Logical System.

Provide all information as shown above and click on continue button.

The Distribution Model created is shown below.


                            6.4 over View of Distribution Model

Check if IDOC distribution is turned on.

Run transaction “/nbd61” and make sure the checkbox is set.


                  6.5 Activation Status

Create Real Time Job in BODS

1.   Create SAP Data store

Go to Data stores tab in BODS Designer, right click on blank area to create “NEW”.

Create SAP Datastore by providing required SAP Application Server Information & creadentials


                      1.0 Creation of SAP Data Store

Expand the “SAP_TTL_Client100_DS” datastore

Select the IDOCs and Right click , click on “Import By Name…”


                    1.1 IDOC’S importing


               1.2 IDOC Import by Name

Provide Type & Name as shown above & click on “Import” to import IDOC in data-store

2.   Build Real Time Job

Build a Real Time Job with a DataFlow inside…


                    2.0 Real Time Job Overview.

Data Flow is as Follows


                           2.1 Data Flow

Query is used to Unnest  as follows


                              2.2 Query Unnest

Note: You can unnest by right clicking on MATMAS01 as shown below


          2.3 Unnest Option

The Target XML file configuration is a follows :


         2.4 Target XML file Configuration

Note: Make sure “Make Port” checkbox is checked.


Configuring RT Services and RFC for IDOC through Web Administrator

1.   Configuring Real Time Service & Service Provider

Open BODS Web Administrator

Expand Real-Time tree and select Real-Time Services to do Real-Time Service Configuration

Provide required information as shown below:


                    1.0 Web Administrator: Real Time Services Configuration

Job Name is Real Time Job name that you have created in earlier stage in designer (Ref: 2.Build Real Time Job, page no 18)

Browse the Job and select Job name

In service provider settings – Click on Add button to add Job Server and make it enabled.

         Once the Service is configured you can start the service by selecting the service & click on start button.


                                   1.1 Real Time Services Status

2.   Client Interfaces

Using BODS Web Administrator

Expand Real-Time tree and select Client Interfaces to do RFC Client Configuration

Provide required information as shown below


                                       2.0 RFC Client Configurations

Click on Apply button

Note: RFC Program ID must be same as register Program ID given while configuring RFC Connection. (Ref: 3.Configure RFC Connection, page no 7)

Go to “List of Supported IDOC” tab & then click on “Add” button to add IDOC.


                                             2.1 Supported IDOC

Provide IDOC Type which is BASIC IDOC TYPE in SAP. (Ref: Screen Shot 5.3 Partner Profile: Outbound parameters, page no 13)

Service Name must be same as Real Time Service we have created & click on Apply button to get the IDoc Information registered.

List of Supported IDOC will be displayed as shown below


                              2.2 Lists of Supported IDOC’s

Note: You may add more than one iDOC type per RFC Client

Once the RFC Client configured you can start RFC Client.

Make sure RFC Client is started  & status is “Waiting for Idoc” as shown below:


                            Shot 2.3 RFC Client Interface Status

3.   Testing RFC Client from SAP

Use TCODE “/nsm59” to go to Configuration of RFC Connections

Open TCP/IP Connections & locate DI_RFC_DESTINATION

Double click & open DI_RFC_DESTINATION

Click on “Connection Test” button


                    3.0 Testing RFC Client from SAP

If everything configured properly, you will see success message as shown below.


                       3.1 Connection Test Success

Note: If Connection test failed, make sure that the RFC client on BODS side started properly with green icon.

Sending Material from SAP [/nbd10]

1.    Sending Material MATMAS from SAP

  Use TCODE “/nbd10” to “Send Material


                                   1.0 Sending Material from SAP

  Click on the match code button


                    1.1 Material Numbers / Material Description

Click on “Start Search “button   for finding the entries for material numbers.


                   1.2 Selections of Material and Material Description

Select any Material number from the list displayed above and click on OK button.

Selected material number will appear in front of “Material” on Send Material screen.

Provide required fields as shown below & make sure the “Logical system” is BODS Logical System ID100CBODS


                        1.3 Send Material

Click on Execute button. We will get couple of following messages.


1.4 IDOC Information after material sent

Click on “OK”


2. Check Received MATMAS IDOC in BODS Using BODS Web Admin

Go to BODS Web Admin, click on Real Time Services to check that one IDOC request received as shown below



                    2.0 Received Requests in Web Administrator: Real Time Services


1. Checking the output data in XML File

Go to BODS Designer

Open the Real-Time Job Dataflow

Go to the target MATMAS01_OUT.xml & click on view data to confirm the data received

Generated output XML file data as follows


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Roshan,

      I am trying to receive I-docs through BODS..

      However while creating partner profile i can't find the agent u have specified (Agent  50010120 “EDI Department”) .. can u help me out with this??

      thanx in advance..

      Author's profile photo Rakesh More
      Rakesh More

      same here..

      Author's profile photo AAA AAA
      AAA AAA

      Do we first need to convert the IDOCs from source system to Flat File or XML before loading to BODS.

      I get an error no source file while the job in BODS is run

      Author's profile photo Former Member
      Former Member

      The whole procedure works pretty fine for me except for one system instance ... every time I try to send an IDOC from that specific system it kill the access server and the client interfaces on my BODS server leaving nothing but error message "BODS Client is no longer connected to Broker Host xxxxx".

      Initially the client interface works properly, tests triggered from ERP are successful but after I send an IDOC from that specific system, the interface is down showing this message in the DS admin console:

      Connect error...Error connecting to BODS_RFC_Client_P01CLNT100_Mepha. Error: RFC_COMMUNICATION_FAILURE- LOCATION CPIC (TCP/IP) on local host with Unicode ERROR hostname 'Undefined' unknown TIME Tue Nov 19 09:59:05 2013 RELEASE 720 COMPONENT NI (network interface) VERSION 40 RC -2 MODULE ninti.c LINE 895 DETAIL NiPGetHostByName: 'Undefined' not found SYSTEM CALL getaddrinfo COUNTER 16 [SAP Partner]. For detailed error information, see the log. RFC Client will try connecting to BODS_RFC_Client_P01CLNT100_Mepha in the background. To stop trying to connect from the background, perform 'Shutdown'. (BODI-300116)

      I changed the RFC destination on my ERP from unicode to non-unicode and had a try - still the same result. Anyone got an idea? Any help highly appreciated as I'm currently in the midst of a data migration and it would be really nice if that worked 🙂



      Author's profile photo Rajesh Sinha
      Rajesh Sinha

      Dear Roshan,

      I am getting following error when I send IDOC from SAP to BODS:

      (14.2) 04-21-15 04:10:55 (3264:7544) Unknown: SP(CREMAS01_OUT, BW74EHP7:3503)::flowThread() Flow became invalid during waiting for request (BODI-300137)

      (14.2) 04-21-15 04:10:55 (3264:29088) Unknown: R3RfcClient(NewR3Rfc_1) ActaIDocFunc::Process() encountered processing error for Requeste(7) (Communication Error. See real

        time job log for details.) (IDOC 0000000002527095+/ECW_00_800). (BODI-300129)

      Any help is appreciated.



      Author's profile photo ROSHAN CHHAJED
      Blog Post Author

      Hi Rajesh,

      Are you the trainer conducting training in TTL ?


      Above error means, your real time job is not receiving data in same format as expected.

      Do one check, extract exact iDoc message which is being sent in a physical file and use it as a source file in your real time job and run it as a batch job..If it works you should not get above error.

      Sometimes, before sending message to another system, a wrapper for example like SOAP header might be getting added to your message. If it is the case you need to modify your XSD to be compatible with input message.

      Hope this helps.. !

      Author's profile photo Former Member
      Former Member

      Hi Roshan,

      I followed all the steps of the document, but I'm facing a problem, the message is not delivered to the bods.It is presenting an error in SM58.

      Would you help me?



      Author's profile photo Former Member
      Former Member

      Hi MICHELIN,

      Did you find any solution ? we are also getting the same error. "Check TID fault: No transaction handler is install". Please share the resolution if any.



      Author's profile photo Santhosh Kumar R G
      Santhosh Kumar R G

      Hi Syama,

      We are also facing the same issue. Do we have any Solution on this ???



      Author's profile photo Santhosh Kumar R G
      Santhosh Kumar R G

      Hi Jeferson,

      We are also facing the same issue. Do we have any Solution on this ???



      Author's profile photo Swetha N
      Swetha N

      Hi Roshan

      i am getting an error saying file name is missing for idoc/xml source.

      can one of you suggest how to rectify this?


      i have created a test real time job to read SAP IDOC data to BODS :

      source idoc is material master : marms01

      connects to query transform - which just unnest the schema

      target is a xml format


      when i display the source idoc message format , looks like it is expecting some idoc file name, i am not sure how to generate this?


      Author's profile photo Former Member
      Former Member

      Hi, I have followed the document , everything worked up-to 

      2. Check Received MATMAS IDOC in BODS Using BODS Web Admin

      however the Requests remains "0" instead of 1 and status as "Request started", can someone give me an idea on what could be the issue RT.JPG



      Author's profile photo Ankit Kumar
      Ankit Kumar

      Hi Roshan,

      Very nice article!!

      After creation of the job,when I was trying to send 1 material to DS,I got the message saying "1 master IDOCs setup for message type MATMAS".

      However,the next info message is " 0 communication IDOCs generated for message type MATMAS".

      Doesn't seem to strike what have I missed ... Could you please help?