Skip to Content
author's profile photo Former Member
Former Member

classed based SAP workflow user decision with link to document

Hello experts,

i have created a workflow using the custom class (implemented the IF_workflow) for sales order approval. my workflow is triggered sucessfully and got the workitem as well. but the problem is i am not getting link in the workitem which will take me to the sales document under "object and attachment ".

i checked over SCN and found that i need to do binding between instance of my class to the _WI_OBJECT_ID. but while doing the binging i am getting error " the object catagories "CL" and "BO" are not compatible."

i am using standard user decision task TS00008276 with BOR as Decision and method as process.n

please suggest how to get the sales order display link under object and attachement in the workitem.

Regards

Anand

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 18, 2016 at 10:08 AM

    Hi,

    You have to write proper code to excute transaction in method BI_OBJECT~EXECUTE_DEFAULT_METHOD of class

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Anand,

      I don't think that we are in this forum to really provide you the code you need to generate, that is your job or the job of your developper.

      Especially you have decided to work with an ABAP Oject, you have teh BOR object (BUS2032)

      which has a method display from which you can certainly get some inspiration

      So insert the code there if it does not work get back to us

      Cheers

      Stephane

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 12:16 PM

    Hi Stephane,

    thanks for the reply,

    i moved the code of display method of BOR BUS2032 in the BI_OBJECT~EXECUTE-DEFAULT_METHOD. but still my workitems going in error upon clicking the workitem in sap mail box.

    i have checked the log for the workflow and found this message under step history " user decision 000012357 has no alternative index 0000.

    please suggest how to solve this error.

    Regards

    Anand

    Add a comment
    10|10000 characters needed characters exceeded

    • Anand,

      Normally the code is not to be developped into the default method it shall call another method that you would have developped and then you only have to call this method (eg : me->display( ) )

      You can easily test this method from your class directly, copying can be good but may be not enough

      Also your decision task is this a copy of the standard decision task ? have you manage the decision ?

      Cheers

      Stephane

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 12:38 PM

    Yes it is copy of the standard decision task TS00008276. i have replaced BOR with my custom class so as to enable the binding of _wi_object_id with the class and get the document link in the workitem.

    things are working as expected, by copying the standard task i am getting the document link under"object and attachment ' section of workitem. but on clicking of it i am getting the error " user decision ********** has no alternative index 0000.

    Add a comment
    10|10000 characters needed characters exceeded

    • Anand,

      For me the standard decision task is TS00008267 I don't have the task TS00008276 in my system what system are you working on ?

      Besides the standard decision task TS00008276 is with BOR DECISION and method Process and the BOR shall not be replaced.


      You can pass in the Object Ad Hoc your personnal object.

      Cheer

      Stephane

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.