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 Data Declaration

Former Member
0 Likes
2,601

Hello all,

I want to add 3 more field at the data declaration level to standard Include structure and that include structure referring from an standard TYPE-GROUP (GLT0) .

I am following below steps :

1) For that i have created a structure in SE11 with the required 3 fields.

2) Then I went to the Data Declaration section and right clicked and choose 'Enhancement Implementation'->Create.

3) Then I added that structure using INCLUDE STRUCTURE syntax

it is not giving any syntax error and it is activated

When i try to extend the structure the Implicit Enhancement name shows in RED color.

and when i run any Transaction which is using this this standard type group it is giving TYPE mismatch dump.

Below is the piece of code.

Types :  begin of glt0_s_kdftab,

           bukrs      type bukrs,

           saknr       type saknr,

          hkont        type  hkont,

         gsber        type  gsber,

       bupla         type   bupla,

""""""""*""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Struct.

*$*$-Start: (1 )--------------------------------------------------------------------------------$*$*

ENHANCEMENT 3 ZGLT0.    "active version

           INCLUDE STRUCTURE  YSTRUCT. -----> which contains my required 3 fields

ENDENHANCEMENT.

*$*$-End:   (1 )--------------------------------------------------------------------------------$*$*

        end of glt0_s_kdftab.

glt0_t_kdftab type glt0_s_kdftab.   -------> The text in bold shows in red color.

Please help me out in solving this .

Thanks,

Jeevan


1 ACCEPTED SOLUTION
Read only

former_member491621
Contributor
0 Likes
1,454

Hi Jeevan,

You can try using

ENHANCEMENT 3 ZGLT0.    "active version

    TYPES :  INCLUDE STRUCTURE  YSTRUCT. -----> which contains my required 3 fields

ENDENHANCEMENT.

Also check below link for reference

http://scn.sap.com/thread/1602797

Hope this helps

2 REPLIES 2
Read only

former_member491621
Contributor
0 Likes
1,455

Hi Jeevan,

You can try using

ENHANCEMENT 3 ZGLT0.    "active version

    TYPES :  INCLUDE STRUCTURE  YSTRUCT. -----> which contains my required 3 fields

ENDENHANCEMENT.

Also check below link for reference

http://scn.sap.com/thread/1602797

Hope this helps

Read only

Former Member
0 Likes
1,454

you are including a structure inside the "TYPES:" statemet. Notice that the line just before the enhancement has a "comma" at the end. So, you should either define a structure field that has the type you defined or just list the three fields stright out there.