cancel
Showing results for 
Search instead for 
Did you mean: 

Error Reading Planning Area

Former Member
0 Kudos

Hello Gurus,

While executing a macro via an activity on a background job, the job is cancelled with an error message Error Reading Planning Area. Macro is calculating certain Key figure

We then run Consistency Check for planning area but no inconsistency and errors were found. We also check the macro and it is on GREEN LIGHT status. We reexecute but it still fails.

Kindly help on how to go abaout this error as we need this macro working.

This job with the macro is working for quite a long time and it is the first time it fails and encountered the said error.

Any help will be gladly appreciated.

Thanks in advance,

Raymond

Accepted Solutions (1)

Accepted Solutions (1)

srinivas_krishnamoorthy
Active Contributor
0 Kudos

Can you highlight

- if you are able to run this macro in the foreground at all ?

- if this background job was running before and has it stopped running all of a sudden ? Is this issue coming for the first time or is this a startup time ?

One issue why you may be getting this error could be that the macro might be using an input key figure that itself could be macro calculated. Hence the macro was unable to understand the actual input key figure. Maybe in interactive planning the pre-requisite macros are being invoked as default but may be not in background. One may have to overtly invoke the prerequisite default macros.

You can also try to run the maco at detail level and check if it is working.

Former Member
0 Kudos

Hi,

Thanks for the information. This is the first time that the macro failed. The background job is running before. It was run every day since last year.

We checked the logs and noone changed any settings in the macro or in the background process. I think in the error, the macro was not executed because we dont get any spool. Normally, the background job generate the spool.

Are there any report or transaction to check the error?

Thanks,

raymond

srinivas_krishnamoorthy
Active Contributor
0 Kudos

Check logs in /sapapo/mc8k transaction. Do you see anything worthwhile in that ?

Former Member
0 Kudos

Check your planning area and see if it has been initialized to the right dates. Its possible your planning book and macros are reading a differenty date and the planning area is not initialized till that date

Check your macros in the macro workbench (/sapapo/advm) to see what dates are on the macros. If you run the macro interactively you should be getting the same error

reinitialize the planning area.. pl search the forum for some recent posts on the program involved

Also check when your planning area was initialized last. you might have to set the initialization requently based on your planning books and other processes

Former Member
0 Kudos

Hello All,

The problem is not the planning area or the macro because all parameters are ok.

After further checking and debugging, the problem occurs on the process of calling the macro. So even if the macro is in greenlight ststus, what has been done is deactivate and activate the macro again.

After the activity has been done, macro is executed successfully.

Thanks and Best Regards,

Raymond

Former Member
0 Kudos

Hi,

Thanq for posting the solution, I too had this same issue and was banging my head and finally found this post..

Answers (0)