‎2013 Feb 16 6:52 AM
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
‎2013 Feb 16 8:31 PM
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
‎2013 Feb 16 8:31 PM
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
‎2013 Mar 08 11:20 PM
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.