Attachment of TRIP Details Summary to User decision

Dear WF Experts,
         I have a requirement from the user to have the TRIP details as an attachement in UWL as well as in mail to all multi level approvers. Can someone guide me how to go about this?
Regards,
Vaibhav Patil.

Hi Vaibhav,
First you will have to convert ur pdf output into Binary format with the help of FM 'SCMS_XSTRING_TO_BINARY'. then pass this to your workflow container. and create one activity step in which u will have to create one method.  In that method just convert ur binary data to XSTRING format with the help of FM 'SCMS_BINARY_TO_XSTRING' and then use FM 'SAP_WAPI_ATTACHMENT_ADD'.
So finally you will get one attachment id. and then just do the binding . You will get attachment in Attached_objects.
Smit Shah

Similar Messages

  • How forward User Decision attachment to previous approver?

    Hi all,
          I would like to forward the user decision work item - attachment notes to the previous approver. how to forward this?.
    In my workflow i have four approvers. if  2nd approver rejects/approves the work item using user decision and he is typing the text in the attachment by clicking attachment button in the work item user decision display. Now i would like to send this to the previous approver ... how to do tis?
    Regards,
    Roops.

    This attachment will be stored in the AttachObjects container eleent in Task 300052. You need to bind this container element in  AttachObjects  of Workflow container and create send mail step with this attachement being sent to the 1st approver.
    For all this it is better to copy standard Wflow and change accordingly in your custom Workflow.
    Thanks
    Arghadip

  • Smart form attachment in User decision step

    Hi,
    i have a requirement to display Smart form in user decision step along with Approce and reject buttons.
    Please guide how to attach a smart form in workflow.
    Thanks.
    Edited by: Sanjay_lnt on Jul 10, 2010 8:13 PM

    Here are some codelines may help you.
      CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
        EXPORTING
          region                = 'B'
        IMPORTING
          folder_id             = lv_folder
        EXCEPTIONS
          communication_failure = 1
          owner_not_exist       = 2
          system_failure        = 3
          x_error               = 4
          OTHERS                = 5.
      lv_object-objla    = 'EN'.
      lv_object-objnam   = 'MESSAGE'.
      lv_object-objdes   = p_name.
      lv_object-file_ext = 'PDF'.
      CALL FUNCTION 'SO_DOCUMENT_INSERT'
        EXPORTING
          parent_id                        = lv_folder
          object_hd_change                 = lv_object
          document_type                    = 'EXT'
       IMPORTING
          document_id                      = lv_doc
       TABLES
         objcont_bin                     = it_objcont_bin " Your binary file data
       EXCEPTIONS
         active_user_not_exist            = 1
         dl_name_exist                    = 2
         folder_not_exist                 = 3
         folder_no_authorization          = 4
         object_type_not_exist            = 5
         operation_no_authorization       = 6
         owner_not_exist                  = 7
         parameter_error                  = 8
         substitute_not_active            = 9
         substitute_not_defined           = 10
         x_error                          = 11
         OTHERS                           = 12     .
    Now pass the folder details to AttachObjects of BO type SOFM
    Edited by: Saurabh Thalpati on Jul 14, 2010 12:20 PM

  • User decision history report, workflow summary log

    Hello SAP Workflow community,
    In our project there is a task to implement User Decision history/log management. I want to get programmatically (via ABAP, in order to be able to store this data in DB too) the history all user decisions (statuses of all User Decision work items) inside of specific workflow and send the summary report to the workflow initiator/workflow administrator upon the workflow completion.
    After some search I found the complete set of relevant function modules under SAP_WAPI_WORKITEM_*, where you can get detailed information per work item, including their statuses, but I'm not sure, that this is the best practice to implement such task.
    Of course, we can go «brute force» and built such log manually: to log each user decision and store it in multiline container and after that find some way to send it to the desired person. But I'm pretty sure, that there must be another way, should be some standard, SAP-provided way to build such summary report. Could you, please, point me to the relevant directions.
    The Bottom line is at the end of each workflow execution I want to send to workflow initiator the report with list of all User Decisions, their statuses (approved/declined) and username, who took the decision.
    Thanks.

    GOS->workflow->workflow overview should show the workflow log showing the status of the workflow until now (workitem name/start data & time/end date &time/decision/status/user name).
    Table swwwihead has the fields wi_cd (creation date) wi_aed (end date) and wi_aagent (actual agent)
    Table sww_wi2obj has the link to the object.
    Table swwloghist has the workitem history.
    You could use the way suggested by Karri, since the decision is hard to read directly. But for workflow reports,I usually use BW see Workflow reporting in BW – extractor improvements

  • Sending Mail with attachment like User Decision

    Hi,
    Is there any way to send the document attached with the send mail step ? In User Decision, we can use binding between the workflow and task and document is attached. Like wise, is there any method ??
    I know we can send the attachment using the FM SO_****. So don give that answers. I want to know without using the FM, is it possible or not ?
    And i don want to use BO SOFM.
    For example, in Project Definition, one person creates a milestone. WF is triggered and goes for attachment of concorrence note. One attaches the concorrence note and mail is send to initiator. In that mail, can he able to see the attachment ??

    As far as I know the answer is "probably". You aren't saying how the mail is sent to initiator, you just say you don't want to use the FM or the BOR object type SOFM. I assume you are using the standard sendmail step type, i.e. BOR object type SELFITEM with method SendTaskDescription.
    As I am sure you can imagine, an attachment doesn't magically appear. If you send a workflow step (task) to someone, you can bind attachments to make them available in work item display. If you send a message you can construct it with attachments, but that doesn't happen without any effort. If you look at the parameters for SendTaskDescription you will see that there is a parameter for attachments. Try passing (binding) a value to it. If your SendMail task doesn't include that parameter as importing parameter you will of course have to fix your task (TS object) first.

  • Attachment in WORKFLOW user decision step

    Hi all,
    My requirement is to display a link in user decision step.
    When link is clicked, control should navigate to MM02 transaction.
    Also in following user decision step i need to provide link for smart form in user decision.
    Can anybody please guide in detail .
    Thanks.
    Edited by: Sanjay_lnt on Sep 26, 2010 1:14 PM
    Edited by: Sanjay_lnt on Sep 26, 2010 1:15 PM

    Closed.

  • How To Send Invoice List as attachment in User Decision Step?

    HI All,
    I have developed a workflow in which there is one ZMETHOD in which i will get the list of invoices.and that i want to send it as attachment to User Decision Step.
    How to do this?
    Regards,
    Arpita

    If your users will have access to MIR4, why not just bind the business object BUS2081 as an adhoc object into your decision step?  That would solve everything pretty nicely, I think. 
    Regards,
    Sue

  • Attachment in workflow user decision

    Hi All,
    Can anybody let me know how to use attachment in workflow user decision box? My requirement is I have one internal table and I want to display the data of the internal table as an attachment.
    Thanks,
    Salil.

    HI,
    Go thru thi link
    http://help.sap.com/saphelp_nw04s/helpdata/en/8d/25f131454311d189430000e829fbbd/content.htm
    Thanks
    Sunil

  • Creating attachment in User decision activity.

    I am running a background ABAP report and the output of report is to be attached to the WI for user. The user will receive the decision step with attachment which includes report output as excel.
    please suggest how can I achieve it. How can I attach report output to WF that will be going for user approval.

    Hi Verma,
                      To show Output in Excel Format use document form Template step type and immediately followed by User decision so that when the user executes he will first see the excel sheet then he can take a decision on it.
    If u want a display on the same user decision step type then make that method as default methos and bind it to the USER Decision container.
    Regards,
    Dheepak

  • Adobe form as attachment to user decision step

    Hi,
    i need to add adobe form as attachement to user decision step in workflow.
    1. i created activity step which call business object method with parameters workitem id
         i am using FM  SAP_WAPI_ATTACHMENT_ADD’  which will return attribute id
         i am passing that attribute with document id to 'ZSOFM'
            ZSOFM <-----------------------------------ZSOFM (Method to task)
          Bindings 'Attach_objects'  <------------- ZSOFM(Task to Workflow).
    2. i created user decision step
        Bindings  'Attach_objects' --------------------> 'Attach_Objects'( Workflow to user decision task).
    but when we execute first activity step in background i am not getting any PDF output .but when we  execute same method from class i can see pdf data is coming is it due to user name WF-Batch.
    when i execute activity step in back ground which will have sy-uname as WF-Batch i am not getting any PDF output data.
    please help how to solve .
    Thanks,
    Phani

    In transaction SWO1 create a z-object lets say zmyobjpdf (you might want to use it as a sub object of your standard object without delegation since they will probably have the same key).
    create a method in that object calling the adobe form.
    set it as the default method in the object header.
    now create an instance of the zmyobjpdf in the workflow for example as an attribute of the original object) and transfer it to the decision task.
    It will be displayed as an attached object pressing it will call the default method - your adobe form.
    If your question was about how to create a function module to display the form see SAP Library - PDF-Based Forms

  • Attaching HTTP Links for User Decisions?

    hi all,
    how can we attach HTTP Links along with User Decisions. i have previously attached Business Objects as links along with approve/reject button but this time I need to attach a HTTP link.
    Points will be awarded.

    hi ravi,
    the basic requirement for me is that the frontend is going to be Webdynpro Pages controlled with a workflow in the backend. say if a personnel submits a form, it has go to the person's manager for approval.
    So while approving it, if incase he wants to see the approval information, he would click on the URL which comes with the User Decision. this is the precise requirement.
    Regarding Javascript code, where can we write the java code for URL's. is there any standard template which follows the same requirement.

  • Attach PO to User Decision

    hello Experts,
    My Question is really simple , as i'm pretty new to workflow i just want to ask . How to attach PO (ME21N) to a user decision step?
    Best Regards

    Hi Ahmed,
    In before step(which can be a background activity), in your method Create a reference to the PO Business Object and Export to WF.
    Bind it to ATTACHOBJECTS which is a WF contianer Element. And bind ATTACHOBJECTS to the Decision step task container
    element ATTACHOBJECTS.
    SWC_CREATE_OBJECT <obj variable>  <Business Object> <PO Number>. " Obj variable of type TOJTB
    This creates an attachment to the transaction.
    Hope this would solve your issue.
    Regards
    Narin

  • Dynamic name for attachment in User Decision

    Hi...
    I have a requirement wherein the name of the attachment in the user decision has to be populated dynamically. I am using the same BO method for user decision but is triggering 2 different objects. Please advice on how to achieve this.
    Scenario - I am using BUS2081 for Invoice and for Credit Memo. If the credit memo is created, the approver has to see the name of the attachment as Credit Memo xxxx and if an invoice is created, he has to see the attachment as Invoice xxxx. As standard, whatever object is created, the attachment name is Incoming Invoice xxxx (name of the BO Object Bus2081).
    Warm Regards,
    Jubish Jacob

    The object name is static but the default attribute can be changed (use a z-subobject and delegate back) so you can do something like this: instead of: incoming invoice(object name) 12345(invoice number - default attribute) you will have document(new object name) incoming invoice/credit memo 12345(document type & number concatenated - a new default attribute)
    Another option - I think credit memos have an object (BUS2094) or you can create one - in the task have both object types in the container, when its a credit memo transfer only the credit object when it's an invoice transfer only the invoice object.

  • Attachment in user-decision

    Hi everybody,
    I have a user-decision in which i want to show an attachment (in this case a list of changes) in order to give the user a document/list to make a clear decision.
    So I don't want the user to create an attachment but the attachment has to be automatically created by the workflow.
    It's likely to be a very simple question for you guys but I'm quite new in WFM. Any help is welcome.
    Regards,
    Bert

    Hi Bert,
    If you have already created the attachment (Object Type = SOFM) through a Task method, then just bind that directly to AttachObjects. This will then appear as a link under the 'Objects & Attachments' column of your Decision Step Work Item.
    If you haven't created the attachment, then you will need to create a task with a method to generate this list and then bind that out to the WF container. Next, just bind that WF container into the decision step task container (ie AttachObjects) and this will appear as a link under the 'Objects & Attachments' column of your Decision Step Work Item.
    Hope that helps.
    Tom

  • Container Operation step in User Decision

    Hi,
    I have used one set container operation step in one of the user decision task. But it seems it is not working inside the user decision step.
    I have checked the SWI1 log as well, but it is bypassing it.(screen shot attached from Workflow and SWI1).
    Please sugegst that can we use container operation step inside the user decision task.
    SWI1 log as well ( Not setting the variabl)e
    Regads,
    Priyanka

    Hi,
    check if in the workflow definition you mention if this step should be shown in the log or not. Also make sure using the technical details option in the workflow log that indeed the container operation was executed or not.
    If everything seems correct, but still in execution it skips something, then your workflow definition might be corrupt, either fix it by deleting the step in development, saving it and then recreating it. Or if it was corrupted after transport you could try your luck with function module SWD_REPLICATE_FROM_9999.
    Kind regards, Rob Dielemans

Maybe you are looking for

  • Retail Question - Win 8 Pro - Obtaining and Licenses

    The responses I've read through appear to be as late as 8/2013. It is now 2/2014. I am performing a new system build (New SSD, pre-existing CPU/MOBO). I want a complete/full retail version of Win 8 Pro. I believe my current installation is corrupt an

  • Retrieve Message ID as File Name

    Hi Everyone, I am doing file to file Scenario.      I have the following structure <?xml version="1.0"?> <message id=u201DmessageIDu201D> <header> </header> <body> </body> </message> I want to get retrieve MessageId and get this MessageId as File Nam

  • Error occured while communicating with web server

    In Netweaver if you receive this error  " error occured while communicating with web server " check your script logic file if you have mande any change to dimension names Vinoo

  • Help with Blackberry Protects

    My phone fell into water and is destroyed. i have a extra temporary blackberry tour to use. i have saved my data daily by blackberry protects. my problem i sthat my blackberry does not connect to the internet. if i have my contacts on the BB Protects

  • *** How do I delay the "play movie" coming up?

    I would like to have the buttons in my project appear 30 seconds after my quicktime background starts. I've made the quicktime background 30 seconds long and then I'd like the "play movie, slideshow, etc...." buttons to appear after the movement of t