Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Query in Function Module

Former Member
0 Likes
334

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
295

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

1 REPLY 1
Read only

Former Member
0 Likes
296

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