‎2008 Jul 25 3:41 PM
I'm having a problem in R/3 release 4.6C. I am obtaining the EAN11 number from MARA and I need to retrieve 7 digits starting from the 3rd position. I have numerous ean11 numbers that have 1 or 2 leading zeros. The leading zeros are not displaying during debugging and, as a result, I am not retrieving the correct value.
Example:
EAN11: 00300405012345 (I need to retrieve: 3004050)
EAN11 in debugger: 300405012345 (during execution will retrieve: 0405012).
Any suggestions?
Edited by: Scott Fischer on Jul 25, 2008 4:42 PM
‎2008 Jul 25 3:44 PM
Use conversition routins
CONVERSION_EXIT_EAN11_INPUT
CONVERSION_EXIT_EAN11_OUTPUT.
Regards,
Rajasekhar.
‎2008 Jul 25 3:44 PM
after getting the value from mara of the field use conversion exits
‎2008 Jul 25 3:44 PM
Use conversition routins
CONVERSION_EXIT_EAN11_INPUT
CONVERSION_EXIT_EAN11_OUTPUT.
Regards,
Rajasekhar.
‎2008 Jul 25 3:46 PM
Use one of the following FMs to convert the internal format into external format:
CONVERSION_EXIT_EAN11_INPUT
CONVERSION_EXIT_EAN11_OUTPUT
and then take the offset.
Regards,
ravi
‎2008 Jul 25 3:47 PM
hi,
data: ws_ean11 type mara-ean11.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = ws_ean11
importing
output = ws_ean11.
ws_ean11 = ws_ean11+2(7).
Regards,
Subramanian
‎2008 Jul 25 4:44 PM
Thanks, this function appears to be my best option. The EAN11 conversion functions did nothing but return to the same result.