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

Simple but tricky !!!

Former Member
0 Likes
418

Hi all, just see the code below. I am looking for output

for character field c_kwbtr with ,. How should i get it?? Any Answer please.

Data: kwbtr like FEBSCA-kwbtr.

data: c_kwbtr(18).

kwbtr = '10000'.

<b>write: / kwbtr. "output 10,000.00</b>

c_kwbtr = kwbtr.

<b>write: / c_kwbtr. "output 10000.00 (, is missing)</b>

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
392

Try this instead.



write kwbtr to c_kwbtr.
write: / c_kwbtr.

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
393

Try this instead.



write kwbtr to c_kwbtr.
write: / c_kwbtr.

Regards,

Rich Heilman

Read only

0 Likes
392

Yes, u r right, it is working fine. Thanks

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
392

Hi Vipin

You can use conversion exits or the <b>"USING EDIT MASK <m>"</b> addition for the <b>WRITE</b> statement.

<u>E.g.</u>

DATA time TYPE t VALUE '154633'.

WRITE: time,
  /(8) time USING EDIT MASK '__:__:__'.

For more information, refer to the F1 help for <b>WRITE</b> statement.

Regards

*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>