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
450

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
427

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

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

2 REPLIES 2
Read only

Former Member
0 Likes
428

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
427

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

Regards,

Rohit