Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LSMW - one source structure - 2 targets

Former Member
0 Likes
579

Hi everyone,

I'm trying to create a LSMW for the upload of customers. The client wants to link 2 contact persons to one vustomer.

The flat file will have two lines with the same data, only the contact person will differ. Do you know how the difference can be made ?

thanks in advance !

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
545

you need to upload first only customer than for each customer:

there is a special transaction for updating the contact person

the Transaction VAP1 (create contact person)

By using this transaction, we can go with normal recording in LSMW it will work fine and update the transaction screen and the table as well.

So its better to use this transaction (VAP1) instead of using the BAPI's which are not updating the screen of the transaction.

Hi everyone,

I'm trying to create a LSMW for the upload of customers. The client wants to link 2 contact persons to one vustomer.

The flat file will have two lines with the same data, only the contact person will differ. Do you know how the difference can be made ?

thanks in advance !

2 REPLIES 2
Read only

Former Member
0 Likes
546

you need to upload first only customer than for each customer:

there is a special transaction for updating the contact person

the Transaction VAP1 (create contact person)

By using this transaction, we can go with normal recording in LSMW it will work fine and update the transaction screen and the table as well.

So its better to use this transaction (VAP1) instead of using the BAPI's which are not updating the screen of the transaction.

Read only

Former Member
0 Likes
545

Hi,

if you have only one line you can do the same as mentioned below:

First map the contact name1 to traget source. In 5th step u can map all the comman fields along with the contact person name and from the global variables u can write transfer_record. then again map all the fields along with the secound contact name and again write transfer_record.

So u are trying to pass two customer contact records. It will work try this. Let me know if u have any issues.