Automatic Idoc Generation while Creating Purchase Order, Nace Config – Material...
source link: https://blogs.sap.com/2023/03/20/automatic-idoc-generation-while-creating-purchase-order/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Automatic Idoc Generation while Creating Purchase Order, Nace Config – Material Management
Hi Friends,
Recently i got a chance to work on one interface where PO is required to be sent to Third Party System. This transmission was done through IDOC. In this blog, i will show you the manual steps to generate IDOC for PO and also Automatic settings.
Below is the scope of this blog.
- Manual Steps for IDOC generation for PO
- Automatic IDOC generation for PO.
- NACE Configuration.
IDOC Generation
- Manual IDOC Generation
Go to ME23N. Open purchase order. You can see Messages Tab. Click on that button.
If you see below IDOC is already Created. Status is green. It means IDOC generation is completed. But how is this done. First, I will explain you manual process from PO. Then I will take you to MN05 to make settings for automatic generation
Make PO in Change mode and come to below screen. Enter fields for yellow line as shown below. Click on Further Data. If you see the Function it is VN. Why VN is selected and what is the difference between VN and LS?
- VN is selected when PO is to be sent to specific vendors. For e.g. you have 1000 plus vendors and only 10 vendors to be provided PO through IDOC than Use VN.
- LS is selected when PO is transmitted to third party System. For e.g. your organization is using third party software to create POs, than configure system under LS. POs for all vendor will be created through this setting.
Select the option as shown below and come back.
Click on Save button.
After saving, click on Messages and see below line. Its green. Click on processing log.
Idoc number is displayed. Copy that idoc number and go to WE02. It will be generated.
2. Automatic Generation
Go to MN05. Provide output type and Press Enter. Now question is where this output type is comes from? It comes from NACE transaction code. MM consultants can guide you through this process.
You will have multiple option. I have created for 1st option but prefer 2nd one. Keep it very simpler.
Provide details as below and execute.
Provide below inputs and save. Now you will be able to generate IDOC automatically when PO is saved.
Below screenshot is for LS Function
Nace Configuration
Now let us understand from where values in below screenshots are coming. There are 3 values you can see
- VN or LS (Not in screenshot, but in above screenshot)
- Partner
Go to Transaction code NACE. Click on EF as shown below screenshot. Click on Output types.
Click on Output types and click on New Entries. This is already configured so ‘New Entries’ Won’t Appear.
Click as shown in screenshot and select your languages. Just do F4 and select. Its standard
Click on Processing Routines and select the entries.
Click on Partner function. And maintain the entries. You can select your own entries. 
Click on Procedures. You will see below screen. Select the line as shown below. 
Click on Control. Click on New Entries and Select EDI Purchase order. Give the Step number.
Note – After this configuration you will be able to see the ZPO entry in MN05.
I hope you liked this document.
Regards
Zunaid
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK