Hello Team ,
We have scenario where in custom subworkflow creates an attachment and is assigned in the AdhocObjects container.
however , this is not getting cascaded back to the main workflow .
i am unable to assign the container binidng back to the main workflow as the subworkflow is determined dynamically .
the attachment/object is available in all the steps of the subworkflow , only missing when the main workflow is executed again in the subsequent steps.
please assist if am missing something .
Hello Rick ,
We are on SAP 4.7 version and using the SAP standard workflow FIPP_FRAME_1 .
The workflow determines the Level 1 subworkflow from the table VBWF01 ( t.code OBWE to assign the custom workflow for account assignment approval ) .
we have a custom activity within the subworkflow to capture the approval rejection and an attachment is generated .
The main workflow FIPP_FRAME_1 calls the subworkflow and the subworkflow generates the attachment if rejected by the approver. The control passes back tothe main workflow once all the activities are complete.
But the attachment is not getting cascaded back to main workflow .
Since the subworkflow is not assigned as an ACTIVITY in the main workflow directly , I am unable to define bindings to pass back the attachments.
I suppose we can insert attachments in any active workflow , but WAPI s are missing in our SAP version . Any suggestions would help me.
If the bindings don't work (I remember this workflow scenario of FIPP/Dynamic subworkflow but I don't remember the binding part), you need to try something else. I just don't totally understand that how the other bindings that there must be between the workflows work, but adhoc_attachment does not? Adhoc_attachments should be in both workfow containers, shouldn't they? So why you cannot do the binding? Well, it might have something to do with the dynamic assignment...
If you can create the attachment in your customized subworkflow, what prevents you to use the same code to attach the document to the mainflow (or both flows)? You just probably need to find the parent workflow work item ID (the top work item ID) to attach it. You could also take a look to the SAP_WAPI* functions in other system (ask a collegue?) and see how they work. Maybe they are just calling some SWLATTACHMENT function - take a look for example SWL_WI_ATTACHMENT* (I have no idea if this works or does the "needful").