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

Leading Zeros during Code Execution

Former Member
0 Likes
1,071

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
868

Use conversition routins

CONVERSION_EXIT_EAN11_INPUT

CONVERSION_EXIT_EAN11_OUTPUT.

Regards,

Rajasekhar.

5 REPLIES 5
Read only

Former Member
0 Likes
868

after getting the value from mara of the field use conversion exits

Read only

Former Member
0 Likes
869

Use conversition routins

CONVERSION_EXIT_EAN11_INPUT

CONVERSION_EXIT_EAN11_OUTPUT.

Regards,

Rajasekhar.

Read only

Former Member
0 Likes
868

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

Read only

Former Member
0 Likes
868

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

Read only

0 Likes
868

Thanks, this function appears to be my best option. The EAN11 conversion functions did nothing but return to the same result.