cancel
Showing results for 
Search instead for 
Did you mean: 

Logical address WEL1

SCHIPPERS_ICT
Discoverer

We want to customize Inter Company billing - Automatic posting to vendor Account (SAP-EDI).

The only case is that we want to create the logical address (transaction WEL1).

The logical address is made of the supplying company code and the receiving customer.

We also have in place the plant abroad functionality.

this means that the logical address as build up above should be duplicated.

because we have two plants, belonging to the same supplying company code and those are deliverying to the same receiving customer (customer representing the receiving company code/receiving plant). We now are having a problem with WEL1.

It says that Target key must be different from source key. How can we solve our problem?

Regards,

Maarten Pronk

Edited by: L. Foree on Aug 4, 2010 12:38 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi,

Did you find a solution for this in the end?

Former Member
0 Kudos

Have you had any luck resolving this? We are having the same issue.

Thanks

josh

Former Member
0 Kudos

In the outbound function module (idoc-output_invoic_iv_mm)

you have the customer function 001

(EXIT_SAPLVEDF_001) for changing the IDOC control record.

This is called after selecting the logical adress.

...

SELECT SINGLE * FROM EDILOGADR WHERE LOGADR = BUKKRED.

KNVV-EIKTO = EDILOGADR-DESTIN+4(10).

*-Partnerart - Sender

CONTROL_RECORD_OUT-SNDPRT = 'LI'.

*- füllen Partnernummer des Absenders

CONTROL_RECORD_OUT-SNDPRN = KNVV-EIKTO.

*- Aufruf User_Exit zur Ergänzung des Kontrollsatzes

CALL CUSTOMER-FUNCTION '001' !!!!!!!!!!!!!!!!!!!!!!!

EXPORTING

CONTROL_RECORD_OUT = CONTROL_RECORD_OUT

DVBDKR = VBDKR

DOBJECT = OBJECT

IMPORTING

CONTROL_RECORD_OUT = CONTROL_RECORD_OUT

TABLES

DXVBPA = XVBPA

DTVBDPR = TVBDPR

EXCEPTIONS

ERROR_MESSAGE_RECEIVED = 1

DATA_NOT_RELEVANT_FOR_SENDING = 2.

CASE SY-SUBRC.

...

Above is only the suggestion if you need further information please

check with your local consulting

0 Kudos

Hi,

Did you find a solution for this in the end?