Setup partner profile in SAP for an IDoc
By Imran, Mohammad January 31, 2022 under SAP ECC/S4HANA
Partner profile setup is crucial when you are dealing with IDoc. If partner profile is not set, you cannot execute the IDoc, it will throw an error saying partner profile is missing. You will need to know Message type and Process code before you attempt setting up the partner profile. Lets see step by step how do we do it in SAP.
Step 1
1. Login to SAP ECC or S4HANA and run WE20 T-Code. Under the Partner Type LS, choose your source sytem.
2. Under Inbound Parameters, create new partner profile.
- Inbound Parameter is chosen when we send IDoc from outside of the SAP Server which means SAP Server is recieve, IDoc will be treated as incoming IDoc.
- Outbound Parameter is chosen when you send an IDoc from SAP Server to other server which means SAP Server is sender. IDoc will be treated as outgoing IDoc.
Step 2
Add Inbound Parameter: I am taking an example which is Characteristics object. Find below for other objects if IDoc is standard or if your project uses any custom IDoc
then talk to ABAP team to get below details.
Message Type: CHRMAS
Process Code: CHRM
Processing by Function Module: Trigger Immediately
- Trigger Immediately is chosen when you want your IDoc to prosess immediately. For example you send an IDoc from BODS,
the status of the IDoc will be 53(Green) or 51(Red) immediately.
53 - IDoc is successful and record is created in SAP.
51 - IDoc went into an error and needs your attention. - Trigger by background program is chosen when you have any kind of parallel processing setup you want your IDoc to process using any parallel processing program or using special T-Code(BD87). The status of the IDoc will be 64(Yellow) which means IDoc is ready for processing but waiting for any other program to trigger it.
You can read more about parallel processing and BD87, Link created above.
Details for other objects
Objects | Message Type | Process Code | Mode |
---|---|---|---|
Address | ADRMAS | BAPI | Create/Update |
Characteristics | CHRMAS | CHRM | Create/Update |
Class | CLSMAS | CLSM | Create/Update |
Class Characteristics Linkage | CLSMAS | CLSM | Create/Update |
Customer Master | DEBMAS | BAPI | Create/Update |
Vendor Master | CREMAS | BAPI | Create/Update |
Material Master | MATMAS | BAPI | Create/Update |
Functional Location | FUNC_LOC_CREATE | BAPI | Create |
Functional Location | FUNC_LOC_CREATE | BAPI | Update |
Equipment | EQUIPMENT_UPDATE | BAPI | Update |
Conclusion
I have tried listing down the steps to setup partner profile in SAP. I also have listed message type for some of the objects, I will keep adding as soon as I know about other objects.