cancel
Showing results for 
Search instead for 
Did you mean: 

Vendor number with logic inbuilt for Purchasing organization

former_member220444
Participant
0 Kudos

Hi,

Can anyone help me to get Vendor Numbers based on purchasing organization.

Example: Purchasing organization 1A, Vendor account no internal number range assigned is 10000-19999

Now we create new vendor code , it should be 1A10000, instead of 10000.

Please help.

Regards,

MG

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Manish,

You can use the BADI VENDOR_ADD_DATA for this purpose. Implement it and write the below code in method MODIFY_ACCOUNT_NUMBER

The code will be like below:

method IF_EX_VENDOR_ADD_DATA~MODIFY_ACCOUNT_NUMBER.

data : v_eko type ekko-ekorg.

get PARAMETER ID 'EKO' FIELD v_eko.

C_LIFNR = C_LIFNR+5(5).

CONCATENATE v_eko C_LIFNR INTO C_LIFNR.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = C_LIFNR

IMPORTING

OUTPUT = C_LIFNR .

endmethod.

It will resolve your problem.

Thanks

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

you can achieve with the help of sepearte accounting group with the external no combination.

the limitation in this we can create only one external number range for all accounting groups.

if it is okay for you then proceed accordingly.

Regards,

velu

Former Member
0 Kudos

To achieve that you need to use External Number ranges for Vendor MAster..