Professional Documents
Culture Documents
SAP MM-Automatic Creation of Intercompany PO and Billing-2
SAP MM-Automatic Creation of Intercompany PO and Billing-2
Auto creation of intercompany purchase orders with billing via EDI within same client.
This is about integrating purchasing and sales processes between different company codes
maintained in the same server & client by using EDI & I-Docs with message type ORDERS. Once the
Sales order is created in Supplying company code, confirmation is sent to receiving company code by
using message type ORDRSP.
Once done the PGI from the delivering company code side, then Inbound delivery gets created by
using message type DESADV. And then you need to do a good receipt for purchasing company code
side via VL32N.
The billing document will get created for delivery for the delivering company code side by scheduling
the batch job (program RV60SBAT/VF06) and once created billing document and then the Invoice
document will be posted automatically in a purchasing company code side by using the message
type INVOIC.
Configuration:
This scenario is an intercompany STO process, i.e., between company code to company code
We need to create a supplier master for purchasing company codes and a customer master for
delivering company codes.
Distribution Channel: 88
Division : 88
Partner Type LI
Partner Type KU
Partner Type LS
Sales and Distribution- Basic Functions- Output Determination- Output Determination- Output
Determination Using the Condition Technique- Maintain Output Determination for Sales Documents-
Maintain Output Types
Sales and Distribution- Basic Functions- Output Determination- Output Determination- Output
Determination Using the Condition Technique- Maintain Output Determination for Billing
Documents- Maintain Output Types
Automatic creation of inter-company PO and Billing by EDI in SAP. – M. JAYABABU (S4 HANA MM Consultant)
Logistics Execution- Shipping- Basic Shipping Functions- Output Control- Output Determination-
Maintain Output Determination for Outbound Deliveries- Maintain Output Types
SPRO-Sales and Distribution -Sales - Sales Documents -Define Sales Document Types
Here, I have maintained “A” for Immediate delivery. That means once the sales order gets
confirmed, then delivery will get created automatically.
Assign created Z billing document types, output determination, Application V3 & output type ZINV.
Sales and Distribution- Electronic Data Interchange- EDI Messages- IDoc- Configure EDI Partners-
Convert External to Internal Partner Numbers
Above, we should maintain customer number 5900000044, partner function SH, External Partner
should be a receiving plant (2222) & Internal number should be a customer 5900000044
Sales and Distribution- Electronic Data Interchange- EDI Messages- IDoc- Configure EDI Partners-
Convert- Assign Customer/Supplier to Sales Organization Data
Above, we should maintain customer 5900000044, vendor 5900000043, and delivery company
code’s sales organization 8888, Distribution 88, division 88 & sales order type ZSOR
Materials Management- Logistics Invoice Verification- Electronic Data Interchange (EDI)- IDoc- Assign
Tax Codes
Automatic creation of inter-company PO and Billing by EDI in SAP. – M. JAYABABU (S4 HANA MM Consultant)
Above, we should maintain partner type LS, Partner number S4HCLNT100, Tax type I4 (Tax type
should be an output tax code which was maintained in VK11), Tax rate 18% should be 00.000 or if
ZERO % then it should be 0 & Tax code I4 (which were maintained in FV11).
Materials Management- Logistics Invoice Verification- Electronic Data Interchange (EDI)- IDoc- Assign
Company Code
Above, we should maintain Partner type LS, Partner number S4HCLNT100, Company code Name in
the Invoice should be customer number 5900000044, and company code (2222) should be a
purchasing company code.
Materials Management- Logistics Invoice Verification- Electronic Data Interchange (EDI)- IDoc- Enter
Program Parameters
Above, we should maintain partner type LS, Partner number S4HCLNT100, Company code (2222)
should be a purchasing company code & Invoice document type “RE & KR.
Sales and Distribution- Basic Functions- Pricing- Pricing Control- Define And Assign Pricing
Procedures- Set Pricing Procedures
Automatic creation of inter-company PO and Billing by EDI in SAP. – M. JAYABABU (S4 HANA MM Consultant)
Financial Accounting- Financial Accounting Global Settings- Tax on Sales/Purchases- Basic Settings-
Check Calculation Procedure
Scenario Testing
➢ Create Intercompany purchase order via ME21N
Create PO for purchasing company code side and must maintain the confirmation control.
Please note: Must extend material master on both company code’s plants.
Check output type’s processing log and then click PO’s relationship
Automatic creation of inter-company PO and Billing by EDI in SAP. – M. JAYABABU (S4 HANA MM Consultant)
Here, Message type ORDERS will get created a sales order and the sales order will get confirmed by
message type ORDRSP.
Note: Delivery gets created once the sales order quantity is confirmed as configured (Immediate
delivery (A) in the sales document ZSOR.
➢ Post goods issue from delivery company code’s plant side via VL02N
Above, delivering plant (8888) & Storage location 1000 are from delivering company code 8888.
Picked Quantity and click on PGI.
Automatic creation of inter-company PO and Billing by EDI in SAP. – M. JAYABABU (S4 HANA MM Consultant)
Look at the above, inbound delivery has been created, once made PGI by using Message type
DESADV.
Look at the above, Inbound delivery & outbound delivery are under the “confirmation “tab
Automatic creation of inter-company PO and Billing by EDI in SAP. – M. JAYABABU (S4 HANA MM Consultant)
➢ Goods receipt for receiving company code’s plant side via VL32N
Look at the above, receiving plant (2222) & storage location (1000) are from receiving company code
2222. Putaway Quantity and good receipt
Goods receipt for inbound delivery 180000476 posted (material document 9900000239)
I have scheduled a batch job for creating billing automatically for deliveries by using the program
RV60SBAT/VF06.
Once ran the batch job successfully, then the billing document has got created and you can see by
displaying the sales order via VA03 or V.21
Automatic creation of inter-company PO and Billing by EDI in SAP. – M. JAYABABU (S4 HANA MM Consultant)
Look at the above, the message type INVOIC will get created MM invoice document once posted the
billing document for outbound delivery is for delivering company code side.