09-15-2008 12:36 PM
Hi All,
Please tell me the way to convert MATNR into 18 chars if less than 18.
means
MATNR = 'abcde' to MATNR = 'abcse '.
it is necessary for READ_TEXT with object as 'MVKE' .
<removed_by_moderator>
Thanks & Regards,
Anuj
Edited by: Julius Bussche on Sep 15, 2008 1:51 PM
09-15-2008 12:39 PM
hi,
use these fm.
CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT.
09-15-2008 12:39 PM
Hi Use Functional module FIAA_FIELDCAT_ADD_SPACE...if matching your requirement...
Raghav
09-15-2008 12:40 PM
Hi,
Use this Function Module ' CONVERSION_EXIT_ALPHA_INPUT ' to convert the Matnr 18 char length from less than 18 char length.
Revert back if you need more details.
Regards,
Saran
09-15-2008 12:42 PM
Use 'CONVERSION_EXIT_ALPHA_INPUT' to add zeroes to material to make total length material = 18.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = l_matnr
IMPORTING
output = l_matnr.
If material is alphanumeric, there is no need to add zeroes and make it of length 18. It will work as it is.
Regards,
Aparna Gaikwad
09-15-2008 12:43 PM
Hi,
Please try like this
data : matnr(18) type c value '12345 ',
text(10) type c.
concatenate matnr text into w_string RESPECTING BLANKS..
OR
Use FM
CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT.
hope it is helps
09-15-2008 2:39 PM
09-15-2008 12:49 PM
Hi,
Use the FMs.
CONVERSION_EXIT_MATN1_INPUT
CONVERSION_EXIT_MATN1_OUTPUT
CONVERSION_EXIT_MATN1_INPUT FM converts the material number to internal format.
Eg.
matnr = 1410 then it converts to internal
matnr = 000000000000001410.
if matnr = R100004 then it converts
matnr = R100004.
Regards,
Raju.