cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger workflow for credit line items?

roopashree_v2
Explorer
0 Kudos

Hello everyone,

I have a requirement for credit/debit workflow approval. Here my challenge is to trigger the workflow for each and every line item of credit/debit. I have created a status profile and planning to develop the workflow through status management but could not find a suitable business object to delegate. i am getting error in BSVW when i use ZBUS2094 (delegation of credit object).

Is there any other way for this development? Any compatible BO to get line item data ?

Thanks in Advance

Roopa

Accepted Solutions (1)

Accepted Solutions (1)

I042439
Employee
Employee
0 Kudos

Hi Roopa

credit /debit line items in which Transaction ????

What should happen to the transaction data till approval is complete?

What happens if rejected?

Regards,

Modak

roopashree_v2
Explorer
0 Kudos

Hi Modak,

Credit/ Debit are just like sales order items with a different document type.

Transaction VA01/02/03.

Once approval is completed, user status should be changed to 'Approved' . If rejected, user status should change to 'Rejected'.

Thanks & Regards

Roopa

I042439
Employee
Employee
0 Kudos

Hi Roopa

Is the user status at the line item level or the header level?

If at the header level, there is no point in going for the line item approval because what will happen if 1 item is approved and one rejected?

Also, the business object associated with Sales Orders is BUS2032.

Regards,

Modak

roopashree_v2
Explorer
0 Kudos

Hi Modak,

User status is at header level and item level.

It is not sales order as such. it is credit and debit which comes under standard business object BUS2094 and BUS2096. But these BO do not have items as keys. Hence I am in dilemma.

Thanks & Regards

Roopa

I042439
Employee
Employee
0 Kudos

Hi Roopa

  • You will have to create your own BO
  • With the key fields (that depends if you want to use them only in VA01,2,3 only or other tcodes are also there)
  • Code the triggering via the enhancements in the transactions
  • set the block for that item as the first step in workflow
  • after approval - remove the block of the approved item

Regards,

modak

roopashree_v2
Explorer
0 Kudos

Hi Modak,

I followed your instructions and it worked. Thanks a lot

Thanks & Regards

Roopa

Answers (1)

Answers (1)

ronen_weisz
Active Contributor
0 Kudos

First of all, use the standard object for events, the z delegating object events method etc. should be usable in the standard one, that is the whole point of the delegation.

Using the status profile to start workflows is a good way and should be possible for credit/debit, I have used them myself.  if you want to make sure that you are using the correct object - go to the GOS button in the credit/debit transactions and use the archived workflows option, you should see the object in the selection there.

There are 2 objects if I remember correctly one for credit and one for debit. 

roopashree_v2
Explorer
0 Kudos

Hi Ronen,

BO for credit is BUS2094 and for debit is BUS2096. I wont be able to use them as they are at header level. They do not have sales order items in the key field.  I need to check for approval in the item level also.

How to check line item level?

Thanks & Regards

Roopa