PDF upload through Workflow

Hi All,
case 1:
is there any possibility to upload a pdf to an intranet through workflow?
Case 2:
when we upload a data in the excel or pdf, corresponding table should be get updated through workflow!
pointers to this will be highly appreciated.
Regards,
Dinesh

Hi,
In a background activity step you do it. And if the path has to be given by the user then identify the path in a background step and
send that to a method where you want to upload.
If you want to go ahead using portal, the link that process through a Webdynpro application and upload it.
Hope this would help to solve your issue.
Regards
Narin

Similar Messages

  • How to Send mail woth pdf attachment through workflow

    Hi SDNer's,
           I have a problem with pdf attachment through workflow. Please anybody help me to get solve my issue.

    Hi Suresh,
    I just tried this thing in my systtem and it is working... BADI is trigerred everytime there is a change in the PO... even when you release there is a change in the PO so this BADI will be triggerred....
    I suggest you should implement BADI in your dev system and place a break point in the POST method...
    After that create a PO and release it using ME29N... thereafter when you save the PO... this method will trigger and you will have access to PO details...
    PS: Remember this BADI wont work for transaction ME29...
    Regards
    Gautam

  • Pdf attachment through workflow

    Hi SDNers,
    I need to attach a PDF to send mail in my workflow. Workflow triggers whenever PO changed or release at ME22N or ME21N.
    Which PO has been changed, data PO details need to display in PDF.
    For this I created a smarform by passing PO number. I created attribute for emailaddress, in this i written code. But, when executed manually it is going. but I changed or release from ME22N or ME21N just a body mail is going butwithout attachment.Please suggest me. Here is the code which I have written in the attribute.
    FORM SELECT_TABLE_ADR6 USING SUBRC LIKE SY-SUBRC.
      TYPES: BEGIN OF ty_ekko,
             ebeln TYPE ebeln,
             lifnr TYPE lifnr,
             END OF ty_ekko,
             BEGIN OF ty_lfa1,
             lifnr TYPE lifnr,
             adrnr TYPE adrnr,
             END OF ty_lfa1.
      DATA: it_ekko TYPE STANDARD TABLE OF ty_ekko INITIAL SIZE 0,
            it_lfa1 TYPE STANDARD TABLE OF ty_lfa1 INITIAL SIZE 0,
            wa_ekko TYPE ty_ekko,
            wa_lfa1 TYPE ty_lfa1.
    DATA: gv_form_name TYPE rs38l_fnam,
          gv_bin_filesize TYPE i,
          gv_pos TYPE i,
          gv_len TYPE i,
          gv_tab_lines TYPE i.
    DATA: gc_text(11) TYPE c VALUE 'Form Output',
          gc_tst(3) TYPE c VALUE 'TST',
          gc_testing(20) TYPE c VALUE 'PURCHASE ORDER'.
    DATA: gs_docdata TYPE sodocchgi1,
          gs_ctrlop TYPE ssfctrlop,
          gs_outopt TYPE ssfcompop,
          gs_otfdata TYPE ssfcrescl,
          gs_reclist TYPE somlreci1,
          gs_copy type somlreci1,
          gs_pdf_tab TYPE tline,
          gs_objbin TYPE solisti1,
          GS_OBJTXT TYPE SOLISTI1,
          gs_objpack TYPE sopcklsti1.
    DATA: gt_reclist TYPE TABLE OF somlreci1,
          gt_copy type table of somlreci1,
          gt_pdf_tab TYPE TABLE OF tline,
          gt_otf TYPE TABLE OF itcoo,
          gt_objbin TYPE TABLE OF solisti1,
          GT_OBJTXT  TYPE TABLE OF SOLISTI1,
          gt_objpack TYPE TABLE OF sopcklsti1.
    DATA: G_SMTP_ADDR type AD_SMTPADR.
    DATA: p_plist(40) type C,
          gc_c type  C,
          gc_u type C.
    CLEAR : gv_form_name,
            gs_ctrlop,
            gs_outopt,
            gs_otfdata,
            gv_bin_filesize,
            gv_pos,
            gv_len,
            gv_tab_lines.
      IF OBJECT-_ADR6-CLIENT IS INITIAL
      AND OBJECT-_ADR6-ADDRNUMBER IS INITIAL
      AND OBJECT-_ADR6-PERSNUMBER IS INITIAL
      AND OBJECT-_ADR6-DATE_FROM IS INITIAL
      AND OBJECT-_ADR6-CONSNUMBER IS INITIAL.
        SELECT ebeln lifnr FROM ekko INTO TABLE it_ekko
        WHERE ebeln = object-key-purchaseorder.
        SELECT lifnr adrnr FROM lfa1 INTO TABLE it_lfa1
        FOR ALL ENTRIES IN it_ekko WHERE lifnr = it_ekko-lifnr.
        READ TABLE it_lfa1 INTO wa_lfa1 INDEX 1.
        SELECT SINGLE * FROM ADR6 CLIENT SPECIFIED
            WHERE CLIENT = SY-MANDT
            AND ADDRNUMBER = WA_LFA1-ADRNR.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZMMF_PUR_DOMESTIC001'
        IMPORTING
          fm_name            = gv_form_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      gs_ctrlop-getotf = 'X'.
      gs_ctrlop-device = 'PRINTER'.
      gs_ctrlop-LANGU   = SY-LANGU.
       gs_ctrlop-no_dialog = 'X'.
       gs_outopt-tddest = 'LP01'.
       gs_outOPT-TDIMMED = 'X'.
       gs_OUTOPT-TDRECEIVER = SY-UNAME.
       gs_OUTOPT-TDNOPREV = 'X'.
    CALL FUNCTION gv_form_name
         EXPORTING
           control_parameters = gs_ctrlop
           output_options     = gs_outopt
         user_settings      = us_screen
          user_settings      = ent_retco
         customer           = customer
         bookings           = bookings
         connections        = connections
           i_ebeln            = object-key-purchaseorder
         IMPORTING
           job_output_info    = gs_otfdata
         EXCEPTIONS
           formatting_error   = 1
           internal_error     = 2
           send_error         = 3
           user_canceled      = 4.
    CLEAR gt_otf.
      gt_otf[] = gs_otfdata-otfdata[].
    Convert the OTF DATA to SAP Script Text lines
      CLEAR gt_pdf_tab.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 200
        IMPORTING
          bin_filesize          = gv_bin_filesize
        TABLES
          otf                   = gt_otf
          lines                 = gt_pdf_tab
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
    Data : Order(50) type c,
           sep(10) type c value ' / '.
      CLEAR gs_docdata.
      gs_docdata-obj_name = gc_tst.
        CONCATENATE gc_testing sep 'test mail' into order.
      gs_docdata-obj_descr = order.
      CLEAR : gt_reclist, gs_reclist.
      REFRESH: GT_RECLIST, GT_OBJPACK, GT_OBJBIN.
      clear:  gt_copy, gs_copy.
    IF internal mail id
      gs_reclist-receiver = ADR6-SMTP_ADDR.
      GS_RECLIST-REC_TYPE = 'U'.
      APPEND gs_reclist TO gt_reclist.
    APPEND gs_copy to gt_copy.
    CLEAR : gs_objbin, gs_pdf_tab.
      LOOP AT gt_pdf_tab INTO gs_pdf_tab.
        gv_pos = 255 - gv_len.
        IF gv_pos > 134. "length of pdf_table
          gv_pos = 134.
        ENDIF.
        gs_objbin+gv_len = gs_pdf_tab(gv_pos).
        gv_len = gv_len + gv_pos.
        IF gv_len = 255. "length of out (contents_bin)
          APPEND gs_objbin TO gt_objbin.
          CLEAR: gs_objbin, gv_len.
          IF gv_pos < 134.
            gs_objbin = gs_pdf_tab+gv_pos.
            gv_len = 134 - gv_pos.
          ENDIF.
        ENDIF.
      ENDLOOP.
    IF gv_len > 0.
        APPEND gs_objbin TO gt_objbin.
      ENDIF.
    Filling the details in SAPoffice: Description of Imported
      DESCRIBE TABLE gt_objbin LINES gv_tab_lines.
      CLEAR gs_objbin.
      READ TABLE gt_objbin INTO gs_objbin INDEX gv_tab_lines.
      IF sy-subrc = 0.
        gs_objpack-transf_bin = 'X'.
        gs_objpack-head_start = 1.
        gs_objpack-head_num = 0.
        gs_objpack-body_start = 1.
        gs_objpack-body_num = gv_tab_lines.
        gs_objpack-doc_type = 'PDF'.
        gs_objpack-obj_name = 'ATTACHMENT'.
        gs_objpack-obj_descr = 'test'.
        APPEND gs_objpack TO gt_objpack.
      ENDIF.
    IF p_plist IS NOT INITIAL.
    gs_reclist-receiver = p_plist.
    gs_reclist-rec_type = gc_c.
    APPEND gs_reclist TO gt_reclist.
    CLEAR gs_reclist.
    ENDIF.
    Populating the reciever list
    gs_reclist-receiver = p_plist.
    gs_reclist-rec_type = gc_c.
    APPEND gs_reclist TO gt_reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA                    = gs_docdata
       PUT_IN_OUTBOX                    = 'X'
       COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
      TABLES
        PACKING_LIST                     = gt_objpack
      OBJECT_HEADER                    =
       CONTENTS_BIN                     = gt_objbin
      CONTENTS_TXT                     =
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
        RECEIVERS                        = gt_reclist
    EXCEPTIONS
       TOO_MANY_RECEIVERS               = 1
       DOCUMENT_NOT_SENT                = 2
       DOCUMENT_TYPE_NOT_EXIST          = 3
       OPERATION_NO_AUTHORIZATION       = 4
       PARAMETER_ERROR                  = 5
       X_ERROR                          = 6
       ENQUEUE_ERROR                    = 7
       OTHERS                           = 8.
    IF SY-SUBRC = 0.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    and return.
    ENDIF.

    Hi-
    You need to convert the smartform's OTF data to PDF and then create a SOFM instance. Now bind this SOFM instance to workflow container 'ATTACH_OBJECTS' in your email step and your smartform will be showed as a PDF attachment
    Vinoth

  • How to convert document file in PDf format through workflow using sharepoint designer

     Please suggest me solution it's urgent.....please.

    Hi Anil,
    If Word Automation Services is installed in your environment then that may be an option (Providing you are only interested in converting MS-Word documents). However SharePoint does not ship with an out-of-the-box workflow activity that makes use of this.
    You may want to consider some third party software that supports formats other than MS-Word as well and comes with workflow actions for SharePoint Designer (and Nintex Workflow) out of the box. Have a look at the
    Muhimbi PDF Converter for SharePoint.
    Disclaimer, I worked on this product so I am obviously biased. (It works great though :-)

  • I can't seem to upload PDF files through Firefox 5.0

    I have not been able to upload a PDF file through Firefox 5.0. This has occurred with two different websites. It appears from the error messages that the file is not being identified as a PDF file, but is labelled something else. DOCX files are uploaded appropriately, but I must use PDF also. Thanks.

    Thanks Murray for getting back to me!
    I've been using DW  CS4 since Dec. 2010 to design and upload the store site with no problems until this past week.
    I update the site once a month, during the last couple of weeks I've used DW to design 2 new pages, but this past week when I went to upload the pages I noticed the remote view was different. The remote view did show the 2 new files, including pictures, but not all the other files that I normally see, including the index file.
    Plus, there are folders I didn't see before, CGI, DropBox and about 6 others.
    On the 2nd pg. of the main site, I put a link to past editions, the URL looks like this...  http://www.landmarkantiques.com/July2011.html
    I can't think of anything I might have done to cause the change, so I'm at a loss as to why and what might have caused it.
    I have DW CS5 that I have not installed, and I'm a little worried about making that transition since this has happened.
    I appreciate your taking your time to look in to this for me!
    Regards, Mary

  • Attaching and sending a pdf file to hr admin through workflow

    Dear all,
             I am new to workflows and working on time management module in HR .I have to work on an leave request issue where in ESS the employee should  'attach the medical certificate' if the sick leave is more than 2 days.
            The workflow is already been created but the one thing i need to work on is attaching the medical certificate and send it to the Hr admin.
            I am checking for the condition whether it is sick leave or/not then sending the mail to hr admin to approve.
            In the mail the object type that i have declared is selfitem and the method is  SENDTASKDESCRIPTION .
            The object type given as SOFM in the resulttype tab in the above method .
           How to attach?And in what way the file can be attached?
          Kindly send me the solution in steps.
           please do the needful.
    Regards,
    bhavani

    Hi Karri
    Thanks for the input regarding the newer version. I'll work on it.
    Yes, I am using the SAp_WAPIATTACHMENTADD to attach the PDF into an workitem, through a custom BO method i have created for the requirement.
    But issue is with  how to attach a PDF to the workflow at the instance of WF trigger, so that i can pass it on to the WI through the BO method.
    Regards
    /Arun

  • How to get the Attachment of a pdf file throug workflow,...

    Hi,
              I have attached pdf the file to the ESS and written the code in webdynrpo. How can I get the file attachment in MSS through Workflow? This attachment should be displayed in the User Decision Activity. Could any one Help me on this issue....?
    Thanks & Regards
    Kannan

    Hi,
      1. From WebDynpro  applicaiton once you create a PDF  in the application you can get back the Xstring of PDF  into the context of the workflow,
    2. Now pass this xstring to workflow container. I assume you might be starting the workflow from Webdynpro application.
    4. Create class method or a BOR and include a method. From that method do the respective coding that is mentioned in the document.
    3. Once you have the PDF  xstring in the workflow container you can attach the PDF  document to user decision step as mentioned in the [document|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29]
    Regards
    Pavan

  • Sending PDF attachment through EMAIL Triggering

    Hi,
    Could you plaese let me know How to send Pdf Attachments
    through Email  in SAP.
    Using Function Module  SO_NEW_DOCUMENT_ATT_SEND_API1.
    Regards
    Bhuvana

    Hi,
    GP does not involve any sort of coding.
    Just like workflow, GP has a flow desgined in a process.
    Each step has a callable object associated with it.
    Check [this|http://help.sap.com/saphelp_nw04s/helpdata/en/0f/619fd378a641b29386063019c24fc4/frameset.htm] link for details
    -Ashutosh

  • Launch pdf file through browser window.

    I tried this.String cmd="iexplore.exe http://subash/doc/help.pdf";
    try{
    Process p = Runtime.getRuntime().exec(cmd);
    }catch(Exception e)
    System.out.println("Error -- "+e);
    }I am getting Error --
    java.io.IOException: CreateProcess: iexplore.exe http://subash/doc/help.pdf error=2please give me a suggestion.
    Otherwise so any other way to launch pdf file through browser window.

    Hi,
    Column Name     ID     Pk     Null?     Data Type     Default     Histogram
    PT_SEQ_NO     1     1     N     NUMBER (10)          Yes
    SM_SERVICE_ID     2          N     VARCHAR2 (15 Byte)          Yes
    PT_FILE_PATH     3          Y     VARCHAR2 (100 Byte)          Yes
    PT_FILE_SERVER_PATH     4          N     VARCHAR2 (200 Byte)          Yes
    NO, I'm not storing that file in Blob. i'm not storing it in database. i'm just transfering it from client location to server location . That's it.
    But i'm storing both the path from where i picked the file and where i uploaded. That's client path in PT_FILE_PATH field and server path in PT_FILE_SERVER_PATH.
    now i want to get that file from server location and show it only on Browser.. Not storing in database, justing putiing in folder at server location.
    thanks
    kammy

  • Open and print pdf file through form 6i

    I want to run and print a pdf file through the form. Any suggestion please......
    thanks in advance....
    ifti

    you could try using the DDE package to open the file
    and then print from the actual file location using a host command.

  • Unique ID during upload through WebADI integrator

    Hi All,
    Is there any unique ID generated for each upload through a custom Integrator (similar to fnd_global.conc_request_id for concurrent programs)?
    Thanks,
    Sumanth

    JE,
    Normally we use row id or integration id for this, we populate this value in the external id field (for the records created manually) so that we can do bulk update. My personal experience is row id's are more reliable than integration id's and it has always worked for me :) (my technical team also prefers to use the row id for WS as this value cannot be changed). What kind of linking problem did your people face by using row id?
    If you are looking for some other unique single value identifier, I dont think any other than row id, integration id and external unique id exists. Else you need to go with “On Demand predefined fields” option (First Name, Last Name, Email, Work Phone # for contact records).

  • HR: Need to Send the Paysilp as a PDF file through Mail to Employees

    Dear All ,
           Need to Send the Paysilp as a PDF file through Mail to Employees.
           can anyone please suggest any Standard Function Modules which takes the Payslip Form as input and convert it into PDF and can send it through mail to the concern employees.
          Can anyone please explain the procedure in detail.
    Thanks in Advance,
    Regards.

    venu,
    below is code which helps to generate pdf ,,,,hope u know how to use the mail sending function
    data:
    fm_name TYPE RS38L_FNAM, "Smart Forms: FM Name
    sf_name TYPE TDSFNAME
    value 'YOUR_FORM_NAME', "Smart Forms: Form Name
    P_OUTPUT_OPTIONS TYPE SSFCOMPOP,
    P_JOB_OUTPUT_INFO TYPE SSFCRESCL,
    P_CONTROL_PARAMETERS TYPE SSFCTRLOP,
    P_LANGUAGE TYPE SFLANGU value 'E',
    P_E_DEVTYPE TYPE RSPOPTYPE.
    data:
    P_BIN_FILESIZE TYPE I,
    P_BIN_FILE TYPE XSTRING,
    P_OTF type table of ITCOO,
    P_DOCS type table of DOCS,
    P_LINES type table of TLINE,
    name type string,
    path type string,
    fullpath type string,
    filter type string,
    guiobj type ref to cl_gui_frontend_services,
    uact type i,
    filename(128).
    GET SMARTFORM FUNCTION MODULE NAME ---
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = sf_name
    IMPORTING
    FM_NAME = fm_name
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    I_LANGUAGE = P_LANGUAGE
    I_APPLICATION = 'SAPDEFAULT'
    IMPORTING
    E_DEVTYPE = P_E_DEVTYPE.
    P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XSF = SPACE.
    P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XDF = SPACE.
    P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
    P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
    P_CONTROL_PARAMETERS-GETOTF = 'X'.
    ****...................................PRINTING.........................
    CALL FUNCTION fm_name
    EXPORTING
    CONTROL_PARAMETERS = P_CONTROL_PARAMETERS
    OUTPUT_OPTIONS = P_OUTPUT_OPTIONS
    (....) <--- your form import parameters
    IMPORTING
    JOB_OUTPUT_INFO = P_JOB_OUTPUT_INFO.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
    ****...................................CONVERT TO PDF...............
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
    BIN_FILESIZE = P_BIN_FILESIZE
    TABLES
    OTF = P_OTF
    DOCTAB_ARCHIVE = P_DOCS
    LINES = P_LINES
    EXCEPTIONS
    ERR_CONV_NOT_POSSIBLE = 1
    ERR_OTF_MC_NOENDMARKER = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    now you can mail the pdf.
    Reward points if helpful
    Regards,
    jinesh

  • Opening a pdf file through form 10g

    Dear all,
    I have requirement to open a pdf file through my form application.
    Ho will i do this?
    What is the procedure to do this??
    Please help me.
    Regards

    Can you tell me where the pdf can be found. Through a webserver or inside the database or is the pdf somewhere else?
    If the pdf is available through an url you could use web.show_document which can open the url/pdf document in a new browser window.
    If the pdf is inside the database you could download the pdf to the client using webutil and then open the pdf document using a host command.
    If the pdf is inside the database or by a url you can also use a forms bean. I've used forms bean bean to unload a pdf from the database and show it inside the forms application. Most important when using a forms bean is that the bean component can show all the fonts which are used inside the pdf. There are some free solutions which can not show i.e. bar codes. The are also some paid components which will do the trick.
    Regards,
    Mark

  • Email Notifications through workflow for all Approved and Rejected Orders

    hi,
    i have to send Email Notifications through workflow for all Approved and Rejected Orders to the user who have submitted the order for approval.how could it be done.please send ur solutions.
    regards
    yesukannan

    Hi,
    An option would be use Oracle Alert. Create an event based alert on the table where you have order approvals or rejections. This alert will be raised after inserting or updating this table. Create an action linked to this alert, and choose message as action type.
    This setup can be done under Alert Manager Responsibility.
    Regards,
    Ketter Ohnes

  • I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections

    I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections

    You should be able to just place them in your Books library in iTunes and check to ensure that your Book library is configured to sync to your iPod when you sync your iPod to iTunes.

Maybe you are looking for

  • Weblogic 10.3.5 standalone, jdk 1.8, tls 1.2 settings

    Hi, I installed 64 sun jdk on redhat and installed jdeveloper+standalone weblogic server 10.3.5.  Then I wanted to enable tls 1.2 and read jdk 1.8 by default uses it.  So I installed jdk 8 and changed setDomainEnv.sh and made it use jdk 8.  Still it

  • PHP and Apex

    I like PHP and I like Apex. Is there any chance to see an interaction between the two? I know that it is possible to link PHP with the Apache server which runs Apex but I am asking for the field addressing and exchanging the variables between PHP cod

  • Question on document applications

    I'm interesting in purchasing an IPad, but I'm confused on what type of document program can I put on it? I'm not familiar with Keynote or numbers and I am looking for a program that is similar to Word. Can I get something like that on the Ipad or is

  • Downloaded one TV show, now other doesn't show up

    I just downloaded Part 1 of a 2-part episode of the new Battlestar Galactica from the iTunes store today, but I'm having trouble finding Part 2. I do a search and only Part 1 shows up?

  • Headers are un-editable on imported .doc file.

    I have a couple of documents that I would like to edit using Pages. They were originally created in MS Word. When I open the files the Header on the file is not selectable or editable. The rest of the document works fine but it is like the header is