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: 

Add column in MD04 with user exit:M61X0002

0 Kudos
1,355

Hello,

I need to add a new column in transaction MD04 with the user exit:M61X0002. could anyone tell me how can i implement this how can i use the two Exit functions EXIT_SAPLM61R_001 & EXIT_SAPMM61R_001?

Thank you.

1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor
1,051

Hello rahma_benabdallah61

As per M61X0002 documentation, it is obsolete and replaced by MD_ADD_COL_EZPS BAdI:

This enhancement has been replaced by the Business-Add-In Additional Columns in the Evaluation PP-MRP Material Requirements Planning (MD_ADD_COL_EZPS). The BAdI has an enhanced scope of function which enables improved column control. If an implementation for this BAdI is active, the user exits described here are not executed!.

So you should not implement custom columns in MD04 with M61X0002 but with the BAdI.

Display to BAdI in SE18 and see its documentation. The BAdI is well documented, also detailed documentation for both methods is provided. You can also find a sample implementation in the class CL_EXM_IM_MD_ADD_COL_EZPS.

If for whatever reason you have to stick with M61X0002, see its documentation and follow sample implementation in the LXM61F04 and LXM61F03 includes.

Best regards

Dominik Tylczynski

3 REPLIES 3

DominikTylczyn
Active Contributor
1,052

Hello rahma_benabdallah61

As per M61X0002 documentation, it is obsolete and replaced by MD_ADD_COL_EZPS BAdI:

This enhancement has been replaced by the Business-Add-In Additional Columns in the Evaluation PP-MRP Material Requirements Planning (MD_ADD_COL_EZPS). The BAdI has an enhanced scope of function which enables improved column control. If an implementation for this BAdI is active, the user exits described here are not executed!.

So you should not implement custom columns in MD04 with M61X0002 but with the BAdI.

Display to BAdI in SE18 and see its documentation. The BAdI is well documented, also detailed documentation for both methods is provided. You can also find a sample implementation in the class CL_EXM_IM_MD_ADD_COL_EZPS.

If for whatever reason you have to stick with M61X0002, see its documentation and follow sample implementation in the LXM61F04 and LXM61F03 includes.

Best regards

Dominik Tylczynski

1,051

Thank you ! that helps

Sandra_Rossi
Active Contributor
0 Kudos
1,051

Whenever you work with a customer exit, read the documentation first > transaction SMOD > Documentation > Display:

See the excerpt from the documentation in Dominik answer.