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

Moving Numeric Type to File

Former Member
0 Likes
448

Hi,

I want to transfer the contents of internal table to a file which is of a char type. Everything works fine but when I try to transfer a numeric field, it gives me a dump. Can somebody give me a solution for this?

Thanks,

John.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
425

Hi

Try to use MOVE statament to transfer a numeric field into char string:

LOOP AT ITAB.
  MOVE ITAB TO WA.
  TRANSFER WA TO P_FILE.
ENDLOOP.

Max

Hi,

I want to transfer the contents of internal table to a file which is of a char type. Everything works fine but when I try to transfer a numeric field, it gives me a dump. Can somebody give me a solution for this?

Thanks,

John.

2 REPLIES 2
Read only

Former Member
0 Likes
426

Hi

Try to use MOVE statament to transfer a numeric field into char string:

LOOP AT ITAB.
  MOVE ITAB TO WA.
  TRANSFER WA TO P_FILE.
ENDLOOP.

Max

Read only

Former Member
0 Likes
425

Store that data to CHAR field before transferring it to flat file.

Regards,

Rohit