Skip to Content
0
Former Member
Dec 05, 2011 at 04:32 PM

Function BERECHNEN_BESTAND performance

93 Views

Hello Gurus.

I'm writing a report that creates an extract file from Function BERECHNEN_BESTAND (used in Transaction MC49 etc).

The requirement is to run it for all materials in several plants. This will have a long background run time of +2 hours.

Presently the program builds up a large 10,000 row table of Plant/Materials and loops at BERECHNEN_BESTAND 10,000 times.

I thought I could improve performance by Calling BERECHNEN_BESTAND once with 10,000 Plant/materials (or calling it 10 times with 1000 plant/materials, etc).

This did not work as I expected, and actually made performance much worse! I guess it's a memory issue.

Thanks for any comments/suggestions.

Zenon K.

p.s. (I found note 457615 that adds an index to MSEG. This did improve performance when running BERECHNEN_BESTAND 10,000 times)