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

problem with convert

Former Member
0 Likes
2,207

i use se38 to send data to sapscript

i have this statemaent

WHEN 'KOMK-FKWRT'.

move in_tab-value to zXXXXX.

if i have a number 1,999.00 i have dump.

i need FM???

what is it???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,037

What are the data defs of in_tab-value and zXXXXX ?

i use se38 to send data to sapscript

i have this statemaent

WHEN 'KOMK-FKWRT'.

move in_tab-value to zXXXXX.

if i have a number 1,999.00 i have dump.

i need FM???

what is it???

19 REPLIES 19
Read only

Former Member
0 Likes
2,037

Check the type of zxxxx.

Make it character type and use write

write in_tab-value to zXXXXX.

Regards,

Ravi

Read only

Former Member
0 Likes
2,037

use modify ztable after move statement.

Read only

Former Member
0 Likes
2,038

What are the data defs of in_tab-value and zXXXXX ?

Read only

0 Likes
2,037

Santosh,

I don't follow your line of thinking here. What will MODIFY accomplish?

Read only

0 Likes
2,037

You need to get rid of the commas in your field before moving it.

WHEN 'KOMK-FKWRT'.
<b>translate in_tab-value using ', '.</b>
move in_tab-value to zXXXXX.

Regards,

Rich Heilman

Read only

0 Likes
2,037

rich i get 1,222

and after yoyr code

1 222 how i can do with space

Read only

0 Likes
2,037

hi,

after that

use <b>condense in_tab-value</b>

i have already mentioned above

Message was edited by: Manoj Gupta

Read only

0 Likes
2,037

translate in_tab-value using ','.

<b>condense in_tab-value.</b>

move in_tab-value to zXXXXX.

regards

vijay

Read only

0 Likes
2,037

Oh, yes, you have to CONDENSE after the translate. Sorry

Looks like the others have beaten me to it.

Regards,

Rich Heilman

Message was edited by: Rich Heilman

Read only

0 Likes
2,037

i tried condense

1,222

i get 1 222

Read only

0 Likes
2,037

Hi,

<b>it should work</b> .

Translate in_tab-value using ', '.

condense in_tab-value.

move in_tab-value to zXXXXX.

with addition no-gaps.......mentioned below

Message was edited by: Manoj Gupta

Read only

0 Likes
2,037

condense TheString no-gaps.

Read only

0 Likes
2,037

Hi,

you should use <b>condense in_tab-value no-gaps.</b>

regards

vijay

Read only

Former Member
0 Likes
2,037

Hi,

Check the both fields format in_tab-value and zXXXXX.

regards,

ram

Read only

0 Likes
2,037

Rani,

Its a datatype mismatch, you need to have compatable fields to move.

Regds

Manohar

Read only

Former Member
0 Likes
2,037

yes i declare zxxxx like 'KOMK-FKWRT'

Read only

0 Likes
2,037

Hi,

Check type of <b>in_tab-value</b> and <b>zXXXXX.</b> should be same.

possible if char.

immpossible if <b>float</b> and <b>Char</b>

for that u have to remove <b>,</b> using translate and then u have condense .

after that u have to Use move statement.

Message was edited by: Manoj Gupta

Read only

Former Member
0 Likes
2,037

Hi,

use Translate and then move.

translate in_tab-value using ','.

move in_tab-value to zXXXXX.

Regards

vijay

Read only

Former Member
0 Likes
2,037

Both the data types are different

use that fields as character

like

data: zxxxx(10) type c.

now u will not get dump