Application Development 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: 

any altenate statement for WRITE-TO

Former Member
0 Kudos

Hi Experts,

I am trying to dump or casting data from one internal table to another of different data types......

where i am using WRITE-TO statement....since i need to go through each and every field and i have huge data ..

it is killing my time........

-


can anybody suggest me any other statement which exactly acts as WRITE TO ..and where i can do this on a fly.....

Regards

sam

6 REPLIES 6

Former Member
0 Kudos

Aren't the fields similar... use move corresponding.

0 Kudos

Hi,

thank you for your reply

My code is some thing like this:

 write  wa_vmctmp-counter                        TO  wa_zvmctmp-temp1.
 write  wa_vmctmp-mem_alloc_local          TO  wa_zvmctmp-temp2. 

temp1,temp2 are my required data types.......

Regards

sam

0 Kudos

as i cant see you making use of additional options of the write statement i ask myself why you dont just use = or move instead of write to?

As you are using write to your target field has to be of type char anyway if i´m recalling that correctly, so i dont see a problem why a simple move or = wouldnt work.

at least give it a shot, you will pretty soon find out if that could be a solution.

0 Kudos

hi Florian,

Thanks for your reply...

you expectation is correct.. i have to convert each and every field into CHAR type

I tried all other possibilities...(=,move corresponding,etc...)

but i am missing float values ........

any inputs really appreciated.......

regards

sam

0 Kudos

You may wanna look at this

Former Member
0 Kudos

i used the link...thank you