cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameters into Function module : CLOI_PUT_SIGN_IN_FRONT

Former Member
0 Kudos

Hello friends,

I am displaying values ie, amounts in the screen using write statements here i have to display the

sign left side , i am using Function module 'CLOI_PUT_SIGN_IN_FRONT'

Does anybody help me - How to pass paramter into this Function module.

Regards,

Phaneendra

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

for a value stored in variable p_num.


data: str type string,
      chr(10) type c.

data: p_num type p decimals 2.

[set the value of p_num to the negative number]

write: p_num to chr.

str = chr.

CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
  CHANGING
    value         = str.


    write: /1 str.

Former Member
0 Kudos

Hello Paul,

Thanks for your reply, i am also doing like that but,

here this Function module is compressing the value ,.

If you know any Function module which does not compressing ( condense )the value,

please share with me.

regards,

phaneendra

Former Member
0 Kudos

If you look to the code of the function module, you can see it is condensing the value.

I would make a copy of this function, and remove the condense lines to give the result you want.


  data: text1(1) type c.

  search value for '-'.
  if sy-subrc = 0 and sy-fdpos <> 0.
    split value at '-' into value text1.
    condense value.
    concatenate '-' value into value.
  else.
    condense value.
  endif.

Answers (0)