This document provides steps required to load data in SAP using one of the SAP interfaces. This document will be used at the time of proof of concept to demonstrate the ability of Business Objects Data Services (BODS) to invoke IDOC interface to load data in SAP.
The main objectives are:
This document provides systematic approach for the data load in three sections:
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.
Following is the required configuration on SAP side.
Connect to SAP System using SAP GUI
Use Transaction Code (TCODE) /nsale to “Display IMG”
1: Display IMG screen
Expand Logical Systems tree & click on the Clock icon in front of “Define Logical System”
2: Defining Logical System screen
Click on the “New Entry” Button
For SAP Inbound IDOC One Logical system (FRMDICL100) is required
Create a Logical system as shown below
3. Overview of added entries
Click on the SAVE Button to save both the Logical System.
Verify that the LS FRMDICL100 is present in the SAP system
4. Overview of Logical Systems
Use TCODE /nwe20 to configure partner profile.
5. Partner Profile screen
Click on Create button to create new partner profile
Create partner profile as shown below
Note :
6. Partner Profile deatil screen
Click on the Save button to save the partner profile
After saving; the “Create Inbound parameter” will be activated in “Inbound paramtrs”
7. Partner Profile create Inbound paramtrs screen
Click on “Create Inbound parameter” in “Inbound paramtrs” section
8. Partner Profile Inbound parameters screen
Note :
In Inbound options tab, select appropriate process code relevant to message type.
(In this case; for MATMAS message type, process code is MATM)
In "Post processing : permitted agent" tab provide details as shown above.
Save "Partner profile: Inbound parameters" using Save button
After saving verify Partner Profile & Inbound Parameter added.
Following is the required configuration on BODS side
Create SAP Datastore by providing required SAP Application Server Information & creadentials
11. SAP Datastore in BODS
Right click on IDOCs and select “Import By Name…”
12. IDOC list under SAP datastore in BODS
13. Import IDOC screen
Provide Type and Name as shown above and click on “Import” to import IDOC in data store
To create the input XML structure with the correct datatypes quickly drop the IDOC as message source onto the dataflow, go into this object and right click the schema. There, you can ask the Designer to generate the entire structure as XML schema, thus you get all columns, schemas including the datatypes.
14. MATMAS01 IDOC screen
“MATMAS01_OUT” this XML file source is created using generated schema in“File Format” tab.
15. XML Schema screen
Build a Batch Job with a DataFlow inside…
Data Flow is as Follows
16: Batch Job screen
Double click on source XML File Source configure it as shown below.
Note: For demonstration purpose we have used XML file that was output of the Real-Time Job designed in article "Receiving IDOC In BODS from SAP".
Important : Make sure that in XML file Sending Partner setting i.e. <SNDPRN> should be same as BODS logical system name. (FRMIDCL100) as shown below.
18: IDOC out XML file strucutre screen
Un-nest by right clicking on MATMAS01_OUT schema in "Query" as shown below
19: IDOC structre screen
Drag the IDOC MATMAS01 from SAP DataStore as shown
20. IDOC in SAP Datastore
Note: Make sure to select option "Make IDOC Message Target"
Configure “IDOC Message Target”
21. BODS side IDOC configuration
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
9 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |