Secondary method in desion step
Hi ,
i m using desion step for approvals and also using secondary method to display the so order to the user .
wokflow is working fine , but my secondary method is not calling .
Please.help in this regard .
Regards .
kiran
Hi Kumar,
Check whether you had followed these steps.
1. If you are using a BO Method or Class method, check whether the Workflow Container element is created of that type or not.
2. Check whether that Reference Workflow Container element has been instantiated before hand or not.
3. Make sure the instance has all the key field values
4. Bind the reference and select the method of the Object type whether BO or Class.
Now for testing purpose click on the Execute Button.
Revert for any further clarifications.
Regards
Narin
Similar Messages
-
Secondary method is not working
Hello,
I have a problem with my secondary method. I created a method Z_Call_ME23N for my purchase order release workflow and added it as a secondary method to my user decision step.
In testing in swo1 is no problem. Also the authorization test in SU53 are ok.
But when I try to open my workitem a message box comes up: 'Error when starting submethod'.
How can I check it what I have done wrong?
Thanks for your help,
ChristophHi Martin,
thanks for your answer.
I have BUS2012 in my WF container, and it is delegated to ZBUS2012 (so I was wrong to say it is ZBUS2012).
I also have the BO in the decision step (wondered if I was wrong - I made a copy of the standard decision task to add my own container element in the copy - this is the task I am now using).
So actually my bindings for this step is:
BUS2012 (delegated to ZBUS2012) --> BUS2012
is that right?
Unfortunatly it is still not working.
I also tried to clear the buffer (as it says so in others posts), checked the authorizations,etc.
Thanks a lot for you ideas, it is still my first workflow and I don´t know where else I could take a look to get some help.
Christoph
Edited by: Christoph on Jan 30, 2008 3:23 AM -
User Decision with Secondary Method
Dear All,
I have created a user decision step for Leave Request workflow (ie. to approve or reject ).
This is done for multiple approvals of leave request through UWL i.e. user can select multiple requests & take decisions(approve/reject).
In the user decision step, i want to use a method other than standard task TS00008267.
In the methods tab i have used Secondary Method,
Object Category as Class
Obj.Type as CL_PT_REQ_WF_ATTRIBS
Method DUMMY.( as per the standard workflow - WS12300111).
But no value is returned by this method. How can binding be done here so as to use the values in further steps??
Please help.
Regards,
VidyaHey it is very easy to know whetehr the leave is approved or not. and even you can get this decision into the workflow container
No need of using any secondary methods SURE
See the step Approval in the Leave workflow will use Dummy method of that class that you have mentioned.
Your staus is updated in the REQ container element of the workflow , it is the that you mentioned, in that class you have a attribute with name Status whe you approve it will be changed to Approved when the leave is created it will be Sent , so by using a Condition step check this attribute value if it is approved then in update one conatiner element by using Container operation step. -
How to use secondary method in workflow?
Hi friends,
can anyone plz let me know how to use secondary methods in workflow? it would be helpful if u explain with an example..
thanks and regards,
Arun.SHi Arun Kumar,
The Sec Method can be used in the user decision step. The secondary methods are executed along with the user decision step. You have 3 options. Either execute a secondary method before executing the user decision step or after execution of user decision step or while executing the user decision.
For this define the methods either in Methods before execution of workitem execution to execute it before user decision step or Methods after execution of workitem so as to execute it after the execution of user decision.
In order to execute a method along with user decision step execution use secondary methods (amodal call.)
Let me know if you have any queries.
Regards,
Raj -
Problems with secondary methods in workflow
Hi experts.
I am starting my WF through the SAP_WAPI_START_WORKFLOW in SE37.
My WF consistst of a decision step with a secondary method, amodal method, which calls a custom method (call_url).
The method call_url has been tested in SE80 and in WF with synchronous dialog chain(BMWP) where it works fine.
Since UWL doesn`t support Synchronous dialog chain, I need to make a workaround.
Problem:
When I start the WF and enter MSS to open the workitem, I can see the attachment (call_url method). However, when I try to click on the link for the attachment (which is going to execute my custom method) I only get an errormessage.
The errormessage says:
"An error has occured during calling attachment. Try again and inform the system administrator about this problem".
I have been checkin SU53, it is not an authorization issue.
I have been reading Gatlings blog about secondary methods and searching the web about the issue with no luck.
Any ideas how to solve it?
<<text removed>>
Thanks in advance.
Best regards,
Tor
Edited by: Matt on Feb 10, 2009 5:06 PM - please do not offer rewards. Please do read the Terms of Engagement of these forumsOk, now i'm a little bit closer to the solution.
I've run thru the programm in debugging mode...
the reason is: function module SWO_INVOKE give me the return message OL850: You do not have authorization to execute method EDIT
But when the user calls the transaction ME52n everything is ok.
So what is the missing authorization object?
Thank you very much in advance
Andrey -
Issue with amodal secondary method in workflow
Hi,
I'm using an amodal secondary method of a business object in my workflow activity step. But it is not triggering that method of the business object at runtime.
Could someone tell me what might be the problem
Regards,
VijayAny idea guys?
-
Secondary methods : Error when starting submethod
Hi,
I have designed a workflow for payment request : For the approver i am displaying the document in edit mode thorough standard method .I am calling that method ( Edit method ) in the secondary method of the decision tab( METHODS tab) .But i am getting the error "Error when starting submethod " whenver i execute the workitem.I am working ECC 6.0 .
Please can anyone help in getting this solved .
regards
Paveee.The answer is simple: You need to co-operate with someone who has wide authorizations. It is impossible to solve a problem when you don't even have authorization to check what went wrong. I would suggest contacting your Basis team/person.
<i>Message was edited by Kjetil Kilhavn:</i>
But on an entirely different note, you haven't really shared information that could tell anyone what the problem is. I'm suspecting you are using a customer-specific object type, and that the problem is in your solution, rather than authorizations. The reason I am suspecting this is that experience shows most errors are in customer-specific coding (i.e. my code) and not in SAP's own code -
Secondary Method Not Invoked - Possible String Length Connection ?
We have a workflow exhibiting a problem that, after much unlayering, can best be be distilled as follows.
A variable of type string exists in the work flow container, and its parameters are set for import/export.
A variable of type string exists in the task container, and its parameters are set for import/export.
An ABAP Object method is called by the task and it manipulates the string.
The task can be called repetitively.
The string is always bound from the workflow container, to the task container, to the method, manipulated, and passed back to the task container and the workflow container as would be expected.
This all works fine.
Additionally, we have implemented a secondary method on the task which displays an image.
While the string processing continues to work well, we have found that our secondary method does not execute if our character string is more than 255 characters in length. If the string is less than 255, the image launch works fine.
Solutions appreciated...
...MikeHello,
Interesting! What version is this happening on?
What manipulation is done on the string, does it increase in length.
Could you give an example of the secondary task to display an image, and any other info which would help someone replicate this problem?
If you have a problem that can be replicated at will, you should send it to OSS.
regards
Rick Bakker
Hanabi Technology -
Hello,
I encounter the following problem:
In a task I have placed a secondary method from an ABAP class. The method is a static public method and the interface IF_WORFKLOW is set in the class.
The method (modal call) does not seem to be triggered. When I replace this method with a method from a BOR-object it works just fine.
Any suggestions ?
BertHi Bert,
Does it work when you put it in a normal task? I don't know if there are any prerequisites for a method to use it as a secondary method. Did you try testing the method in the workflow builder? At the Tab Methods there is a test button. Maybe this gives some more information.
Regards,
Martin -
Hi everybody,
and again a question:
Which secondary method do I have to use for displaying a sales document in the crm web ui after executing the workitem??
I tried "display" BUT it only works in sap gui (and shows me the sales document).
Does it in the web ui not work?
Is it a bug?
Thanks and best regards,
NataliHi Bert,
Does it work when you put it in a normal task? I don't know if there are any prerequisites for a method to use it as a secondary method. Did you try testing the method in the workflow builder? At the Tab Methods there is a test button. Maybe this gives some more information.
Regards,
Martin -
hi experts ,
what is the primary and secondary methods in Business objects?.
and what are the primary and secondary methods?
if helpful points ll be rewarded.
thanks,
velThere are no primary and secondary methods in BOR objects. All methods are equal. However, you may have secondary methods in a step of a workflow, and you can read more about that <a href="http://help.sap.com/">here</a>.
The Wiki that was created by Mike Pokraka for <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/sapBusinessWorkflow+FAQ">SAP Business Workflow FAQ</a> (Frequently Asked Questions) is also a good place to start, although not necessarily for this particular question. There you can at least learn a little about the basics, preparing you to explore a little on your own before asking here. -
Decision step with method before workitem execution
I have a decision step, which uses method before workitem execute uses BO Bus2094 - 'Display' method.
When an agent receives a workitem, try to execute the workitem 'Getting an information message 'Error when starting submethod'.
When i see the information of the error -
"At least one submethod could not be processed.
See the technical Workflow log to determine the error cause."
When i check technical log of workitem, 2 steps are in error mode.
1. Dialog work item executed - Error when starting submethod
2. EXECUTE_METHODS - System error in asynchronous method start
This is happening in Quality system, not in DEV system.
Any inputs to resolve this.Hi,
@Sivagami: I wonder, how a container element e.g. BUS2094 that was passed to a copy of the DECISION task is automatically executed just before the decision dialog? Good stuff, if it works like this, I'll try this at a later time.
@Indira: Depending on the Release and such things I have expirienced several smaller bugs regarding the decision steps, especially when extending the data flow (from/to workitem), using the in-place-decision Workitem exit. So maybe you're already doing everything right, but just the inbox doesn't works as designed.
To work around this problem, you could enter the object methods as a secondary method, which then will display the Sales document in a separate window,
or you follow the proposal of Sivagami. If the Sales document doesn't seem to appear, you could enforce the display, by globally substitute the business object DECISION to one of your own, re-define the object's method Process that read the business object fromt the work item container and executes it's display method, which is basically the same result you'd like to have.
Best wishes,
Florin -
BO method works fine but not the wokflow step.
Hi,
Just needed a suggestion. I have a PO attachment workflow. When i see the workflow log I see some error at the step check attachment. But when I run the step task method in this step seperately from BO, it works fine, i just pass the same container elements as i get in the workflow id to this method of the step.
So now any kind of hint what and where could be the problem. As I can see there is no problem with the task method.
Any guess?
Thanks,
AC.
Edited by: anu_SAP_123 on Jun 28, 2011 8:29 PMHi,
Just needed a suggestion. I have a PO attachment workflow. When i see the workflow log I see some error at the step check attachment. But when I run the step task method in this step seperately from BO, it works fine, i just pass the same container elements as i get in the workflow id to this method of the step.
So now any kind of hint what and where could be the problem. As I can see there is no problem with the task method.
Any guess?
Thanks,
AC.
Edited by: anu_SAP_123 on Jun 28, 2011 8:29 PM -
Check in Standard USer decsion step before Approval
Hi ,
I am using a standard SAP User desion task I have requirment from the user that the user should not APProve or reject without putting a note as attachement .
how can I achieve the same ?
do we have any user exits on the standard user decsion step or in methods option I also find Secondary methods call do anyone have an idea what this is for ?
Regards
Abhilash
Edited by: Abhilas Stanly on Mar 18, 2009 11:22 AM
Edited by: Abhilas Stanly on Mar 18, 2009 11:22 AMHi,
Below the approve & Reject branch of the User decision call the std. Task TS20000139 and give the neccessary binding.
While the approver approves or reject this will open as a popup and they have to the enter the comments. This can be sent to email and also mail to SAP Inbox.
Regards,
Surjith -
Step User Decision and Approval of Purchase Order
Hello All,
I have created a workflow with step user decision and also attached the object BUS2012 to display from SAP Inbox. But is there a way i can attached the object that would show the approval screen when the work item is executed, and also send a mail for the user decision.
Urgent help needed.Hi,
You could use a secondary method in your user decision step which executes an object method and for example displays the PO so users can make the correct choice in the user decision.
Regarding sending an email you could have a sendmail step after the user decision step but wthis will not be executed until the user decision is complete. Why do you want to send an email?
Regards,
Eddie
Maybe you are looking for
-
G/L account ,date, wise material stock display
Hi Experts My requirement is I need to display G/L accounts(mseg-sakto) material stock(mara) present on a particular date (budat)range. For this in select-options i am taking sakto as mseg-sakto and datum as bsim-budat. Now i need to apply select que
-
Firefox 7 is forcing me to fill out a form field that isn't required. I've used FF on this site for years but when I upgraded to FF7 it no longer works. IE it works fine.
-
Web Service SOAP Sender Authorization
Hi all I have been implementing a Web Service (SOAP Sender CC) that should be consumed by an external party. I have been testing it successfully using XMLSpy with the drawback of the authentication box coming up even though I have added sap-user and
-
What is going on with our lines?
We have two lines into our property. Two weeks ago the main line went faulty at Friday, and it took BT/Openreach until Wednesday to fix it. Today, the other line is dead, just like the Monty Pythin parrot. That one also carries broadband into the pro
-
HST60: Display of mandatory items not bold.
When I open a form for the first time in the browser, all mandatory fields are displayed with a large lettertype instead of a bold lettertype. when I open the form for the second time the mandatory field are displayed with al bold lettertype.