04-28-2008 12:38 PM
Hi all,
There is a need of the business to copy the withholding tax code field whenever a particular vendor is created by copying from other company codes (Copy of withholding tax code field when copying the vendor in other company codes. . ). Vendor master can be created in one company code based on the reference from the other vendor master from other company codes.
For this i found the BADI called VENDOR_ADD_DATA in that interface is PRESET_VALUES_CCODE this will trigger exactly when ever i want but my problem is there is no fileds for reference data in that interface there is a importing parameter I_LFA1 and E_LFB1 is the exporting parameter but i want to fectch the data ( or copy the data ) based on reference vendor number and company code. how to recognize the reference vendor number and company code for that.
Note : There is no user exit for this requirment all are trigger when the user click on save button only but i want to copy the data initially with out clicking the save button.
I will definetly reward for useful answer.
Mahi.
04-28-2008 1:27 PM
Hi,
you can use
get parameter id 'LIF' filed fld1.
get parameter id 'BUK' filed fld2.
Know you can get the vendor no and company code into your fields fld1 and fld2 and use them.
Thanks,
NN.
04-28-2008 10:22 PM
The badi - ADDR_TXJCD_CHECK and the method SWITCH_ADDRESS_FIELDS must be helpful for your requirement.
Thanks,
Srinivas