cancel
Showing results for 
Search instead for 
Did you mean: 

WF to trigger when return order with no line items

former_member405498
Participant
0 Kudos

Hi All

Right now we are triggering WF on Credits/Debits/ returns based on the order type , header and item level completeness. That means when the order type is RE and if header and item level are complete then WF will be triggered. So we have maintained order type=RE ;VBUK-UVALS =C and VBUP-UVALS=C in the triggering events.

we have a new requirement where we will create a RE only with header data and WF should trigger and the approver who receives this WF item will add the line items and approve and then WF will move on to next approvers based on the net value.

Since there are no line items and VBUP-UVALS is blank WF is no triggering.i have tried maintaining VBUP-UVALS= C or Blank in the triggering events and it did not work.

so my requirement is WF should trigger when order type is RE , header data is complete and if lines exist WF should trigger if they are complete and if they do exist it should still trigger if header data is complete.

Please help me with achieving this requirement.

Thanks

PM

Accepted Solutions (0)

Answers (1)

Answers (1)

sbl
Active Contributor
0 Kudos

Hi,

Why don't simply make a test in your starting condition ?

Which Business Object are you using ? Do you have some attributes that you could use  (amount ? Number of item ? )

If no then why don't you create one which will inform you if you have an item ?

Cheers
Stephane

former_member405498
Participant
0 Kudos

Hi Stephen

We are using BUS2102. I have tested it by maintaining VBUP-UVALS= C Or Blank but did not work .so not sure if i am maintaining the blank in the right format. Below is the screen shot.

sbl
Active Contributor
0 Kudos

Hi

You shall change the test = (blank) by NX (initial value or not existing)

Cheers

Stephane

former_member405498
Participant
0 Kudos

Did i do that right. Even after maintaining it did not start a WF when there are no lines. i did run swu_obuf to clear the buffer.

sbl
Active Contributor
0 Kudos

Hi

Yes that is right are you sure the event is raised ?

Check it by activating the event trace then looking at it after you have made your test (transaction swel  and swels)

Tell me

Stephane

former_member405498
Participant
0 Kudos

Yes the event trace has been raised.

So how can i now check where it has failed to trigger.

sbl
Active Contributor
0 Kudos

Hi

First simply double click on the line

If it is a Start condition returns 'FALSE' for object

then you can simulate the event using transaction SWUE

Also check the instance of your BUS2102 in SWO1 and check if your attributes have the values you expected

Cheers

Stephane

former_member405498
Participant
0 Kudos

Hi Stephan

I really appreciate your time

It shows that the even is created in the trace and i if simulate it in SWUE it creates the WF. OS iam not sure the piece i am missing.


Object Type          BUS2102

Object Key           0060000794

Event                CREATED

sbl
Active Contributor
0 Kudos

Hi

Can you go in SWO1 test the BUS2102 for instance 0060000794 and do a screen shot of the attribute especially ZWAD_UVALL_ITM  ?

I guess that this attribute is a custom one ? Have you made the delegation from the BUS2102 to your Z object ?

Best regards

Stephane