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: 

Explicit Source Code Enhancements - INCLUDE BOUND & Implementation Order

Former Member
0 Kudos

Hello All,

I have two queries on explicit source code enhancements:

1) While defining an explicit enhancement option (ENHANCEMENT-POINT) in an Include program, how do I set up the INCLUDE BOUND addition? The pop-up only gives the STATIC addition.

2) I have an explicit enhancement option (ENHANCEMENT-POINT), for which I want to write an implementation. However, there is aleady an implementation for the ENHANCEMENT-POINT written by someone else.

When I create my own implementation, it is coming above the existing one. So my new implementation executes before the existing implementation. However, I want my new implementation to come below the existing one.

How can I change the order (sequence) of the implementations?

Thank you.

Amar

3 REPLIES 3

P561888
Active Contributor
0 Kudos

Hi,

Explicit enhancement points and sections that allow you to enhance or replace the DECLARATIONS are called STATIC.

Source code enhance or replace are called DYNAMIC.

I think we can't control the order of implementation if we have the multiple implementation.

Thanks and Regards,

Bharani

Former Member
0 Kudos

Hi Bharani,

Thanks for your reply.

I feel too, that we cannot control the implementation/exection sequence.

About the first point (INCLUDE BOUND), my question was:

How do we define an enhancement option (ENHANCEMENT-POINT) as INCLUDE BOUND?

Thanks,

Amar

Create two main programs named ZMAIN1 ZMAIN2.

Create one include program named ZINCLUDE1.

Add one subroutine named 'abc' to ZINCLUDE1 (FORM abc).

Add 'INCLUDE ZINCLUDE1.'  to top of ZMAIN1 and ZMAIN2.

Call subroutine(perform abc ..) from ZMAIN1 and ZMAIN2.

Compile these two main programs.

Start tcode se38 and change ZINCLUDE1. Try to add explicit enhancement option in subroutine abc.

This enhancement option is now INCLUDE BOUNDED .

You can create more enhancement options and all will be INCLUDE BOUNDED.

Because se38 does not ask a main program to change ZINCLUDE1.

Note: If you try to change ZINCLUDE1 by double-clicking it from ZMAIN1 (ZMAIN2)

you can not create INCLUDE BOUNDED enhancement.Because editor knows that you are coming from ZMAIN1(ZMAIN2) and tries to create non-include bounded enhancement option that will be used only by ZMAIN1 (ZMAIN2).