on 2020 Feb 13 3:41 PM
Hi All,
I am trying to update the date/times (Earliest - setup ,processing , teardown / Latest - setup , processing , teardown) using CLOI_CHANGES_UPL_45. It is only updating one record and I found out that the FM updates only once within an (external) mode. I aslo created an new task with a subroutine call at the end. In this case with large amount of data it is giving an error of COMMUNICATION_FAILURE. Is there any solution/alternative using which I can update the dates/times of production orders. Below is the code used.
Loop begins
**Executing the FM once every operation
CALL FUNCTION 'CLOI_INIT'
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'CLOI_CHANGES_UPL_45' STARTING NEW TASK '/FASTEC/INT_0061_002'
PERFORMING f_receive_res ON END OF TASK
EXPORTING
cloi_if_par = ls_cloi_if_par
TABLES
cloi_ordu_imp = lt_cloi_ordu
cloi_ord_opru_imp = lt_cloi_ord_opru
cloi_method_log_exp = lt_cloi_methods_exp
cloi_message_log_exp = lt_cloi_messages_exp
cloi_msg_obj_log_exp = lt_cloi_msg_obj_log_exp
cloi_ord_exp = lt_cloi_ord_exp.
CLEAR :l_v_flag.
REFRESH gt_cloi_messages_exp.
WAIT UNTIL l_v_flag = abap_true.
READ TABLE gt_cloi_messages_exp ASSIGNING <fs_messages>
WITH KEY msgty = 'E'.
IF sy-subrc = 0.
CALL FUNCTION 'CLOI_ROLLBACK'
CHANGING
cloi_succ_code = lv_succ.
cv_msg = <fs_messages>.
cv_return = 3.
ELSE.
CALL FUNCTION 'CLOI_COMMIT'
CHANGING
cloi_succ_code = lv_succ.
ENDIF.
Loop Ends.
******************************************
FORM f_receive_res USING fp_taskname.
DATA: lt_cloi_ord_opru TYPE STANDARD TABLE OF cloioperu.
RECEIVE RESULTS FROM FUNCTION 'CLOI_CHANGES_UPL_45'
TABLES
cloi_ord_opru_imp = lt_cloi_ord_opru
cloi_message_log_exp = gt_cloi_messages_exp.
l_v_flag = abap_true.
ENDFORM.
*****************************************
SAP Note referred : 545860.
User | Count |
---|---|
9 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.