on 11-02-2011 6:07 AM
Hi Experts,
I am new to workflow development.
My requirement is to trigger a workflow when the user issues a Print/Print Preview command from the t-code VA22/23 (Quotation Document: VA22/23> Menu ->Sales Doc>Issue Output To --> Print).
(Many Ouput types with different driver programs/forms are configured in NACE. All are/should be considered for wokflow)
My question is how can i trigger my workflow when the above steps are executed.
I tried seraching any method/event like 'Print Document' in the standard bussiness object BUS2031.(need to know if this object can be enhanced , but don't know how in this case)
Also no help from event trace SWEL/SWELS.
Please let me know how do i trigger my Workflow in such cases.
I managed to Trigger the workflow with custom new event by enhancing standarad object BUS2031 for Quotation.
Called FM SWE_EVENT_CREATE to trigger the Workflow in custom driver program when Print is issued.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You want to start a workflow if someone does a print preview?!
Could you tell us what this workflow is supposed to do?
regards
Rick Bakker
hanabi technology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rick,
This workflow will stop the user from printing the Quotation for the first time when the Print command is issued.
A mail will go the concerned person, once the workflow gets triggered , unless and untill this task gets approved , User will not be able to Print the Quotation.
If the print has already been taken workflow wont get trigggered.
If Output has already been issued for an existing output type, and the same step is executed to trigger a copy, workflow should not be triggered.
Hope this is clear.
Thanks
Hello,
Thanks for the clarification.
I would investigate first if VA22/23 has something built-in to stop people printing unapproved quotations - or maybe adds a warning to it. Maybe another SDN forum could help.
If you still need a workflow then I can only suggest turning on debug when you try to do a print and see if there is anywhere you can insert code to create a custom event - maybe a user exit is available.
regards
Rick Bakker
hanabi technology
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.