Skip to Content

extract-insert problem

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 06:09 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 31, 2008 at 05:56 AM

    Anybody who can help?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 06:06 AM

    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)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.