cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with workflows in travel management

Former Member
0 Kudos

hi there,

i have a strange system behaviour in ess travel management:

when i enter an travel request the BO BUS2089 event RequestCreated is triggered.

when i enter an travel expense report also BO BUS2089 event RequestCreated is triggered.

but i expect the BO BUS2089 event Created to be triggered.

i have compared it to another system i have access to. there it works fine.

any ideas what is wrong here ? the problem there is that the wrong workflow is starting when creating an travel expense report.

br

Accepted Solutions (0)

Answers (1)

Answers (1)

Lukas_Weigelt
Active Contributor
0 Kudos

That does sound pretty spooky. Try the following for an analyzing approach:

Go to Include FITP_WORKFLOW.

Form trigger_workflow.

Externally debug it once for travel request and once for expense report. Especially the following coding part:

IF sw_deleted <> 'X'.
     CASE statu-abrec.
       WHEN '0'.
*       begin WBGK024026;
         CASE statu-antrg.
           WHEN '5'. event = 'RequestWaits'.                 "#EC NOTEXT
           WHEN '6'. event = 'ExpenseWaits'.                 "#EC NOTEXT
         ENDCASE.
*       end WBGK024026;
       WHEN '1'.
         CASE statu-antrg.
*          WHEN '1'. EVENT = 'Requested'. "#EC NOTEXT       "WBGK024026
           WHEN '1'. event = 'RequestCreated'. "#EC NOTEXT   "WBGK024026
           WHEN '2'. event = 'RequestApproved'.              "#EC NOTEXT
           WHEN '3'. event = 'Created'.                      "#EC NOTEXT
           WHEN '4'. event = 'Approved'.                     "#EC NOTEXT
*         begin WBGPLN;
           WHEN '5'. event = 'RequestWaits'.                 "#EC NOTEXT
           WHEN '6'. event = 'ExpenseWaits'.                 "#EC NOTEXT
*         end WBGPLN;
         ENDCASE.

Cheers, Lukas

Former Member
0 Kudos

thank you Lukas:

i have compared the coding on the 2 systems: it looks exactly the same. and it looks

exactly like the coding you copied into your post.

so there must be some other reason for this.

br