‎2009 Sep 18 6:52 AM
hi frends i am using a variable to store the material no as:
data var_mat_no(18) type c.
this variable stores the material no read from a data base table.now as the size specfied of the material no. is 18 i took the variable's length also 18.but when i dispalyed the var_mat_no it shows the material no with length 18.and the actual material no is of 8 digits like if the material no is 13000000 then it displays it as:
000000000013000000
i want to display it as only 13000000.and want to neglect the 10 zero's before it.wat shud i do?
‎2009 Sep 18 7:14 AM
Did you try the SHIFT statement?
shift matnr LEFT DELETING LEADING '0'Also remember to CONDENSE the field after the shift.
Br,
Advait
Edited by: Advait Gode on Sep 18, 2009 8:16 AM
‎2009 Sep 18 7:14 AM
Did you try the SHIFT statement?
shift matnr LEFT DELETING LEADING '0'Also remember to CONDENSE the field after the shift.
Br,
Advait
Edited by: Advait Gode on Sep 18, 2009 8:16 AM
‎2009 Sep 18 7:20 AM
thnx dear...i am just a beginner cud u plz tell me how cud i condense and wat does it do?
‎2009 Sep 18 7:43 AM
No problem, we all were new once upon a time and this is what we did.
Goto t-code ABAPHELP --> Enter the keyword you wish to lookup the help documentation for, in your case CONDENSE. ABAP keyword documentation will open for the entered keyword. Read it and you will know what it does -:) . Simple.
Br,
Advait
‎2009 Sep 18 7:51 AM