cancel
Showing results for 
Search instead for 
Did you mean: 

Intercompany Billing - Send GL account from Sales Order to RD04 Idoc for intercompany posting

aotto
Participant
0 Kudos

Hi all,

Requirement is to be able to send the GL account for an intercompany billing through RD04 Idoc from the sales order in the sending company code, which the receiving company code uses to post against.

In other words, is it possible to use a field in the sales order, which will fill segment E1EDKA1 RE in the RD04 Idoc instead of using OBCB for determination?

The reason for the requirement is, that the GL account for the same material might differ, which is known at the moment of invoicing.

Thanks all,

Alexis

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member193808
Active Contributor
0 Kudos

Hi Alexis,

You can use any of the 5 open fields under SO header -> Additional Data ->Customer Group for this purpose. If you have a defined logic that meets all business scenarios, it can be automatically filled by program, otherwise ask user to maintain the same.

Thanks

Prem

aotto
Participant
0 Kudos

Hi again Prem, thanks for your replies.

In case we could create a logic, or even have the user enter the GL account manually in the sales order in a certain field, which user exit should be used then to have the GL account filled in the RD04 Idoc?

The user exits existing for this (correct me if I am wrong or incomplete) are EXIT_SAPLIEDI_001, 002 and 003. Whereas the 001 is for the account determination, the 002 for additional account assignments and 003 for filling the assignment field.

The 001 only has only 2 import parameters (BUKRS & LIFNR), so I'm wondering how we can use this to use the value of a field.

*" IMPORTING

*" VALUE(COMPANY_CODE) LIKE BSEG-BUKRS

*" VALUE(VENDOR) LIKE BSEG-LIFNR

Is there another exit to be used or another way to import other fields?

Thanks again,

Alexis

former_member193808
Active Contributor
0 Kudos

Hi,

Are you looking for a field in Sales order to capture this, or the IDOC's modification program BAPI to amend the logic ?

Thanks

Prem

aotto
Participant
0 Kudos

Hi Prem,

We're looking for a field in the sales order to capture this, which is taken over in de RD04 Idoc to be used as GL. So e.g. if the XBLNR is chosen to be the field for the GL account, the user enter in that field the GL account to be used and this field should be taken over in the RD04 as GL account.

Thanks,

Alexis