Skip to Content
author's profile photo Former Member
Former Member

Updating Customer Master Data by LSMW + BAPI Method

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2013 at 10: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


    pastedImage_0.png (13.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 11, 2013 at 12: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 .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2013 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.