cancel
Showing results for 
Search instead for 
Did you mean: 

Method GET_BOM() of BAdI ME_PROCESS_PO_CUST fails to get any data

Former Member
0 Kudos


Cause SAP standard function can't record the BOM modification of outsourced PO, I try to get the BOM by a method GET_BOM() in BAdI ME_PROCESS_PO_CUST, and the method can't get anything while testing. I debug my enhancement codes, find that there is a logical code in the method GET_BOM(), and its result seems always false and has no chance to process the inner code.

Do I miss something, or the standard code exists bug?


Here are the codes.


Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I find out the switch for the method GET_BOM() from the SAP docunments, after I swtich on LOG_MM_OM_1 in t-code SFW5, the BAdI method GET_BOM() can output the result what I want.

Here is the link:

Outsourced Manufacturing - Business Functions (SAP Enhancement Package 4 for SAP ERP 6.0) - SAP Libr...

Thanks for your help!

Former Member
0 Kudos

This does not seem to be a standard code as the Pretty Printer is enabled.

Former Member
0 Kudos


Hi Souvik,

The method GET_BOM() I call is the standard code. What confuses me is just the method GET_BOM().

Former Member
0 Kudos

Hi,

In that case and on re-analyzing on your pre-explanation, it seems that you are correct.

So, why don't you directly use this code "me->mt_bom" instead of directly calling get_bom.

With Regards,

Souvik

Former Member
0 Kudos

Hi Souvik,

There is no such attribute in the method POST, it is a private attribute for anthod method.

Former Member
0 Kudos

Hi ,

This is Standard Code and SAP is stopping the execution of GET_BOM () method as If condition will always be false.

If you still require this method to be executed, then you can implement Pre-Method Exit, in that you can remove IF condition and call the mehod and use some condition to restrict this exit for your program only otherwise it might impact other standard logics.


do let me know in case of any issues.


Regards,

Praphul