‎2010 Feb 11 8:29 AM
Hi All,
I am calling a Function Module for Paralle Processing.
But the subroutine to receive the results always has a sy-subrc of 1.
Can u pls help me as to why the sy-subrc is always 1.
Function Module:
Make the RFC call
CALL FUNCTION 'Z_STATUS_CHANGE_TEST_ARFC'
STARTING NEW TASK lv_taskname
DESTINATION IN GROUP lv_rfc_group
PERFORMING sub_update_results ON END OF TASK
TABLES
t_orders = gt_orders_batch
t_status = gt_status
EXCEPTIONS
system_failure = 1
communication_failure = 2
resource_failure = 3
OTHERS = 4.
Subroutine:
FORM sub_update_results USING uv_taskname.
RECEIVE RESULTS FROM FUNCTION 'Z_STATUS_CHANGE_TEST_ARFC'
TABLES
t_orders_not_updated = gt_orders_not_updated_temp
EXCEPTIONS
system_failure = 1
time_out = 1
communication_failure = 2
resource_failure = 3
OTHERS = 4.
ENDFORM.
After the SUbroutine the sy-subrc is always '1'(Though i am not explicitly raising an exception in the Function Module')
Regard,
Bala
‎2010 Feb 11 8:43 AM
Are you specifying correct name for group? i.e. Is it defined as server or either it should be DEFAULT or blank.
Moreover, System failure generally occurs when FM is going to dump..First check if FM is working correctly with parameters you have passed without parallel processing.
Thanks,
Regards,
Mohaiyuddin
Edited by: Mohaiyuddin Soniwala on Feb 11, 2010 2:16 PM
‎2010 Feb 11 8:43 AM
Are you specifying correct name for group? i.e. Is it defined as server or either it should be DEFAULT or blank.
Moreover, System failure generally occurs when FM is going to dump..First check if FM is working correctly with parameters you have passed without parallel processing.
Thanks,
Regards,
Mohaiyuddin
Edited by: Mohaiyuddin Soniwala on Feb 11, 2010 2:16 PM