SAPTechno

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

Header
Version / Date 16 / 2011-09-27
Priority Recommendations/additional info
Category Consulting
Primary Component SD-EDI Electronic Data Interchange
Secondary Components SD-BIL-IV-IB Intercompany Billing

Summary
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'

Affected Releases
Software Component Release From Release To Release And subsequent
SAP_APPL3030A31G

Related Notes
1592919EDI - INVOIC:The IDoc contains incorrect account assignments
670427EDI: IDoc contains no/incorrect account assignments
659590EDI: Stock transfer and cross-company sales
607799Posting to vendor account w/intercompany billing before F2
381042Order-related intercompany billing in Releases 4.5*/4.6*
178609FD070 'Requrd fld BELNR(001) missing in segmnt E1EDP02'
137686ALE_INVOIC01: Internal allocatn Customizing in FI
127178Questions about user exits in IDoc INVOIC01 (FI)
126192EDI/INVOIC: Missing user exits documentation
120937EDI:No profitability segmt number for invoice recpt