Skip to Content
0
Former Member
Jun 02, 2011 at 03:07 AM

QRFC FM does not work

599 Views

Dear All exports, I built a remote-Enabled Fm 'ZIWS_PO_STOPCHANGE_UPDATE' ,to update the po confirmation with BDC, Step A,I call the Fm in normal way, it is ok, i can update the po confirmation.

    CALL FUNCTION 'SWW_WIM_RFC_DESTINATION_GET'
      IMPORTING
        WORKFLOW_DESTINATION       = l_rfcdest.
*   Update Po confirmation
    CALL FUNCTION 'ZIWS_PO_STOPCHANGE_UPDATE'
      TABLES
        i_data        = I_DATA.
STEP 2. when i call the FM in remote module , it did not work.
    CALL FUNCTION 'SWW_WIM_RFC_DESTINATION_GET'
      IMPORTING
        WORKFLOW_DESTINATION       = l_rfcdest.
*   Update NC
    CALL FUNCTION 'ZIWS_PO_STOPCHANGE_UPDATE'
      IN BACKGROUND TASK AS SEPARATE UNIT
      DESTINATION l_rfcdest
      TABLES
        i_data        = I_DATA.
We need to call the FM in the second way ,Pleae advise suggestion , thanks.