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

Dump while transferring records to Application server

Former Member
0 Likes
744

Hi Experts,

I am trying to transfer my internal table data to application server. Before that i tried one test program for to transfer one field to application server.

But i am getting dump like


Short text
    The current statement is only defined for character-type data objects.

My smple program is,


DATA: input_file TYPE string VALUE `/usr/sap/data/test/service/test.txt`,
            wa   TYPE kala.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECTION-SCREEN END OF BLOCK b1.
OPEN DATASET input_file FOR INPUT  IN   TEXT MODE ENCODING DEFAULT .
wa-kalaid = 'TEST'.
close DATASET input_file.

OPEN DATASET input_file FOR OUTPUT  IN   TEXT MODE ENCODING DEFAULT .
transfer wa to input_file LENGTH 100.
close DATASET input_file.

Kindly guide me.

Mohana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
642

Hi,

Each field of your internal table should be char type C,N,String etc..

Check whether KALA structure has any Interger,float type fields.

Thanks

Avinash

5 REPLIES 5
Read only

Former Member
0 Likes
643

Hi,

Each field of your internal table should be char type C,N,String etc..

Check whether KALA structure has any Interger,float type fields.

Thanks

Avinash

Read only

Former Member
0 Likes
642

Its because the structure KALA has two fields MAXE, MAXW which are of type INT4 which will dump when transffered to application server. Declare a local strcture of the type KALA replacing the above mentioned fields with type C and try again. It will work.

Vikranth

Read only

Former Member
0 Likes
642

Hi,

KALA fields MAXE and MAXW are not character like, they are not useable in TEXT MODE!

Regards,

Klaus

Read only

0 Likes
642

Thanks Lot...

Every one gave the right answer..now how to give full mark??? confusion now..

Thanks dears

Read only

0 Likes
642

Isn't this something you could have solved yourself? The error message is quite straightforward, for ABAP developers at least.

Sometimes people give similar replies within a few minutes, when the other replies are not visible yet. Happens mostly for "easy" problems...

Usually the first correct reply should be marked.

Thomas