Application Development 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: 

Vendor Address is not updating in ADRC table by LSMW IDOC method

Former Member
0 Kudos

Hi,

I'm updating Vendor address data by LSMW IDoc method

for this i'm using ADRMAS as msg type and ADRMAS02 as Idoc type.

In partner profiles Process code given as BAPI for this.

i maintained entry in TSADOBJ table LFA1 as OBJTYPE,1 as ADDR TYPE,0001 as context,LFA1 as TABLENAME,ADRNR as FIELDNAME, ADRC as TABLE PERS, ADDRNUMBER as FIELD PERS

Idoc generating sucessfully.

But data is not updating in database.

i think the problem in TSADOBJ config.

Please give exact configuration which can update vendor data.

Thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

when you create the vendor at the time only its generate the Address number, why do you need the address for the vendor?

if you need to change the addressof the vendor use LSMW-batch input method with XK02 tcode and chnage the adderss for vendor.

6 REPLIES 6

JL23
Active Contributor
0 Kudos

I dont have the ADRC as TABLE PERS, ADDRNUMBER as FIELD PERS in my TSADOBJ.

But I dont really think that that this 2 fields will cause your problem.

I guess your problem is the value in OBJ_ID

what errors do you receive when you process the IDOC?

Former Member
0 Kudos

when you create the vendor at the time only its generate the Address number, why do you need the address for the vendor?

if you need to change the addressof the vendor use LSMW-batch input method with XK02 tcode and chnage the adderss for vendor.

JL23
Active Contributor
0 Kudos

be open minded. SAP gives several import methods to load vendors. one of them is per IDOC.

But the vendor master IDOC does not automatically create the adress master.

And even more important, if you migrate data from one SAP system to another, the IDOC method is more straight forward than the batch input, because you can send the IDOCs from legacy system to new system, you will then have a 1:1 relation of the structure in LSMW and you can create vendor masters by knowing the new vendor number from an internal number range already in LSMW, long before you actually post the vendor. With batch input you can either post with numbers from external number range, or you just dont know the new number already in LSMW.

And you dont need to download the data to Excel. And further, the LFA1 adress data has less information than the ADRC adress data.

0 Kudos

Here i need to update other vendor address data like SORT2.

for that type of fields update i'm doing like that

0 Kudos

For updating the vendor address use LSMW recording method using XK02 tcode.

0 Kudos

Hi Kesav,

Address details are updating with new ADRC NUMBER in ADRC table after creating by IDOC, but not updating to ADRC NUMBER of LFA1.

Please let me know what i have to do for this?