04-25-2005 12:29 PM
Hi, i am new to SAP so please correct me if im saying something stupid.
I am trying to load the customer master but i have been having trouble populating some the the fields found in the XD01 transaction e.g. street1, 2 and 3, email address. Methods i have used.
1. LSMW and program RFBIDE00. This was fine loading the standard customer fields but didnt have the additional fields.
2.I looked in the documentation for the above program and it said use BAPI object BUS4001 (method SAVEREPLICA) to populate the additional fields which i did passing "KNA1" and the customer number that was created using RFBIDE00. However, rather than overwriting/populating the fields of the customer master that was already loaded, it created another record in table ADRC with a different ADDRNUMBER from the original address data. There was no where in the mapping section of LSMW to allow me to specify ADDRNUMBER.
3. I also tried IDOC message type DEBMAS in LSMW but out of the 6 versions of the message i still couldnt find the additional fields street1 ,2 ,3 and email address etc
So i guess i have 2 questions.
Q1.Is there a way to specify ADDRNUMBER using method 2?
Q2. If not, what other methods are there to allow me to load these additional fields?
Your help is very much appreciated
Thank you
David
04-25-2005 3:11 PM
Hello,
I would suggest a 2 step approach for this problem.
1. Load all the SAP Std available fields in Std structure of the DI program RFBIDE00 and create the record in SAP. This method is an LSMW with DI method.
2. In the second step create a recording in LSMW to fill the additional fields which is needed to be loaded.
Hope this helps. Please let me know how this goes about!
Best Regards, Murugesh AS
04-25-2005 3:11 PM
Hello,
I would suggest a 2 step approach for this problem.
1. Load all the SAP Std available fields in Std structure of the DI program RFBIDE00 and create the record in SAP. This method is an LSMW with DI method.
2. In the second step create a recording in LSMW to fill the additional fields which is needed to be loaded.
Hope this helps. Please let me know how this goes about!
Best Regards, Murugesh AS
04-25-2005 5:08 PM
Hi David,
method SAVEREPLI works as long as your customer number is entered in internal format. I tried a simple test where I used the getdetails method to get the address of the customer, change street 2 and street 3, use the SAVEREPLI method to change it and commit at the end.
This program did update the customer master with the new information.
Regards,
Srinivas
04-26-2005 10:58 AM
Thank you for the replies, they have been very helpful.
I can see Srinivas's method work but as i will probably use Murugesh's idea of a recording to fill in the additional fields to minimize ABAP development (due to project policy).
Thanks
David
04-26-2005 11:37 AM
Hello,
Please close the thread if you've got an answer.
Have a nice day ahead.
Best Regards, Murugesh AS