Application Development 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: 

extract-insert problem

0 Kudos

Hi Gurus. Please check where is the error taking place. See code below:

----


  • DEFINITION OF THE INTERMEDIARY DATASET *

----


FIELD-GROUPS : HEADER, DATA,

DATAC1,

DATAC2,

DATAC3,

DATAC4,

DATAC8,

DATAC9.

INSERT

H-ACCNR

HLP_CNT

H-NBKST

H-SEQNR

H-SUBNR

H-RECID

H-BKRF1

C1-ACCNR+13(3)

INTO HEADER.

INSERT C1

C0-IDNO

INTO DATAC1.

INSERT C2

C21

C22

C23

C0-IDNO

INTO DATAC2.

INSERT C3

C31

C32

C33

C0-IDNO

INTO DATAC3.

INSERT C8

C0-IDNO

INTO DATAC8.

INSERT C4

C0-IDNO

INTO DATAC4.

INSERT C9

C0-IDNO

INTO DATAC9.

INSERT

C0-IDNO

C1-NAMEO

C2-SIGNA

C2-AMOUN

C2-VALDT

C2-OPTE

C2-COMIF

C2-COMMU

C2-BUDAT

C2-EXTNR

C2-GLOBL

C2-CBLNR

C2-GKONT

C2-GNAME

C2-FOLLW

C2-RELAT

INTO DATA.

When i run the program, I have a runtime error that says:

ABAP runtime errors INSERT_INTO_LOCKED_FIELD_GROUP

Occurred on 01/30/2008 at 18:11:55

With field groups, INSERT is not supported after EXTRACT.

What happened?

The current ABAP/4 program "RFEBBECODA00 " had to be terminated because

one of the statements could not be executed.

This is probably due to an error in the ABAP/4 program.

Error analysis

The current ABAP/4 program "RFEBBECODA00 " 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, this prefixes each 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 once the first

record of that type has been extracted.

This program attempts to place a new field "H-ACCNR" in the field group

"IT_688"

after a record of type "IT_688" has been extracted.

-

Please advise.

Helpful answers will be rewarded.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

From the error analysis:

This program attempts to place a new field "H-ACCNR" in the field group

"IT_688"

after a record of type "IT_688" has been extracted.

i am not sure where you are using field group IT_688

As per standard: You cannot modify a field group once the first

record of that type has been extracted.

please check this.

REPORT demo_extract_extract .

NODES: spfli, sflight.

FIELD-GROUPS: header, flight_info, flight_date.

INSERT: spfli-carrid spfli-connid sflight-fldate

INTO header,

spfli-cityfrom spfli-cityto

INTO flight_info.

START-OF-SELECTION.

GET spfli.

EXTRACT flight_info.

GET sflight.

EXTRACT flight_date.

4 REPLIES 4

0 Kudos

Anybody who can help?

Former Member
0 Kudos

Hi,

What are below fields?Pls. explain.

H-ACCNR

HLP_CNT

H-NBKST

H-SEQNR

H-SUBNR

H-RECID

H-BKRF1

C1-ACCNR+13(3)

Former Member
0 Kudos

Hi

From the error analysis:

This program attempts to place a new field "H-ACCNR" in the field group

"IT_688"

after a record of type "IT_688" has been extracted.

i am not sure where you are using field group IT_688

As per standard: You cannot modify a field group once the first

record of that type has been extracted.

please check this.

REPORT demo_extract_extract .

NODES: spfli, sflight.

FIELD-GROUPS: header, flight_info, flight_date.

INSERT: spfli-carrid spfli-connid sflight-fldate

INTO header,

spfli-cityfrom spfli-cityto

INTO flight_info.

START-OF-SELECTION.

GET spfli.

EXTRACT flight_info.

GET sflight.

EXTRACT flight_date.

0 Kudos

Hi. This error occurs in program RFEBBECODA00 (CODA 2.1). When I do a search in the program, IT_688 does not exist. Where am i going to see this?