Application Development and Automation 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: 
Read only

Implicit enhancement problem in Include RM07MLDD

Former Member
0 Likes
983

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

1 ACCEPTED SOLUTION
Read only

former_member206377
Active Contributor
0 Likes
462

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.

2 REPLIES 2
Read only

former_member206377
Active Contributor
0 Likes
463

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.

Read only

0 Likes
462

Thanks !! That did it