Application Development 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: 

How would add custom code inside enhancement-section

Former Member
0 Kudos

How would i can write my own custom code inside

an standard enhancement-section in enhancement framework?

My requirement in program LMEDRUCKF1K, i want to add my custom code just before calling 'CLOSE_FORM' in below code.

ENHANCEMENT-SECTION ENDE_02 SPOTS ES_SAPLMEDRUCK.

CALL FUNCTION 'CLOSE_FORM'

IMPORTING

RESULT = RESULT

exceptions

OTHERS = 1.

END-ENHANCEMENT-SECTION.

Please help on this,require urgently.

Would appreciate suggestions/solutions.

Thanks

B Prakash Soni

3 REPLIES 3

Manohar2u
Active Contributor
0 Kudos

You can take access key for <b>Object R3TR FUGR MEDRUCK</b> from basis person and go ahead.

Regds

Manohar

Former Member
0 Kudos

Hi,

You can create an enhancement-point before the enhancement section begins and implement the enhancement-point using a source-code plug in.

Regards,

Bhaskar.

0 Kudos

Hello,

are you an industry customer?

If not (or if the section is not enhanced for your industry),

- change in enhancement mode

- select the line with enhancement

- choose enhancement -> change from context menu

- define a new enhancement object (or use a existing one)

- the original coding is copied into you enhancement

- add your coding

- save & activate

if yes,

- select the enhancement implementation of your industry

- choose enhancement -> replace from context menu

- define a new enhancement object (or use a existing one)

- the original coding is copied into you enhancement

- add your coding

- save & activate

Regards

Michael