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

Enhancing Structure Using Enhancement Framework

GrahamRobbo
SAP Mentor
SAP Mentor
0 Likes
981

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
635

Hi,

As said, try like this..

DATA rdate like sy-datum. "  instead of comma end the statement with period.

Regards,

Ravi.

4 REPLIES 4
Read only

Former Member
0 Likes
635

Hi

try declaring something like this -

DATA rdate like sy-datum,

within implicit enhancement

Cheers,

Rupesh

Read only

Former Member
0 Likes
636

Hi,

As said, try like this..

DATA rdate like sy-datum. "  instead of comma end the statement with period.

Regards,

Ravi.

Read only

madhu_vadlamani
Active Contributor
0 Likes
635

Hi Graham,

Check as Rupesh told.It will work.

Regards,

Madhu.

Read only

AnjaneyaBhardwaj
Contributor
0 Likes
635

Similar problem discussed and solved on forum already...

[;

Thanks,

Anjaneya .