cancel
Showing results for 
Search instead for 
Did you mean: 

workflow error

Former Member
0 Kudos

Hi,

Does anyone know anything about this type of error? (it's in French but is understandable, I think)

"Work item 000000051004 : impossible d'exécuter l'objet ZBUS 2081 , méthode POPUPRESPONSABLE"

Thank you in advance,

Ivson

Accepted Solutions (1)

Accepted Solutions (1)

guillaume-hrc
Active Contributor
0 Kudos

Hi,

Isn't there a problem with trying to open a popup in background processing ('cause of the method name) ?

Best regards,

Guillaume

Answers (1)

Answers (1)

former_member186746
Active Contributor
0 Kudos

Hi, ivson,

Check the technical details of the workflow log (SWI1) of this workitem.

Most probably, the method expected some kind of value, which wasn't present.

Kind regards, Rob Dielemans

PS workflow forum is called Business Process management

SAP NetWeaver » Business Process Management (BPM)

Former Member
0 Kudos

Well, I've checked the method and it looks right. The message suggests that the method's code is never executed.

Here is the code:

begin_method popupresponsable changing container.

DATA: w_re_tr LIKE zwf_mot_rej-re_tr,

w_dvalue LIKE dd07t-domvalue_l,

w_answe.

CALL FUNCTION 'G_POPUP_FOR_ENTERING_VALUES'

EXPORTING

field = 'RE_TR'

tab = 'ZWF_MOT_REJ'

title_of_popup =

'Renseignez obligatoirement - Responsable du traitement'

IMPORTING

value = w_re_tr

EXCEPTIONS

cancelled = 1

input_error = 2

OTHERS = 3.

IF sy-subrc <> 0.

CLEAR w_re_tr.

ENDIF.

SELECT SINGLE domvalue_l INTO w_dvalue

FROM dd07t

WHERE domname = 'ZWF_RESP'

AND ddlanguage = sy-langu

AND domvalue_l = w_re_tr.

IF sy-subrc <> 0.

CLEAR w_re_tr.

ENDIF.

swc_set_element container 'WF_RES_TRAIT' w_re_tr.

end_method.

Thank you,

Ivson

former_member186746
Active Contributor
0 Kudos

Hi,

don;t check the method, check the workflow log.

From workflow via a task there are bindings to the method. If these are inconsistent, errors can occur.

Kind regards, Rob Dielemans

Former Member
0 Kudos

Thanks, checking in the workflow log I found this:

"Work item 000000052002: Object ZBUS2081 method POPUPRESPONSABLE cannot be executed

Message no. WL 821

Diagnosis

The call of the object methods for the work item ended with a return code for which there is no handling defined in the workflow. This is regarded as an error by the work item manager (WIM).

System Response

The work item was set to error status, the return values from the object method were saved.

Procedure

Check the saved return values of the object method. In particular, check whether

an application (ERRORCODE = 1) or

a system error (ERRORCODE = 2) is involved.

In the case of an application error, please check your workflow definition and the implementation of your object methods.

In the case of a system error, please contact your workflow system administrator. In this case also check whether there is an error in the binding definition between task and method."

Right now I'm trying to see the type of error.

Kind regards,

Ivson

Former Member
0 Kudos

Hi,

I finally found an inconsistency, and the problem was solved. I'll explain a little bit, in case somebody wants to know the solution.

First of all, when I tested the workflow in Development, there were no errors, but in the Quality Environment the message appeared ("Impossible to execute object...").

Second, after checking the wf in Quality, we found that some tasks had different agent assignment attributes

(PFTC -> Additional Data -> Agent Assignment -> Maintain, Attributes button:

.General Task

.General Forwarding Allowed

.General Forwarding Not Allowed)

in Development than in Quality. So we made them the same, and everything worked all right.

Thank you again, your comment was very helpful,

Ivson