cancel
Showing results for 
Search instead for 
Did you mean: 

SM58, function module "SWW_WI_START" cannot be used for 'remote call'

perry_song
Employee
Employee
0 Kudos
160

Dear Expert,

I have a customer met the above error in sm58 after the system upgrade from 46C to ECC6. Actually the function module SWW_WI_START is remote enabled in 46C but not in ECC6. Therefore, the error is just work as system design.

Since customer was using it in his custom code, he has changed the way to call the function module and the error still there. Please help to have a look if the way he has changed is correct?

I have attached the code of the SWW_WI_START.

Many thanks for your help,

Perry Song

Accepted Solutions (1)

Accepted Solutions (1)

martin_nooteboom
Active Contributor
0 Kudos

Hi Perry,

As you are on ECC you should use the SAP_WAPI function modules. These are all remote enabled.

Regards,

Martin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Perry use this in ecc6.

CALL FUNCTION 'EWW_WORKFLOW_START'

EXPORTING

x_task = 'WS96900063'

  • X_START_DATE = NO_DATE

  • X_START_TIME = NO_TIME

  • IMPORTING

  • Y_WORKFLOW_ID =

TABLES

x_container = lt_event_container

  • X_AGENTS =

EXCEPTIONS

invalid_task = 1

no_active_plvar = 2

start_failed = 3

general_error = 4

OTHERS = 5

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

CASE sy-subrc.

WHEN 1.

WRITE : / 'INVALID TASK.'.

WHEN 2.

WRITE : / 'NO ACTIVE PLVAR.'.

WHEN 3.

WRITE : / 'START FAILED'.

WHEN 4.

WRITE : / 'GENERAL ERROR'.

WHEN 5.

WRITE : / 'OTHERS'.

ENDCASE.

Don't forhet to include <CNTN01>.

Hope magic Works!

Regards,

Purvesh patel.