‎2009 Feb 16 9:23 AM
Dear all,
Does any standard conversion function can fill or remove the leading space?
Regards,
KK
‎2009 Feb 16 9:25 AM
‎2009 Feb 16 9:26 AM
‎2009 Feb 16 9:26 AM
‎2009 Feb 16 9:27 AM
hi,
Instead of using a FM for minimal requirement or processing use SHIFT left/right deleting spaces based on your requirement.
Use this statement inside DO block until the a char is encountered other than space.
This way leading spaces can be removed
Thanks
Sharath
‎2009 Feb 16 9:30 AM
Let me clarify my requirment. I'm going to assign a conversion routine to handle the leading space in my customized domain.
Regards,
KK
‎2009 Feb 16 9:41 AM
‎2009 Feb 16 9:43 AM
Hi KK,
You can use these exits:
CONVERSION_EXIT_ALPHA_INPUT---- It is used to add the 0(Zero) at the begining of the value. You dont require to add zero manually for any variable.
CONVERSION_EXIT_ALPHA_OUTPUT--- It is used to Remove 0(Zero) from the Begining of the value. You dont require to remove Zero manually for any variable. Just call this Function Module and it will automatically removes zero from the begining
Hope it helps you
Regrds
Mansi
‎2009 Feb 16 9:48 AM
CONVERSION_EXIT_ALPHA_* can be used to add / remove the leading ZERO. But my requirement is leading SPACE.
regards,
KK
‎2009 Feb 16 9:49 AM
‎2009 Feb 16 9:52 AM
Hi,
Based on the field you would have Conversion Program to add or delete leading zeros or spaces. This will be available in the Domain of that Field.
In general if you want to do it you can use HRPBSNO_FORMAT_ZERO function module.
Thanks,
Prashanth
‎2009 Feb 16 9:55 AM
hello,
use this fm CONVERSION_EXIT_ALPHA_OUTPUT
sample code
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
exporting
input = wa_bseg-anln1
importing
output = wa_bseg-anln1.please try this one it would helpful
Thanks and regards
Durga.K