04-28-2008 12:46 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:01 PM
Hi,
Perhaps the GET/SET parameters RLF (reference vendor) and RBU (reference bukrs) are filled so you can use them in your badi-method ?
regards,
bert
04-28-2008 1:01 PM
Hi,
Perhaps the GET/SET parameters RLF (reference vendor) and RBU (reference bukrs) are filled so you can use them in your badi-method ?
regards,
bert
08-04-2008 10:08 AM
Bert Deterd,
I have solved my issue my self in some simalr way of you.
04-28-2008 1:25 PM
Hi Mahi,
There is a USEREXIT for your requirement and the
Enhancement is SAPMF02K and the
Function module is :EXIT_SAPMF02K_001 : Vendors: User Exit for Checks prior to saving.
Hope you find the solution to your issue.
Thanks & Regards
Abdul Samee