Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regd. workflow and incompletion procedures

Former Member
0 Likes
688

Hi,

can workflows or events be triggered from incompletion procedures? for eg. when a sales order is incomplete and saved, a workflow should start, which handles the process...

Regards,

Vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
645

Hi~ vijay.

I'm not sure that there is a workflow for it.

but, I think it's possible.

why don't you try like this.

1) make your own workflow templete.

2) find some place you want to code... I mean some kind of

user exit things.

in case of sale order.

Edit user exit 'userexit_save_document'.

check some field for incompletion procedure.

for example>

if vbap-taxm1 eq ' ' or
        vbap-werks eq ' ' or
       .... in case of some condition field for
            incompletion procedure is imcompleted

       call function 'SWE_EVENT_CREATE'    
       .... call workflow ....

     endif.

But, There is a lot of impletion log for sales order, so when an order is created

and saved with impletion log, it calls an workflow.

and somebody get an workitem.... I think it's a little bit cumbersome.

In T-code <b>'V.02'</b>, you can check all the incompletion documents.

why don't you use v.02

I wish I could help you.

Kyung Woo

Hi,

can workflows or events be triggered from incompletion procedures? for eg. when a sales order is incomplete and saved, a workflow should start, which handles the process...

Regards,

Vijay

3 REPLIES 3
Read only

Former Member
0 Likes
645

anyone....

Read only

Former Member
0 Likes
646

Hi~ vijay.

I'm not sure that there is a workflow for it.

but, I think it's possible.

why don't you try like this.

1) make your own workflow templete.

2) find some place you want to code... I mean some kind of

user exit things.

in case of sale order.

Edit user exit 'userexit_save_document'.

check some field for incompletion procedure.

for example>

if vbap-taxm1 eq ' ' or
        vbap-werks eq ' ' or
       .... in case of some condition field for
            incompletion procedure is imcompleted

       call function 'SWE_EVENT_CREATE'    
       .... call workflow ....

     endif.

But, There is a lot of impletion log for sales order, so when an order is created

and saved with impletion log, it calls an workflow.

and somebody get an workitem.... I think it's a little bit cumbersome.

In T-code <b>'V.02'</b>, you can check all the incompletion documents.

why don't you use v.02

I wish I could help you.

Kyung Woo

Read only

0 Likes
645

Hi Kyung Woo,

Hey the user exits is a good idea...I was thinking of linking it with change document objects VERKBELEG for sales documents...and one more thing, SAP recommends use of SAP_WAPI_CREATE_EVENT instead of SWE_EVENT_CREATE....

This is just for your information.