2011 Feb 14 6:13 AM
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
2011 Feb 14 6:36 AM
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
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
2011 Feb 14 6:36 AM
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
2011 Feb 14 6:39 AM
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
2011 Feb 14 6:40 AM
Hi,
KALA fields MAXE and MAXW are not character like, they are not useable in TEXT MODE!
Regards,
Klaus
2011 Feb 14 6:56 AM
Thanks Lot...
Every one gave the right answer..now how to give full mark??? confusion now..
Thanks dears
2011 Feb 14 10:46 AM
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
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |