SAPTechno

Note 31126 - Intercompany billing - posting to vendor account using EDI

Version : 16 / 2011-09-27


Symptom

As of Release 3.0C, you can make the posting to vendor account for intercompany billing (ICB) using SAP Electronic Data Interchange (EDI) directly in Financial Accounting.
This note is a guideline for making the correct system settings.
From EDI outbound processing for ICB, EDI inbound processing is triggered for the invoice receipt in Financial Accounting (module FI) and the posting to vendor account is carried out in the selling company code.
You can also use this EDI processing for the logistics invoice verification of the stock transport order in Materials Management (module MM). Only some of the parameters must be adjusted in Customizing for the output control. These adjustments are described in the following solution.


Other Terms

Cross-company,
enterprise code cannot be determined


Reason and Prerequisites

Consulting


Solution

    1. Create a vendor master record that represents the delivering company code. This vendor master record must be created in the selling company code.

System settings:

    2. Output type:
    Output type RD04 is set up for posting to vendor account in ICB (transaction V/40).
    3. Output determination procedure:
    Output determination procedure V40000 applies for billing type IV.
    4. Creating an output condition record (transaction VV31):
    Output type "RD04" and the customer for ICB.
    5. Output control:
    In the administration for EDI processing, a partner profile must be maintained for the output control for inbound and outbound processing since the sender data and the recipient data is required. The outbound process code is used to trigger a Version 5 function module (Version 3.0 function module to trigger inbound processing).
    Outbound process code: SD08.
    For further information about the output configuration, refer to the "Output" section in the IMG.
    6. Outbound processing:

    Important: The field KNVV-EIKTO (account number at the customer) must be maintained in the customer master data (transaction VD02 -> sales view).
      a) Partner profiles (transaction WE20)
      Partner No.: Specify customer number IV
      Partn. Type   : KU
      b) Output control:
      Partner No.: Customer number IV
      Partn. Type  : KU
      Partner Role  : RE
      Application  : V3
      Output type: RD04
      Output  :
      Output type  : INVOIC
      Output code: FI
      Outbound Options:
      Outbound code : SD08 : INVOIC: Internal allocation
      c) Outbound parameters:
      Outbound Options:
      Receiver port : For example: SAPP30 EDI MM Development
      IDoc Type     : INVOIC02
      Basic IDoc type: INVOIC02
    7. Inbound processing (transaction SBPT) for the customer:
      a) Inbound parameters:
      Partner No.: Specify vendor number
      Partn. Type  : LI
      Partner Role  :
      Output type   : INVOIC  Invoice/Billing document
      Output code: FI
      Process code  : INVF
    8. Check the process code and processing function module assignment.
    Transaction: WE42 -> Basis -> Control -> Inbound process code -> Processing by function module -> Processing with or without ALE
    Code          : INVF
    Identification: IDOC_INPUT_INVOICE_FI (INVOIC FI Invoice receipt)
    or
    Code FI03 to 3.0E
    Identification: IDOC_INPUT_INVOICE_FI
    9. Vendor:
    A vendor must be assigned for each company code and ICB customer.

    You can make this assignment in Customizing.
    Choose the following IMG path:
    "Sales and Distribution -> Billing -> Intercompany Billing
    -> Automatic Posting To Vendor Account (SAP-EDI)"

    Example:
    Data:
    Delivering company code: 0001
    Customer: 0000000001, created in delivering company code
    Selling company code: 0099
    Vendor: ALECRED01, created in selling company code

    Settings:
    Application: V3
    Logical address 00010000000001
    This consists of:
      a) Delivering company code consisting of four digits: 0001
      b) Customer number consisting of ten digits: 0000000001

              Target:
Company code: 0099
Vendor: ALECRED01

Important:
The logical address must have 14 digits. If the customer number has less than ten digits, add leading zeros.

The system may issue the following error message if the logical address is maintained incorrectly in the table EDILOGADR:
"Company code could not be determined for intermediate document XXXXX".

Proceed in the same way for the internal credit memo.

Different system settings for the logistics invoice verification:

6. Output control:
  Output code          'MM'

7. Inbound processing
   Output code          'MM'
   Process code          'INVM'
          as of Release 4.0  'INVL'

8. Check the process code and processing function module assignment.
   Transaction: WE42 -> Basis -> Control -> Inbound process code ->
   Processing by function module -> Processing with or without ALE
   Code            'INVM'
   Identification: 'IDOC_INPUT_INVOICE_MM'
   or
  Code            'INVL'  (as of Release 4.0)
   Identification: 'IDOC_INPUT_INVOICE_MRM'



Header Data

Released On 27.09.2011 11:17:54
Release Status Released for Customer
Component SD-EDI Electronic Data Interchange
Other Components
SD-BIL-IV-IB Intercompany Billing
Priority Recommendations / Additional Info
Category Consulting

Validity

Software Component
From Rel.
To Rel.
And Subsequent
SAP_APPL
30A
31G
 

References

This document refers to:

SAP Notes
1766604   INVOIC: IDoc w/ incorr account assignment for down payment
1592919   EDI - INVOIC:The IDoc contains incorrect account assignments
670427   EDI: IDoc contains no/incorrect account assignments
659590   EDI: Stock transfer and cross-company sales
607799   Posting to vendor account w/intercompany billing before F2
410532   IDoc: Account assignment order-related intercompany billing
381042   Order-related intercompany billing in Releases 4.5*/4.6*
196935   IDoc:Acc.assignmt obj.for posting to vendor account
188055   IDOC: Account assignment objects + posting to vendor account
178609   FD070 'Requrd fld BELNR(001) missing in segmnt E1EDP02'
137686   ALE_INVOIC01: Internal allocatn Customizing in FI
127178   Questions about user exits in IDOC INVOIC01 (FI)
126192   EDI/INVOIC: Missing user exits documentation
120937   EDI:No profitability segmt number for invoice recpt
120536   EDI IDoc Invoic01 - syntax error check (status 60)
84127   Tax Jurisdiction Code for EDI/ALE and Intercompany
63459   Order and third-party-related intercompany billing

This document is referenced by:

SAP Notes (17)
670427   EDI: IDoc contains no/incorrect account assignments
607799   Posting to vendor account w/intercompany billing before F2
1766604   INVOIC: IDoc w/ incorr account assignment for down payment
1592919   EDI - INVOIC:The IDoc contains incorrect account assignments
659590   EDI: Stock transfer and cross-company sales
84127   Tax Jurisdiction Code for EDI/ALE and Intercompany
63459   Order and third-party-related intercompany billing
410532   IDoc: Account assignment order-related intercompany billing
381042   Order-related intercompany billing in Releases 4.5*/4.6*
120536   EDI IDoc Invoic01 - syntax error check (status 60)
120937   EDI:No profitability segmt number for invoice recpt
126192   EDI/INVOIC: Missing user exits documentation
127178   Questions about user exits in IDOC INVOIC01 (FI)
178609   FD070 'Requrd fld BELNR(001) missing in segmnt E1EDP02'
188055   IDOC: Account assignment objects + posting to vendor account
196935   IDoc:Acc.assignmt obj.for posting to vendor account
137686   ALE_INVOIC01: Internal allocatn Customizing in FI