10-11-2013 10:57 AM
Hi Experts,
I am going to update customer master data addresses by using function as belows;
LSMW
Business Object Method : BAPI
Business Object : BUS4001
Method : SAVEREPLICA
Message Type : ADRMAS
Basic Type : ADRMAS03
File port LSMW
Partn.Type LS
I'm passing the values only for the updated fields. But during run IDoc Processing (Step 14),
the system is updating the existing values as blank values.
Anyone please tell me what should I do?
Thanks in Advance,
Jiranan
10-11-2013 11:17 AM
Hi Jiranan,
Updating customer master data means ,you have created customer already now you want to update the customer address right?. Have you passed transaction 'XD02' in T-CODE field of LSMW BAPI method first structure or have you passed 'XD01' transaction?.If we pass the XD01 transaction it will take the existing field blank because you are passing only address fields not already updated fields.So make sure that you need to pass XD02 transaction there.For example as shown below in screenshot.
Regards
Ashok P
10-14-2013 9:34 AM
Hi Ashok P,
Thank you for your answer.When I'm changing obj_type from 'KNA1' to 'XD02' and posting the
IDoc, it's not posting. The error status is "No appropriate entry found in table TSADOBJ". I'm not sure
can I use 'XD02' in this Bapi Method?
10-14-2013 9:40 AM
you could have seen that the screen shot is from batch input and not from BAPI.
And obj_type has a quite different meaning than transaction code.
10-11-2013 1:07 PM
/ is usually the field value that instructs an IDOC to not overwrite existing data.
if you never want to update that field then you can as well set the field in field mapping as initial .
10-14-2013 10:03 AM
Hi Jurgen L,
I'm mapping the fields that I never want to update as initial,
but it's updating the exist data as blanks values.
10-14-2013 9:53 AM
Hi Jiranan,
please look into the documentation of function module BAPI_ADDRESSORG_SAVEREPLICA which is called in this case.
Fill the corresponding Idoc fields in this way if you want to change the adress data of a customer (4712 is the customer number)
obj_type = 'KNA1'
obj_id = '4712'
OBJ_ID_EXT = ' '
CONTEXT = '0001'
Keep in mind that you can only change adress data by means of this Idoc/Bapi.
/Michael
10-14-2013 10:23 AM
Hi Michael,
I'm already done but it's still updating the existing data as blank values.
08-17-2016 3:04 PM