09-27-2008 7:50 AM
Hi All,
We have come across an issue that a conversion exit is not working for field LENUM in table LEIN.
can u please suggest the SAP note if any or any solution for the same.
thanks and regrds
09-29-2008 3:10 AM
Hi Sunny Suren Chilievru,
It's working.
I tested like this.
DATA : V_CHAR20 TYPE CHAR20 VALUE '1234567890'.
CALL FUNCTION 'CONVERSION_EXIT_LENUM_INPUT'
EXPORTING
INPUT = V_CHAR20
IMPORTING
OUTPUT = V_CHAR20
EXCEPTIONS
CHECK_FAILED = 1
NOT_NUMERIC = 2
T344_GET_FAILED = 3
WRONG_LENGTH = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE : /10 'Return value is', V_CHAR20.
CALL FUNCTION 'CONVERSION_EXIT_LENUM_OUTPUT'
EXPORTING
INPUT = V_CHAR20
IMPORTING
OUTPUT = V_CHAR20
EXCEPTIONS
T344_GET_FAILED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE : /10 'Return value is', V_CHAR20.
I got the output as follows;
Return value is 00000000001234567890
Return value is 1234567890
It prefixes ZEROs and removes LEADING ZEROs.
Regards,
R.Nagarajan.
09-29-2008 9:05 AM