09-15-2008 11:00 AM
Hi everyone,
I have a csv file input that contains matnr field which just have n characters ( ex.: 1000956) and i would like to transform this field into matnr type ( 18 characters => 000000000001000956) which is used in table.
Thank you for you answers.
Best regards.
Mathew.
09-15-2008 11:02 AM
Hi,
You can define a variable of type matnr and assign the value to it directly
OR
You can use the CONVERSION_EXIT_MATN1_INPUT
Function Module to convert it to internal format.
Regards,
Pramod
09-15-2008 11:02 AM
Hi,
You can define a variable of type matnr and assign the value to it directly
OR
You can use the CONVERSION_EXIT_MATN1_INPUT
Function Module to convert it to internal format.
Regards,
Pramod
09-15-2008 11:04 AM
shift textvar right deleting trailing spaces.
matnr = textvar.
overlay matnr with '000000000000000000'.
09-15-2008 11:08 AM
Hi,
try this:
DATA: matnr like mara-matnr.
*
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = '12345678'
IMPORTING
OUTPUT = matnr.
Regards, Dieter