cancel
Showing results for 
Search instead for 
Did you mean: 

How to print unit price as $ 1.00

Former Member
0 Kudos

Dear All,

I would like to print currency symbol $ for unit price KOMVD-KBE1.00.TR. For example if unit price is 1.00 then I need to print as $ 1.

Thanks in advance.

J.P

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If u r using Smartform Declare a Variable(Say X) of type P decimals 0 and pass the Value to this and declare another variable of type C(14) (Say Y)and say concatenate $ X into Y. and display the Resultant variable Y .

Regards,

Vijaya Lakshmi.T

Answers (5)

Answers (5)

Former Member
0 Kudos

This message was moderated.

former_member303542
Participant
0 Kudos

hello Prakash,

I agree with solution suggested by sai,

Using a routine helps to have the control at your end.

Thanks

M.Naveen KUmar

former_member303542
Participant
0 Kudos

Hello Prakash,

I agree with sai solution ..to include a subroutine program and add your custom code into the rountine so that control would be

completly at your end.,.

Thanks

M.Naveen Kumar

Former Member
0 Kudos

hi

If u using sap scripts , open the editor and choose INSERT >CHARACTERS> Displayable characters and u can find $ symbol in that.

b4 that check if the Currency is USD then only print $ or else its corresponding currency

surya

Former Member
0 Kudos

Ok fine.....

Put if condition in Subroutine program and use concatenate statement to include the dollar symbol. like this

If price eq 1.00

concatenate $ unit price into unit price.....

else.

endif.