InterCompany Billing IDoc
InterCompany Billing IDoc
InterCompany Billing IDoc
Automatic posting to vendor account is done by EDI. In our case where both companies
are proccessed in the same system (& client), it is sufficient to create Idoc.
Note: The cutomer has been created in the supplying company code. The organizational
data in this case is:
Supplying Company Code: 1180
Supplying Plant: 1180
Supplying Sales Organization: 1180
Supplying Distribution Channel: 01
Supplying Division: 00
Receiving Company Code: 3100
Customer representing the receiving Company Code: P3100
Page 1 of 31
5051158.doc
3. Creating a Port
Tools Business Communication IDoc Basis Idoc Port Definition
(T. Code WE21)
Maintain Transactional RFC: (Choose Transactional RFC and press the create icon).
A dialog box will open asking whether you want the system to generate an automatic
name or whether you wish to use your own name.
Output Type RD04 - Invoice Receipt MM is a special function, responsible for the
execution of the Idoc and will be entered in the Partner Profile later on.
Output type RD04 is maintained: Img: Sales and Distribution Basic functions
Output control Output Determination Output Determination Using the Condition
Technique Maintain Output Determination for Billing Documents Maintain Output
Types (T. Code V/40).
Page 2 of 31
5051158.doc
Details
Page 3 of 31
5051158.doc
Page 4 of 31
5051158.doc
Page 5 of 31
5051158.doc
Page 6 of 31
5051158.doc
Mail title and texts
Page 7 of 31
5051158.doc
Processing routines
Page 8 of 31
5051158.doc
Partner functions
Page 9 of 31
5051158.doc
Sales and Distribution Basic Functions Output Control Output Determination
Output Determination Using the Condition Technique Maintain Output Determination
for Billing Documents
Page 10 of 31
5051158.doc
Assign Output Determination Procedures
Master Data
Logistics Sales and Distribution Master Data Output (T. Code VV31)
Page 11 of 31
5051158.doc
5. Create Logical Address
Img: Sales and Distribution Billing Intercompany Billing Automatic Posting To
Vendor Account (SAP-EDI) Assign vendor. (T. Code WEL1)
Logical address 1180P3100 is made of the supplying Company Code (1180) and the
receiving Customer (P3100).
Note: If the receiving Customer is a numeric number you must add zeros between the
Company code and Customer number so the Logical Address will be 14 digits.
E.g if the customer number was 3100, than the logical address would have been
11800000003100 as can be seen in the second line. (In our case the customer is an alpha
numeric number so the second line was not necessary. It was created just for this
documentation and was not saved)
Page 12 of 31
5051158.doc
The Logical address is completed when the receiving Company Code and the Vendor are
entered in the detail screen.
Page 13 of 31
5051158.doc
6. Creating a Partner Profile for both Customer & Vendor
Tools Business Communication IDoc Basis Idoc Partner Profile (T. Code
WE20)
Page 14 of 31
5051158.doc
Customer:
Put cursor on Partner type KU and press create.
Enter typ, Agent & Lang,
SAVE
Page 15 of 31
5051158.doc
Press in outbound paratrs. Section, to maintain detail screens
Partn.funct. BP
Message type INVOIC
Message Code FI
Receiving port A000000001
Basic Type INVOIC01
Page 16 of 31
5051158.doc
Press enter and the screen will change to the following:
Enter PaketSize 1
Page 17 of 31
5051158.doc
Go to the Message Control tab press and enter the data as specified in the following
screen
Page 18 of 31
5051158.doc
You can repeat the process for cases where invoice verification is done against purchase
order. in this case enter MM in “message code field.
As you can see the only difference between the FI & MM invoice is in the message code
and output type.
NOTE: You cannot use output type RD04 again therefore you must copy it in
customizing to another output type (in this case RD00)
Page 19 of 31
5051158.doc
Vendor
Follow the same procedures but maintain the inbound paratrs. Screen as follows:
Page 20 of 31
5051158.doc
Page 21 of 31
5051158.doc
FI CUSTOMIZING
Make sure to maintain posting types, tax code and invoice doc.type. Use KR when not
using purchase order & RE when using purchase order.
Page 22 of 31
5051158.doc
Details
By leaving the field CoCD blank, all company codes are available.
Page 23 of 31
5051158.doc
Assign G/L Accounts for EDI Procedures (T. Code OBCB)
P1180 = Vendor
3100 = Company Code of receiving company (of customer)
NOTE:
Page 24 of 31
5051158.doc
Assign Tax Codes for EDI Procedures (T.Code OBCD)
It is necessary to match the output tax from the sales order to the input tax.
Page 25 of 31
5051158.doc
Accounting Financial Accounting General Ledger Master Records Individual
Processing Centrally (T.Code FS00)
G/L account no. = account number that was entered in transaction OBCB (page 24)
Tax category must allow for input tax.
Make sure manual posting is allowed for the G/L account. (“Create/Bank/Interest”
screen).
Page 26 of 31
5051158.doc
TEXT
In many cases the G/L account has been configured so that text is mandatory. This could
be either Header Text or Item Text.
Header Text
No special configuration is necessary. Just enter text in the “Header note”. You may use
the following access sequence.
Item Text
It is necessary to implement a userexit in order to fill the item text field. Detailed
instructions are found in note 39503
Page 27 of 31
5051158.doc
MM Customizing:
Make sure the Unit of Measure’s ISO Codes are configured correctly.
Page 28 of 31
5051158.doc
Details
Page 29 of 31
5051158.doc
Optional MM Customizing:
Details
Page 30 of 31
5051158.doc
Monitoring
There are several transaction that allow you to monitor the IDoc. First you need to know
the IDoc number. You can see the IDoc number in the processing log in the “Header
output” screen in the billing document.
You can use transaction WE02 or WE05. Enter the IDoc number in the selection screen.
If you have an error in the IDoc, you could analyze it with transaction WE19
Page 31 of 31
5051158.doc