‎2010 Feb 09 10:52 AM
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
‎2010 Feb 09 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.
‎2010 Feb 09 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.
‎2010 Feb 09 11:08 AM