Workflow creator in the container

Hi all ,
We are trigeering a workflow using SAP_WAPI_CREATE_EVENT.To this function module we are passign the SY_UNAME as one of the export parameter.
But since the Logical RFC connection logon user is set as WF-BATCH the workflow creator value (swwwihead - ww_aagent) is stored as WF-BATCH.
To overwrite this only we have passed the SY-UNAME.But still it considers the WF-BATCH.
Can anyone pls tell how to overwrite this WF-BATCH with our user id .
Regards,
Hema.

Hi Jyothi,
In SM59 transaction we have logical connections. It will be maintained by BASIS.
In our case the RFC destination for our client, the logon user is set as WF-BATCH.This user is maintained with the time zone MSTNO.
Any workflow when triggered will go thru this logon user,
The workflow inititaor may be the person who actually triggered it .
But the workflow creator in the container or the w_aagent in the SWWWIHEAD will contain this logon user only.
Now our requirement is to have a different time zone.so we created a new logon user as WF_A_BATCH .
We can only have one RFC destinaion for a client.
So if we cannot change in SM59 transaction bcoz it will affect other workflows,
Hence we are trying to find a way wherein we can overwrite the WF-BATCH with WF-A_BATCH when the workflow is triggered.
Hope this is clear.

Similar Messages

  • Workflow comes to the creator of the invoice instead of user assigned

    Hi ,
           I am facing some problem in my workflow. This workflo triggered from t code FV60 to Cost center owner creator of the invoice.  Vendor master is Blank and XREF3 field is assigned with user id, then any invoice rejected by the cost center responsible, should trigger a mail to the user assigned in XREF3 field.
    when Cost center owner  rejects the invoice and workflow comes to the creator of the invoice instead of user assigned in XREF3 field. please help me.

    Hi,
    Correct me if am wrong :- Creator of the invoice is the initator of the workflow rite...
    so check in the binding whether anywhere WF_INITIATOR is binded or not?
    Regards
    Narin

  • How to populate the CONTAINER, when calling a WorkFlow Task via FM?

    Hello,
    I am trying to trigger an email notification to user's SAP Inbox, if Outbound IDOC got failed. I wrote the below code in the processing FM, but, i am stucked at populating the CONTAINER parameter of this Task, pls. let me know How/with What I have to populate the CONTAINER parameter of this FM?
    DATA: wa_input_container    TYPE swr_cont,
                wa_swr_messag       TYPE swr_messag,
                wa_swragent             TYPE swragent.
    * Fill Workflow element
          wa_input_container-element = '_WI_OBJECT_ID' .
          wa_input_container-value   = wa_idoc_control-docnum.
          APPEND wa_input_container TO itab_input_container.
    * Fill Email body
          wa_swr_messag-msg_type = 'E'.
          wa_swr_messag-line = 'Error'.
          APPEND wa_swr_messag TO itab_swr_messag.
          CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
            EXPORTING
              task               = 'TS00007989'
              language           = sy-langu
              user               = sy-uname
              start_asynchronous = 'X'
            IMPORTING
              return_code        = v_sy_subrc
            TABLES
              input_container     = itab_input_container
              message_lines      = itab_swr_messag
              agents                   = itab_swragent.
        ENDIF.
    Thank you.

    Hi,
    Pls refer below link.
    FM SAP_WAPI_START_WORKFLOW Exporting container without values

  • Change the Workflow creator ID

    Hi All,
    All the workflows are initiated with WF-BATCH in one particular client and this ID configured with US time.
    But now client want the to use a new ID WF-A-BATCH(which is configured to ASIA time) for particular set of operations only.Since there is a restriction on the RFC definition(one definition per Client).
    Is there any way to change the workflow ID after it triggered with WF-BATCH. So that the operations can be  done with WF-A-BATCH.
    Thanks in advance.
    With Regards,
    Aditya

    Hi Rick,
    Currently, we are facing the Date issue in the 2nd leg documents.
    Details of the issue:-
    ***1st leg documents are manually created and 2nd leg documents are automation(workflows) using the 1st leg document.
    Issue: - If the user in Asia creates the 1st leg (all the documents are in Asia time) and the workflow is triggered to create the 2nd leg documents. Since the workflow creator is WF-BATCH(US time), all the 2nd leg documents are in US time.
    We cant change the WF-BATCH user setting, since it is used across.
    Please suggest any solution for the same.
    Thank you in advance
    Regards,
    Aditya

  • Change PR Approval Workflow Creator to whoever Generate the workflow

    We had a situation in our PR approval workflow: When PR creator had resigned, the new approval workflow does not reflect the last
    person who changed the PR. It's still showing workflow creator as PR creator instead. Is there any way we could change workflow creator ID to whoever generate the workflow?
    Thank you for your supports.

    Hi, You have to change the PR workflow creator ID through the below path,
    OLME -> Purchase requistion -> Release procedure -> Procedure with Classification -> Set Up Procedure with Classification -> Then double click on Workflow, do your changes for workflow creator ID over there.

  • Workflow - Retrieve attached document on the container

    Hello All!!
    I have configured a decision task to e included a rejection text on the UWL.
    When I add this text, I can see on the Container I have attached an Office Document with my text, on the BOR SOFM.
    How can I read the text included on this document?
    Is very very urgent, please.
    Thanks and regards,
    Manuel Míguez.

    Hi Arghadip,
    I see the attached document is on the Container, but is stored on a folder.
    I have the data of the folder.
    My doubt is how I can retrieve this data on a method of a task. The element is based on the BO SOFM and I can´t find the name of the fields.
    I´m using the statements
    DATA attach            TYPE SWC_OBJECT OCCURS 0.
    swc_get_table   container  '_ATTACH_OBJECTS' attach.
    Thanks and regards,
    Manuel Míguez.

  • Creation of an event : problem with the container

    Hi Gurus,
    I'm facing a problem in creation of an event.
    I'm in SAP ECC 6.0 for a migration project from 4.6B
    In an ABAP program I'm trying to create an event in order to launch a workflow.
    1st step : Set datas in the container -> In INTERNAL_TABLE I have 5 lines.
    swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container.
    2nd step : Create an event :
      CALL FUNCTION 'SWE_EVENT_CREATE'
              EXPORTING
                objtype              = w_wf_objtype
                objkey               = w_wf_objkey
                event                = w_wf_event
                creator              = applicant
                start_recfb_synchron = 'X'
              TABLES
                event_container      = event_container
              EXCEPTIONS
                objtype_not_found    = 1
                OTHERS               = 2.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              WRITE sy-subrc.
            ENDIF.
    Now when I check my container with SWI2_FREQ I see that INTERNAL_TABLE has just one ligne, the rest disapears.
    I have this problem only when I set an internal table in an container
    I don't know why, but it perfectly works on 4.6B.
    Thanks a lot
    Walid

    Hi,
    I dont see a point in having this statement
    swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container. Infact it is not needed !!
    SWE_EVENT_CREATE like any other FM, take a
    lt_var type standard table of SWCONT.
    ls_var type SWCONT.
    fill your ls_var with all fields and append it to lt_var each time and pass lt_var to event_table of SWE_EVENT_CREATE. It should work !!
    However, suggested way is to use SAP_WAPI_CREATE_EVENT instead of SWE_EVENT_CREATE  from ECC 5.0 onwards. There are fe concerns with SWE_EVENT_CREATE mainly with respect to commit and persistancy. Better we should use SAP_WAPI* as much as possible from ECC 5.0.
    Try above and Good Luck !!
    Regards
    Krishna Mohan

  • The list of workflow actions on the server references an assembly that does not exist

    Hi,
    This issue has been discussed many times in this forum , the reason why I am posting is I tried the resolution steps but I dont see any luck.
    I am getting the below message from the SharePoint designer 2007 when I am trying to modify a workflow
    "This list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly strong name is Microsoft.SharePoint.WorkflowActions, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.
    Contact your server administrator for more information."
    #1 : One of the post says "Normally you would see that error because someone has extended the Workflow actions available in SPD with a custom action developed in Visual Studio.  These custom actions are loaded when your workstation reads the WSS.ACTIONS
    file on the server.  The file is located in the 12 hive under Template\1033\workflow.  Your WSS.Actions file contains a reference to a custom action .dll which is not available on the server."
    I opened the WSS.Actions file in notepad, I dont see any line with *.dll in it. Am I missing something?
    #2: Another post says "The solution I discovered was that the server running my SharePoint Services was not up to .NET 3.0.  As soon as I updated to .NET 3.0 everything worked.I had made sure the machine running SharePoint Designer was updated, but
    had missed the SHarePoint Services server."
    The server is already updated to .Net 3.0.
    #3: I went to the %System Drive%\Documents and Settings\Local Settings\ApplicationData\Microsoft\SharePointDesigner.
    Deleted the ProxyAssemblyCache folder but no luck.
    Just checking if any one was able to resolve this issue by following any of the solution other than the above mentioned ones.
    Thanks,
    Cutloo

        I have the similar issue with my custom work flow. I have searched the whole day for the solution but no success, then at last a simple track works for me. Please try this if any one faces such issue.
    Basically the assembly that we have define in the ACTIONS file dose not exists on the server, because of two reasons, either we have given the wrong assembly name (in our case the namespace name inside our solution) or the PublicKeyToken may differ from the
    original assembly, that are deployed in GAC.
        So cross check both of these, in my case the assembly name was fine,
     <Action
        Name="Move Item to Another List and Send Email"
        ClassName="MyAssemblyName.Classname"
        Assembly="MyAssemblyName,Version=1.0.0.0, Culture=neutral, PublicKeyToken=4053d1fde8a1c781"
        AppliesTo="all"
        Category="Email actions">
    But the problem was in the 'PublicKeyToken', so i double click on the feature inside my solution,then in the bottom i have clicked on the manifest tab to check the entries.
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="MyAssemblyName Feature1" Id="f7f1bda0-5f65-40f1-a705-f6f15a41da3a" ReceiverAssembly="MyAssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0c32dbb769ed64b5"
    ReceiverClass="MyAssemblyName.Features.Feature1.Feature1EventReceiver" Scope="WebApplication"></Feature>
    Here i got the actual PublicKeyToken for my assembly (0c32dbb769ed64b5), i have replaced this number inside ACTIONS file, deploy the soultion, reset IIS.
    It works for me,

  • Files are not appended in the container operation step ?

    Hi Guys,
    I have a BPM scenario where i receive a single file with multiple transactions
    1. Receive step receives the file and starts the process
    2 Transformation Step - Splits the file into individual transactions
    3. Block step --ForEach - Block has the follow 2 steps    
            1. Send - Synchronus - sends the request of each individual transaction to a 3rd party system and receives the response.
           2. Container Operation: Appending all the responses into a single file.
        Properties of container operation:
    Target: Multiline element (Block level element)
        Operation: Append
        Expression: Single element similar to structure above with out multiline.
    4. Send Step: I am writing this file locally to a file and this always shows only the last transaction in case of ParForEachMode and first transaction in the case of ForEach mode.
    can anybody explain why the messages are not appending into a single file. any help would be really appreciated
    Thanks,
    Srini

    Hi Liang,
    Check to see if the Sync Send step send every reply messages it received to container operation step:
    You might need to remove the container operation to see if you receive each individual msgs.
    > I have removed the container operation and i am able to see all the individual responses which i basically written to file just to cross check and every thing looks fine.
    Another way to go to workflow log (Complete Process with all the steps) to get debug information:
    SXMB_MONI -> Click "PE" under outbound queue -> Press "Display WorkFlow Log" button -> Click List with technical details -> Click Show Work item Container
    Here you can see the container and XML message used in this process step.
    You might have information on how message be processed in this step
    > I have checked in the workflow log and workflow shows the container operation only in the case of  ParForEach mode and when the block is in the ForEachMode i dont see any container operation step in the workflowlog and even in the ParForEach mode the container operation dosent have any details.
    Your Container Element reference to response message should also defined in block level, since the response message only exist inside the block. However, using process level container element should not cause any problem
    > I have defined the response messsage at block level in the container and the target i have defined it as multiline element defiend at process level. This multiline element is taken as input in the transformation step at prrocess level.
    are there any other alternatives for this process, i dont understand why the container operation is not appending the elments.
    any help would be appreciated
    Thanks,
    srini
    Edited by: srinivas kapu on Feb 25, 2008 12:10 PM

  • Getting the offset of a placed PDF within the container rectangle

    I need to get the offset of a placed PDF inside of the container rectangle. I have figured out that this information should be available in the transformationMatrix of the placed file. So I do something like:
    var pdfTransform = pdf.transformValuesOf(CoordinateSpaces.pasteboardCoordinates)[0];
    var horzTranslation = pdfTransform.horizontalTranslation;
    var vertTranslation = pdfTransform.verticalTranslation;
    but the coordinates I get back are just weird. The horizontal value seems reasonable, but the vertical is way off what I expect.
    There may be some precondition to doing this that I'm missing. Running the pageitems/TransformValuesOf.jsx sample from the Scripting Guide also gives weird values. That sample creates a rectangle with a center point of [0, 0] and then retrieves the transform. I would expect the translation to be [0, 0] but I actually get [5, -415.95] (horz, vert).
    In that sample it talks about ruler coordinates, so I tried setting document.viewPreferences.rulerOrigin to different values, but that does nothing.
    I'm stumped. Can someone please give me a hint on what's going on here?

    Thanks Peter.
    Some more info: I basically want to get the coordinates of the objects in a placed file in the coordinate space of the containing document. As an extra twist, the placed file is a PDF created from an InDesign document. So, I first extract the coordinates from that InDesign file, then the coordinates for the document that contains the placed PDF, and finally I merge the coordinates of the two documents as if all the objects were contained in a single document. This workflow is then used outside of InDesign to draw frames around all the object boxes on a JPEG created from the document containing the placed PDF.
    Anyhow, to answer my own original question, this seems to work thus far:
    rectOffset = containingRect.resolve(AnchorPoint.TOP_LEFT_ANCHOR, CoordinateSpaces.PASTEBOARD_COORDINATES)[0];
    pdfOffset = pdf.resolve(AnchorPoint.TOP_LEFT_ANCHOR, CoordinateSpaces.PASTEBOARD_COORDINATES)[0];
    horzTranslation = rectOffset[0] - pdfOffset[0];
    vertTranslation = rectOffset[1] - pdfOffset[1];
    That gives the same values as I can see in InDesign when selecting the placed PDF. So far so good ...
    BUT, that is not enough! When placing a PDF using the default option of Crop to Bounding Box, I sometimes get a bit of extra margin (different for different documents) that offsets the translation values. I have no idea where this margin comes from but I need to compensate for it.
    Please help! And let me know if this description is unclear so I can try to explain better.

  • Element GRP is not available in the container

    Hi All,
    I am getting a error ''Element GRP is not available in the container'' whenever I try to create a PR and the workflow is triggered. I am using a custom rule to determine the approver. The workflow is not able to determine the agent and returns with the error message Element GRP is not available in the container whenever it is triggered automatically.
    But when i manually test the workflow manually it is working fine.
    Can someone tell me why it is happening and what could be done to overcome this error?
    Thanks and regards,
    Raj

    As you said
    "But when i manually test the workflow manually it is working fine."
    I think the problem is not with your rule ....
    you haven't specified when the error is occurring ...
    if its occurring in starting ..please check if your initial binding  ( For workflow triggering in header ) are right .
    please tell us where and when the error is occurring ...
    thanks,
    Naval bhatt

  • Workflow Step type for Container Operation

    Hi,
    A STEP in a given Workflow has to have an Agent? Can't I create a Step to get data from the DB into the container and that's it?
    I have created a container variable called "Grade" and I need to fetch the Grade of a User (WF Inititator) from a DB table and populate the "Grade" variable from the container that will be used in further steps.
    The Workflow gets kicked off but when it reaches the STEP, it stays there waiting for something (Action from a user?).
    Thanks & Regards,
    Ernesto

    Ok, now this is getting weird. Will try to explain what I am doing for one single step:
    1) I have my workflow. On PFTC I Have a workflow Template. Under the Container Tab I created a Parameter called "Grade" with the Import/Export check-boxes set and a "CreatedBy" parameter with the import/export check-boxes set as well.
    2) Then on the Workflow Builder I created a Step called Get Grade. This step calls a Custom Task and processes in the background so there is no agent determination.
        2.1) Here I have two bindings: a) Binding Between Workflow Container and Task and between Task and BO Method       
               Get_grade.  The Method Get_grade has 2 parameters (CreatedBy, that is an attribute of the Object and is an import
               parameteter and Grade that it is an import/export parameter).
        2.2) The Binding between the WF Container and the Task is like this:
                  &PROCCONFIRMATION.CREATEDBY& --> &CREATEDBY&
                  &GRADE& <-- &GRADE&
        2.3) Binding Between Task and Method is:
                 &_WI_OBJECT_ID.CREATEDBY& --> &CREATEDBY&
                 &GRADE& <-- &GRADE&   
        2.4) The Code for my method is:
    begin_method get_grade changing container.
    DATA:
          lv_grade TYPE zmm_app_req_info-grade,
          lv_userid TYPE zmm_app_req_info-requestor
    swc_get_property self 'CreatedBy' lv_userid.
    SELECT SINGLE grade FROM zmm_app_req_info
    INTO lv_grade
    WHERE requestor = lv_userid.
    IF sy-subrc IS INITIAL.
      swc_set_element container 'Grade' lv_grade.
    ENDIF.
    end_method.
    The only thing I need is to get the Grade parameter of the WF Container populated. This parameter will be used later on.
    Thanks & Regards,
    Ernesto.

  • How can i add one field in the container for the standard task-90310004?

    Hi,
    Please let me know thw steps to add one field in the container for the standard task-90310004.
    Usefull suggestions will be rewarded.
    Regards,
    Neslin.

    <b>Hi,
    Containers are used for holding Application data for Workflow purposes.
    Event container
    Task container
    Workflow container
    Role container
    Binding is the linking of data from one container to the other for making data available all across the workflow.
    But you can get values from one container to another container like this
    Container(Con)
    1. WF Con to Role, Wf con to task con, Wf con to event
    and
    2. Event con to wf con, task con to wof con
    and
    3. Method con to task con
    and
    4. Task con to method con
    So, we don't have direct possible binding from task con to task con.
    Thanks and Regards,
    Prabhakar Dharmala</b>
    Message was edited by:
            Prabhakar Dharmala
        But you can do pass values from first task con to wf con and again from wf con to another task con

  • AC20000027 - Element PURCHASINGCONTRACT is not available in the container

    Hi Experts,
    I created the simple WF. Start event - RELEASESTEPCREATED, object - BUS2012. WF have one step, task - "TS20000166 Release of purchase order". When I start my workflow in test run the status is set to "error" - "Element PURCHASINGCONTRACT is not available in the container", Message no. OL356.
    Testing the WF in transaction SWUD don't found any errors.
    Can anybody help me with this?
    Thanks a lot,
    Andrei

    Hi Andru,
    I worked on Release strategy for PO.
    I am SURE the Problem is with RULE, RULE is not returning any agents.
    The problem is that the rule (20000027) your using is not returning any agents.
    1. Just go to transaction PFAC and enter the RULE. go to display mode.
    Click on the second button in the application tool bar (SIMULATE RULE RESOLUTION - shift + F8 ) a popup sort of screen will be displayed.
    Now enter the PO number and Release code.
    Execute the DETAIL button in the middle of the popup screen.
    See if the rule is returning any agents.
    2. If the above mentioned test is successfully executed,
    Check in your workflow SWDD.
    Open your workflow.
    Double click on the RELEASE CODE workflow container element.
    Check if the structure defined under D.Type is - T16FC and Field is - FRGCO.
    3. If even the 2nd point is correct,
    Check the binding for the step '0000000004'
    In the binding, Pass the Busines Object BUS2012 (Purchase order) and RELEASE CODE (T16FC-FRGCO) that are present in the Workflow container. and check if they both are import and export parameters.
    3. You are sure that the agents are specified in SPRO (under Material management >> PURCHASING >> Purchase order/CONTRACT >> Release Procedure for PO/CONTRACT >> Define release procedure for PO / CONTRACT >> WORKFLOW )
    If you double click on WORKFLOW, you will see that the AGENT IDs are assigned to the Release Group and release codes of Purchase Order.
    Eg: Release group       Release code  Agent Type        Agent ID
                01                          L1               US                SAPUSER1
                01                          L2               US                SAPUSER2
                01                          L3               US                SAPUSER3
                01                          L4               US                SAPUSER4
    Try all this and tell me the result.
    Regards,
    Gautham Paspala

  • Get the approvers for the container and role combination

    Hi Abap Gurus,
    Is there any alternate FM for RH_RESOLVE_RESPONSIBILITIES . Please find my code and Questions in a nutshell !!
    FM Used - RH_RESOLVE_RESPONSIBILITIES
      CALL FUNCTION 'RH_RESOLVE_RESPONSIBILITIES'
           EXPORTING
                act_object      = p_role
                search_date     = sy-datum
           TABLES
                ac_container    = p_t_accontainer
                actor_tab       = p_t_appr_temp
           EXCEPTIONS
                no_active_plvar = 1
                no_actor_found  = 2
                parameter_error = 3
                OTHERS          = 4.
    p_role = AC94000016
    sy-datum = 20070829
    p_t_accontainer is an INternal Table HAving fieldsas Elements , TAB_INDEX , ELEMLENGTH , TYPE and VALUE.
    ( The above Internal table Contains 6 Records )
    p_t_appr_temp internal table contains fileds as OTYPE , OBJID . ( For Ex - Otype = 'S' and OBJID = '60037892' or Otype = 'US' and OBJID = '10029646' where
    S - Position and US - User )
    Question-:
         Problem is that This report is failing to fetch the Data for the user because of the lack of assignment of the workflow role  with the necessary user access or authorization . Now Even though the role is there the necessary authorization fails because of the period of the waranty . So as also in the FM Because of the authorization check it fails to fetch the data . My Question is that is there any other FM or Turnaround method to avoid this authorization check ? Also if you have any clue of accessing the Functional sequence logic of accesiing the tables to arrive in the same result will be highly appreciated !! Thanks in Advance
    Creg !!

    No ANswers frinds for this yet ?

Maybe you are looking for

  • Create Request Error in BI 7.0 - URGENT

    Hi Team, I'm collecting the objects for the cube using the data flow before and collect automatically mode. When I create a request I'm getting the below error message. Error MEssage Changes cannot be made, display user only Object IOBJ ZAPSAFETY cou

  • DVD player doesn't play some DVDs

    I've had my macbookpro for several months now. I've been mostly satisfied, but the DVD player seems to be messed up. I have never had a problem with software or CDs, but every once in a while, the DVD player will not play movies. Most of the time, th

  • Unable to Initialize the Plannig Area

    Hello, While initializing the planning area for DP, we are getting the below error. Job started Step 001 started (program /SAPAPO/TS_PAREA_INITIALIZE, variant &0000000000017 ABAP/4 processor: DBIF_DSQL2_SQL_ERROR Job cancelled When checking the consi

  • HELP!! "timed out" submiting video podcast through iweb to itunes

    I am trying to submit a vid podcast through iweb to itunes and am getting a timed out message. Please help. I have read other posts similar to my problem, and have checked to see that all of my fields are filled in. Don't know what the deal is. thank

  • Forgot administrator name

    i am trying to download the new version of itunes and quicktime etc and for me to do updates i have to enter my user name and password. i know my password is correct but i don't know about my user name. how do i find this out? i am using the new vers