Skip to Content
0
Former Member
Jun 29, 2007 at 12:12 PM

ALV Control - Field Catalog Dump.

30 Views

Dear All

I have a local structure st_duty(prepared from 2 tables) and internal table it_duty.

When I am preparing the Field catalog for this it is giving Dump.

Code given:

DATA: it_fcat1 TYPE TABLE OF lvc_s_fcat,

wa_fcat1 TYPE lvc_s_fcat.

clear wa_fcat1.

wa_fcat1-coltext = 'Duty code'.

wa_fcat1-REF_FIELD = 'DUTCODE'.

wa_fcat1-REF_TABLE = '/OBIZ/ZMB_BEDUT'.

wa_fcat1-FIELDNAME = 'DUTCODE'.

wa_fcat1-col_pos = 1.

MODIFY it_fcat1 FROM wa_fcat1.

clear wa_fcat1. "At this Point it is giving short dump"

wa_fcat1-coltext = 'Description'.

wa_fcat1-REF_FIELD = 'CODDESC'.

wa_fcat1-REF_TABLE = '/OBIZ/ZCM_CODMAS'.

wa_fcat1-FIELDNAME = 'CODDESC'.

wa_fcat1-col_pos = 2.

MODIFY it_fcat1 FROM wa_fcat1.

Short Dump Message as given below :

Error analysis:

You attempted to change, delete or create a line in the internal table "\PROGRAM=SAPMZ_BOE_DETAILS_OBIZ\DATA=IT_FCAT1", but no valid

cursor exists for the table.

Possible reasons:

1. The relevent ABAP/4 statement does not include the addition

"...INDEX...", although the statement is not

inside a "LOOP...ENDLOOP" loop processing this table.

2. The relevent ABAP/4 statement was called from within a

"LOOP...ENDLOOP" loop after a DELETE

"\PROGRAM=SAPMZ_BOE_DETAILS_OBIZ\DATA=IT_FCAT1".

If anyone knows the reason then please help....

Regards

Sajid