Skip to Content
Author's profile photo Ajay Prakash

How to trace Livecache in APO

While trouble shooting it is not uncommon for any APO consultant to find that the entire issue was triggered due to missing orders in planning book.

And sometimes it is really hard to conclude if the order were deleted by a batch job or a user manually.  If this deletion happens more often then you need to get pin-point the reason.

In this article we will take a look on how we can activate trace in Livecache and log the details. In this article we will create, modify and then delete a planned order in Planning Book and try to log these activities using Livecache tracing.

Step 1: Activate Livecache Tracing ( tcode : /sapapo/om22 )

Step 1.jpg

Here you can details level be traced and restrict the trace to set of function Modules , Users and T-codes. You can also define the duration for which you want the trace to be active as this can be affect system performance.

Step 2: Here I manually create a planned order of 100 CS then modify to 200 CS and Finally delete it.

/wp-content/uploads/2014/04/step2_429282.jpg

Step 3: Deactivate Trace : Ensure that the
trace is deactivate either automatically as per the time maintained in field “Deactivated
By” in tcode /sapapo/om22 or manually.

Step 4: Display Trace log using Tcode /sapapo/om21

/wp-content/uploads/2014/04/step4_1_429285.jpg

Here you can see that there are 2 entries with create and 2 with delete.  A modification of planned order had generated two entries first for deletion and second for creation.

To see details of these logs you need to click the function module name and the parameters IT_ORDERS which stores the GUID of the order as well.

/wp-content/uploads/2014/04/step4_429283.jpg

I Have been little generous on restrictions while activating the trace however I would only recommend using this technique if you have exhausted all your options while troubleshooting.

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Ajay,

      Thanks for sharing the idea..

      This option is OK but can used for a specific time only.

      If we have continuous trace with standard program do share..that will be helpful.

      Thanks,

      Bala..

      Author's profile photo Ajay Prakash
      Ajay Prakash
      Blog Post Author

      Dear Bala,

      The program in earlier release didn't have time as a filter, which means you need to manually activate and deactivate the trace.

      This trace can be used for standard as well as custom programs.

      Since this tracing affects the system performance and piles up logs its highly recommended to activate on need basis.

      Thanks

      Ajay

      Author's profile photo Former Member
      Former Member

      Nice information

      Ram