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

Err: workarea is not long enough...

Former Member
0 Likes
1,369

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

5 REPLIES 5
Read only

Former Member
0 Likes
916

Hi,

Could you please let us know how you have defined your 'lt_rahd_delete' .

Thanks,

Sriram Ponna.

Read only

former_member404244
Active Contributor
0 Likes
916

Hi,

declare the internal table as

data : lt_rahd_delete type table of zdsd_hh_rahd .

now try.

Regards,

Nagaraj

Read only

Kanagaraja_L
Active Contributor
0 Likes
916

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

Read only

Nimesh_S_Patel
Explorer
0 Likes
916

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

Read only

Former Member
0 Likes
916

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,