function z_e_rfc_ws_ext_backflush .
*"----
""Local interface:
*" IMPORTING
*" VALUE(PDC_NUMBER) TYPE ZEM_BACKFLUSHING_PROXY_STR-PDC_NUMBER
*" DEFAULT 'CIM_KEA'
*" VALUE(MATERIAL) TYPE MATNR
*" VALUE(PLANT) TYPE WERKS_D DEFAULT '0060'
*" VALUE(QUANTITY) TYPE ZEM_BACKFLUSHING_PROXY_STR-BACKFLQUANT
*" VALUE(BATCH) TYPE CHARG_D
*" VALUE(REPPOINT) TYPE ZEM_SA_ZPUNKT OPTIONAL
*" VALUE(PLANORDER) TYPE ZEM_PLNUM OPTIONAL
*" EXPORTING
*" VALUE(MSG_TEXT) TYPE MSG
*" VALUE(SUBRC) TYPE SYSUBRC
*"----
You can see how sending the data one logical record at a time was only compounding our
latency problem. So we quickly designed a new wrapper function that would accept an
array of input records. This wrapper function would then loop through this array and
call to the R/3 BAPI function once for each record. We could then return a status for
each record processed.
function z_e_rfc_ws_ext_backflush_v2.
*"----
""Local interface:
*" IMPORTING
*" VALUE(BACKFLUSH_IN) TYPE ZES_WS_BACKFLUSH_IN_TBL
*" EXPORTING
*" VALUE(BACKFLUSH_OUT) TYPE ZES_WS_BACKFLUSH_OUT_TBL
*"----
and the ASUG National Spring Conference . If you didn't like the weblog, you
can always come anyway and heckle.