Skip to Content

best way to instantiate associated BOR object

I have a material master workflow wherein I need to work with attributes of the business object Plant (BUS0008). The workflow is started by an event of Standard Material BUS1001006.

To get the Plant attributes, I am using method GenericInstantiate of object type SYSTEM first, passing the 4-character plant code from the workflow to the task and returning object type to BUS0008 within the workflow.

Is there a better way [or alternate way] to instantiate an instance of an object type within a workflow where that object type was not the initiating object type? Oh, and without a line of ABAP.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 26, 2017 at 09:36 AM

    Hi,

    You could bind the plant-key to the Business Object during event creation in the event-->WF binding.

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Rob,

      Thanks for the suggestion. I tried that and get the following error:

      Value of expression '&BUS0008.PLANT&' cannot be used as the target of an assignment

      Message no. SWF_BND_001012

      Diagnosis

      Expression refers to a data object that cannot be changed, for example, a constant, a system field, an object attribute, or a method that cannot be changed. A binding cannot use this data object as a target.

      System Response

      The operation was canceled.

      Procedure

      Change the binding operation in the workflow definition environment (choose another target for the assignment in the binding editor), or set the workflow parameters so that the binding operation can actually include the required value.