Skip to Content
author's profile photo Former Member
Former Member

field-group and field symbol

In 4.6C working fine. Gettting runtime error in ECC6.0. When i am trying to insert field-symbol into field group. Can any body tell me or suggest me what is the reason.

  • Field Group Declaration

FIELD-GROUPS: HEADER, LINE.

FIELD-SYMBOLS: <S1>, <S2>, <S3>, <S4>.

INSERT: <S1> <S2> <S3> <S4> VBRK-VBELN VBRK-KUNRG VBRK-FKDAT VBRK-BUKRS

VBRK-VKORG VBRK-VTWEG VBAK-VKGRP VBAK-VKBUR VBPA-KUNNR

BSEG-AUGBL BSEG-BELNR COMBINE INTO HEADER.

INSERT: KNA1-NAME1 PAYR-CHECT VBRK-NETWR BSEG-DMBTR BSEG-SKNTO

VBAK-VBELN VBAK-NETWR BSEG-WMWST WS_WAVWR WS_TAX WS_REV

VBRK-KURRF BSEG-DMBT1 BKPF-BLART BSEG-SHKZG

INTO LINE.

CASE SORT_BY1.

WHEN '1'.

ASSIGN BSEG-AUGBL TO <S1>.

SORT1 = 'Clearing Doc.'.

WHEN '2'.

ASSIGN COMBINE TO <S1>.

SORT1 = 'Payer ID'.

WHEN '3'.

ASSIGN VBRK-BUKRS TO <S1>.

SORT1 = 'Company Code'.

Thanks

Ashraf

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 09:47 PM

    Does an extended syntax check point out any problems?

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rob,

      Can you tell me how can i solve this issue.

      Runtime Errors MOVE_TO_LIT_NOTALLOWED

      Date and Time 09/11/2007 18:11:01

      Short text

      Assignment error: A constant was meant to be overwritten.

      Error analysis

      The field "<S1>" is to be assigned a new value although the field

      is partially or entirely protected against modifications.

      The following are protected against changes:

      - Character literals or numeric literals

      - Constants (CONSTANTS)

      - Parameters of the category IMPORTING REFERENCE for functions and

      methods

      - Untyped field symbols not yet assigned a field using ASSIGN

      - TABLES parameters if the actual parameter is protected against changes

      - USING reference parameters and CHANGING parameters for FORMs, if the

      actual parameter is protected against changes and

      - Accesses using field symbols if the field assigned using ASSIGN is

      protected (or partially protected, e.g. key components of an internal

      table with the type SORTED or HASHED TABLE) against changes

      - Accesses using references, if the field bound to the reference is

      protected (or partially protected) against changes

      - External write accesses to READ-ONLY attributes,

      - Content of a shared object area instance accessed using a shared lock

      (ATTACH_FOR_READ).

      Thanks

      Ashraf

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.