‎2007 Aug 06 11:47 AM
hi experts,
Pls help me in finding all theformatting commands in SAP.
like ltrim ,rtrim ,no zero etc.
i have an value .
0000000040000000
i need only 40000000 what shall i do?
‎2007 Aug 06 11:50 AM
Use this Function module:
CONVERSION_EXIT_ALPHA_OUTPUTPlease mark points if the solution was useful.
Regards,
Manoj
‎2007 Aug 06 11:48 AM
‎2007 Aug 06 11:50 AM
Use this Function module:
CONVERSION_EXIT_ALPHA_OUTPUTPlease mark points if the solution was useful.
Regards,
Manoj
‎2007 Aug 06 11:52 AM
Hi...
Press F1 on the Keyword WRITE to get the all Formatting options.
Check this code for ur Req:
Data: V_NUMC(10) type N value '0000123456',
V_CHAR(10) TYPE C .
**To display the TYPE N fields without leading 0
Write:/ v_numc NO-ZERO.
V_CHAR = V_NUMC.
**To remove leading 0 from a Char variable
SHIFT V_CHAR LEFT DELETING LEADING '0'.
write:/ v_char.
**u can also try the FM CONVESION_EXIT_ALPHA_OUTPUT.
<b>Reward if Helpful.</b>
‎2007 Aug 06 11:52 AM
Hi Mani
Use conversion routines for truncating zero's
conversion_exit_alpha_output.
Reward points for helpful ans's.
kiran.M
‎2007 Aug 06 12:00 PM
CONVERSION_EXIT_ALPHA_OUTPUT converts any number with zeroes right into a
simple integer
regards,
srinivas
<b>*reward for useful answers*</b>