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

parallel processing using arfc.

Former Member
0 Likes
598

Hi experts,

Does any have a presntation on how to proceed with parallel processing with ARFC?

Thanks in Advance.

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
547

[Parallel Processing with Asynchronous RFC|http://help.sap.com/saphelp_nwpi71/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm]

[Configuration of System Resources for RFC >>>|https://help.sap.com/saphelp_nwce711/helpdata/en/62/73241e03337442b1bc1932c2ff8196/content.htm]

[Performance in parallel processing >>>|http://www.businessandlaw.vu.edu.au/sapkb/System%20Management%20(Section%201%20&%202)/ppt/902.PDF]

3 REPLIES 3
Read only

former_member156446
Active Contributor
0 Likes
548

[Parallel Processing with Asynchronous RFC|http://help.sap.com/saphelp_nwpi71/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm]

[Configuration of System Resources for RFC >>>|https://help.sap.com/saphelp_nwce711/helpdata/en/62/73241e03337442b1bc1932c2ff8196/content.htm]

[Performance in parallel processing >>>|http://www.businessandlaw.vu.edu.au/sapkb/System%20Management%20(Section%201%20&%202)/ppt/902.PDF]

Read only

Former Member
0 Likes
547

HI,

[ Asynchronous RFC (aRFC)|http://help.sap.com/saphelp_nwpi71/helpdata/en/22/042592488911d189490000e829fbbd/content.htm]

Read only

former_member203501
Active Contributor
0 Likes
547

look at the piece of code ....

FORM start_onhand_extract_task .

DO.

IF g_num_running < g_avail_wps.

EXIT.

ENDIF.

WAIT UP TO 5 SECONDS.

ENDDO.

  • Creating the file name with task number

ADD 1 TO g_task_num.

CONCATENATE p_file1 g_task_num INTO g_task_name.

CONCATENATE g_filename g_task_name INTO task_tab-filename1.

CONDENSE task_tab-filename1 NO-GAPS.

task_tab-task_name = g_task_name.

APPEND task_tab.

CLEAR g_msg_text.

CALL FUNCTION 'ZMIO_GET_MARD_DATA'

STARTING NEW TASK g_task_name

DESTINATION IN GROUP p_grp

PERFORMING decrease_wp ON END OF TASK

EXPORTING

i_filename = task_tab-filename1

TABLES

i_matnr = r_matnr

i_werks = r_werks.

CASE sy-subrc.

WHEN 0.

ADD 1 TO g_num_running.

g_num_submitted = g_num_submitted + 1.

WHEN 1.

error_rec-task_name = g_task_name.

error_rec-filename1 = task_tab-filename1.

APPEND error_rec.

APPEND it_exp_t001w TO it_err_t001w.

ADD 1 TO g_num_err.

g_hold_num = g_num_running.

WAIT UNTIL g_num_running < g_hold_num OR

g_hold_num = 0

UP TO 5 SECONDS.

WHEN OTHERS.

error_rec-task_name = g_task_name.

error_rec-filename1 = task_tab-filename1..

error_rec-msg_text = g_msg_text.

APPEND error_rec.

APPEND it_exp_t001w TO it_err_t001w.

ADD 1 TO g_num_err.

ENDCASE.

ENDFORM. " start_onhand_extract_task