Online Tutorials & Training Materials | STechies.com
Register Login

CONVERSION_EXIT_ALPHA_INPUT Use

|| || 1

CONVERSION_EXIT_ALPHA_INPUT Use
Stechies

Hello Experts,

May i know that what is the main purpose of this Function Module CONVERSION_EXIT_ALPHA_INPUT? This conversion routine is used to add the leading zeros in input value.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GS_EKKO-LIFNR
IMPORTING
OUTPUT = GS_EKKO-LIFNR.

For example if you send vendor code as 300014. This will return 0000300014 vendore code has 10 chars length.

How can delet leading zeros?

You can SHIFT a LEFT DELETING LEADING '0'.

'Or'

Remove Preceding Zeros by Calling CONVERSION_EXIT_ALPHA_OUTPUT fm
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = a
IMPORTING
OUTPUT = a

Kindly share your valuable views here, thanks in advance.


Comments

  • 25 Sep 2015 12:47 pm

    CONVERSION_EXIT_ALPHA_INPUT : This FM is used to get internal format of that Field LIFNR, i.e. with leading zeros. SAP internal format means it will be stored with leading zeros in the database (Unique No.). Quite opposite. FM CONVERSION_EXIT_ALPHA_OUTPUT : to get external format what We regularly used. Suppose vendor number 11 means We always use like 11 but not with leading zeros. SAP always recommends that whenever You want to update database tables check with their domains contains Conversion Exit or not. If it contains use this internal format FM before update the table.

     

Related Articles

0.0141 seconds.