2007 Dec 20 11:56 AM
Hi all,
Please solve this problem.......
Used this Statement in FM....
INSERT zdsd_hh_rahd FROM TABLE lt_rahd_delete.
Where 'zdsd_hh_rahd' is a Transp. Table with 25 fields.
'lt_rahd_delete' is declared as:
DATA: lt_rahd_delete TYPE /dsd/hh_rahd_s_tt.
'/dsd/hh_rahd_s_tt' is a Table Type.
Has Line Type as: '/DSD/HH_RAHD_S',
Key Defination as: Key component.
'/DSD/HH_RAHD_S' is a Structure refering to Table '/DSD/HH_RAHD'.
'/DSD/HH_RAHD' and 'zdsd_hh_rahd' hase the same fields.
But i am with an Error saying that:
Workarea 'lt_rahd_delete' is not long enough...
Edited by: CHELIKANI KUMAR on Dec 20, 2007 5:50 PM
Hi all,
Please solve this problem.......
Used this Statement in FM....
INSERT zdsd_hh_rahd FROM TABLE lt_rahd_delete.
Where 'zdsd_hh_rahd' is a Transp. Table with 25 fields.
'lt_rahd_delete' is declared as:
DATA: lt_rahd_delete TYPE /dsd/hh_rahd_s_tt.
'/dsd/hh_rahd_s_tt' is a Table Type.
Has Line Type as: '/DSD/HH_RAHD_S',
Key Defination as: Key component.
'/DSD/HH_RAHD_S' is a Structure refering to Table '/DSD/HH_RAHD'.
'/DSD/HH_RAHD' and 'zdsd_hh_rahd' hase the same fields.
But i am with an Error saying that:
Workarea 'lt_rahd_delete' is not long enough...
Edited by: CHELIKANI KUMAR on Dec 20, 2007 5:50 PM
2007 Dec 20 11:58 AM
Hi,
Could you please let us know how you have defined your 'lt_rahd_delete' .
Thanks,
Sriram Ponna.
2007 Dec 20 12:00 PM
Hi,
declare the internal table as
data : lt_rahd_delete type table of zdsd_hh_rahd .
now try.
Regards,
Nagaraj
2007 Dec 20 12:06 PM
Use INSERT zdsd_hh_rahd FROM TABLE lt_rahd_delete ACCEPTING DUPLICATE KEYS.
Work area wa should always be declared in the ABAP Dictionary with respect to the database table or the view so Declare
Data:lt_rahd_delete type zdsd_hh_rahd occurs 0.
Pls Let me know the Status.
Kanagaraja L
Edited by: Kanagaraja Lokanathan on Dec 20, 2007 1:07 PM
2007 Dec 20 12:07 PM
Hi Chelikani
Your internal table has type conflict with database table you are inserting.
Declare your internal table with reference type to your DB.
Regards
Nimesh S. Patel
2007 Dec 20 12:09 PM
Hi,
check have u given correctly occurs o..
and declare ur work area as
'lt_rahd_delete' like standard table of 'zdsd_hh_rahd' .
Regards,
Ari,
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |