Data Services Integration Using IDoc
Data Services Integration Using IDoc
Defining Logical systems is done in SAP ECC with the transaction SALE.
Note: This entire documentation refers to SAP IDES system refer the below screen shot for detail.
Enter the Transaction SALE to define logical system and its assignment. As this confirmation doesnt
have authorization we will request basis to create it. Hence we used the following logical system as
shown below.
Click on the above shown to define the logical system. The below popup come just continue
Once the RFC created with Registered Server Program (Program ID) as DI_RFC as shown here. With
the defined program ID, configure this from BODS side from management console as shown below.
Logon on to Management console and click administrator.
Now check the connection from SAP side as shown below. Click on the connection test as shown.
Enter the message type DEBMAS and process code as DEBM, click on save.
Note: The following are the IDOC types, Message types on category wise.
General
Vendor
CREMAS / CREMAS02
Customer
DEBMAS / DEBMAS03
Material master
MATMAS / MATMAS03
Accounting
G/L account
GLMAST / GLMAST01
Cost center
COSMAS / COSMAS01
Cost element
COELEM / COELEM01
COGRP1 / COGRP01
COGRP1 / COGRP01
Activity type
COAMAS / COAMAS01
Activity group
COGRP1 / COGRP01
Activity price
COACTV / COACTV01
Profit center
PRCMAS / PRCMAS01
COGRP1 / COGRP01
COGRP1 / COGRP01
Logistics
Article master
ARTMAS
/
RetailMaterial.Clone
Additional
MMADDI
/
MMADDI01
RetailMaterial.SaveAdditionalReplicas
Product catalog
PRDCAT / PRDCAT01
PRDPOS / PRDPOS01
Price list
PRICAT / PRICAT01
Assortment
ASSORTMENT / ASSORTMENT01
Assortment.SaveReplica
Service master
SRVMAS / SRVMAS01
Characteristic
CHRMAS / CHRMAS02
Class
CLSMAS / CLSMAS03
Classification
CLFMAS / CLFMAS01
Document
DOCMAS / DOCMAS04
INFREC / INFREC01
Conditions
COND_A / COND_A01
Order book
SRCLST / SRCLST01
Change master
ECMMAS / ECMMAS01
Bill of material
BOMMAT / BOMMAT01
Document BOM
BOMDOC / BOMDOC01
ARTMAS02
Project / PROJECT01
Human Resources
HRMD_A / HRMD_A03
PD object types
HRMD_A / HRMD_A03
3. Sending IDOCs:
Sending an IDOC to SAP is an asynchronous task. One or many IDOCs are posted to SAP, just like
inserting into a database table, and get stored in the SAP database. Later, SAP starts to process the
IDOC and e.g. creates this new material record. Once the processing is done, no matter if successful or
not, the status of this IDOC is updated in the SAP table EDIDC.
As a consequence, unlike with BAPIs, you get no return of the processing. Your only choice is to
periodically query above status table and copy the status back into the senders table. If an immediate
return code is required or the actual error message you have to use BAPIs. On the counter side, IDOCs
are supposed to be faster while still running full data consistency tests.
Before sending the IDOCs we need to have SAP Data store to be created and then import the required
IDOC. For our case to create the customer DEBMAS06
The data store created as referred here as SAP_ECC shown above, then import the IDOC DEBMAS06
as shown below.
Click on import by name and give the IDOC name as shown below.
The following flat file information is required to create the customer through IDOCs. Row generator is
required for input the configuration.
Once the Job completed check the generated IDOC by using the transaction code WE02.