on 2008 Nov 20 10:10 AM
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
Hi Perry,
As you are on ECC you should use the SAP_WAPI function modules. These are all remote enabled.
Regards,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.