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: 

Want to add custom code in standard enhancement-section

Former Member
0 Kudos
857

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.

Thanks

B Prakash Soni

2 REPLIES 2

christian_wohlfahrt
Active Contributor
0 Kudos
279

Hi!

Open LMEDRUCKF1K with SE38. Switch the view pressing the 'snake' (SHIFT+F4).

Place the cursor on the 'ENHANCEMENT'(-spot) line and choose in menu Edit-Enhancements-Create.

Type your code and activate.

Regards,

Christian

Peter_Inotai
Active Contributor
0 Kudos
279