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: 

BADI for XK01 (Urgent)

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

b_deterd2
Active Contributor
0 Kudos

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

3 REPLIES 3

b_deterd2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Bert Deterd,

I have solved my issue my self in some simalr way of you.

Former Member
0 Kudos

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