cancel
Showing results for 
Search instead for 
Did you mean: 

MD_STOCK_REQUIREMENTS_LIST_API time out error

0 Kudos

Hi Guys,

we are using a FM MD_STOCK_REQUIREMENTS_LIST_API in one custom report and in selection screen giving plant and weeks.when executing the program it is showing time out error after some time.

Accepted Solutions (0)

Answers (2)

Answers (2)

Caetano
Product and Topic Expert
Product and Topic Expert

Hello

Function module MD_STOCK_REQUIREMENTS_LIST_API reads the stock/requirements situation, which means it will all the different planning elements (sales orders, requisitions, reservations, etc...) for all the involved materials. Calling this function module for an entire plant would be similar to running transaction MD04 for this entire plant, so it may take a while, depending on the volume of materials and planning elements.

As already mentioned, you can try to improve the performance, by running this function module in parallel or using a more restrictive selection criteria.

If you are using S/4HANA, you can implement the solution describe din the following note in your custom program, to improve the performance when using this function module.

2122700 - MRP on SAP HANA: Optimized HANA pre-read for reading the planning situation using API

Please observe that, even implementing all the possible performance improvements, in some situations you may not be able to avoid this short dump, so you will have to run your program in background.

Regards,

Caetano

former_member244427
Active Contributor
0 Kudos

Hello,

You need to check with your BASIS team to increase the run time parameter.

Try to execute the custom program in background.

Try to execute the program with reduced selection may be materials.

Check with your ABAP team how this program could be optimized may be introducing parallel processing to read the data using this FM.

Also check if this note is relevant for you

2096918 - Performance problem while using interchangeable materials in MRP

Regards

Abhishek Rai