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

Executing a Planning Enhancement in Debug

racingpro
Explorer
0 Likes
2,306

Hi Everyone,

    

In TCode MC95 (Display Planning) I would like to add some Customer defined F4 for three standard parameters in the selection screen.

    

I would like to use the standard enhancement MCP20007 to add my ABAP Coding.

   

I performed the following steps:

                                                         - In CMOD, I created a project and included the enhancement MCP20007.

                                                         - I activated the component and the project

                                                         - In SMOD, I entered the FM EXIT_SAPMMCP6_007 in the enhancement

                                                         - I created and activated the Include ZXSOPU07 that was specified in the FM standard version.

                                                         - I entered a few lines of ABAP coding in the Include to test the process in Debug Mode

    

When I execute the TCode MC95 the program does not break in the Include. It does not execute the command CALL CUSTOMER-EXIT.

Is there something that I should verify or am I missing something?

    

Thank you in advance for your help,

  

Sylvain

1 ACCEPTED SOLUTION
Read only

former_member202818
Active Contributor
0 Likes
2,235

Hi Sylvain,

Its a function module exit. This function will be called by the statement CALL CUSTOMER-FUNCTION '007'. 

In which screen and field would u like to do enhancement?

please press F1 on the field and select technical information not down the Screen Number.

Regards

Sreekanth

4 REPLIES 4
Read only

former_member202818
Active Contributor
0 Likes
2,236

Hi Sylvain,

Its a function module exit. This function will be called by the statement CALL CUSTOMER-FUNCTION '007'. 

In which screen and field would u like to do enhancement?

please press F1 on the field and select technical information not down the Screen Number.

Regards

Sreekanth

Read only

0 Likes
2,235

Hi Sreekanth,

Thanks for the reply. This is the issue I have is that I do not know when the FM will be called.

I would like to add some F4-Help drop down list to fields: Main Group (PRODH1), Group (PRODH2) and Subgroup (PRODH3).

The program name is RMCA7019. The screen number is 1000 and the screen fields are SL_0001-LOW, SL_0004-LOW and SL_0005-LOW.

Here is a screen shot of the selection screen just in case

Thank you in advance for your help.

Sylvain

Read only

0 Likes
2,235

Hi Sylvin,

I could't find a program with this name. For different Planning type it shows different screens all these are  Reports.

You can achieve your requirement by using Implicit Enhancement.

And use AT SELECTION-SCREEN ON VALUE-REQUEST FOR event.

Low value field ....

AT SELECTION-SCREEN ON VALUE-REQUEST FOR SL_0001-LOW.

   PERFORM f4_SL_0001-LOW.


High value field...

AT SELECTION-SCREEN ON VALUE-REQUEST FOR SL_0001-High.

   PERFORM f4_SL_0001-high.


Inside the Forms use FUNCTION  'F4IF_INT_TABLE_VALUE_REQUEST'.

To Implement Implicit Enhancement. Follow these Steps....

1. Find the program

2. Turn the Program into Enhancement Mode

3. Choose,

    Edit->Enhancement Operations->Show Implicit Enhancement Options

4. You will see all the available Enhancement Option areas as shown below.

5. To implement your code go to the end of report and choose the last Enhancement Option.

    Right click on the Enhancement Option and choose...

6. Provide a Implementation name (eg:ZTEST) and Description

press enter.

7. Now you will get a area to write your code

8. Finally, Activate the implementation by using the button 'Enhancements' in application tool bar.

I hope my effort will be useful for u...

Regards

Sreekanth

Read only

0 Likes
2,235

Hi Sreekanth,

I was never able to have the enhancement MCP20007 worked properly. The program RMCA7019 is generated automatically by SAP when performing the standard procedure to implement a customer specific Materials Product Hierarchy.

I was able to find a work around to the issue with MCP20007 by following your advice on using an implicit enhancement and FM F4IF_INT_TABLE_VALUE_REQUEST.

Thank you very much for your help.

Best regards,

Sylvain