Skip to Content

Sometimes we have done comlex dynamic action with many conditions and own subroutines. And this black box doesn’t work with any message 🙁

Fortunately we can debug and see all results.

Logic is in  include MPPERS00 (FORM dyn_measure) for every PA INFOTYPE (MPXXXX00 programs)

Start of code.

SELECT * FROM t588z WHERE infty EQ psparinfty

and finishs after

PERFORM measure.

       ENDIF.

     ENDIF.

   ENDLOOP.

* ENDSELECT.

   MOVE pspardmsnr TO last_dmsnr.

Set breakpoint on (MOVE pspardmsnr TO last_dmsnr) for program MP000000 (0000 Infotype).

I performed hire action and got results.

Internal table DYNMEAS contains two actions which will trigger.

/wp-content/uploads/2014/08/dynmeas_511874.png

Internal table INITIAL_VALUE contains values for new/modified infotypes with reference to  actions in DYNMEAS (field dmsnr for dynmeas-seqnr).

/wp-content/uploads/2014/08/initial_511875.png

We can see values for two dynamic actions from t588z

/wp-content/uploads/2014/08/t588z_511876.png

/wp-content/uploads/2014/08/t588z2_511877.png

If business logic in t588z is not enough you can add values to tables DYNMEAS and INITIAL_VALUE in your subroutines with F operations

/wp-content/uploads/2014/08/fs_511878.png

Dynamic action counter is in global variable LAST_DMSNR.

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply