Hi,
I have one case whether i need to insert the records into a db table dynamically.
here, the database table im getting is from an internal table. So, im getting the structure of the same by using ref statement.
Code:
CREATE DATA dref TYPE STANDARD TABLE OF (wa_key_tmp1-tabname).
CREATE DATA dref1 TYPE (wa_key_tmp1-tabname).
ASSIGN dref->* TO <it_fnl_data>.
ASSIGN dref1->* TO <wa_fnl_data>.
INSERT (wa_key_tmp1-tabname) FROM <wa_fnl_data>.
Problem:
here, when im inserting records from <wa_fnl_data>. the program is going to dump saying "Work area is too small for ABAP/4 Open SQL work area operation".
this is bez the db table contains the fields like date and time.
When i investigated on this, i came to know that the outlength for these two fields are not coming when im calling through reference.
Actually, the database table is 200 bytes wide and but the work area is only 192 bytes wide.
Can i get any solution for this.
Thanks in advance.
Rohith