12-08-2009 2:03 PM
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
12-08-2009 2:31 PM
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.
12-08-2009 2:23 PM
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?
12-08-2009 2:31 PM
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.
12-08-2009 2:40 PM
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.
12-08-2009 2:50 PM
Here i need to update other vendor address data like SORT2.
for that type of fields update i'm doing like that
12-09-2009 7:34 AM
For updating the vendor address use LSMW recording method using XK02 tcode.
12-09-2009 8:25 AM
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?