cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dependent Requirements not being created

ramakanth_sagar
Explorer
0 Kudos
1,205

Hi,

We use an upload program to create PIR.

BAPI_REQUIREMENTS_CREATE is used in the upload program.

Issue:

The MRP does not create dependent requirements when PIR is created using program. I get the error "BOM not selected" Exception message 52.

Where as, MRP creates dependent requirement when PIR is created manually using MD61.

Please suggest a solution. Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

rupesh_brahmankar
Active Contributor
0 Kudos

Hello,

If you are using the Variant configuration with characteristic planning,

You need to create planned independent requirements with configuration data for BAPI  BAPI_REQUIREMENTS_CREATE you must fill the REQUIREMENTS_CHAR_IN table

Please refer consulting nowt 825202 - BAPI_REQUIREMENTS_CREATE w/ configuration data (consulting)

Best Regards,

R.Brahmankar

ramakanth_sagar
Explorer
0 Kudos

Hi Brahmakar,

I think this note does not apply for our SAP version 6.4.

Thanks

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

There must be some difference between both planned orders. Please share screenshots of the planned order created to cover the different PIRs.


BR
Caetano

ramakanth_sagar
Explorer
0 Kudos

Hi Caetano,

Yes, there is a difference. The configuration button is not coming when I upload using BAPI.

Below, first one when the PIR is created manually and second one when PIR created using program.

Thanks

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

The solution for this issue has been already provided by on his last answer. You must you must fill the REQUIREMENTS_CHAR_IN table when creating PIRs on your BAPI, so that the configuration is available on the planned order.

In addition, the code corrections from note 825202 may be already implemented on your system, however, this note provides relevant information about this BAPI and you should read it carefully.

Best regards
Caetano Almeida

MarianoCabalen
Active Contributor
0 Kudos

Hello,

Could you share the ABAP code where the following structures are filled:

REQUIREMENT_PARAM

REQUIREMENTS_SCHEDULE_IN

You can also try to execute the BAPI in SE37. Your program should fill the same info that you fill when the BAPI is executed in SE37.

Kind Regards,

Mariano

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

The problem here is with the planned order BOM explosion. Are you sending any different parameter that could influence the BOM explosion when the PIR is created with the BAPI? Maybe a production version or the validity can be different...

I suggest you to read carefully the blog and make sure that the notes suggested are implemented on your system.

BR
Caetano

ramakanth_sagar
Explorer
0 Kudos

There is no issue with the validity and we do not use production version.

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

I can only tell that this is a problem with the BOM explosion. Which planning strategy are you using for your PIRs?

You can also try to run the BOM explosion manually on MD12.

BR
Caetano

ramakanth_sagar
Explorer
0 Kudos

It is a custom strategy. This is for Long term planning. Variant configuration with characteristic planning is used here.

Thanks

ramakanth_sagar
Explorer
0 Kudos

Why different behavior when created manually and when created using BAPI?

When MRP is run using MS02 (after PIR is uploaded using BAPI), it is reading each component but system is not creating the dependent requirements.