Skip to Content
0
Former Member
Feb 10, 2010 at 10:13 AM

Error in Field group

32 Views

Hi Experts,

I have issue with field group. I declared like,

FIELD-GROUPS: header.

INSERT: ext-afaber

ext-ktogr

ext-afasl

ext-gsber

ext-fkber

ext-kostl

ext-fistl INTO header.

Its working fine for one first time. second time the same code will be executed with some other datas

and it throws a dump.

Error description is,

With field groups, INSERT is not supported after EXTRACT.

The current ABAP program "SAPLZALT_FG806" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

The current ABAP program "SAPLZALT_FG806" uses field groups and

extract techniques.

Extracts consist of records of different types where the structure

of each record type is described by a field group.

If there is a field group HEADER, it precedes every record.

Although an extract dataset can contain different record types,

each individual record type must be consistent in its structure.

This means that you cannot modify a field group

when the first record of that type has been extracted.

This program attempts to place a new field "EXT-AFABER" in the field group

"\FUNCTION-POOL=ZALT_FG806\DATA=HEADER[]", although a record of type

"\FUNCTION-POOL=ZALT_FG806\DATA=HEADER[]" was already extracted.

Can anybody help me on this. After extracting the field group im in need of again insert data's to the same field group.

Thanks in advance,

Helps will be appreciated.

Edited by: Nandini on Feb 10, 2010 11:48 AM