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

Need Function module

Former Member
0 Likes
439

Hi ,

I am looking FM which conversts value : 00000000700015 as 7,000.15

Input: 00000000700015

output: 7,000.15

Thanks,

Asha

4 REPLIES 4
Read only

Former Member
0 Likes
421

Hi Asha

use conversion_exit_alpha_output

conversion_exit_alpha_input

after using the above one the value of string comes 700015

str = 700015

now concatenate str0(1) ',' str1(3) '.' str+4(2).

reward points to all helpful answers

kiran.M

Message was edited by:

KIRAN KUMAR

Read only

Former Member
0 Likes
421

Hi,

Here is the simple Program

data: var(20) type c.
data: var1 type i.

var = '00000000700015'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
  EXPORTING
    input         = var
 IMPORTING
   OUTPUT        = var          .

var1 = var.
write: var1.

Regards

Sudhee

Read only

Former Member
0 Likes
421

Hi,

if this is currency field, you can use write statement as :

data: wf_waers LIKE t001-waers

WRITE int_with_item-wt_qsshh TO int_final-wt_qsshh1 CURRENCY wf_waers.

It will do the currency conversion by itself according to the currency in wf_waers.

Hope this helps.

Reward if helpful.

regards,

Sipra

Read only

0 Likes
421

I got Solution