Application Development and Automation 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: 
Read only

BAPI

Former Member
0 Likes
419

I'm using BAPI_VENDOR_GETDETAIL

here whenver i give a charcater input for vendor code it accepts but it do not accept no.

e.g. 'ABCDEF' is accepted.

but '300006' is rejected.

plz guide what to be done.

4 REPLIES 4
Read only

Former Member
0 Likes
402

Hi Vivek,

When pasing a numeric, pass with leading zeroes also.

0000300006 (Total 10 chars)

Regards,

Ravi kanth talagana

Read only

Former Member
0 Likes
402

Hi Vivek,

When passing the numeric vendor code leading zeros should be added. Use the function module to add leading zeros.

data: lifnr type BAPIVENDOR_01-VENDOR_NO.

lifnr = '300006'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = lifnr

IMPORTING

OUTPUT = lifnr

.

Use this function module above before calling the BAPI. So that it will work for both character vendor number and numeric vendor number.

Regards,

yellappa.

Read only

Former Member
0 Likes
402

Hi,

You have to pass the Numeric value with leading zeros...for the Bapi BAPI_VENDOR_GETDETAIL...

the vale u r passinf is for vendor then use the FM conversion_exit_alpha_input.

It will convert the numeric with padding Zeros on the left side...

Try this . It will work.

Regards.

Read only

Former Member
0 Likes
402

RESOLVED