Attachment binding issue in workflow

Hi All,
I have used FM 'SAP_WAPI_ATTACHMENT_ADD ' in method of my workflow. Here after executing this FM i m getting id of the attachment for this workitem. But now i need to assign this to  '_Attach_Objects' of workflow container. so please help me for this binding issue. which i need to bind from method to> task to> workflow. so from next step onwards in workflow i will get that attachment.
Smit Shah

Hi,
1) In the T.code SWO1, you have to create a custom method for the BO, there execute that method and check whether it working fine
2) Then goto  T.code PFTC and Create a Task (Task no. will generate automatically), then call this method and generate the binding
3) Goto  T.code SWDD and call that Task by assigning that Task no. and assign the binding
Then test your workflow.
For the Binding see this [link|http://help.sap.com/saphelp_nw04/helpdata/en/c8/bfc39b0fc57a49a0291378f8be0cd6/frameset.htm].
Regards,
Surjith

Similar Messages

  • Workflow attachment link issue

    Hi Friends,
    We have a query-
    An attachment is sent in workflow to a person.
    There are three reminders to the manager but he misses all and now when he looks into the workitem he can see the workflow but when he clicks on the link for an attachment(attachment is displayed as link) he is not able to open the page for attachment.
    Can you tell me what may be problem or how to rectify the problem.
    Please note that the workflow can still be seen in process but the reminders are missed, the only problem is with attachment link which cannot be opened by user.
    we can see the attachment in R/3 but not on portal why is it only for 1 user.
    Awaiting your response at earliest.
    Regards,
    Ameet

    Hi,
    Try out Tcode SWUI_VERIFY there are sample workflows which may help u to get the answer as I got the same from there.
    Regards,
    Ameet

  • Workflow issue - Main workflow container elements are not updated.

    Hi All
    We have implemented N-step badi for approval process and for this we have activated one workflow which contains subworkflow .
    During approval process , only the subworkflow container elements( approver list and last approver) getting updated with status and time.But main workflow container elements is not updating with these details.
    Binding between main workflow and subworkflow is perfect. But reverse binding ( from subworkflow -> main workflow ) will take place once subworkflow is completely finished. But here we will require / need to pass some information from sub workkflow to main workflow when still subworlflow in process( before completed itself).
    Please let me know is there any process / steps is required to pass values between subworkflow to main workflow ( binding is perfect).
    Please let me the way how I can update the main workflow container from  subworkflow container or from any step in sub workflow .
    In subworkflow . we have loop of  approvers and it will send workitems to approvers one by one.
    Here i need to update Main workflow with the information like last approver and approver list with status and approved time.
    So please suggest how Can I update main workflow container from subworkflow while subworkflow is still in process( subworkflow not yet completed).
    Kindly reply me ASAP.
    Thanks and Regards
    Madhukar .

    Yes I am setting SWC_SET_ELEMENT for my container values,the ones for which i have defined as EXPORT.
    And I have checked the task also...
    Everything has been checked properly..The binding is fine.
    Thanks & regards,
    Ravikiran Kallimath

  • CAT2 - Issue with workflow task TS20000460

    Reposting the query in ABAP General Section.
    CAT2 - Issue with workflow task TS20000460
    Waiting for any suggestion?
    Edited by: Amit Khare on Sep 10, 2009 3:01 PM
    Closing due to no responses.
    Edited by: Amit Khare on Sep 10, 2009 3:40 PM

    Hi,
    Could you figure out why the event linkage is breaking when you make it Gen.Task? I think, there is some problem in your wflow template. May be do a Syntax Check in the testing environment. If that time, some error happens, then by the System Defaults in the Event linkage SWETYPV, it will deactivate the linkage.
    I don't think this has got anything to do with you making TS as Gen.Task. Did you see the even trace to see what's the error for linkage breaking ?
    More info. would help in identifying the issue.
    Regards,
    venu

  • How to attach file in a workflow

    Dear all,
    I want to attach a  file with workflow mail.
    can anybody tell me about this...
    regards ,
    Piyush jain
    Edited by: piyush jain on Mar 16, 2009 12:12 PM

    Hi Piyush,
    After bringing your final alv data in the final internal table,
    go through this link , i also had an same requirement to send data after converting to excel file and
    send it as an attachment to mail id outside Sap,
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/to%252bsend%252b2%252bint%252btables%252bdata%252bas%252btwo%252battachments%252bto%252bmail%252bid%252boutside%252bsap%252bsystem
    Check here the parameters which i have passed in that function module.
    Hope it helps
    Regrds
    Mansi

  • _wf_initiator binding issue

    Hi,
    I want to pass the wfinitiator variable to my method .So i have created onecontainer in the  task ,user and passed that task to the binding .And in the method I am getting that container as SWC_GET_ELEMENT container 'user', user.But while debugging i can see after this SWC_GET_element statement,sy-subrc = 8.
    the container is not getting assigned with the value_wf_initiator.

    Hello Priya,
    Please recheck whether you have created the variable to pass the workflow initiator as the same type as WFSYST-INITIATOR in the task container and the method container. Then check for any binding errors from workflow to task and then from the task to the method container. Recheck for the checking of Import checkbox of the variable created in the containers.
    Then use the statement "swc_get_element container 'user' user." Hope the variable name is user in the method container and is import enabled.
    Hope this will help.
    Thanks,
    Samson

  • A data-binding issue with a combo box.

    Hi,
    Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record when it is set to 3, it is stored as 1.  However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3.  If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box.  It looks like the combo box is correctly bound for updates but not for adds.  The table is a master type UDO.  Any ideas?  Iu2019m somewhat committed to the field being an integer.  I'm using 2007A PL47.
    Thanks,
    Mike
    Edited by: Mike Angelastro on Jul 1, 2009 2:43 PM

    I tried a few things on my own.  The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field.  I donu2019t think the SDK can handle it.  The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons.  Option buttons use an integer (numeric) field.  This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records.  I thought that using a combo box instead would fix that.  I was wrong; the problem remained.  So I decided to use a character (alphanumeric) field instead.  This works just fine.
    So here is my advice:  Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database.  But use a character (alphanumeric) field.
    Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM

  • [svn:cairngorm3:] 17187: Fixed binding issue on the source property of the contact's picture

    Revision: 17187
    Revision: 17187
    Author:   [email protected]
    Date:     2010-08-04 13:44:35 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactForm.mxml

    Revision: 17187
    Revision: 17187
    Author:   [email protected]
    Date:     2010-08-04 13:44:35 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactForm.mxml

  • [svn:cairngorm3:] 17186: Fixed binding issue on the source property of the contact's picture

    Revision: 17186
    Revision: 17186
    Author:   [email protected]
    Date:     2010-08-04 13:43:41 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactForm.mxml

    Revision: 17186
    Revision: 17186
    Author:   [email protected]
    Date:     2010-08-04 13:43:41 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactForm.mxml

  • Issue in workflow binding of Table in send mail step

    Hi All,
    I am working on a Travel Management workflow where mail needs to be sent to the manager along with the trip details.
    We are displaying data in tables (html format). Now i need to add another such table with details into this already existing workflow but i am facing issues in binding.
    Issue: For already existing tables, the binding is like this,
    Export to task,
    &TRIP& --> &T_SUMMARY##&
    Import to w/f,
    &T_SUMMARY##& <--- &T_SUMMARY##&.
    But when i am trying to add my table in binding as, &TRIP& --> &T_MILEAGE##&,
    I am getting a binding error, &T_MILEAGE##& is not available in the container.
    I checked the container both in workflow and in task, both contain multiple declarations of the variable &TRIP& which is of type the BO.
    Kindly help me how to proceed further.
    Regards,
    Jose

    Hi Anjan,
    The status of  note  1658491 is also cannot not be implemented.
    I checked the correction given in this note. All changes exists into system.
    Following is code of method SEND ( (CL_SWF_UTL_MAIL_FACADE)
    *- check if document has recipients at all
           lt_recipients = lo_send_request->recipients( ).
           if lt_recipients is initial.
             lo_send_request->delete( ).
             ls_t100msg-msgid = 'WZ'.
             ls_t100msg-msgty = 'E'.
             ls_t100msg-msgno = 619.
             raise exception type cx_swf_run_wim
               exporting
                 t100_msg = ls_t100msg.
           else.
    *-       Send document
             call method lo_send_request->send( ).
           endif.
    The exception is thrown, because lt_recipients table is blank.
    With same parameter the workflow is running successfully if 'Long mail title' is not set in SWPA.
    When is field is active, workflow returns message Document <> could not be sent
    The method "SELFITEM->SendTaskDescription" does not send mail if Long Mail Title" indicator is set .   
    Thanks & Regards,
    Mounj K

  • Issue in workflow related to PO

    Hi,
    A monthly job is scheduled to create PO's in SAP by using an Unix file in the application server which has the required details. Workflow would be triggered for all the error PO's after the job run. The workitem recieved displays all the error PO's on a screen and the user is given the option to reprocess the error PO's from the screen itself once the errors are rectified. This whole requirement is done using the files in the application server.
    The main problem which i'm facing is that the file into which the error PO's are written into the file for this month run would be overwritten with the other records for the next month run. User may take months to reprocess the PO's. so my requirement is that when the user clicks the workitem of this month run then the screen should display the relevant records and when he clicks the next months workitem he sh'd be able to view the error PO's of the next month. As of now, the old workitem displays the new error PO's as the contents of the file are overwritten for the next month run. Also i don't think the creation of a new file for every month is not a better option. suppose if i do that then how would i link the workitem to the file when the execution is done with the same program.
    Please help me out as the issue is a bit urgent
    Regards,
    Sam

    In order to do that you have to explain how your solution works.
    How is the workflow started? The date should be passed in the workflow container, and you should thus add a new importing container element for it. Alternatively, if the previous is not feasible, can you assume that the workflow is started the same date (or with a fixed offset) as the file is created. If so you can set the date in the workflow instead of passing it as a parameter.
    The date will of course have to be passed on to your step, and from your step to the BOR method you execute. This however, is just a matter of binding and importing elements, and I assume you are able to solve that on your own.
    What is this report you have mentioned? SAP standard? I assumed it wasn't. If it is a customer report, you will of course need a new selection screen parameter, and when your BOR method submits the report (or alternatively calls the transaction) the date must be passed as one of the parameters.
    Hope that helps, but if it doesn't you have to be MUCH more specific in your questions. You have to explain what you are trying to do and what your starting point (current solution) is.

  • Issue in workflow workitem that gets triggered to two users at one time.

    Hi All,
    Below are the query  details:
    Module:  HR
    Area:      Workflow
    Process: Hiring
    There is an workflow in HR module that is triggered when an hiring action is run against an candidate.
    There are two or three maximum approvers  which is based on the position to which the candidate is hired.
    Issue:
    During the hiring process some times the workitem is getting triggered to two users at once.
    One is the actual approver who should receive the workitem in his UWL and other is the user of our service center who is no where involved in the approval process.
    Analysis Done:
    We checked the workflow log and found that the actual approver's ID is getting displayed under agent and workflow is complete. But the other user's ID is no where shown in the log but he has received an workitem in his UWL that makes the issue still confusing.
    Awaiting for experts suggestions.

    Reply to Susan Questions:
    You say that 'the workitem is getting triggered to two users at once' - do you mean that there are two workflow instances that are being kicked off at the same time when the hiring action is performed? Or is it that the workflow is generating two tasks that go to these different users?
    Ans : There is a single task attached to the activity.
    Is this a custom workflow?
    Ans : Yes.
    Are you certain that the erroneous task is only going to the user in the service center, or is it perhaps going to everybody (marked as a general task)?
    Ans : The task is marked as general but the workitem is received by only one user of the service center at a time.
             As this issue has taken place 4 times in the past year all the 4 receiver were different belonging to different position.
    Reply to Pavan Questions:
    1. Did you try to check the SPRO settings with respect to Hiring Process ,is there any where based on the position does workflow is forwarding the workitem to the other user.
    2. Check the other user Roles and in the Org Structure where he is located , there could be a possibility of wrong position holding.
    Ans : We checked the org structure, but org structure of both the centers are different and independent there is no linkage    between the two.
    *3. IF you are using custom workflow then check if any standard workflow is also getting triggered. Check *
    Ans : Yes this is a custom workflow, but no other Standard workflow is being called.
    4. Check in the SWEHR3 is any custom entries maintained.
    Ans : No, entries are maintained in SWEHR3.
    Additional Info :
    The task that triggers the workitem has an send mail step before it.
    The send mail activity is to notify receiver that there is an workitem lying in the UWL.This mail is received by the actual user and not by the other one.The next step is the task that creates workitem which gets triggered totwo different IDs.
    This scenarios mostly has come up when the number of approver is 1. If the approver is more than 1 the  workflow runs fine without  deviating the workitem to any worng user.

  • Container binding issue

    Hi All,
       I have modified a SAP workflow and seem to have problems ppassing sata between steps, The first step I use object CA_WRTOFF method Write-off. This completes a write off. After this step variable DOCUMENTNUMBER is filled with the created document number.
    In the next step I want to display the document, I use object CA_DOC method display. The main parameter it neeeds is document number. I try to use the generate binding. It will pass &CA_DOC& to &_WI_OBJECT_ID&. from workflow to step, both these objects contain document number.
    However when I look in SWEL at the display document step &_WI_OBJECT_ID&. says no instaance under value? How can I populate this value. I try to manually add document number to the binding but am told I cannot use &_WI_OBJECT_ID&.  as a target. I have CA_DOC set as inport and export. Any idea's?? I am on a 4.6 system
    Thanks

    Hi First of all thanks for your patience,
       Second I seem to have passed the document number but it still is not actually passing to the document number field in trans FPE3 (I mentiooned FP08 in error before, that is ultimately my goal which I will clarify)
    Ok here is what I am trying to accomplish
    The original SAP wrtoff workflow CA_WRTOFF activates with event FP04 create writeoff, my company does not like the fact that when it goes to an approver the writeoff is held in limbo. This allows others access to the write off amount. So they have asked me to restructure the workflow.
    The event link as above is CA_WRTOFF with event trigger approval required as above, the first thing I do in the workflow is complete the writeoff with object CA_WRTOFF method writeoff. I then send a user decision to the approver asking if he wants to display document, accept write-off, reverse write-off. I use CAA_DOC display for the display as CA_WRTOFF does not have document number associated with it.
    In the last few moments I changed my binding in the display to coyp all elements except system, this has passed the document number to the display container. When the approver clicks on the display item it brings him to transaction FPE3 but does not populate the document number in FPE3. So the real issue is to have the display method take the approver to FPE3 and fill in the document number so all the approver has to do is hit enter.
    Again thanks for your time and patience, Much appreciated. I am an ABAPPER but quite new to work flows.
    George

  • LCM issues with Workflow, Task Lists, etc.

    I have found several issues with migrating certain artifacts using LCM v11.1.1.3. Note that I have admin rights in all systems, and that there are no special characters involved. So...
    1) Workflow: when migrating Planning Units all of them migrated, including their statuses. But not all PU comments (<annotation>) and logs (<log>) nodes migrated. It happened to almost all users - some who had 1-2 comments in the source system haven't got any in the target one, some got migrated only few (e.g. out of 5 in source, they got 3 in target). Since it happened to all users, it doesn't seem to be security. I have also checked (for those who partially failed) some other nodes, sequence, action, process state - they all seem to be OK. One curiosity I've spotted in few cases, is that in source LCM file (.xml) "priorOwner" node has the name of the user I am investigating, while in the target file (taken after the migration), for that same PU, that node is empty, actually says "null".
    Any ideas why this might be happening?
    2) Task Lists: when exporting TLs (in LCM) on occassion <dataForm> node in XML file would be missing for the task that actually has it attached. Again, no special characters are used, and I am admin. Then I tried to use TaskListDefUtil, and even if that list has required node, when I try to import, the task is still not attached to the form. I had to delete all TLs, then use Util files to reimport.
    Anyone with similar experiences?
    smilo

    I had issues with tasks lists using LCM in instances where parent task name was same as child task or a task has same name planning web forms. You might also find issues with exporting webforms with business rules attached to forms where form is on plan type A and business rule is on plan type B. In this case, after LCM import, plan B business rule will lose location reference to correct plan type and get associated with web form plan type. In this case you will need to attach business rules again.

  • Attach Invoice to CRM Workflow Task

    Hi All,
    My requirement is to attach invoice as an hyperlink to the userdecision step. The Object Type is VBRK, Which is non-exisiting in CRM. I am working on SAP 4.7 version.
    I have the invoice number attached to the Activity in CRM. Are there any exisint FMs for attaching the Business Object by making an RFC call. Searching for want of solution to this.
    Thanks.

    U can try following thing ,
    Create a container of your  BOR type for in the decision task .
    Bind workflow BOR container to Task BOR container .Try executing your workflow
    I am not sure weather this will work or not but you can have a trybecause in pure ECC it works.

Maybe you are looking for

  • My hard drive crashed.  How do I get the music I purchased from itunes back?

    My hard  drive crashed.  How do I get the music I purchased from Itunes back?

  • Delete photos in iphoto not deleting photos from iphone

    I import photos into IPhoto. Then when Iphoto asked to delete imported photos I click yes however they don't actually delete?  The next time I try to import photos they are all there. I went into Itunes to check if my photos were synced and they are

  • ORA-01591: lock held by in-doubt distributed

    Hi All, We are using oracle 8i to communicate informix through oracle 8i gaeways. we are getting ORA-01591 from quite a few days , the application team complains about the in doubt transcation issue. we tried to investigate and found the local and gl

  • Customer Dunning

    Hi, I m trying to configure Customer Dunning and following the following process: Define Dunning Area OB61 Define Dunning Process FBMP Assigning Dunning Process in customer master. I follow the steps mentioned in another poet on SCN but i am unable t

  • How do you change the face of Mozilla

    Behind Firefox Start its got white back ground , how do you change the face of Mozilla