Application Development 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: 

profit center conversion Function Module

former_member198892
Participant
0 Kudos
585

Hi,

Is there Any Function Module to Convert Profit Center from 4 digit into 10 digit.

Regards,

Dhanush.S.T

1 REPLY 1

Former Member
0 Kudos
159

Try using FM CONVERSION_EXIT_ALPHA_INPUT.


data: lv_prctr type prctr value '1234'.

CALL 'CONVERSION_EXIT_ALPHA_INPUT'
  exporting input = lv_prctr
  importing output = lv_prctr.

"After this call lv_prctr will have values '0000001234'.

Hope this helps.

Thanks,

Balaji