Workflow PO

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

#1 Workflow For Specific Company Code / Purchase Organization Dear All Basically I am a MM consultant and new in Workflow have

created a workflow for Purchase Order Release by copying standard workflow WS20000075.I have created three task copying the task 20000166/167/168.While creating task i chose task type as Standard task .I used following transaction while crating work flow SWUD,PFCG,SWE2,SWDD....The workflow is triggering and generates mails and notification in business work place....I have following problems regarding this 1) Our client have 5 company code and i configured this for UK.But when i logged with user id with different company code work flow triggers and sends mails in users outbox parallely hits the out look of authorizers mail ID .My question is how to configured this workflow for specific Company code or Pur.Orgnization? 2) While crating task i used task type as standard is it ok? 3) I didn't find standard step wise work flow in ecc6.0 like 0 step - WS1400075,1 step -WS14000089,N step-WS14000145... 4) My first Rele strategy Z2 has two authorizer either one of them can authorized.How can i map Po from step"Release of purchase order" to step "work flow completed "because its moves to step"Release of purchase order effected" 5) After the 1st step"Release step For purchase order created" i add step "send mail".The mails are hitting in the inbox of authorizer but a single mail is appearing 2 times in Inbox.How can i avoid this? 6) How to draft condition? Pls guide me.Thanx in advance. Regards Sachin #2 Re: Workflow For Specific Company Code / Purchase Organization Hi Sachin, 1) To trigger workflow for a specific company code you can either set the start condition for the workflow in the basic data of workflow under conditions tab or you can use the check function module for the same. One other option is to set the start condition in SWB_COND. 2) Yes, you have to create a standard task to be used in a workflow. 3) Try to search for the standard workflow in SWDD itself with some keywords like PURCHASE ORDER 1STEP etc. If still you don't find any then no such workflow must be there. 4) Even if there are 2 authorizers for the PO if one of them takes action on the PO the workitem must be completed. Check this once again and if still it is in processing status tell me where exactly you are facing the problem.

5) There can be multiple reasons for the same. Either your workflow is getting triggered multiple times for different release strategies. Check in the log where exactlyl mails are going 2 times. You will be able to find the root of this problem. 6) To draft a condition, simply use Condition step type or multiple condition step type(in case your condition has more than 2 outputs). Specify the condition in the step. then take further actions depending on the output.

Regards Guddan #3 Re: Workflow For Specific Company Code / Purchase Organization Hi Guddan, Thanx for a swift reply. I didn't find condition in the basic data of work flow.Can you pls tell me were exactly the condition are available in Basic data.Also where we find this check fuction? I find function group in basic data is this the same? I tried to put Condition after the step "workflow start". Selected the expression Company code e.g company code = x1 and in True = If company code is X1 and in false Company in X2,X3,X4,X5 Here condition records saved without error. But when i creats PO with company code X2 it still triggers the workflow Pls guide were i m going wrong? Thanx Sachin #4 Re: Workflow For Specific Company Code / Purchase Organization Hi, Go to workflow basic data & go to start events tab in it (3rd tab from left). There you'll find 3 buttons with header as A,B & C. The column C stands for conditions (start conditions). Select the Row of event for which you want to maintain those start conditions & start maintaining. Check funtion module is a function module where you can enter your conditions & those are validated before the workflow is called using the receiver function module. You can find those things in SWE2/SWETYPV tcode. In SWE2/ SWETYPV, try to locate your workflow template number along with event. Double click on the entry.

It will take you another screen where you'll find a field called "CHECK FUNCTION MODULE". Here you have to enter your function module name. Regards, Raj #5 Re: Workflow For Specific Company Code / Purchase Organization Hello, Raja, 1) Thanx for your input about how to maintain the condition in the basic data of workflow. I have maintained the Company code and Purchase organization here.System didn't asked for True or false value .The workflow is not getting trigger for other purchase organization.But one thing i found that after creating PO for other Purchase Organization is that the message is hitting the outbox of the users business work place. How can i avoid this? 2) In outbox of creators business workplace 4 messages are getting hits after creation of a PO. 2 for sub workflow & 2 for dialogstep. How i control the same.I want only one message in the creators outbox. 3)We have two strategy Z2 & Z3.i have problem for Z2 as it is releases in one step only i.e. "Release of Purchase order" The scenario is as follows .Release code X & Y.Either of them can release.IF PO Creator C1 creates it,it will appear in the InBox(Business Workplace) of both.Say X releases it.Message should move to out box of X.Parallely a message should hit to Y inbox that this PO is released by X.And a notification should send to Creator C1 that the PO is released. Viceversa if Y releases the PO. How to configure the same? Please Guide Thanx in Advance Sachin #6 Re: Workflow For Specific Company Code / Purchase Organization Hi, I believe you should go for check function module in that case. if i'm not wrong, Start conditions are something that are checked after triggering the workflow, i.e; after calling the receiver function module, where as system checks the conditions in check function module & only after those conditions are satisfied, system calls the receiver function module, i.e; system triggers workflow. Requesting all experts to correct me if i'm wrong.

Sachin, Try maintaining a check function module with the same condition. For more on check function module, go through scenario given in saptechnical dot com. Regards, Raj #7 Re: Workflow For Specific Company Code / Purchase Organization Hello Raj, Any updates on following Points?Still facing the same problem.. 2) In outbox of creators business workplace 4 messages are getting hits after creation of a PO. 2 for sub workflow & 2 for dialogstep. How i control the same.I want only one message in the creators outbox. 3)We have two strategy Z2 & Z3.i have problem for Z2 as it is releases in one step only i.e. "Release of Purchase order" The scenario is as follows .Release code X & Y.Either of them can release.IF PO Creator C1 creates it,it will appear in the InBox(Business Workplace) of both.Say X releases it.Message should move to out box of X.Parallely a message should hit to Y inbox that this PO is released by X.And a notification should send to Creator C1 that the PO is released. Viceversa if Y releases the PO. How to configure the same? Regards Sachin #8 Re: Workflow For Specific Company Code / Purchase Organization Hi, I'm not sure about point no.2. You can check the workflow log for finding out the reason why multiple items are in that users about outbox. For point no. 3, you can create a method that gets the Actual approver name from SWWWIHEAD table after the PO is approved. I believe the same can also be obtained from using container &_Workitem.ExecutedByUser.ID&. Then you can send a notification to the other approver that this particular approver has approved the PO. Also you send a notification to workflow initiator using the user ID in the container &_WF_INITIATOR& or its better that you get the PO creator name from PO table EKKO-ERNAM & send a notification about PO status to this user. Regards, Raj #9 Re: Workflow For Specific Company Code / Purchase Organization Hello,

"2) In outbox of creators business workplace 4 messages are getting hits after creation of a PO. 2 for sub workflow & 2 for dialogstep. How i control the same.I want only one message in the creators outbox. " I don't normally look in the outbox, does it show every step created under that user's name? If so, you could build in some dummy steps in the workflow to switch control back to WF-BATCH before the nondialogue steps are called. A dummy step calls a task which calls EMPTY_BACKGROUND of BOR WFTS. There may even be a generic task for this. Depends how much you want this! regards Rick Bakker hanabi technology #10 Re: Workflow For Specific Company Code / Purchase Organization Hello Rick and Raj, I have crated a two step work flow for release of purchase order with two release code X & Y.Creator C1 creates PO.A mail is trigger to X&Y .In first step X release the PO. Then Notification send to C1 & Y that the Release of 1st step is effected.Then Y releases it and a mail of completions is sent to C1 .(Structure is as follows: Po creation ->Mail to XY-> X releases(PO release)->Mail toC1 &Y->Y Releases->Mail to C1&X->Workflow complete).My workflow works fine but have following problems.

1) System gives the three stages mail properly.But after completions also generates 2nd stage mail(Mail toC1 &Y).I have used "process control"at the end but still the mail reoccurs.How to control it? 2) Two types of messages appears in the SAP business w/p of user.Sub work flow and dialog step.4 mesgs appears in the sap inbox of X & Y .2 of Sub work flow & 2 of Dialog step.How can i control it .Can i set 1 out of them? 3) After completion ,work flow log shows two Graphical Workflow Log.One is completed and other up to stage ->Mail to XY-> How to clear this 4) Organization plan is always must? or w/o that we can proceed? Thanks in advance .And thanks for the previous reply. but pls once again need ur help. Regards

Sachin #11 Re: Workflow For Specific Company Code / Purchase Organization Hello, Could you do edit your posts after they appear, they're very hard to read. Instead of: 2) Two types of messages appears in the SAP business w/p of user.Sub work flow and dialog step.4 mesgs appears in the sap inbox of X & Y .2 of Sub work flow & 2 of Dialog step.How can i control it .Can i set 1 out of them? How about: 2) Two types of messages appears in the SAP business workplace of user: (Sub)workflow and dialog step. Four messages appear in the sap inbox of X & Y : 2 of (Sub)workflow & 2 of Dialog step. How can i control it . Can i set 1 out of them?

You have messages about (sub) workflows appearing in the SBWP? Do you mean in the inbox or the outbox? As I said before, don't worry about the outbox. As I said before, i you want step run under WFBATCH then insert dummy steps. "3) After completion ,work flow log shows two Graphical Workflow Log.One is completed and other up to stage ->Mail to XY-> How to clear this" Don't worry about what the graphical log shows. "4) Organization plan is always must? or w/o that we can proceed?" Not always a must. If you can determine agents without it, no problem. "1) System gives the three stages mail properly.But after completions also generates 2nd stage mail(Mail toC1 &Y)." How are you sending these mails? SendMail step? Using the Notifications tab? regards Rick Bakker hanabi technology #12 Re: Workflow For Specific Company Code / Purchase Organization Hello Rick , Sorry for any inconvinience caused.And thanx for drafting input .Will follow the same in future. I have closed the other thread posted . Point 1:--I" used send mail step".

Point 2 : - Two messages in the SBWP Inbox of user X & Three mesages in the In box of Y.Four messages in the Out box of C1.

Regards Sachin #13 Re: Workflow For Specific Company Code / Purchase Organization Hello, "Two messages in the SBWP Inbox of user X & Three mesages in the In box of Y." If I understand correctly, it should be two for X and two for Y. Since you're using a SendMail step it should be easy to figure out which mails got sent when and to whom, just look in the workflow log. Besides, I assume these mails all have different texts in them? Makes it even easier to determine where they come from. regards Rick Bakker hanabi technology

You might also like