Dipslay Workflow (workitem) attachment

Hello gurus,
ive got a requirement in dipsplaying WF attachment. What i mean is that we added a PDF document to WF.
Now we are able to get the attachment using FM: SAP_WAPI_GET_ATTACHMENT.
We can see the SOFM object, but whats next? How to display the document in normal format (PDF)?
Regards
Laurynas Prikockis

HI
May be you can try the below steps to create a custom report
1. First by making use of SWWWIHEAD table get the workitems which fall under the user specified Date range.
2. Check for the fecthed workitems is the  field NOTE_COUNT which gives you a number of how many attachments are availbale for the workitem. if this field is not initial then proceed to step 3.
3. The by making use of the standard sap provided function module SAP_WAPI_GET_ATTACHMENTS , by passing the workitem ID.
Regards
Pavan

Similar Messages

  • Smartform(Spool) to Workflow Workitem attachment

    Hi Friends,
                    I have a requirement related to workflow attachment.
    I have a invoice no and i can generate spool related to this .
    Withh using CONVERT_OTFSPOOLJOB_2_PDF , I am able to create TLINE format.
    Can you help me to convert to BINARY Format and folder .
    So that i can attach that folder to Workflow task.
    Thanks.
    Balaji.T.

    Hi-
    If you have the data in TLINE format, then you can pass it to import parameter- ATT_BIN in FM-SAP_WAPI_ATTACHMENT_ADD along with wi id, header data  (file type...).
    From this FM, get the doc id and create SOFM instance with this doc id and bind this SOFM to ATTACH_OBJECTS in workflow
    Vinoth

  • ESS TRIP Workitem Attachment

    Hi experts,
    I am currently working on a Travel expenses workflow .The workflow when tested from r3 side it all works fine. My problem is that i could not open the workitem attachment from ESS portal. My requirement is, When i click on the workitem attachment from ESS , It should open a adobe form showing travel expense details.
    From my research i figured out it a has something to with transaction SWFVISU. If yes, can anyone provide me with detail steps of what needs to be configured.
    Is it the workflow configuration side or the portal configuration that needs to be done.
    Please help.

    hi NK_ABAPER
       I have done Travel management in ESS. I am getting every thing fine in portal. No need of task registration on swfvisu since ur using only decision step not any task has its decribed in standard workflow. To get the attachment you need to tell the EP person to do the setting for the display. The solution to display the adobe form search in ESS. Even i had the same problem from that search i found one solution i solved that.
    Regards
    vijay

  • Workflow PDF attachment Issue

    In one of the dev instance here in Client's side we are facing one issue regarding workflow notification attachment.
    We have built a custom workflow which send notification with PDF as an attachment.In ebs workflow list when user try to open the attachment we are getting following error
    ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "APPS.WF_NOTIFICATION", line 8114 ORA-06512: at line 1
    This error is not occurring in another dev instance and happening at the client side.
    Please let me know if any one have come across this error before
    I guess this may be some setup at the server side which causing this error.
    we are creating custom directory for the above.

    hi pavan ,
       i want to send po output in pdf format to external addresses to multiple receipients i have tried and written code in EXIT_SAPMM06E_013 now iam getting pdf for multiple receipients but unable to print dynamic data(main window data) me getting only hardcoded data in smartform. plz correct me and let me know how dynamic data will be passed from into script.
    regards,
    chandu...

  • Workflow not attached to a SharePoint item

    Hi All,
    After published a workflow (runs on item created and changed), workflow not attached to an item and error occurs, this is my workflow status:

    Hi Sam,
    Do you see any workflows attached at the corresponding list/library level?
    Go to List/Library settings-->workflow settings and can see any workflows attached/added?
    Please remember to mark this post/reply  as answered & Vote helpful,if this solves/helps your problem. 
    s p kumar

  • How to receive/execute workflow workitems in MS outlook

    Hi,
    I was told that it is possible to receive/execute workflow workitems in MS outlook or other supported mail clients (not SAP INBOX).   I have tried to research (SDN, OSS) and so far just found documentations to set up workflow notification to MS outlook.  Nothing about receive/execute workflow workitems.  I'd like to be able to set this up without buying a third-party vendor product.  I would really appreciate it if someone could give me some guidance on where to find some helpful documentations or some brief description how to configure this.
    Thank you.
    Jennifer

    Hi Jennifer,
    I've heard it could be possible with the SOAP adapter. I never used it but I found these links in SAP Help:
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/fdca3f01f33e1ce10000000a114084/frameset.htm">General info</a>
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/fdca3f01f33e1ce10000000a114084/frameset.htm">SOAP adapter</a>
    This should allow you to approve without direct access to SAP.
    If you want to execute with direct access to SAP you can use program RSWUWFML2 which allows you to send mails with executable attachments. But the user needs sapgui installed on his pc, and be able to reach the SAP system.
    Regards,
    Martin

  • Workitem attachment to be done

    Hi ,
    I have a workitem waiting with approver 2 .Now approver 1 calls and tell he forgot to add an attachement before approval .
    how can we do this so that approver 1 is given an option( Transaction )  so that he can upload another
    attachment and approver 2 also sees it before his approval .
    I dont't want approver2 to add the attachment of approver1 .
    Regards
    Abhilash

    Thanks for the quick reply I will try it out soon .
    I have completed the workitem attachment deletion program . it is working fine now . I will try the addtion .
    REPORT  ZWF_ATTACH_DELETE.
    INCLUDE <CNTN01>.
    TYPE-POOLS: SWLC.
    include <symbol>.
    DATA :
        lv_header        TYPE swr_att_header,
        lv_objsofm       TYPE swotobjid-objtype,
        lv_objtkey       TYPE swotobjid-objkey.
       ls_fitment       TYPE   r_fitment_mstr,
    data :     lv_xstring TYPE xstring,
        att_id type  SWR_ATT_ID,
        lv_return  TYPE sy-subrc.
    data :  bo_sofm TYPE SWC_OBJECT .
    data : att type SWR_ATT_ID.
    data : w_msg type SWR_MSTRUC occurs 0 .
    data : wa_msg type SWR_MSTRUC.
    selection-screen begin of block b1 with frame.
    parameters: WRK_ID  like SWR_STRUCT-WORKITEMID obligatory ,
                zATT_ID like SWR_ATT_ID-DOC_ID obligatory.
    selection-screen end of block b1.
    start-of-selection .
      att-DOC_CAT ='AT'.
      att-DOC_ID = zATT_ID .
      CALL FUNCTION 'SAP_WAPI_ATTACHMENT_DELETE'
        EXPORTING
          WORKITEM_ID          = WRK_ID
          ATT_ID               =  att
         LANGUAGE             = SY-LANGU
         DO_COMMIT            = 'X'
       IMPORTING
         RETURN_CODE          = lv_return
       TABLES
         MESSAGE_LINES        =
        MESSAGE_STRUCT       = w_msg
      write : ' Return code : ' ,  lv_return.
      loop at w_msg into wa_msg.
      write : /5 wa_msg-MSGID,
              15  wa_msg-MSGTY,
              25   wa_msg-MSGNO.
      skip 2 .
       write :/5 'Message details : '.
      write : /5  wa_msg-MSGV1,
              30  wa_msg-MSGV2,
              50  wa_msg-MSGV3,
              60  wa_msg-MSGV4.
      endloop.

  • Delete workflow workitem

    Hi Experts,
    How can i delete a workflow workitem? regardless of the status?
    Thanks.
    Best Regards,
    PRS Helpdesk

    Hi
    Good
    Use the tcode SWIA.
    Thanks
    mrutyun^

  • Workflow Workitem approval from Handled Device.

    Hello,
    In SAP users will use handled device to approve SAP Workflow Workitems. Below are my questions.
    1. Is this possible with SAP Technology or we have to make use of some other application out of SAP.
    2. Is there any specific setting or configuration in SAP to enable users to approve workflow from Handled Device.
    3. Can link to SAP workitem be send in mail to  handled device and workitems can be opened from handled device.
    Any links or PDFs related to Handled Workflow Development / COnfiguration is much appriciated.
    Thanks in Advance.

    Hi,
    You will not be able to execute SAP work items in Blackberry or Iphone because of their technological restrictions. You have to develop BSP application and certain necessary customizing, SWNCONFIG, SCOT etc, have to be done.
    Regards

  • Extract interactive form attachment from workflow workitem

    Hi Friends,
    I created a Webdynpro Java application which has an interactive form.
    The user fills out the form, and submits.
    The submission action triggers a simple workflow and adds the interactive form as an attachment to the workitem. (Using SAP_WAPI_START_WORKFLOW and SAP_WAPI_ATTACHMENT_ADD)
    The new task shows up in UWL with the attached pdf form.
    When user clicks the on the task in UWL, I want to launch another web dynpro application which will read the workitem id and get and display the interactive form in the web dynpro java application.
    How do I extract the interactive pdf form from workflow in binary format?
    so that I can display the form in my Web dynpro java application and bind it to the pdfSource context??

    I thought I could just call the  SAP_WAPI_GET_ATTACHMENTS, however this only returns some docId information for example:
    OBJECT_ID                                                                                DESCRIPT             SHORTTEXT
    SOFM      FOL18          4 EXT34000000000023                                     Office Document      Office Document
    I need to get the binary for this pdf interactive form.
    Edited by: K Ferguson on Jan 16, 2009 5:54 PM

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

  • Workitem attachment missing in mail Outlook/Lotus

    When an email is generated from a particular workflow. I get the following message in my
    outlook inbox
    Subject :Please release purchase requisition 0013001141
    Body : Work item in R/3 System: DEV
    Please log on to the R/3 System and look in your inbox
    Please execute the work item by opening the attachment
    however the attachment(link) to the workitem is not present.
    Please guide me as I am new to this.

    Am I correct in thinking that your e-mail is the result of a SendMail step in a workflow?
    If so, the standard solution doesn't have any support for attachments as far as I know. Attachments, e.g. to enter SAP Business Workplace or display the work item, is something that the work item notification report adds to the mail messages.
    If your e-mail is the result of work item notification, make sure you have selected the attachment options if you are using RSWUWFML2, or that your customizing specifies inclusion of attachments if you are using the extended work item notification solution in more recent releases.

  • Create event in GOS obj to trigger workflow while attaching data with GOS

    Hello experts,
    It is a little bit urgent.
    I have a scenario. We have to attach documents to SAP application using GOS. These documents can be edited also.
    Now second part is that when we attach the document or edit the document, the document should be send with the work item "when we attach the document".
    The first part of the scenario is completed and working fine. The second part of the scenario is causing problem. I have checked the various options but none of them are proving helpful.
    There is an option in GOS toolbar to send the documents through workflow but that also asks for the related workflow.
    I was trying to create an event for GOS object (Z object not a subtype of any other object) which can trigger the workflow automatically when the attachment are created and edited but can not go further with it as am not so strong in workflow. I ahve just created the event. Do I need to write some code for the event?
    I request you to kindly help me either in creating this event which will trigger the workflow (whole process) or any other method to do the same.
    Thank you all in advance.

    Hello Arghadip,
    Thank you for replying so early. The table point is very helpful but about the batch job I do not get it. I think the second option is good trigerring event on updation of table. But again I do not know how to do it as I have customized object so have to create the event from the scratch and that, sir, is my main problem.
    Kindly help.
    Thank you

  • Workflow mail attachment error

    Hi,
    We have configured HTTP Content Repository to store GOS attachments in IXOS external system, in stead of storing in SAP DB SOFFCONT1. We are able to attach files manually using GOS functionality provided in SAP applications like Purchase order, Invoice, Accounting document and also SAP mails. We have noticed that all attachments are storing in IXOS content repository  also able to open and view the files.
    We are also inserting OTF links via workflow automation mails and storing them in IXOS content repository, but while clicking on the link instead of opening file it is giving error.
    If I modfiy configuration to store the same OTF link in SAP DB table SOFCCONT1 it is storing and able to open the file, but it is not opening when I route then to IXOS content repository.
    Please let us know your thoughts.
    Regards,
    Balaji Naravula

    Hi,
    This issue has been resolved by debugging the entire functionality.
    Here is the solution :
    The method CONVERT_TO_SOFM of class Z_ED_DISPLAY_IDOC is not passing the file size to the function module SO_OBJECT_INSERT.  Hence the file parameters not getting stored properly in the target system IXOS. Code has been modified in method CONVERT_TO_SOFM as below and it is working fine.
    Get the folder ID
      CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
        EXPORTING
          region    = 'B'
        IMPORTING
          folder_id = l_folder_id
        EXCEPTIONS
          OTHERS    = 1.
      IF sy-subrc NE 0.
        RETURN.
      ENDIF.
    Get the CustomerPO number*
      READ TABLE me->git_edid4
            WITH KEY segnam = 'E1EDK01'
            INTO lv_edid4.
      IF sy-subrc EQ 0.
        lv_e1edk01 = lv_edid4-sdata.
      ENDIF.
      lv_object_data-objnam   = 'SOFM'.
      lv_object_data-file_ext = 'PDF'.
      CONCATENATE 'Customer PO '
                  lv_e1edk01-belnr
             INTO lv_object_data-objdes
        SEPARATED BY space.
    Insert Start - added below line to rectify file size transfer to target system*
    lv_object_data-objlen = l_filesize.
    Insert End*
    Regards,
    Balaji Naravula

  • Unable to Open Workflow Notification attachment Throwing Error-"ORA-20002: 3240: Error -22288 - ORA-22288: file or LOB operation FILEOPEN failed No such file or directory in 'PLSQLBLOB"

    Hi Guys,
    I'm trying to send BI publisher report output file attachment to user Notification through Workflow by using the code :
    SELECT substr(file_name,instr(file_name,'/',-1,1)+1,length(file_name))
    INTO get_file_name
    FROM fnd_conc_req_outputs
    WHERE concurrent_request_id = v_request_id;
    src_lob := BFILENAME('CONC_OUTPUT', get_file_name);
    DBMS_LOB.CREATETEMPORARY(dest_lob, TRUE, DBMS_LOB.SESSION);
    DBMS_LOB.OPEN(src_lob, DBMS_LOB.LOB_READONLY);
    DBMS_LOB.LoadFromFile( DEST_LOB => dest_lob,
                           SRC_LOB => src_lob,
                           AMOUNT => DBMS_LOB.GETLENGTH(src_lob));
    DBMS_LOB.CLOSE(src_lob);
    DOCUMENT_TYPE := 'application/excel;name:=test.xls' ;
    dbms_lob.copy(document, dest_lob, dbms_lob.getlength(dest_lob));
    Please Help to solve the Error.Appreciated for the Solution
    Thanks,
    Kishore Kandula.

    Hi
    Is the 'CONC_OUTPUT' directory a DBA Directory? Run the query SELECT * FROM DBA_DIRECTORIES and see if this CONC_OUTPUT is a directory name. If not rather use one of the direcorties.

Maybe you are looking for