ABAP OO Workflow - Default Method

Dear all,
Does anyone know how to set default method for Abap OO Object?
In BOR, we can set it in the header attribute. But I can't see any place where we can set the default method in Abap OO object.
Thanks.

Hello,
Thanks for taking the time to close off your question. However if you close a thread without an answer then it would be nice to post the answer for folks who search the forum with the same query later on.
For what it's worth, BI_OBJECT~EXECUTE_DEFAULT_METHOD is always the default method. In here you can add code to call any other method.
Cheers,
Mike

Similar Messages

  • Workflows : Unable to call a report from a Default Method of Business Objec

    Hi,
    Good afternoon.
    Well, we had a requirement where a Business Object's Default method should call a report which in turn calls a User Defined Screen(Call Screen 100 say...) which had a Text Control with one OK button.
    In this requirement, I had created a method with all the above functionality and then tested the BUSINESS OBJECT accordingly. Well, when Testing the BO directly, I am able to get my REQUIREMENT satisfied like the METHOD is working PERFECT as per the requirement.
    Now I made it as an DEFAULT METHOD and used the same BO for a workflow. And that Workflow gets triggered with an Event within that BO. So the instance of this BO is coming to the Workflow.
    Now, I created a new Decision step and copied the standard step's task into a new Standard task. And I included this task for my new DECISION STEP. In this standard task , I had created a CONTAINER Varaible for my BO.And in my WORKFLOW, I had passed the instance of my BO in the BINDING PART of this Decision Step.
    Now, my objects and Attachments part had an HYPERLINK, but it is not executing the needed method. Why is it so?
    Do we had any limitation for this?
    Shouldn't we call any report which calls a user defined screen from a method ?
    Is there any way for solving the above problem?
    Like I want to display a TEXT CONTROL which takes COMMENTS from the Approver during the WORK ITEM PREVIEW before APPROVAL / REJECTION and this INPUT must also be shown in WORK ITEM PREVIEW in the next level.
    Someone please help me.
    Regards,
    Raja Sekhar

    Hi Raja,
    Well it is not yet afternoon for me. In fact the work day just about started
    Have you tried debugging it? Put a break point in your default method and click on the object link from the inbox and see if your method is getting executed and if it is you may find what the problem is.
    Also, have you tried with a different default method like a display method and checked if it works?
    Thanks,
    Ramki Maley.

  • SAP workflow -SAP error WL210 -Error triggering default method for object &

    Hi Experts,
    User is encountered with the error message "Error triggering default method for object &" when he is performing approval action in SES workitem .
    Could you please advise me how to avoid this issue.
    Thanks in advance for your valuable help.
    Rajani
    Edited by: Rajani SAPABAP on Sep 13, 2011 4:50 PM

    Hi Rajani,
    I think that it's an authorization issue.
    Please check if u find which authorization object is violated in SU53.
    Regards,
    Asit

  • Hyperlink to launch webdynpro abap from workflow

    Hi Guys,
    We have developed WORKFLOW where we need to send HYPERLINK along with WORKITEM to the AGENTS.
    When ever the user(AGENT) clicks on the HYPERLINK we need to launch our WEBDYNPRO ABAP APPLIOCATION.
    Please guide me to achieve this scenario.
    Thanks&regards,
    Harsha P

    Hi
    I think you have to check the below points  as Karri has suggested you some good points, and still if you face some issues then
    1. Make sure you have made the workitem ID as URL parameters.
    2. You should be able to access the URL parameters from Default method of the Window.
    3. Make sure the URL that you are generating is correct , by looking at URL I felt like some thing is missing, like if you have observed the url of any webdynpro applicaiotn it may be some thing like
    https://<domain>.50000/sap/bc/webdynpro/....   and this is purely my guess so make sure th URL you are populating is correct.
    @Rick
    Why do you keep saying "kemp" when the sign-off is "Karri"?
    May be you should concentrate on suggesting some thing useful regarding thread issue, rather than how the others signature is or suggesting something how to call or address the other forum participants.  Its just a suggestion....
    Don't mind its just a friendly advise.
    Regards
    Pavan

  • Need to Hide Objects Default method in Approval Task

    Dear All,
      I have a requirement, where I need to hide the default method that is getting displayed in the approval task of the workflow.
    The employee object and Trip objects default method are getting displayed in the preview of approval task. And same is getting displayed in the universal worklist in the columns of attachments.
      There is an option in univesal worklist configuration where we can remove the attachments for display.
      But to our requirement , only certain objects and attachments should be shown in portal and R/3 of the approval task.We need to restrict the employee object and trip object which is shown in objects and attachments column of the standard descision task.
    Let me have any suggestion on this.
    Thanks in advance.
    regards,
    Sabari Prabhu.

    Hi,
    I took a look into this same issue some time ago, and at least I didn't find a way to restrict only certain attachments for displaying in UWL. If the attachments cannot be hidden, I have tried to avoid using the business objects as much as possible. For example the employee object is many times binded to the task only because you want to display certain attributes in the task description. Then I have just binded the needed attributes into separate container elements. Of course this will not solve all the cases.
    Then other useful options are that you change the default method, and this method is implemented in a way that it either does not display anything, or displays something (maybe just an error message etc.) that makes more sense than the default method that SAP delivers. Or then you can implement for example your own web dynpro application that will be launched when you click the attachment.
    Regards,
    Karri

  • Problem with Default method of BUS2034 after Redefinition

    Hi All,
    We had a requirement for which I REDEFINED the default method of BUS2034 in the inherited object.
    The Decission workitem in which this object was attached, was being opened from UWL using WINGUI.
    Now, after the redefinition, the defult method is not opening up the attachement to show the contract document.
    P.S: I have reverted all code changes in that.
    Please help. Its critical.
    Thanks & Regards,
    Deb

    What do you mean by redefimed. You maintained ahew entry in the Default method entry in SWO1?
    I will recommend you to create a subtype and not delegate it to standard Bo and use this in your workflow with a new method as the default method.
    Thanks
    Arghadip

  • Default method - how to pass value to method container?

    Hello,
    I am dealing with a hyperlink in 'Objects and Attachements' section of the workitem.When i click on the link, the default method of the business object gets called automatically.
    My question is: How to pass values to the default method (i.e. method container) as i don't invoke the method in my workflow explicitly?  The method gets called when we click on the hyperlink.
    Regards,
    Monica.

    Hello Monica,
    a default method doesn't require parameters (and cannot make use of them), as they are designed to be called from various situation, such as the view from a workflow container, the display button within a workitem or the attachment list. So this is part of the system design.
    To make an object dependent of workitem values I usually follow two different design patterns:
    <b>1) Using a flowitem/workitem instance with a special default method</b>
    - Create a subobject from type WORKITEM (if I'm going to use values from the current workflow instance) or subobject from type WORKINGWI (if I'm going to use values from the current dialog workitem).
    - Do not make a general substitution for this new object type
    - If using a ZWORKITEM, create an instance of this object type before the dialog step and then pass this object to the dialog workitem
    - If using ZWORKINGWI, assign the object instance during the data flow to the step.
    - In the properties of the object choose (any one) default method
    - Within the coding you have the reference to the workitem/flowitem as object-key-... and you can further use functions/methods to read the workitem/flowitem container and do whatever has to be done
    <b>2) Retrieving values from the current workitem on-the-fly</b>
    Within the coding of the default method call the function module SWO_QUERY_REQUESTER that returns the instance/id of the current workitem-in-work (with is also set when using the hyperlink from a workitem). If the list is empty, there's no active workitem, otherwise use functions/methods to read the workitem container.
    --> edit: Solution is not release safe, is it aint working with SAP R/3 Enterprise and higher
    Best regards,
       Florin
    Message was edited by:
            Florin Wach

  • Handler Default method in WDA

    Hi,
    I have created configuration in SEFVISU, to receive the workitem i have created a parameter in event handler method in window
    but it is throwing dump The ASSERT condition was violated, if i remove that parameter means application executing properly but i am not able to pass the unique, values please guide me.
    Regards,
    Srini.

    Hi,
      Clear us one point that are you passing this UNIQUE ID to the workflow container or work item container while submitting the request.
    IF you are passing this unique id to the Workflow container or workitem container then in this case do no try to include any parameter in the event handler method but try to import the workitem from the application url in the as you might be aware that you can access the applicaiton parameter in the default method of the window. so import the workitem and then read the work item container by making use of the function module SAP_WAPI_READ_CONTAINER.
    Or
    Try to import the unique ID to to workflow container and then do the above part.
    Regards
    Pavan

  • ERROR TRIGGERING DEFAULT METHOD FOR OBJECT (INCOMING INVOICE).

    When trying to open invoices in my ERP inbox to authorise I get the following message.
    ERROR TRIGGERING DEFAULT METHOD FOR OBJECT (INCOMING INVOICE).
    . There might be an authorisation issue. but i am not confirm.
    I have checked the authorisation in SU53 also.
    is it possible that there is some other reason for it.
    If so then what are they?
    please help.

    Hi Naval,
            Is it a custom business object....make sure that the status of all object components are set to Implemented or released..and  regenerate the Object...
    Thanks
    Srinivas

  • Default method in taskflow

    Dear all,
    How to fire a default method at the begining of a task flow created from a human task?
    If I want to store the task parameters to session variables at the begining of a task flow can I use a default method?
    It will be great if you could furnish with example , specially the code to access task parameters in a taskflow default method.
    Regards,
    Sam
    Edited by: Sam on Mar 14, 2011 2:35 AM

    Hi Sam,
    Try this
    //access request scope variable.
    HttpServletRequest request=(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
    String name=(String)request.getAttribute("Name");
    //access page flow scope variable
    Map pageFlowScopeMap = AdfFacesContext.getCurrentInstance().getPageFlowScope();
    String name = (String) pageFlowScopeMap.get("Name");
    Edited by: Santosh Vaza on Mar 14, 2011 2:17 PM

  • Role of an ABAPer in Workflow functions

    Hi Friends,
    I want your valuable suggestions about WORKFLOW i.e. i mean to ask u that who performs this in realtime, is this the role of an Functional Consultant or Technical Consultant. So, is it suggested to learn WorkFlow for an ABAPer.
    It would be a great help to me. TIA
    Thanks
    Suren

    Hi suren,
    The role of an abaper in workflow is very crucial.It is his responsibility to create and customize the workflow according to the business scenario.
    There are different types of requirement,eg., like a workflow should be triggered after a material is created,etc.This has to sometimes achieved programmatically or some special settings has to be done in workflow transaction & this is where an abaper comes into picture.
    Best of luck,
    Bhumika

  • Reg reboot issue - console message- svc:/network/iscsi/target:default: Method or service exit timed out

    Hi,
    When I reboot the system I am seeing this message on the console and system is not getting rebooted.
    svc.startd[10]: svc:/network/iscsi/target:default: Method or service exit timed out. Killing contract 131.
    can someone help me to solve this?

    There are still a few issues with Solaris 11.1 and iSCSI LUN and rebooting. I know they are working on fixes.
    A possible workaround is to use the reboot command and NOT the init command. At least when you use the reboot the command the system will reboot and not hang.
    If this is not your problem then it may be a different problem.
    Andrew

  • Hi, what is default method in servlets?

    hi,
    i am not mentioned any method in my servlet program,
    so what is the default method either get or post?
    jp

    Hi
    If you what to provide the same stuff for both
    POST/GET HTTP request you can use the service method:
    public void service(ServletRequest req,
    ServletResponse res)
    throws ServletException,java.io.IOException /Tobiaswhen reading 'More Servlets And Java Server Pages' you are discouraged to use service(), unless you want to do some of the preprocessing yourself. (sorry, I don't exactly, what is done before doGet()/doPost() are called...)

  • Default method in Struts

    does any one know whats the default method in Struts... GET or POST

    I suppose you're talking about the form tag. Then that's POST,
    unlike the HTML form.

  • Default methods

    I read the Java tutorial on default methods and I think I understand how interfaces may evolve without loss of backward compatibility. My question refers rather to how should we design our interfaces from scratch. If and when should we define default methods? As an extreme example, why not design MyNewInterface with all default methods? If some operation makes sense, fine, stick the appropriate code in there, and if not, just do nothing, return null, return 0, return false. This would give the implementers of my interface quite some freedom what to care about, depending on their application needs and would make their apps less verbose (kind of like what the awt Adapter classes achieve). I don't look for an approval of this approach, but at some guidelines. Hope this makes sense.
    Edit: And one more question from someone involved a lot with libraries for external clients. Does it make sense to rewrite old interfaces in a new release of the library and turn some methods into default methods containing code that makes sense? This option was not available so far and users had to write sometimes trivial implementations.

    So:
    cool stuff for backward compatibility
    probably not as compatible as you think
    but...
    how should we design new interfaces?
    For *new* interfaces, including default methods is not going to break anything (at least, not immediately, see later). I think, use this sparingly: if you genuinely have an example of "every object of this type should have this functionality", *and* there's an obvious default implementation, then that's probably a good case for using default methods.
    So , consider a DAO interface. You'll commonly want to get an object via it's id. The database stores the id as an int, and the corresponding class has an id field of type Integer. So it's fairly intuitive to define
    public interface DAO {
        public Entity getEntity(int id) ;
    But... all (or the vast majority) of my use cases are in a web application, and of course the only data type http knows about is String. So at some point, I get a request parameter representing the id as a String, and have to convert it to an int in order to get the entity from the DAO. In other words, I end up doing this:
    DAO dao ;
    String idFromRequest = request.getParameter("id");
    Entity entity = dao.getEntity(Integer.parseInt(idFromRequest));
    I end up really needing DAO to support a
    public Entity getEntity(String id);
    method, but do I really want to force all implementations to implement it to call Integer.parseInt(...) to invoke the other method?
    I could, of course, define an AbstractDAO class that adds the method in, but then I lose the whole "programming to interfaces" paradigm.
    So that would (at least, on the surface) appear to be a nice use case for default methods.
    You should still worry a bit. Even if I put a default method into a new interface, any classes that implement that interface and some other interface are vulnerable to breaking if the other interface later introduces a default method with the same signature as my default method. So you might want to think about making those default method names quite specific.
    Default methods should be used sparingly. If you add dozens of them to your libraries, you increase the risk of problems caused later by classes not being able to resolve calls unambiguously.

Maybe you are looking for