on ‎2015 Dec 11 3:05 AM
Hi,
I need help..I have gone through most of the Material Master workflow discussion in the forum. I am not an expert in Workflow. But, I am just trying to create a simple workflow to see that, if master data is created a mail is sent, then goes to a user inbox. who when clicks on work item must be able to view the material master created and finally approve it.
But I am having issues. Please help me. This is a urgent requirement.
Workflow container created with Material Number and Temperature Control.
High level view of workflow
Send Email
Display Material
Display Task
Approve Material
Material Tested
Task is ready for review, but I am unable to view the material master from the work item. What is the necessary setting to show Material Master from the work item? I should be able to view the material master, when I click on work item and approve it.
At the moment with the set up display and Approval are to different step. I know I can add a button for Approval using form, but can anyone suggest an option where I don’t have to code a single line. Not having a line of code here is the key.
Also, can I know if I can assign the agent with a Security role. I mean any user with a certain role will receive the workflow. Thank you.
Please help!!!!!
Thanks
Yorker
Request clarification before answering.
Hi Jocelyn,
I tried your suggestion and I am getting the below errors when I try to bind the task to workflow
Also now when I am trying to execute the work item, it is throwing an error for some unknown reason and I don't have my ABAPer/workflow specialist who can help me.
I tried to resolve this from looking at SCN, but unable to break the jinx.
I just need to simple workable workflow, where when a material is created it needs to be displayed when clicked on work item and then allow to click on Approve or Reject.
Can you please help me with the settings or exact bindings to get this POC done. It is very important for me and I am unable to get through this part. I believe that this is simple and can be done in Workflow, but unable to make a working model. I have gone through your ASUG recording.
Please don't treat this a request for a easy ready made answer. I have tried my luck but somewhere I lack in my concepts and am running out of time to help my client. I have seen others suggesting new tools for this simple activity and I believe Workflow is enough. Please help!!
I tried Stéphane Bailleul suggestion, but even that didn't help me get through this.
Regards
Yorker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
"I am getting the below errors when I try to bind the task to workflow"
Which task, the decision workitem? Looks like there is a problem with your ZBUS cotainer element, are they defined the same at workflow and at task level?
That SO SEND error is something completely different, that happens when a Send Mail step has an error and that is usually because there were no recipients specified or they were incorrectly specified (e.g. SAP users but no preceding US).
Tough to make a POC for Workflow if you don't have workflow experience!
regards
Rick
Some basic issues I noticed:
I don't see any instantiation. You start the WF with a material number, but there is nothing that generates the material object instance. These are completely different creatures. So ZBUS100106 is probably empty. And it needs to be an object of type BUS100106. Just for clarity I would also call it MATERIAL.
You can create an instance with a step based on SYSTEM.GENERICINSTANTIATE.
But this leads me back to: How is the WF being started? In most cases it would be started by an event, in which case your object instance is already available. i.e. you should be starting your WF with a material object, not a material number.
Once you have that, bind it as Jocelyn described.
Hope that helps,
Mike
Thank you for all the responses and help. I was able to generate a the required workflow by instantiating.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can use the method tab and in the secondary method you could simply add the BUS1001006 from your container and the method display.
When the user will open the workitem then another session will open with the display method.
If you want a feedback from the user please mark your task with the confirm end of process.
Cheers
Stephane
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yorker
Ok... not the most ideal workflow but well done as a newbie so let's see if we can fill in some missing blanks.
What you need to do bind the Material instance to your decision task. That will make it an attachment of your decision task and then the user will get a link under "Objects and attachments" they can use to display the task.
That is, you will not need a separate step to display the material - and in fact that's not best practice so get rid of that step.
I'm going to assume you have managed to bind the Material object instance from the incoming Event that started the workflow to a Workflow Container element - I'm basing that on the fragments I can see in your screenshots, but if you need help with that just come back to the forum.
For the user decision task, look for the BINDING button on the Control tab of the user decision step. You can see the Binding button in your screenshot of the user decision step above. In the binding look for the _ATTACH_OBJECTS of the user decision task. You need to bind your material object instance (not the number - the instance) to the _ATTACH_OBJECTS. Attach objects is a table so you can use the Append option (press the arrow head button in the binding) to Append your material instance to the table.
_ATTACH_OBJECTS can generically hold any object, so if you get a binding error, use the options in the popup that comes when you press the arrow head button in the binding to downgrade the error to warning.
Good luck
Jocelyn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.