Skip to Content

* To debug online:
* 1: Put break point in here
* 2: comment out ‘IN BACKGROUND TASK’ below

* 3: Switch on system debugging

* 4: set t_flag1 = ‘X’, t_flag2 = ‘X’ and t_flag3 = ‘A’

* 5: Single step at BAPI call ensuring the flags are set

  LOOP AT lt_trxserv INTO lw_trxserv.
    
IF NOT lt_bapi_evm_header[] IS INITIAL.

      t_flag1 = space.
      t_flag2 = space.
      t_flag3 = ‘N’.

      CALL FUNCTION ‘/SAPTRX/BAPI_EH_ADDEVENTMSG_02’
        IN BACKGROUND TASK
        DESTINATION lw_trxserv-rfcdest
        
EXPORTING
          simulate           = t_flag1
          synchronous        = t_flag2
          eh_generation_mode = t_flag3
        TABLES
          trackingheader     = lt_bapi_evm_header
          trackeemodify      = lt_trackeemodify
          trackparameters    = lt_trackparameters
          return             = lt_bapireturn.

This allows you to jump into SAP SCM from ECC and continue in Simulation mode. 

To report this post you need to login first.

Be the first to leave a comment

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

Leave a Reply