‎2008 Mar 30 8:15 AM
Hi , I have downloaded all the entries from a database table , When i try to upload , it tries only to upload the data with Only chars or Number i mean like if ti only "1422" or "abcd" but not "142Xahnd". The data element is of char type,. So u
The data Declaration was like this
DATA DATAREF TYPE REF TO DATA.
and i changed it to the below
DATA DATAREF TYPE REF TO STRING.
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = IT_FIELDCATALOG
IMPORTING
EP_TABLE = DATAREF
EXCEPTIONS
GENERATE_SUBPOOL_DIR_FULL = 1
OTHERS = 2.
ASSIGN DATAREF->* TO <ROW>.
but when i execute i get an error saying " Dataref not type comaptible para meter ep_table.
can an body throw ligh light on this.
with rgds
ranjith Singh
‎2008 Mar 30 3:12 PM
Hi Ranjith,
possibly there are some misunderstandings.
How have you "downloaded all the entries from a database table" ?. If it was using ABAP, I assume that prior to downloading you selected into an internal table with the structure of this database table.
Now for upload, you need this intrenal table to upload the data to.
CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE is an obsolete method to create an internal table from a field catalog. So where did you get that field catalog and why did you change the parameters type?
At least you need something like
ASSIGN DATAREF->* TO <F_FS>.
Or you may
LOPP AT DATAREF->* assigning <any>.
But still I do not understand why you go that way. Just declare
DATA ITAB TYPE TABLE OF <your database tables name>.
Regards,
Clemens
‎2008 Mar 30 3:12 PM
Hi Ranjith,
possibly there are some misunderstandings.
How have you "downloaded all the entries from a database table" ?. If it was using ABAP, I assume that prior to downloading you selected into an internal table with the structure of this database table.
Now for upload, you need this intrenal table to upload the data to.
CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE is an obsolete method to create an internal table from a field catalog. So where did you get that field catalog and why did you change the parameters type?
At least you need something like
ASSIGN DATAREF->* TO <F_FS>.
Or you may
LOPP AT DATAREF->* assigning <any>.
But still I do not understand why you go that way. Just declare
DATA ITAB TYPE TABLE OF <your database tables name>.
Regards,
Clemens