Regarding Attachment in User decision activity:SOFM

Hi all,
I have created a smart from in my ABAP code and converted the form to PDF and then  OBJECT key for creating attachment.
My object key is FOL33000000000004EXT35000000000164.This object key is in abap code in field of table with format
SWR_ATT_ID-DOC_ID.This abap code is in my method in my z-Business object used in workflow.
Now i need to send this key value to SOFM in workflow this SOFM is in BO format in workflow.
As a result type conflicts and SOFM is not getting instantiated in Workflow.
I need to get thsi key value in my workflow SOFM.
Please guide.
Thanks.

You can use FM
SAP_WAPI_ATTACHMENT_ADD
Check this link.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29
Thanks
Arghadip

Similar Messages

  • 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

  • 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

  • Workflow: User Decision Activity doesn't work

    friends,
    URGENT!!!
    I've created a User Decision Activity but it doesn't work.
    It sends a message to SBWP but there the user hit APROVE  OR REJECT, and instead it work, it simply show another screen with only a button labelad "Cancel and keep work item in inblox".
    It simplily doesn't folow.
    I've created an method that executes a standard function 'EDITOR_TABLE' that call a screen to the user put a description text for the rejection. It's market 'Advance with dialog'.
    thanks
    Glauco
    Abap / Workflow Consultant
    msn: [email protected]

    Hi,
    Your patch level seems to be OK.
    pls. try the declaration as 'Data: uid like syst-uname' or you could try directly assigning the sy-uname.
    Try to debug and see the content of the sy-uname, when it hits this code.
    HTH,
    Regards,
    Nataraj.

  • 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

  • A Method betweeen two User Decision Activity

    Hi,
    Is it Possible to execute a method in between two user Decision Activites which advances with Dialog.The method that has to be executed is just a simple code based on the result of the user decision activity.
    By placing an ordinary activty between these two user decision activity it fails to advance with dialog.
    Also,it has been impossible to use this as a Modal Call after work item execution because this method requires standard Elements like WIActual_Agent which couldnt be passed as parameter also there is not separate binding for secondary methods.
    Please suggest a way to do that.
    Regards
    Imman

    I tried that.I dunno where I'm missing.
    The method which I need to call in between has a piece of code for table updation and is actually not a dialog.
    But this has to be executed between two dialogs.
    A notification is sent to User's inbox with 2 options(1st decision Activity) and on choosing one from that again 4 options(2nd decision Activity) will come.Between this a method has to get executed.
    Ideas pls.
    Regards
    Imman

  • User decision activity not going to the agents(Position Maintained).

    Hi All,
    I assigned a specific Position in the agent field of  the user decision activity. But after assigning, the decisiion step is not going to the expected agent but it getting executed by the WF-BATCH user.
    I have checked the same in the Tcode : PO13 and the corresponding user is the only one maintained for that position.
    Kindly guide what can be the possible reasons. Is there any thing i am missing.
    Thanks,
    Neslin.

    Thanks.Yes.Latest start and latest end are already maintained and there is a Rule when the latest start missed also.  kindly let me know how i can avoid this also..
    How to check whether the position is maintained to the SAP user id?.I have seen the user maintained under the position in Tcode PO13..
    The deadline is calculated 4 days after sydatum.
    One more thing the Workitem got reserved by the WF-batch and executed by WF-batch.
    Edited by: neslin on Jul 28, 2009 7:49 AM

  • 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

  • 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.

  • 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

  • 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.

  • Tcode in user decision step

    Dear experts,
    I have a user decision step. Before the approver can approve or reject the workitem i need to show a tocde screen to him. Say for example CN25. My workitem will be generated only after initiator makes changes in that tcode. I want approver who gets the workitem to see CN25 tcode screen and then only make decision. Is there any possibility to attach or bring a tcode screen in user decision step.

    Dear Hemalatha,
    Thanks a lot for your reply.
    You can direct;y use the Object which is used to trigger the workflow. Then you can bind this object to get that tcode as
    attachment in decision task.
    This is exactly my requirement. In my BO i have a standard method "display" to display the Tcode. I want to know how should i do the binding from BO's method to user decision task so that i can display a link as attachment of user decision step, by clicking which user can see the display screen.

  • SOFM in user decision step - provide reason in UWL

    Hello Everyone,
    I'm working with a customer who wants to use a user decision step and add a reason for the rejection only.  This step will be executed in UWL - since UWL doesn't support syncrhonous dialog chains, it can't be implemented by adding another step with SOFM.  I have seen the 'template with attachment' in the user decision step, and have tried binding SOFM to the Reference in the container, but the user doesn't have the option.
    Perhaps this could be implemented with a secondard amodal method - which checks the user decision code and only implements if the decision was rejected.  I'd like to be able to put a condition on the secondary methods.
    If you've done something like this, please let me know!
    Regards
    Ginger

    Hi Ginger,
    Unfortunately it is not only synchronous dialog chains, but also secondary methods that are not supported in the UWL, so you're stuck both ways.
    Though, I have been told that the latest SP does support some kind of advance with dialog functionality (SP15 I think?).
    At one customer we used a custom ABAP-based decision step which executed in a wingui session - thus synchronous dialog chains worked as long as every subsequent step was wingui based (which SOFM.CREATE obviously is) - worked quite well.
    Let me know if you need more info.
    Cheers,
    Mike

  • 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

  • User Decision - Outcome link to on a Previous Activity

    Hi all, I'd like to ask to all WF expert about a doubt, is possible to link the outcome of a Activity of USER DECISION to a Previous Activity? In afirmative case, which will be the way?
    Thank you and regards
    Angel

    Yes,
    Use the container operation step in the particular branch of user decision step. Set value of some container say ABCD = 'X'
    Then loop the user decision step. Check if the value in the container is X.
    If true loop or else endloop.
    Let me know if I have understood your requirement properly.
    Let me know if you have any queries.
    Regards,
    Raj

Maybe you are looking for

  • Black Screen with Cursor (Tried most solutions)

    To save your time and mine, I’ve tried all options in “press f8” and “recovery disk”. Over the past 3 days, I read almost all threads, videos, articles, and official MS help containing any mention of this problem. I also applied many commands, create

  • Adding NWDI into existing J2EE web instance

    Hi Expect,     I have an running J2EE web server while i want to add NWDI compoents into it. I know how to done it start from scatch (i.e select the NWDI option using installation master). However, i don't know how to add NWDI into an existing J2EE i

  • Cannot get photo from LR in PS via "Photo Edit In"

    Is anyone having  a problem  getting  photos from LR into PS via "Photo Edit In"  Each time I try this PS opens but no photo is there

  • Question Verizon

    4 business days left in the month first it was this sooooooooooooooooooo what is the next update that you have for us still waiting for the ICS update ............ end of july is here . nothing said , nothing leaked extra no word , no answer back to

  • Edit FCP over filesharing ethernet

    After googling and looking at forums I'm not sure about this one yet. Is it or is'nt it possible to edit fcp DV or hdv footage over filesharing giga ethernet? I edit on a mac pro 2x2.33 connected to a G5 dual 1.8 with four 2TB firewire 800 discs. Pos