cancel
Showing results for 
Search instead for 
Did you mean: 

Vendor Extended Address upload overwriting General Data

former_member562193
Participant
0 Kudos

Hi,

I am trying to upload only the Extended Address data of Vendor Master using LSMW BAPI method, Message Type - ADRMAS. However, it is overwriting/blanking out rest all the General Data (LFA1) loaded earlier using separate LSMW Object. Can someone please suggest what do I need to do to avoid overwriting the Vendor General data?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor

Can you explain in more detail, I load customer and vendor addresses with ADRMAS Idoc for 9 years already  and it never had overwritten anything in LFA1 or KNA1 table.

Contrary, if there was anything wrong, then ADRC had a different address than LFA1 for example .

former_member562193
Participant
0 Kudos

I earlier loaded Vendor Master data (LFA1, LFB1, LFM1....) using a LSMW IDOC method, Message Type 'CREMAS'. And now was trying to load just the Vendor Extended Address data using separate LSMW BAPI method, Message Type 'ADRMAS'.

After the Vendor Extended Data (Street3, Street 4, Sort2, Postal Code3, Telephone, Fax, Comments etc ) is loaded, say for 1 Vendor, it removes the General data (Name, Search1, Street, City etc) loaded earlier for the same Vendor when checked in XK03.

The other strange thing I noticed is only the General Data in ADRC table is overwritten, however it is visible in LFA1 table. XK03 showing the overwritten data same as in ADRC table and not what is in LFA1 table.

I am passing the OBJ_TYPE as 'LFA1' to load Vendor Extended Address date. Not sure if this in incorrect and causing the problem!

JL23
Active Contributor
0 Kudos

do you want to say that you did not have values for Name, Search1, Street, City in ADRMAS?

This is certainly misunderstood then.

the central address management with ADRMAS idoc and ADRC, ARD2, ADR3, and ADR6 (and some more) came with 4.0 release,

The first screen with the address data, is coming from the central address management since that time and is a kind of overlying the standard LFA1 address screen.

(you can see the standard screen if you do a recording for XK01 transaction and do not flag the box for central address management)

The Idocs never joint. CREMAS will still only maintain the old vendor tables, and ADRMAS will only maintain the ADRC tables

You have to post a full qualified address and not just what you think as "extended address"

It is actually even more complicated for some fields like house number which are in a separate field in ADRC, but together with the street in LFA1.

Please read the OSS notes 306275 and 384462

former_member562193
Participant
0 Kudos

I did not mean that ADRMAS does not have Name, Search1, Street1, City etc fields. But these fields data has already been loaded via General data load using CREMAS. However, other Extended Address fields data e.g. Postal Code2, Postal Code3, House_No2, House_No3, STR_SUPPL2, STR_SUPPL3 etc. which are not in CREMAS and not loaded, I am trying to load these using ADRMAS.

JL23
Active Contributor
0 Kudos

No these fields have not been loaded to ADRC, because only ADRMAS can load to ADRC.

You loaded with CREMAS to LFA1 only, but LFA1 is not used in for addresses anymore. it is just filled with redundant information if you maintain a vendor master manually to keep reports running that fetch info from LFA1 instead of going the longer way via LFA1-address number to ADRC to get the content from there.

CREMAS does not update ADRC table, hence your data is lost. ADRC is not an extension of LFA1, ADRC is actually a replacement to the address in LFA1.

former_member562193
Participant
0 Kudos

Got it. Thanks for the explaination!

If ADRMAS is only to be used for loading the Vendor Address Data, then I was wondering what is to be loaded in LFA1! It sounds like I should load the Vendor Address data both ways i.e. using CREMAS (in LFA1) and the complete Address using ADRMAS (in ADRC). Is this correct?

JL23
Active Contributor
0 Kudos

Yes you have to load the address in both IDOCs

LFA1 is still needed for old programs, even some old SAP reports that were not changed

Answers (0)