‎2006 Jun 28 12:33 PM
ASSIGN COMPONENT 'MATNR' OF STRUCTURE <dyn_wa> TO <fs1>.
<fs1> = matnr.
I GET
IEQ00000000000003456
HOW I MAKE SHIFT
ONLY
3456
‎2006 Jun 28 12:38 PM
‎2006 Jun 28 12:34 PM
ru using select option....
it show that it is value for select option.
just write for display.
<b>field-low.</b>
‎2006 Jun 28 12:36 PM
‎2006 Jun 28 12:37 PM
‎2006 Jun 28 12:38 PM
‎2006 Jun 28 12:39 PM
Hi you can use following syntax for that
SHIFT <c> LEFT DELETING LEADING <str>.
regards,
sumit.
‎2006 Jun 28 12:45 PM
To get rid of leading zeros on your material numbers, you need to convert to external form. Use the function module CONVERSION_EXIT_MATN1_OUTPUT. If you are assigning correct, I don't see any reason why there should be IEQ on the front of your string.
report zrich_0001.
data: matnr type mara-matnr value '000000000000012345'.
call function 'CONVERSION_EXIT_MATN1_OUTPUT'
exporting
input = matnr
importing
output = matnr.
check sy-subrc = 0.Regards,
Rich Heilman
‎2006 Jun 28 12:44 PM
use this code
data : char(20) value 'IEQ00000000000003456'.
SHIFT char LEFT DELETING LEADING 'IEQ'.
SHIFT char LEFT DELETING LEADING '0'.
write char.
reward if find helpful.
regards,
sumit.
‎2006 Jun 28 12:52 PM
As you have MATNR in internal format, use the Conversion Exit output to convert it to external format "3456".
Thus:
WRITE <FS1> TO R_MATNR-LOW USING EDIT MASK '==MATN1'.Or
CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'
EXPORTING input = <FS1>
IMPORTING output = R_MATNR-LOW.Richard posted his reply while I was still typing.
MattG.
Message was edited by: Matthew Gifford
‎2006 Jun 28 1:01 PM
data: v_matnr like mara-matnr.
v_matnr = s_matnr-low.
call function 'CONVERSION_EXIT_MATN1_OUTPUT'
exporting
input = v_matnr
importing
output = v_matnr.