Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Leading Space Conversion Exit

Former Member
2,616

Dear all,

Does any standard conversion function can fill or remove the leading space?

Regards,

KK

11 REPLIES 11
Read only

Former Member
0 Likes
1,894

.

Read only

Former Member
0 Likes
1,894

see this:

Read only

former_member222860
Active Contributor
0 Likes
1,894

Hi

Check this FM

CATS_NUMERIC_INPUT_CHECK

Read only

Former Member
0 Likes
1,894

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

Read only

Former Member
0 Likes
1,894

Let me clarify my requirment. I'm going to assign a conversion routine to handle the leading space in my customized domain.

Regards,

KK

Read only

Former Member
0 Likes
1,894

Check this FM,

CONVERSION_EXIT_ALPHA_INPUT

Regards,

Joan

Read only

Former Member
0 Likes
1,894

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

Read only

1,894

CONVERSION_EXIT_ALPHA_* can be used to add / remove the leading ZERO. But my requirement is leading SPACE.

regards,

KK

Read only

Former Member
0 Likes
1,894

try this,

CATS_NUMERIC_INPUT_CHECK

Read only

Former Member
0 Likes
1,894

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

Read only

Former Member
0 Likes
1,894

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