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

modify protected section .

Former Member
0 Likes
786

hi guys , im trying to modify a standard class of HR ,i ve already made sone changes , however , im not achiving to do last change , im trying to modify a structure (type begin - end of) adding other fields , but is almost impossible i try with enhancement but i get the error : Comma without preceding colon (after ENTID ?).

is it any other way ?

 types:
    BEGIN OF GTY_S_COMPANY,
        nif       TYPE ppt_finum,
        sales     TYPE p LENGTH 15 DECIMALS 2,
        forei     TYPE ppt_fdata,
        privt     TYPE ppt_fdata,
        publi     TYPE ppt_fdata,
        share     TYPE p LENGTH 15 DECIMALS 2,
        eascd     TYPE ppt_fdata,
        amort     TYPE pc207-betrg,
        filos     TYPE pc207-betrg,
        pscst     TYPE pc207-betrg,
        inctx     TYPE pc207-betrg,
        provi     TYPE pc207-betrg,
        netrs     TYPE ppt_fdata,
        bradv     TYPE pc207-betrg,
        socac     TYPE ppt_fdata,
        mactc     TYPE ppt_fdata,
        lnacd     TYPE ppt_fdata,
""""""*""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Class CL_HR_PT_UNIQUE_RP, Typ GTY_S_COMPANY, End                                                                                S
*$*$-Start: (1 )--------------------------------------------------------------------------------$*$*
ENHANCEMENT 1  ZIMPLEMENT1.    "inactive version
        entid TYPE ppt_fdata,
ENDENHANCEMENT.
*$*$-End:   (1 )--------------------------------------------------------------------------------$*$*
      END OF GTY_S_COMPANY .

the class is CL_HR_PT_UNIQUE_RP.

3 REPLIES 3
Read only

former_member214857
Contributor
0 Likes
576

Hi

Actually , it is not possible to create a new enhance point in the middle of statments.

Regarding code above, you must create this enhancement point at the end or at the beginnig of the TYPE statement.

Kind regards

Read only

0 Likes
576

Thanks Oscar for your repky , however I need the extra field in the structure GTY_S_COMPANY, How could i achieve that ? . stay cool

Read only

Former Member
0 Likes
576

This message was moderated.