Skip to Content
0
Sep 28, 2011 at 07:31 PM

Call FM Starting New Task

889 Views

Hello,

I have more than some 500,000 records to update using a BAPI thats inside my Z*FM

and i am using the parallel processing as below:

data: lv_task(10) type c.

loop at it_data into wa_data.

clear wa_addr.
  wa_addr-addrnumber = f_bpdet-addrnumber.
  wa_addr-city1 = f_file_data-city.
  wa_addr-post_code1 = f_file_data-zip.
  wa_addr-po_box = f_file_data-po_box.
  wa_addr-street = f_file_data-street.
  wa_addr-house_num1 = f_file_data-house.
  wa_addr-str_suppl1 = f_file_data-suppl.
  wa_addr-roomnumber = f_file_data-roomno.
  wa_addr-region = f_file_data-regio.
  append wa_addr to it_addr.

  call function 'ZPARTNER_CHANGE_PARPRO' starting new task lv_task
    destination 'none'
    exporting
      i_partner    = wa_data-gpart
      i_part_data  = ls_part_data
      i_part_datax = ls_part_datax
    tables
      it_addr      = it_addr
      it_addrx     = it_addrx
      it_succ_data = it_succ_data
      it_err_data  = it_err_data .

endloop.

But there seems to be some error in my task name or due to some reason, its getting stuck up somewhere

and system is hanged .

Can someone suggest me what am i doing wrong here.

Thanks

Ricky