Explicit Enhancement with Example

Explicit Enhancement :

Explicit point & Section  are available at any line. We will create the Explicit implementations using those points and  sections.

Enhancement spot : It is the container for Enhancement point and Enhancement Section.

1.Enhancement Point: It will not give default implementation.You can only add additional codes, you can not replace the existing code.

Example:

Adding logic to check if the Material Number contains any digit while creating Material in MM01. Populating error message if Material Number doesn't contain any number.

1.Go to T-code 'MM01.

2.Click on status.

3.click on screen number '60'.

4. Double click on 'Module internal_material_number_get INPUT'.

 

5.Click on 'Enhance' icon.

6.Right click on 'Enhancement-point'.

7.click on 'Enhancement operations.

8.click on 'create implementation'.

 9.Enter Implementation Name and short text.

10.Press Enter and select 'local object'.

11.Write the below code.

 

12.Check, save and activate.

13. Go to T-code 'MM01'.

14.Enter the data.

15.Press 'Enter'.

 

2.Enhancement Section:  It will give the default implementation.You can change or replace the existing SAP code.

Example: If we are not entering Material Number in 'MM01' it should automatically generate material number.We can see that number after pressing 'Basic Data'.

Now we are generating the Material Number before pressing 'Basic Data' through Enhancement Section.

1. Double click on 'Module internal_material_number_get INPUT'.

 

2.Click on 'Enhance' icon.

3.Right click on 'Enhancement Section'.

4.Click on 'Enhancement Operations'.

5.Click on 'Create Implementation'.

6.Enter Implementation name and short text.

7.Press 'enter'. 

8.click on 'local object'.

9.press 'enter'.(Default Implementation is there. We can add our code)

10.Go to SE91 and create Message Class and add the below code.

11.check,save and activate.

 

Output:




 

 


Comments

Popular posts from this blog

CDS Views: Table Functions with Example

Passing Dynamic Variables to SO10 TEXT

Adobe Form/PDF Form Introduction