Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
kevin_wilson2
Contributor
0 Kudos

* 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.