2008 Feb 21 8:08 AM
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.
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.
2008 Feb 21 8:10 AM
Hi Vivek,
When pasing a numeric, pass with leading zeroes also.
0000300006 (Total 10 chars)
Regards,
Ravi kanth talagana
2008 Feb 21 8:24 AM
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.
2008 Feb 21 8:30 AM
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.
2008 Feb 21 8:58 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |