4 Replies Latest reply: Feb 27, 2012 8:22 AM by Karri Kemppi RSS

_Adhoc_Objects not passing to main workflow from subworkflow

Raghunandan Vasudevarao
Currently Being Moderated

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 .

thanks

Raghu V

  • Re: _Adhoc_Objects not passing to main workflow from subworkflow
    Raghunandan Vasudevarao
    Currently Being Moderated

    Hello team ,

     

    please provide you valuable inputs .  I am still struggling to get the attachments created in subworkflow  back to main workflow . the bindings are in place , should we explicitly use any FM to attach the objects again onto the main workflow /

    ?

    thanks

    Raghu V

  • Re: _Adhoc_Objects not passing to main workflow from subworkflow
    Rick Bakker
    Currently Being Moderated

    Hello,

     

    "the subworkflow is determined dynamically"

     

    What do you mean by this?

     

    regards

    Rick Bakker

    hanabi technology

    • Re: _Adhoc_Objects not passing to main workflow from subworkflow
      Raghunandan Vasudevarao
      Currently Being Moderated

      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.

      thanks

      Raghu V

  • Re: _Adhoc_Objects not passing to main workflow from subworkflow
    Karri Kemppi
    Currently Being Moderated

    Hi,

     

    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").

     

    Regards,

    Karri