07-03-2007 12:36 PM
Hello!
How can I suppress the leading places
if I want to output only the last
three chars in sap script.
Defined is variable like:
data gv_s_menge(10) type c,
Now I need in the output only
the last 4 chars.
Regards
ilhan
07-03-2007 12:37 PM
Hi
Just use Z along with the field
/ <b>&ITAB-NETWR(Z) </b> this will remove leading zeros in that field
You can use Offset for the field also
/ &ITAB-NAME+7(3)& - for last 3 Char
Reward points for useful Answers
Regards
Anji
Message was edited by:
Anji Reddy Vangala
07-03-2007 12:37 PM
Hi
Just use Z along with the field
/ <b>&ITAB-NETWR(Z) </b> this will remove leading zeros in that field
You can use Offset for the field also
/ &ITAB-NAME+7(3)& - for last 3 Char
Reward points for useful Answers
Regards
Anji
Message was edited by:
Anji Reddy Vangala
07-03-2007 12:38 PM
Hi,
Simply do it like this,
take one more variable as A
A = gv_s_menge+7(3).
And in SAP Script print &A&
Reward if useful!
07-03-2007 12:38 PM
07-03-2007 12:39 PM
07-03-2007 12:43 PM
Hi,
just use the below code,
write gv_s_menge+6(4).
This statement helps you to display the characters after 6th character to the next 4 positions.
Regards,
Pavan P.