Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: Schedule LBWE job from BW Process Chain

$
0
0

Hi Simon,

 

     I already developed the below program and call RSPC_ABAP_FINISH. The problem is when submitting the program encounters a shortdump (perhaps the datasource struture is changed), it will never trigger the RSPC_ABAP_FINISH and the status of BW chain is always YELLOW

 

    
   CASE p_var.
  WHEN 'ZABAP_2LIS_11_COL_RUN'.
    SUBMIT RMBWV311 AND RETURN.
  WHEN 'ZABAP_2LIS_12_COL_RUN'.
    SUBMIT RMBWV312 AND RETURN.
  WHEN 'ZABAP_2LIS_13_COL_RUN'.
    SUBMIT RMBWV313 AND RETURN.
  WHEN OTHERS.
ENDCASE.

IF SY-SUBRC = 0.

   CALL FUNCTION 'RSPC_ABAP_FINISH'
    IN BACKGROUND TASK
    DESTINATION gc_bw_conn
    EXPORTING
      I_VARIANT              p_var
    EXCEPTIONS
      ALREADY_FINISHED       = 1
      OTHERS                 = 2.
  IF SY-SUBRC <> 0.
* Implement suitable error handling here
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  COMMIT WORK.


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>