03-19-2007 9:42 AM
Hi All,
Can any one help me how to remove leading Zeros in smartform.
Ex.: My o/p was coming as 00000000000008070. so i need to remove the leading zeros and my o/p should be 8070.
Thanks in Advance.
Ramana
03-19-2007 9:44 AM
use FM
converison_exit_alpha_output.
************
just check in sf's if &value(Z)& works to remove the leading zeros.
we can do this in scripts.
03-19-2007 9:44 AM
HI
use CONVERSION_EXIT_ALPHA_OUTPUT fm..
pass 000008070 to it, it will give 8070..
if helpful, reward
Sathish. R
03-19-2007 9:46 AM
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = IBSIS-ZUONR
IMPORTING
OUTPUT = IBSIS-ZUONR
EXCEPTIONS
OTHERS = 1.
03-19-2007 9:44 AM
use fm CONVERSION_EXIT_ALPHA_OUTPUT
or use for that field
shift f1 left deleting leading '0'.
regards
shiba dutta
03-19-2007 9:45 AM
Hi ramana,
use the syntax.
shift lv_string left deleting leading '0'.
Regards,
Ravi
03-19-2007 9:45 AM
03-19-2007 9:45 AM
try SHIFT LEFT.... DELETING LEADING 0.....
reward points if helpful
03-19-2007 9:48 AM
Hi Ramana,
Use the keyword Removing Leading Zeros.
Use this FM CONVERSION_EXIT_ALPHA_OUTPUT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = matnr
IMPORTING
OUTPUT = matnr
Check these links.
https://forums.sdn.sap.com/click.jspa?searchID=579915&messageID=2208475
https://forums.sdn.sap.com/click.jspa?searchID=579915&messageID=644164
https://forums.sdn.sap.com/click.jspa?searchID=579915&messageID=2812047
Regards,
Priyanka.