Secondary method

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,
Natali

Hi 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

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,
    Christoph

    Hi 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

  • 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

  • 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,
    Vidya

    Hey 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.S

    Hi 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

  • 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...
    ...Mike

    Hello,
    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

  • Secondary method call

    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 ?
    Bert

    Hi 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

  • 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 forums

    Ok, 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

  • 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

  • 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,
    Vijay

    Any idea guys?

  • 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

  • Automatic popup for reason of rejection after async method

    Hello,
    How to get a <b>reason of rejection</b> popup after an asynchronous method?
    Currently I am using the standard <b>singlerelease</b> method of object type BUS2012 for the release of purchase order.
    Now once this order gets rejected the user wants an automatic popup for entering the reason for rejection and NOT as another workitem in his inbox for execution.
    Please let me know how can I provide this functionality in the current scenario. Also since the Previous method(singlerelease) is asynchronous “Advance with Dialog” does not work.
    Thanks and Regards,
    Anuj

    Hi Mikko/Anuj,
    Added to the FAQ, including techo details.
    Cheers,
    Mike
    3.16. How can I 'advance in dialog' with asynchronous tasks?
    This is unfortunately not possible as the very nature of <i>asynchronous</i> tasks contradicts the idea of 'advance in dialog', also known as <i>synchronous</i> dialog chains. The two main reasons for using asynch tasks are either that the termination can happen outside of WF, or to ensure that all database updates are complete. Both of these imply that there is an action happening outside of workflow (database updates can happen outside the user session after the transaction is completed). Since these happen outside the current dialog session, one would have to 'continue' another user's session in the current dialog, which is not possible.
    How it works on a more technical level:
    Asynchronous tasks use terminating events which live in the instance linkage tables (tx SWEINST). You don't normally have to touch instance linkages, the WF system creates these as necessary, and deletes it when a task completes.
    The main difference between instance and type linkages is that instance linkages have a key and are specific to one instance (hence the name), they are only triggered for the object with the same key. Like any other event they are passed on to the event manager who triggers the receiver (the task completion in this case) via RFC (user WF-BATCH). This is why it is theoretically impossible to advance in dialog - because the task completion happens in a separate dialog under a different user, quite possibly on a different server.
    Workarounds can include secondary methods (though they have their own restrictions), or redesigning your flow so that it uses a synchronous task instead e.g. by using a wait for event in a separate branch or creating a synchronous task instead.

  • Call enhancement class method from Bus. workflow task

    Hi all,
    I recently enhanced a global class from SAP (add a new method). Now I would like to call it from a workflow task (ABAP Class object used in the task). So it seems that only "native" methods from the class itself can be selected for the object method of the task.
    Same issue if I try to call it via secondary methods options...
    Last idea I have before the repair is: retrieve the instance saved into the WF container via a custom class interfacing IF_IFS_SWF_CONTAINER_EXIT (program exit) and call the enhanced method from the method proposed in this interface.
    Maybe someone had the same issue? Anyone could help or propose solution?
    Many thanks in advance for your help,
    KR,
    Olivier

    I think it might qualify for an OSS message.
    There was simmilar note for BADIs which was corrected: https://service.sap.com/sap/support/notes/1156392
    CL_SWF_UTL_DEF_SERVICES which is used in PFTC to determine callable methods doesn't include enhancements when calling  function SEO_CLASS_TYPEINFO_GET (parameter WITH_ENHANCEMENTS is default FALSE)

  • Combine standard task (ABAP method call) and additional UWL Action Handlers

    Hi, i have defined a task with an asynchronous ABAP method call and a terminating event which i want to use "as is" in the universal worklist, that means that the standard action has to be the ABAP method call defined for the task.
    In addition to that i want to add an extra button to the workitem view in the worklist which opens a web dynpro application. The web dynpro needs a parameter from the workitem container. Opening the web dynpro is not required for completing the task, so i do not consider using secondary methods.
    I created an UWLConfiguration for the task type without defining the defaultAction attribute, since defaultAction should not be overwritten. I wanted to use SAPWebDynproABAPLauncher to generate the button since i can easily include values from the workitem container in the call.
    When executing a workitem from the worklist the ABAP method call is not performed, instead a window opens which just displays the workitem. The button to web dynpro is generated and works fine.
    Does anyone have a clue how i can use UWL to define an additional button with SAPWebDynproABAPLauncher without overwriting the standard task definition?
    My definition:
    <ItemTypes>
        <ItemType
    name="uwl.task.webflow.TS95100103"
    connector="WebFlowConnector"
    defaultView="DefaultView">
          <ItemTypeCriteria
    systemId="ED1CLNT100"
    externalType="TS95100103"
    connector="WebFlowConnector"/>
          <CustomAttributes>
            <CustomAttributeSource
    id="WEBFLOW_CONTAINER"
    objectIdHolder="externalObjectId"
    objectType="WebFlowContainer"
    cacheValidity="final">
              <Attribute
    name="HROBJECT_OBJEKTID"
    type="string"
    displayName="HROBJECT_OBJEKTID"/>
            </CustomAttributeSource>
          </CustomAttributes>
          <Actions>
            <Action
    name="launchWebDynPro"
    groupAction=""
    handler="SAPWebDynproABAPLauncher"
    returnToDetailViewAllowed="yes"
    launchInNewWindow="yes"
    launchNewWindowFeatures="resizable=yes,scrollbars=yes,
    status=yes,toolbar=no,menubar=no,
    location=no,directories=no">
              <Properties>
                <Property
    name="WebDynproApplication" value="hr01_app"/>
                <Property
    name="newWindowFeatures"
    value="resizable=yes,scrollbars=yes,status=yes,
    toolbar=no,menubar=no,location=no,directories=no"/>
                <Property
    name="DynamicParameter"
    value="candidacy_id=${item.HROBJECT_OBJEKTID}
    &amp;from_workflow=X"/>
                <Property
    name="openInNewWindow" value="yes"/>
                <Property
    name="System" value="SYSTEM_ALIAS_ERP"/>
                <Property
    name="WebDynproNamespace" value="hr01"/>
              </Properties>
              <Descriptions default="Show"/>
            </Action>
          </Actions>
        </ItemType>
      </ItemTypes>
    Thank you very much, best regards, Martin
    Edited by: Martin Sommer on Dec 1, 2008 5:51 PM

    found a solution with transaction launcher and custom transaction

  • About the tab "Method"  in definition of  activity

    In the tab "methods" in the definition of activity, what's meaning of Modal call and how to export paramaters and import parameters there.

    Try searching the SAP Help first for secondary methods in workflow. It is amazing how many answers are in there. And as an added bonus you also comply to the forum guidelines.
    Regards,
    Martin

Maybe you are looking for

  • Attempting to open a doc

    Attempting to open a document but it only shows the first page and won't scroll down to the other pages. The docs are opened via a university proxy(the blackboard network). I am thinking it has to be a plug in or missing app problem but I have no ide

  • Transporter Documents

    Hi - Does anyone have any transporter documents for install/configuration/etc???? We are on 5.3.1 and we will be patching to the latest 5.3.1. build and I wanted to see what I needed to do w/transporter. Also, if there are any steps as to what to do

  • Receiver Determination Transport

    Hi, We have a case where we have multiple reciver for same IDOC in PI based on diff partner number. The problem that we are facing, each time we add a new receiver and transport the reciever determination as a part of scenario, it over writes the rec

  • Deleting photos and videos from my iCloud

    I updated to IOS 8.1 today. I turned on iCloud photo library. Before I did that I had 9.5g free of 20g. After I turned it on I have 15g free?!  It's taking forever to upload my photos and videos. But I also want to see what's in my cloud so I could d

  • Address bar disappers

    everytime i open safari or open a new window the address bar and google search disappears and i tried recofiguring it but it hasnt worked and i was told to use ctrl and l to show it it worked but the the address bar disappears again whenever i open a