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.