on 08-04-2010 11:20 AM
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
Hi,
Did you find a solution for this in the end?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you had any luck resolving this? We are having the same issue.
Thanks
josh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
101 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.