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: 

vendor_add_data badi or enhancement

Former Member
0 Kudos

hai to all experts,

i have a requirement when we create vendor (xk01) if the city is hyderabad then in the lfa1 table the vendor number should be saved as

example 'hyd96554' .

i have already writen the code in include ZXF05U01 in function module EXIT_SAPMF02K_001.

*code:*

if i_lfa1-ORT01 = 'hyderabad'.

shift i_lfa1-lifnr left deleting leading '0'.

concatenate 'hyd' i_lfa1-lifnr into i_lfa1-lifnr .

endif.

the code is excuting well and in i_lfa1-lifnr the desired value (hyd7684)

is getting saved.

but in lfa1 table it is getting saved as 000007684.

what should i do?

1 REPLY 1

Former Member
0 Kudos

Hello,

Please define external number range for Vendor Master using OMSJ and make sure that modified number in the user exit is within the number range limit.

Thanks,

Venu