8

Automatic Idoc Generation while Creating Purchase Order, Nace Config – Material...

 1 year ago
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.
neoserver,ios ssh client
March 20, 2023 3 minute read

Automatic Idoc Generation while Creating Purchase Order, Nace Config – Material Management

0 0 134

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.

  1. Manual Steps for IDOC generation for PO
  2. Automatic IDOC generation for PO.
  3. NACE Configuration.

IDOC Generation

  1. Manual IDOC Generation

Go to ME23N. Open purchase order. You can see Messages Tab. Click on that button.

Picture1-34.png

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

Picture2-29.png

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.
Picture3-22.png

Select the option as shown below and come back.

Picture4-16.png

Click on Save button.

Picture5-19.png

After saving, click on Messages and see below line. Its green. Click on processing log.

Picture6-17.png

Idoc number is displayed. Copy that idoc number and go to WE02. It will be generated.

Picture7-19.png

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.

Picture8-16.png

You will have multiple option. I have created for 1st option but prefer 2nd one. Keep it very simpler.

Picture9-11.png

Provide details as below and execute.

Picture10-9.png

Provide below inputs and save. Now you will be able to generate IDOC automatically when PO is saved.

Picture11-13.png

Below screenshot is for LS Function

Picture12-11.png

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
Picture1-39.png

Go to Transaction code NACE. Click on EF as shown below screenshot. Click on Output types.

Picture2-36.png

Click on Output types and click on New Entries. This is already configured so ‘New Entries’ Won’t Appear.

Picture3-28.png

Click as shown in screenshot and select your languages. Just do F4 and select. Its standard

Picture4-22.png

Click on Processing Routines and select the entries.

Picture5-24.png

Click on Partner function. And maintain the entries. You can select your own entries. 

Picture6-22.png

Click on Procedures. You will see below screen. Select the line as shown below. 

Picture7-23.png

Click on Control. Click on New Entries and Select EDI Purchase order. Give the Step number.

Picture8-20.png

Note – After this configuration you will be able to see the ZPO entry in MN05.

I hope you liked this document.

Regards

Zunaid


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK