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

Implicit enhancement problem in Include RM07MLDD

Hello all,

In the standard include RM07MLDD, i am trying to enhance data structure SUM_MAT.

DATA: BEGIN OF SUM_MAT OCCURS 100,
        WERKS LIKE MSEG-WERKS,
        MATNR LIKE MSEG-MATNR,
        SHKZG LIKE MSEG-SHKZG,
        MENGE(09) TYPE P DECIMALS 3,                               "XJD
      END OF SUM_MAT.

There is implicit enhancement point after MENGE

After adding the code

DATA: BEGIN OF SUM_MAT OCCURS 100,
        WERKS LIKE MSEG-WERKS,
        MATNR LIKE MSEG-MATNR,
        SHKZG LIKE MSEG-SHKZG,
        MENGE(09) TYPE P DECIMALS 3,                               "XJD
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Struct. SUM_MAT, End                                                                                S
*$*$-Start: (1)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1  Z_MB5B_FIELDS_1.    "inactive version
* Add fields from MSEG
        LSMNG TYPE MSEG-LSMNG, "Qty from Delivery Note
ENDENHANCEMENT.
*$*$-End:   (1)---------------------------------------------------------------------------------$*$*
      END OF SUM_MAT.

This causes the syntax error "Comma without preceding colon (after LSMNG ?)."

How should i add a field to SUM_MAT ?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 09, 2010 at 11:01 AM

    WHen you are enhancing a type declaration before END OF .. you must use the below syntax:

    DATA <additional field> TYPE <Type>.

    Hence in your case you have to write :

    DATA: LSMNG TYPE MSEG-LSMNG.

    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.