‎2011 Sep 02 6:10 AM
Hi there,
I am trying to enhance a structure in a standard SAP program using the enhancement framework. After going into enhancement mode I can see the implicit enhancement point at the end of the DATA definition statement immediately before the END OF statement.
When I try and insert additional fields I get a syntax error.
DATA: BEGIN OF bestand OCCURS 0,
matnr LIKE mara-matnr,
werks LIKE t001w-werks,
.....
wbwesb like mbew-salk3, "AC0K020254
"""""""*"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Struct. BESTAND, End S
*$*$-Start: (1 )--------------------------------------------------------------------------------$*$*
ENHANCEMENT 10 YEI_RM07MLBS_BESTAND. "inactive version
*
rdate like sy-datum,
ENDENHANCEMENT.
*$*$-End: (1 )--------------------------------------------------------------------------------$*$*
END OF bestand.
In the above example I have added the RDATE LIKE SY-DATUM field. The syntax error I get is "Comma without preceding colon (after RDATE?)".
I have tried various other sytax options, such as using substructures and includes, without success.
Any help would be much appreciated.
Cheers
Graham Robbo
‎2011 Sep 02 8:30 AM
Hi,
As said, try like this..
DATA rdate like sy-datum. " instead of comma end the statement with period.Regards,
Ravi.
‎2011 Sep 02 8:24 AM
Hi
try declaring something like this -
DATA rdate like sy-datum,
within implicit enhancement
Cheers,
Rupesh
‎2011 Sep 02 8:30 AM
Hi,
As said, try like this..
DATA rdate like sy-datum. " instead of comma end the statement with period.Regards,
Ravi.
‎2011 Sep 02 8:44 AM
‎2011 Sep 02 4:41 PM