Attaching file along with Notification

Hi,
I am looking for a way to attach a file (say a PDF or XLS file) to the workflow notification so the the recipient can open the file from the attachment. Is this possible?
The requirement is whenever a purchase requisition is raised, the requester will run a custom report that produces the on-hand quantity of all the items in the requisition in a PDF output. This file will be attached to the requisition and then he initiates for approval. The approval notification has to pick this attachment and should show it to the approver (either as an attachment or inline).
Is there a way in workflow notification to meet this requirement?
Expecting your guidance....
Best Regards,
Prasad Dhanakodi

Hey there,
I'd suggest you populate a dynamic URL link from the notification to the attachment in the DB.
When you attach a file say, "A380.jpg", you can find the document_id of that image using
query:
SELECT document_id
FROM fnd_documents_tl
WHERE file_name = 'A380.jpg'
output: document_id = 11807
Use this document_id to get the media_id of the file. Media_id is the actual file_id.
SELECT media_id
FROM fnd_documents_tl
WHERE document_id = 11807
output: media_id = 318949
Use the media_id in below query to get the file details.
SELECT file_id, file_name,file_content_type,file_data
FROM fnd_lobs
WHERE file_id = 318949
In this table, "FND_LOBS" you can find the BLOB column, "FILE_DATA" which stores the actual file.
If you want to show this file on a webpage, ie. if the user wants to see the image of the item
from a custom form for items,he can click a button on the form which will take him to a webpage
where he will be able to see the image.
For this, you can use the below query to get the url for the image:
SELECT fnd_gfm.construct_download_URL(fnd_web_config.gfm_agent,318929)
FROM dual
Aaron

Similar Messages

  • I had a drive failure and lost the iWeb file along with other things.   I did manage to save a lot of user file documents but I don't see or   recognize the my iWeb site file. It was on a 15" G4 Titanium pb. I'm trying to find a way, using version 2.0.4

    I had a drive failure and lost the iWeb file along with other things. 
    I did manage to save a lot of user file documents but I don't see or 
    recognize the iWeb site file. It was on a 15" G4 Titanium pb.
    I'm trying to find a way, using version 2.0.4 of iWeb on a different 
    pb to recover the file into the iWeb app or a way to download the site into iWeb.
    There are 6 pages of images and text, and it 
    would be a task for me to recreate the whole thing again. I did 
    download the site but I don't know how or if I can get iWeb to see it and open it.
    Does anyone have any knowledge about this? The link to my site:
    <http://web.mac.com/danauerbach>
    Any suggestions will be most appreciated.
    dan auerbach
    [email protected]

    Unfortunately iWeb cannot read or import previously published files, only generate them.  You'll have to recreate your site from scratch.
    However, Chapter 2.3 on the iWeb FAQ.org site has tips on using some of the existing files, image, audio, video, etc., from the published site in the recreation of the site.
    OT

  • Import WSDL file along with XSD

    Hi,
    I have a WSDL file which has complex Data types (abc.wsdl). This complex data types are defined in the XSD file (abc-data.xsd).
    If I just import WSDL file in ED I am unable to find the Complex Data types in Message Mapping.
    How can I use the XSD file along with the WSDL file? Is there any source path as to give or what?
    Could you please help me out…?

    first i will tell how my wsdl file is defined
    <xs:element name="authInfo" type="<b>xx:AuthInfo</b>">                                   <xs:annotation>                              <xs:documentation xml:lang="en">                                   Authentication information                         </xs:documentation>                    </xs:annotation>                              </xs:element>
    and in my xsd file for xx:AuthInfo
    <xs:complexType name="AuthInfo">
              <xs:sequence>
                   <xs:element name="acctName" type="tns:CustName">
                        <xs:annotation>
                             <xs:documentation xml:lang="en">
                             account name.
                        </xs:documentation>
                        </xs:annotation>
                   </xs:element>
                   <xs:element name="password" type="tns:AcctPswd">
                        <xs:annotation>
                             <xs:documentation xml:lang="en">
                            Specify the password                    </xs:documentation>
                        </xs:annotation>
                   </xs:element>
              </xs:sequence>
         </xs:complexType>
    when i import wsdl file in Ed i will get two inputs there but only one as "AuthInfo"
    but "AuthInfo" has two inputs.
    this is how my Target Message Look like
    Tree          Occurences          Type
    authInfo     1..1                      xx:AuthInfo
    i hope i have cleared u..

  • To Import XSD file along with WSDL file in ED

    Dear All,
    I am doing a scenario web service1 —XI—RFC—web service2. Web service1 sends request to XI and XI sends to RFC and RFC response to web service2 and web service2 response (acknowledge) back to XI and XI sends back to web service1.
    My client (web service2) has given me the web service (WSDL) file along with XSD file.
    In the wsdl file there are number of elements and complex types.
    <xs:element name="GetCustomer">
         <xs:complexType>
              <xs:sequence>
                   <xs:element name="authentication" type="xx:AuthInfo"/>
                   <xs:element name="CompanyName" type=" xx:AuthInfo "/>
              </xs:sequence>
         </xs:complexType>
    </xs:element>
    The type (xx:AuthInfo and xx:AuthInfo) are defined in XSD file.
    My questions are
    1)     Do I have to import the XSD file in ED or not.
    2)     How do I map this XSD
    3)     As WS1, RFC and WS2 all are synchronous MT do I have to use BPM for it.
    4)     Can some one help with any docs please..
    Thanks in advance

    Hi,
    >>Do I have to import the XSD file in ED or not
    If you are having the wSDL files then you can take the structure from there itself. Just import the wsdl files in IR. You can also use XSD.
    >>How do I map this XSD
    XSD are same as Message Types. So create a MM and choose your XSD.
    >>As WS1, RFC and WS2 all are synchronous MT do I have to use BPM for it.
    Yes you have to because you are taking the responce from RFC and going to give it to WS2.
    BPM steps:
    1) receive (open sync bridge)
    2) transformation 1
    3) send (snyc)
    4)transformation 2
    3) send (close sync bridge)
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Regards
    Suraj

  • FM to down load the spool to excel file  along with the deliminator

    hi all,
    this is regarding a downloading of spool to a excel file along with a deliminator.
    Can any one suggest a function module which downloads spool to excel file with a deliminator in a proper way.

    Hi ram,
    You can try using the BAPI_XBP_JOB_SPOOLLIST_READ_20 - to get the list from spool and then do the required formatting. You can use can use the function module mentioned in the other reply to download it into excel file.
    Cheers

  • Display errors in a file along with records - IBIP_BATCH_INPUT doesnt do it

    Hi,
    I am using the function module IBIP_BATCH_INPUT(used in program RIIBIP00) in my custom program to upload maintenance plan data(Transaction IP01) using call transaction method.The data gets successfully uploaded.
    However if i send incorrect data, an ALV report gets printed by the above function module that displays the error.
    My requirement is to generate a file that displays each record and the corresponding error along with it.
    Pls note that the error file obtained(Call transaction) has only the error records but not the errors displayed.
    The function moduke returns a internal table of errors as displayed in ALV but how can I relate those errors with the the records in my file?

    Hi Rob,
    The transaction IBIP does the same as the program RIIBIP00.
    My requirement is to customize it.
    The legacy system file I obtain is not in the file format IBIPREC(refered documnetation of RIBIP00).
    I convert it into a the required file format and use the file in the program or transaction IBIP manually and data gets loaded into the system.
    If the file contains errorneos data, then the errors are displayed in a ALV report by the program RIIBIP00 and a a file is generated showing the erroneus record.My requiremnet is to have a audit file of the legacy system format plus a column showing errors.
    How can I map the errors obtained from the fn module IBIP_BATCH_INPUT in program RIIBIP00 with the each record and produce an audit file?

  • How to send an attached file containing with non-ascii code ?

    Hi,
    I want to send a attaced text file containing with non-ascii code(Traditional Chinese). Is there any way to solve the encoding problem?
    Currently, it transfer into non-meaningful code in receiving side.
    Thanks for the help in advance.

    Here is the code:
    Session _gSession = null;
    MimeMessage message = null;
    Properties props = new Properties();
    props.put("mail.smtp.host", smtpHost);
    _gSession = javax.mail.Session.getInstance(props, null);
    message = new MimeMessage(_gSession);
    message.setFrom(new InternetAddress(emailSender , emailSender));
    InternetAddress ia[] = new InternetAddress[1];
    ia[0] = new InternetAddress(emailReceiver, emailReceiver);
    message.setRecipients(Message.RecipientType.TO, ia);
    message.setSubject("Test Encoding Attached File");
    message.saveChanges();
    BodyPart messageBodyPart = new MimeBodyPart();
    DataSource fds = new FileDataSource("Big5_Code.txt");
    messageBodyPart.setDataHandler(new DataHandler(fds));
    messageBodyPart.addHeader("Content-ID","meme");
    MimeMultipart multipart = new MimeMultipart("related");
    multipart.addBodyPart(messageBodyPart);
    message.setContent(multipart);
    transport.connect();
    transport.send(message);

  • Attach Files to Email Notifications

    Has the below feature been added - Providing the actual attachment (or more likely a direct link to an attachment)? Thanks!
    Dec 9, 2011 6:45 AM in reply to numbernein
    Report
    The email notifications only list the filenames and provide a general link back to the response file. Providing the actual attachment (or more likely a direct link to an attachment) is a very good idea. Will consider that for a future release.
    Thanks for your feedback!
    Randy

    Sorry this is not possible to have the files attached to the email notification.
    Gen

  • Attachment printing along with Work order

    Hi all,
    i used search functionality..but I couldn't able to find any solution to solve my issue.
    I have one requirement with my client...
    They attach some documents(Picture or word docs etc...) to Maintenance order through attachment funtionality whcih is available in the left side of the screen on the top.
    This attachments they want print automatically along with Maintenance order when ever they want.
    Any one come across with these kind of requirement...pls through some ideas on this.
    Will award good points for solution

    Hi,
    This will be a custom development (telling windows to print a document). In the past I created this based on SAP DMS, but the same can be done based on the object linking you mention.
    Please take care that this will not work properly with background processes. Also windows printer can be different from the SAP printer.
    Regards,
    Paul

  • How to attach PDF file along with mail from SAP to external

    Hi Experts,
          Whenever I am creating PO I should get that creation information ( PO is created & PO no is ‘XXX’….) in the form of PDF file & I have to send this PDF file through mail to external. I have to do all this in one development…How can I proceed …Help me..
    Thanks

    Check this Code>>>>>>>>>>>
          FORM MAIL_OBJECT                                              *
    Compiled: Thomas, Satyam Computers Services Ltd.
          This routine receives OTF data. OTF data is converted to PDF
          format and send to the Partner's email address
    FORM mail_object TABLES otf_data STRUCTURE itcoo .
      DATA: pdf_size TYPE i,                             " PDF Size
            pdf_itab_size TYPE i,                        " Attachment size
            mailtxt_size TYPE i,                         " Text in mail size
            l_vbeln LIKE vbdka-vbeln.                    " Order Doc
      DATA:
      it_mailtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,    " Mail Text
      it_pdf TYPE TABLE OF tline WITH HEADER LINE,           " OTF output
      it_mailpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE, " Dist details
      it_mailhead LIKE solisti1   OCCURS  1 WITH HEADER LINE," Header data
      it_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,   " Rec List
      it_pdfdata LIKE solix OCCURS 0 WITH HEADER LINE.  " Attachment data
      DATA: it_doc_att LIKE sodocchgi1.                 " Attri of new doc
      DATA: BEGIN OF it_pdfout OCCURS 0,                " PDF in 255 length
               tline TYPE char255,
            END OF it_pdfout.
    Sales doc and Customer
      DATA: BEGIN OF i_vbeln OCCURS 0,
              vbeln LIKE vbpa-vbeln,       " Sales Document
              adrnr LIKE vbpa-adrnr,       " Customer
            END   OF i_vbeln.
    Sender Address no and SMTP address
      DATA: BEGIN OF i_addrs OCCURS 0,
              addrnumber LIKE adr6-smtp_addr,
              smtp_addr  LIKE adr6-smtp_addr,
            END   OF i_addrs.
    Convert OTF to PDF
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format       = 'PDF'
        IMPORTING
          bin_filesize = pdf_size
        TABLES
          otf          = otf_data
          lines        = it_pdf.
    Make each line 255 characters
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        TABLES
          content_in  = it_pdf
          content_out = it_pdfout.
    Create the PDF File
      CLEAR it_pdfdata.
      REFRESH it_pdfdata.
    it_pdfdata[] = it_pdfout[].
      LOOP AT it_pdfout.
        MOVE it_pdfout-tline TO it_pdfdata-line.
        APPEND it_pdfdata.
        CLEAR it_pdfdata.
      ENDLOOP.
      DESCRIBE TABLE it_pdfdata LINES pdf_itab_size.
    Text in the mail.
      it_mailtxt-line  = 'ORDER ACKNOWLEDGEMENT'.
      APPEND it_mailtxt.
      it_mailtxt-line  = ' This is a test mail-Thomas, Line Number--1'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail-Thomas, Line Number--2' &
                        ' This is a test mail-Thomas, Line Number--2'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail-Thomas, Line Number--3' &
                        ' This is a test mail-Thomas, Line Number--3' &
                        ' This is a test mail-Thomas, Line Number--3'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4' &
                        ' This is a test mail,  Line Number--4'.
      APPEND it_mailtxt.
      it_mailtxt-line = ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5' &
                        ' This is a test mail,  Line Number--5'.
      APPEND it_mailtxt.
      DESCRIBE TABLE it_mailtxt LINES mailtxt_size.
    Document Number for Output
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = vbdka-vbeln
        IMPORTING
          output = l_vbeln.
    Attributes of new doc
      CONCATENATE 'Order' space 'Acknowledgement' space l_vbeln
                  INTO it_doc_att-obj_descr SEPARATED BY space.
      it_doc_att-sensitivty = 'F'.
      it_doc_att-doc_size   = mailtxt_size * 255.
    Create Pack to text in mail body.
      CLEAR it_mailpack-transf_bin.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 0.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = mailtxt_size.
      it_mailpack-doc_type     = 'RAW'.
      APPEND it_mailpack.
    Create Pack to PDF Attach.
      it_mailpack-transf_bin   = 'X'.
      it_mailpack-head_start   = 1.
      it_mailpack-head_num     = 1.
      it_mailpack-body_start   = 1.
      it_mailpack-body_num     = pdf_itab_size.
      it_mailpack-doc_type     = 'PDF'.
      CONCATENATE l_vbeln '.pdf' INTO it_mailpack-obj_name.
      CONCATENATE 'Order Ack' space l_vbeln INTO it_mailpack-obj_descr.
      it_mailpack-doc_size     = pdf_itab_size * 255.
      APPEND it_mailpack.
    *Get email addresses based on Sales document.
      SELECT vbeln adrnr INTO TABLE i_vbeln
             FROM vbpa
             WHERE vbeln = vbdka-vbeln AND
                   parvw = nast-parvw.
      IF NOT i_vbeln[] IS INITIAL.
        SELECT addrnumber smtp_addr INTO TABLE i_addrs
               FROM adr6 FOR ALL ENTRIES IN i_vbeln
               WHERE addrnumber =  i_vbeln-adrnr AND
                     smtp_addr NE space.
      ENDIF.
      IF i_addrs[] IS NOT INITIAL.
        LOOP AT i_addrs.
          it_reclist-receiver   = i_addrs-smtp_addr.
          it_reclist-express    = 'X'.
          it_reclist-rec_type   = 'U'.
          it_reclist-notif_del  = 'X'. " request delivery notification
          it_reclist-notif_ndel = 'X'. " request not delivered notification
          APPEND it_reclist.
          CLEAR: i_addrs.
        ENDLOOP.
      ENDIF.
    Call FM to send email
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = it_doc_att
          put_in_outbox              = 'X'
        TABLES
          packing_list               = it_mailpack
          object_header              = it_mailhead
          contents_txt               = it_mailtxt
          contents_hex               = it_pdfdata
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorizationfiltered= 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " MAIL_OBJECT
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    -Mohan.
    *Reward if helpful**

  • How to attach files in workflow notification response/reply message

    There is a requirement to respond to worklist notification or email notification with attachments, where in user attachs some data and replies back to notification and this attachments must be handled back by workflow and go to another user.
    Any ideas please help!
    Regards,

    Unfortunately this functionality is not even planned for any upcoming release. Enhancement request can be filed via Oracle Support and then brought to WF Development attention if the functionality does make sense as a business case.
    Regards,
    Alejandro

  • Attachment - File name with accents

    Hello,
    I finally realized why Mail was sending weird name attachements (.doc00, .doc\ca, etc.). It happens when a file name contains an accent (é, à, è...). Now, I'm French, so accents are very useful...
    I mean, why is this happening now? Is Mac OS becoming like Windows NT or 98?
    Any fixes in sight? Any solutions?
    Thanks,
    Daniel
    P.-S. : Tried 10.5.3, not better, plus the upgrade crashed my IBook G4 two times! Way to go, Apple!

    When I use Thunderbird/gmail to send my email, and the attachment with non-ASCII file name can be read correctly using the following codes:
    String attFileName = MimeUtility.decodeText(part.getFileName());
    but when I send the email use outlook2003, it just return bad file name.
    The following is the attachment related content:
    Thunderbird:
    --------------090808030807020200030902
    Content-Type: text/plain;
    name="=?GB2312?B?ztK1xLzGy+MudHh0?="
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
    filename*=GB2312''%CE%D2%B5%C4%BC%C6%CB%E3%2E%74%78%74
    OUTLOOK:
    ------_=_NextPart_001_01CACBCD.3577323E
    Content-Type: text/plain;
    name="=?gb2312?B?ztK1xLzGy+MudHh0?="
    Content-Transfer-Encoding: base64
    Content-Description: =?gb2312?B?ztK1xLzGy+MudHh0?=
    Content-Disposition: attachment;
    filename="=?gb2312?B?ztK1xLzGy+MudHh0?="
    GMAIL:
    --000e0cd11976ac6e63048297dd06
    Content-Type: text/plain; name="=?GB2312?B?ztK1xLzGy+MudHh0?="
    Content-Disposition: attachment; filename="=?GB2312?B?ztK1xLzGy+MudHh0?="
    Content-Transfer-Encoding: base64
    X-Attachment-Id: f_g770st560
    What is the difference?

  • Writing time to a file along with data

    Hello,
    I have a vi which I'm using to collect voltages.  From the data collector vi, all 8 channels are output as an array of waveforms which I then split off.  I'm splitting the channels so that I can convert the readings from volts to engineering units (inches, lbs, etc), then merging the signals back as shown in the attached jpg.  My problem is I need to have a time column on the left but I cannot figure out how to do this.  I've tried many different methods, yet as I'm still a novice, I'm sure there is something I have not tried.  I need to be able to get times in milliseconds (relative to the beginning of recording) and possibly 0.000 1 second intervals.
    Thank you in advance,
    Robbie
    Attachments:
    HSS.jpg ‏15 KB

    The time column in the LVM file is more of a convenience to spreadsheet users than anything else.  You can recreate it from the t0,dt of the waveforms the LVM read returns.  You can either use a FOR loop with the t0, dt as inputs or the ramp generation VI.  Add the result to the beginning of the array of waveforms the LVM read returns, and then save.
    If you want to be more efficient and not kill your RAM as bad, try the following method using the LVM data directly;
    Open your new file and write your header
    Open the LVM file as a normal file
    Read the LVM file and toss the data until you get to the end of the header "***End_of_Header***".
    Copy the data from the LVM file to your file directly
    The specification for the LVM file can be found here, if you want to dive into it a bit deeper.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Bring in .psd file along with clipping path

    Okay, this client has a very odd request. They want a collage of images put together in one file and they want the clipping paths to be attached. Then it's to be saved as an eps file. I'd like to do this in InDesign rather than Photoshop because the clipping path stays with the image in InDesign when you move it. However, I don't know how to save the file as an .eps file with the clipping paths attached. I open the .eps files in Photoshop and there are no clipping paths present.
    Help would be greatly appreciated! Thank you!

    My suggestion is to compose the entire collage in Photoshop. And if you need to preserve the clipping paths of each image of the finished collage, then convert the clipping path to a vector mask. Then you can drag a layer (that will include image and path) into one photoshop file to make collage.
    Here are the instructions from previous post to convert a path into a vector mask.
    To create a vector mask in PS, select the path in the Path Panel, then under Layer menu > Vector Mask > Current Path.

  • Merging text files along with their filename

    I am looking to merge a whole bunch of text files into one document. I am going to the Insert tab and selecting the drop down menu in Object to select text from file.  All of the text is merging in the one document correctly, but I am not
    getting the title/file name of the document inserted in the document and I would like that to be in there. Is there a way of doing this?

    Try the following macro. It assumes you're working with doc, docx & docm files. If not, change the 'doc' in the '*.doc' reference to whatever file type you're working with.
    Option Explicit
    Public oFolder As Object 'the folder object
    Public i As Long, j As Long
    Public DocTgt As Document
    Sub Main()
    ' Minimise screen flickering
    Application.ScreenUpdating = False
    Dim StrFolder As String
    ' Browse for the starting folder
    StrFolder = GetTopFolder
    If StrFolder = "" Then Exit Sub
    ' Initialize the counters
    i = 0: j = 0
    Set DocTgt = ActiveDocument
    ' Search the top-level folder
    Call GetFolder(StrFolder & "\")
    ' Return control of status bar to Word
    Application.StatusBar = ""
    ' Restore screen updating
    Application.ScreenUpdating = True
    MsgBox i & " of " & j & " files processed.", vbOKOnly
    End Sub
    Function GetTopFolder() As String
    GetTopFolder = ""
    Set oFolder = CreateObject("Shell.Application").BrowseForFolder(0, "Choose a folder", 0)
    If (Not oFolder Is Nothing) Then GetTopFolder = oFolder.Items.Item.Path
    Set oFolder = Nothing
    End Function
    Sub GetFolder(StrFolder As String)
    Dim strFile As String
    strFile = Dir(StrFolder & "*.doc")
    ' Process the files in the folder
    While strFile <> ""
      ' Update the status bar is just to let us know where we are
      Application.StatusBar = StrFolder & strFile
      Call UpdateFile(StrFolder & strFile)
      strFile = Dir()
    Wend
    End Sub
    Sub UpdateFile(strDoc As String)
    Dim Doc As Document
    ' Open the document
    Set Doc = Documents.Open(strDoc, AddToRecentFiles:=False, ReadOnly:=False, Format:=wdOpenFormatAuto, Visible:=False)
    With Doc
      If .ProtectionType = wdNoProtection Then
      With .Range.Sections
        With .First.Footers(wdHeaderFooterPrimary).Range
          .InsertBefore Doc.Name & vbCr
          While .Characters.Last.Previous = vbCr
            .Characters.Last.Previous = vbNullString
          Wend
        End With
        .Add Start:=wdSectionBreakNextPage
      End With
      DocTgt.Characters.Last.FormattedText = .Range.FormattedText
        ' Update the file counter for processed files
        i = i + 1
      End If
      ' Update the main file counter
      j = j + 1
      .Close SaveChanges:=False
    End With
    ' Let Word do its housekeeping
    DoEvents
    Set Doc = Nothing
    End Sub
    With this code, each merged file's name will be added to its footer.
    Cheers
    Paul Edstein
    [MS MVP - Word]

Maybe you are looking for

  • Adobe Bridge CS6 Standard Browser wird nicht verwendet

    Hallo zusammen Ich habe ein Problem mit Adobe Bridge. Ich möchte eine Webgalerie erstellen und wollte die mal im Browser anschauen. Wenn ich aber "Vorschau in Browser" anklicke, wird der Flash Builder geöffnet, und ich kann die Galerie nicht ansehen.

  • A Problem with a K7T-Turbo 2

    HI I have a K7T Turbo2 (MS-6330 Ver5.0) and I'm with a problem here: When I'm botting, the POST screen shows my Cyberdrive 48x CD-Rom as a ATA-33. This is ok but, when I'm in the Windows XP Professional or in the Windows 2000 Professional, I cannot s

  • Task Assignment Adapter Error

    Hi I have developed a task assignment adapter for approval.I am hardcoding the group name and then qurtying database to find the group.Then from the resultset I am getting the value of the group key.and then I m writing two tasks to get the key and t

  • IOS fast app switching

    I'm not sure if this issue is simply an IOS bug or something related to certain programs. That being said, after launching some programs for the first time (after reboot of iPad) and configuring it the way I like, most of the time when relaunching th

  • Database space problem during EHP4 installation

    hi every body actually i am upgrading my sap to EHP4 on DEV, my space assigned for MS SQL database is 125 GB(60gb free)  on Windows 2003 , but at the preprocessing stage in EHPi it shows error that system needs 108GB of free space on database but i h