Skip to Content
Technical Articles
Author's profile photo Dzmitry Baliuk

Quick BOPF debugging in SAP Transportation Management

Dear community,

Today I would like to share 1 helpful approach for quick BOPF debugging and root cause analyses with an example on SAP Transportation Management.

While working with SAP TM, people sometimes need to investigate an unexpected behavior of one or another Node instance. Eg, 1 Item was deleted or the Location ID was changed.

And there is a simple trick. If you go into BOBF transaction, behind every Node you can find its buffer class. Usually, it is /BOBF/CL_BUF_SIMPLE.Node%20buffer

Go into this class and find the method “modify”.
This method consumes all your transactional modifications and applies them to the buffer tables.

Then, find the “CASE” statement for change mode. This is a perfect place to catch unexpected modifications:CASE%20for%20a%20change%20mode

Find the change mode, that you want to track and put a breakpoint:

Create/Update/Delete

Right-click on breakpoint label -> Create Breakpoint condition:

Create%20Condition

Specify the instance key of the item (or another Node), which you want to track:

Instance%20key

A breakpoint condition can be quite sophisticated, with checking data content, like STOP location (STOP is a BOPF Node in SAP TM).
But in this case, you need to specify the Node key first, to make it work only for STOP nodes:

Sophisticated%20condition

Now, green button and F8. The watchpoint will stop, once you meet your condition.
Check the call stack and find the coding, which has triggered your modification:

Call%20stack%20shows%20the%20modification%20trigger

In my example this is Action class /SCMTMS/CL_TOR_A_UPDATE_ITEMTR.

I hope, it’ll help to save your time.

Kind regards,
Dmitry

Assigned tags

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

      Nice posting, thanks!

      Author's profile photo Slava Kachur
      Slava Kachur

      Thanks a lot for the helpful approach!

      Author's profile photo mahendra joshi
      mahendra joshi

      This article is perfect. Had been using Google drive for couple years already and knowing it’s possible to use with it’s really awesome.