Document ID for attachment in PM Notification

In which table can I find the document id for the PM Notification attachment? Is there even a document id for that?

If you are asking about document info record  on documents tab, it is stored in DRAW table (field DOKNR)
If you need to get list of Documents attached to the object you can use BAPI_DOCUMENT_GETOBJECTDOCS (use PMQMEL as import parameter for object type and notification number as object key)

Similar Messages

  • Need Notification for attaching the handler On Closing of the HTML Extension in Indesign CC 2014

    Need Notification for attaching the handler On Closing of the HTML Extension in Indesign CC 2014
    Hi,
    I need to process a couple of tasks after clicking on cross button(on top right corner of HTML extension) and before the Extension actually gets closed.
    As I Understand, Extension is using chromium browser.
    I tried attaching an event listener to "onbeforeunload" event of chrome but it suppresses any alerts being thrown and closes the extension, without waiting for
    background processes to complete.
    Is there a way through scripting/Plugin or any other way to achieve it?

    try the script at Adobe Community: InDesign 6 is crashing when attempting to open a particular document. All others are opening OK.
    I'd also try moving the pages to a new file, though I suspect that will crash too. Divide and conquer might work -- tray one of your operations on half the document at a time, then repeat by dividing any piece that fails, and so on, until you isolate a page, then use the same method to isolate an object (though it's possible you have a corrupt page).

  • How to create column for attachment in SharePoint 2013 Document Library.

    I've created document Library where user can upload the file while click on Upload option (OOTB).
    Now in this Library I want to create one more column where user can put some comment and attach one more file for reference. 
    For comment I can create "Single line of text" type calumn where user can put some comment but for attachment not sure which type of column I have to create.
    Want to know is there OOTB feature/column available which I can use to Add / create a one more column to upload a document for reference.

    Hi,
    For issue 1, please refer 
    To manage the permissions for a Document Set, you must have at least the Design or Full Control permission level.
    On the Welcome Page for the Document Set, click the Manage tab of the Document Set ribbon, and then click Permissions.
    Do one of the following:
    To change the permission settings for the document library itself, click Manage Parent.
    To stop inheriting permissions from the document library and create unique permissions for this Document Set individually, click Stop Inheriting Permissions.
    To view the specific permissions an individual has, click Check Permissions, and then type the name of the user or group you want to check.
    To inherit permissions from the parent document library (if the Document Set was previously configured to stop inheriting them) click Inherit Permissions.
    For more information about working with permissions, see the links under See Also.
    https://support.office.com/en-in/article/Create-and-manage-Document-Sets-c71d5796-d559-48de-b1b3-42383bdd13ea?ui=en-US&rs=en-IN&ad=IN
    For Issue 2:
    You can create a link in the Quick Launch bar
    http://support.sherweb.com/Faqs/Show/how-to-add-a-link-to-the-quick-launch-toolbar-in-sharepoint-sharepoint-2013
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • I've been sent a scan of a document as an attachment. Clicking on it, I get the message, "Pixel aspect ration correction is for preview purposes only. Turn it off for maximum image quality." What is pixel aspect ration and how do I turn it off?

    I've been sent a scan of a document as an attachment. Clicking on it, I get the message, "Pixel aspect ration correction is for preview purposes only. Turn it off for maximum image quality." What is pixel aspect ration and how do I turn it off?

    It's "aspect ratio", not aspect "ration". 
    It's what determines whether you have square pixels ("normal") or, if rectangular pixels, what the aspect ratio (width : length)  of that rectangle is.
    It's explained in the Help files.  I cannot go into more detail because you have neglected to provide information about your platform and exact version of Photoshop.
    Example in next post

  • Is there a format for a file that I can use for attaching a one page document with photos embedded that will open in everyone's email automatically?   I've tried PDF and Word, but worked only in Mail.  Lost formatting when just copied and pasted in email.

    Is there a format for a file that I can use for attaching a one page document with photos embedded that will open in everyone's email automatically?   I've tried PDF and Word, but PDF worked only in Mail.  Word worked in nothing.  I also tried copying and pasting the document but lost all formatting when just copied and pasted in email.  Is there a way to do this?

    Are you sure PDF won't work? It should as what you're trying to do is pretty much what it is designed for (PDF - Portable Document Format). On a Mac anywone who receives the file should be able to see it in all its page layout glory by using the app Preview or Adobe Reader. Same on a PC, the file should be viewable as a PDF file using Adobe Reader and probably some other viewer (don't use PCs so not sure what other apps).
    What application are you creating the file in and are you sure you're exporting it correctly in PDF format, fonts and images embedded?

  • Badi for attach documents at PO line item?

    Hi Gurus-
    I was wondering if there is a BADI or a user exit for enabling selection criteria for populating the link to documents button (for the PO line item). 
    If so, can you tell me what it is? 
    Thanks!
    -J

    Thanks for the info!  But not what I am looking for.
    The document that I want to attach to the PO already exists in the DMS module.  And I don't want users to have to manually add the documents to the PO. 
    So, I would like to have a BADI to read the the documents and drawings that are linked to the material number entered into each line item of the PO and prepopulate the "Documents" button (icon of white paper and paperclip).  Then the Purchasing person could verify the documents or even add or delete before saving the PO.
    So, I guess I am still looking for a BADI or user exit...

  • QM-Notification: document flow for Customer Return Order

    Hi Experts,
    I changed actionbox and made an FM to create a Customer Return Order (SD). It works.
    And now I need the document flow in this QM-Notification, I try it with FM QMLR_CREATE_DOCUMENT_FLOW,
    but I dont know, where to customize the Object-Types, QM-Notification is BUS2078 and Customer Return Order is BUS2102.
    In which transaction or dialog or where do I have to say the system, that I want the document flow for this combination?
    Thanks for Your help.
    Bernhard

    you have to put that logic in the FM. You can do it in the FM which is creating the return order or copy the FM - QMLR_CREATE_DOCUMENT_FLOW as custom FM and change the object to BUS2078.
    Thanks,
    Ram

  • Document error for BI 7.0

    environment: BI 7.0 SP9 & EP 7.0 SP9
    We managed to run BI report in EP, but error appears when try to create documents on master data via right click the charactersitic value in the report, following is our preliminary setting:
    - "Document links for master data" enabled in query designer property
    - the characteristic is "document enabled"
    - we already attach a test document for the value of characteristic in RSA1->Document
    However, the following errors appear:
    1. if we launch the report in Excel, the document icon appears beside the value of characteristic, if we launch the report in EP, no any document icon appears, why?
    2. We right click the cell of characteristic value to show documents, either via excel or via EP, EP page appears, but no document exists, why? meanwhile "new document" button is available
    3. if we click "new document" button, error message popup like follows:
       " EP runtime error
         iView not found: javascript:document.write('<html><body>Closing sessions ...<.
    Exception id: 10:45_27/10/06_0007_36349250
    See the details for the exception ID in the log file"
       meanwhile error page appears:
       "cannot derive assigned attribute
        cannot derive assigned folder
        error when launch new document dialog"
       then we click either error message to see long text, following message appears:
       "Message: No repository maintained for creating documents for system SAP_BW
    Stack trace: com.sap.ip.bi.km.base.NotSupportedException: No repository maintained for creating documents for system SAP_BW
    at com.sap.ip.bi.km.impl.source.SourceConfiguration.getDocumentSourceForCreation(SourceConfiguration.java:225)
    at com.sap.ip.bi.webapplications.ui.items.km.dialog.NewDocumentDialog.buildProperties(NewDocumentDialog.java:497)
    at com.sap.ip.bi.webapplications.ui.items.km.dialog.NewDocumentDialog.getFolder(NewDocumentDialog.java:618)
    at com.sap.ip.bi.webapplications.ui.items.km.dialog.NewDocumentDialog.buildUrl(NewDocumentDialog.java:466)
    at com.sap.ip.bi.webapplications.ui.items.km.dialog.NewDocumentDialog.buildUrTree(NewDocumentDialog.java:442)
    at com.sap.ip.bi.webapplications.ui.dialogs.framework.UiDialog.doInit(UiDialog.java:168)
    at com.sap.ip.bi.webapplications.runtime.base.PageObject.init(PageObject.java:232)
    at com.sap.ip.bi.webapplications.runtime.base.Dialog.init(Dialog.java:72)
    at com.sap.ip.bi.webapplications.runtime.base.Dialog.processCommand(Dialog.java:168)
    at com.sap.ip.bi.webapplications.runtime.base.CommunicationProcessor.processDialogCommand(CommunicationProcessor.java:99)
    at sun.reflect.GeneratedMethodAccessor473.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sap.ip.bi.util.MethodInvoker.callMethod(MethodInvoker.java:90)
    at com.sap.ip.bi.webapplications.runtime.command.CommandProcessorHelper.processCommand(CommandProcessorHelper.java:364)
    at com.sap.ip.bi.webapplications.runtime.command.CommandProcessorHelper.processCommand(CommandProcessorHelper.java:273)
    at com.sap.ip.bi.webapplications.runtime.base.CommunicationProcessor.processCommand(CommunicationProcessor.java:144)
    at com.sap.ip.bi.webapplications.runtime.base.Dialog.processCommand(Dialog.java:172)
    at com.sap.ip.bi.webapplications.runtime.base.CommunicationProcessor.processDialogCommand(CommunicationProcessor.java:99)
    at sun.reflect.GeneratedMethodAccessor473.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sap.ip.bi.util.MethodInvoker.callMethod(MethodInvoker.java:90)
    at com.sap.ip.bi.webapplications.runtime.command.CommandProcessorHelper.processCommand(CommandProcessorHelper.java:364)
    at com.sap.ip.bi.webapplications.runtime.command.CommandProcessorHelper.processCommand(CommandProcessorHelper.java:273)
    at com.sap.ip.bi.webapplications.runtime.base.CommunicationProcessor.processCommand(CommunicationProcessor.java:144)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processCommandInternal(Page.java:1237)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processCommandSequence(Page.java:1501)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:1948)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:1713)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.doServerRedirect(Page.java:1869)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:1971)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:1713)
    at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:926)
    at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:868)
    at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:328)
    at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:21)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) "
    by the way, we have make the following setting in EP:
    - in System administration->system configuration->SAP_BW(our alias of the system)
      BI Documents for InfoProvider Data: Root Folder of KM Repository = /bi_documents
      BI Documents for Master Data: Root Folder of KM Repository = /bi_documents
      BI Documents for metaData: Root Folder of KM Repository = /bi_documents
    - in ...->knowledge management->content management->repository managers->File system repository
      for etc repository, we set root directory as "D:/usr/sap/PTD/SYS/global/config/cm/etc"
    Anybody can help???
    - Patrick

    Hi Patrick,
    For point 3 :
    could you check table RSPOR_T_PORTAL in your linked BI system please ?
    On the EP node entry in this table, the "/bi_documents" folder link should be setup as content for "BI CM Repository Prefix for Metadata, Master Data and Infoprovider data.
    If these do not correspond, use SM31 to edit the table.
    Hope this helps!
    regards,
    Olav

  • Archive link : user defined document name in attachment list

    Hi
    I have created a content repository (OAC0), document type and had linked the doc n content rep with an SAP business object.
    I am able to attach documents to business object using archive link feature.
    If I attach more than one documents to an SAP business object, for same document type, all the documents are displayed with same name in the attachment list.
    Is there any way by which I can show the original document name as selected by user?
    Thanks in advance.
    Regards
    Ruhi Hira

    hi i have this problem myself all I know is that the original names are used for the following document types
    HRIBENEFIT PREL FAX 0053 -
    HRIBESCHKI PREL FAX 0021 2
    HRICERTIFI PREL FAX 0024 -
    HRICOLFOTO PREL FAX 0002 -
    HRICONTRAC PREL FAX 0016 -
    HRICONTRAD PREL FAX 0016 -
    HRIDATASEC PREL FAX 0002 -
    HRIDATES PREL FAX 0019 10
    HRIDIPLOMA PREL FAX 0022 +
    HRIEMPFOTO PREL FAX 0002 -
    HRIEVALUAT PREL FAX 0025 -
    HRIHEALTHI PREL FAX 0013 -
    HRIMASTERD PREL FAX 0002 -
    HRIPERAPPR PREL FAX 0019 10
    HRIREFEREN PREL FAX 0023 -
    HRIRESUME PREL FAX * -
    HRISOCIALS PREL FAX 0013 -
    HRISTUDID PREL FAX 0013 -
    HRITAXCARD PREL FAX 0012 -
    HRIVL PREL FAX 0010 +
    HRIWORKPER PREL FAX 0016 -
    read this thread:
    Link:[A couple of things regarding GOS and ArchiveLink for attaching Business Doc;
    i hope this wiil help you a least a little bit

  • Document not getting attached in SC and Bid Invitations

    documents and attachments are not getting uploaded. There is an error shown "File path for attachment is invalid".
    The docserver service(in SICF) is active. I have maintained a user of type communication(created in EBP) in docserver service.
    Inspite of this documents are not being uploaded. Is there any other setting that needs to be done?
    Amol

    Amol,
    Check you don't have blank or special characters in your file path. First try to keep it simple as "C:/mydoc.doc".
    Regards.
    Vadim

  • Copying Documents Object Links attached to BOM Headers & Items in Prod Ord

    Dear Gurus,
    I've created a BOM for an assembly. This BOM has document assignments at 3 places -
    1. BOM Header level (in BOM Header overview - Document Assignment tab)
    2. BOM Item level (in BOM Item: All Data - Document Assignment tab)
    3. Document assigned as a BOM Item with Item Category D (in BOM General ITem overview - Document tab)
    When I create the Production Order for this assembly, only the document that is assigned as a BOM Item with Item Category D (point#3 above) is copied into the order.
    I'm not able to view the document links for the documents as described in points 1 and 2 above.
    The necessary configurations in Production Scheduling Profile have been done for integration with DMS.
    I need to know if there is a way (probably through some user exit, BADI or by implementing some SAP Note), the object links for documents attached to BOM Header and BOM Items can also be transferred to a Production Order.
    Please help me out in resolving this issue as it is a very critical requirement of the client.
    With Regards,
    Nitin

    Hi Niraj,
    If you follow following path in the Production Order Header. click on the Document Overview (SHIFT+F7) Button
    You could be able to see the Links for Material Master attached Documents. there is a Button for BOM origin documents. I tried but it didnt worked. I hope it works for you. If it works for you. Please let me know.
    Regards,
    Ravi S Bijjala

  • Document ordering in attachment tab

    Hi all,
    I am a bit confused about the ordering of document in attachment tab of livecycle.
    My customers ask for a chronological order of document when they add attachment from the workflow. I think the easiest way to do is use a list of document, and add new document at the end of the list whenever it is added, but LiveCycle seems to display them in very strange order.
    My scenario is:
    LCES process adds 5 documents in the attachment list. (it adds 1 document at first task, 2 at second task and the last 2 documents at the third task)
    I create following variable:
    - attachmentList: List of <document> (to store and display in attachment tab)
    - tempDocument: document (to store generated pdf here and add it into attachmentList)
    - genCounter: int (to differentiate if user generate pdf many times)
    After generate the pdf, I call a execute script similar as follow:
    =====================================================
    import java.util.List;
    import java.lang.String;
    import com.adobe.idp.Document;
    import java.io.File;
    Document doc =  patExecContext.getProcessDataDocumentValue("/process_data/@tempDocument");
    int genCounter = patExecContext.getProcessDataIntValue("/process_data/@genCounter");
    File file = new File("finalDisbursementLetter"+genCounter+".pdf");
    doc.copyToFile(file);
    Document doc1  = new Document(file, true);
    List list =  patExecContext.getProcessDataListValue("/process_data/attachmentList");
    list.add(doc1);
    =====================================================
    The order of file being added is (top to bottom):
    [1]
    GrantApplicationForm.3214.pdf
    draftDisbursementLetter1.pdf
    draftPaymentVoucher1.pdf
    finalDisbursementLetter1.pdf
    finalPaymentVoucher1.pdf
    but when I see in the attachment tab, the order is:
    [2]
    GrantApplicationFormFTS000908000017.3214.pdf
    draftDisbursementLetter1.pdf
    finalPaymentVoucher1.pdf
    finalDisbursementLetter1.pdf
    draftPaymentVoucher1.pdf
    I have tried with a custom component to list the file name, it still display correct order, i.e. as [1].
    Do I miss out any thing or can you let me know what ordering of attachments that Livecycle is using?
    Thank you,
    Anh
    P.S.
    When it first add 3 document, i still see it displays correctly. i.e.
    [3]
    GrantApplicationForm.3214.pdf
    draftDisbursementLetter1.pdf
    draftPaymentVoucher1.pdf
    But when adding 2 more documents, the ordering is very strange as [2]

    I tried to download the 5 documents and try sorting with windows, i realized that if I download 1 by 1 by the order:
    GrantApplicationForm.3214.pdf
    draftDisbursementLetter1.pdf
    finalPaymentVoucher1.pdf   
    finalDisbursementLetter1.pdf
    draftPaymentVoucher1.pdf  
    and sort by accessed time, I will have the order as [2].
    i.e.
    GrantApplicationFormFTS000908000017.3214.pdf (6:58:18/6:58:18/6:58:46)
    draftDisbursementLetter1.pdf (6:58:18/6:58:25/6:58:25)
    finalPaymentVoucher1.pdf    (6:58:18/6:58:28/6:58:28)
    finalDisbursementLetter1.pdf (6:58:18/6:58:30/6:58:30)
    draftPaymentVoucher1.pdf    (6:58:18/6:58:32/6:58:32)
    The timing are created/modified/accessed in order.
    I don't know why it sort by accessed time or it is just a coincident ...
    Regards,
    Anh

  • Axis SOAP Adapter - Setting MIME headers for attachements (Handlers?)

    Hello,
    I need to know if/how it is possible to set the individual MIME headers of the parts making up a multipart/related SOAP message using only standard Axis Handlers e.g. "com.sap.aii.axis.xi.XI30DynamicConfigurationHandler" (as described in the Axis FAQ in Note 1039369).
    I know I can insert transport headers  using "com.sap.aii.axis.xi.XI30DynamicConfigurationHandler", but I can't see a way of setting a MIME header for, say, the first part (i.e. the SOAP part) or the second part (e.g. an attachement). Is this possible without writing your own Axis handler? The Axis FAQ, in "Advanced usage question 31" implies that you can set MIME Headers but only shows an example of setting the transport header.
    I am using the SOAP Adapter to send a message comprising and XML message (in the SOAP body) and a PDF document (as an attachement). The external company this is being sent to requires that we have specific values for the "Content-Id" MIME header in each part of the multipart/related document. This is why I need to understand if we can do this without writing our own Axis Handler.
    Incidentally, I have tried to write a custom Axis Handler but couldn't get PI to find it after deployment. I did this by inserting my JAR file in the "com.sap.aii.adapter.lib.sda" (as per Notes 1039369 / 1138877) and then using JSPM. After deployment, though, when I tried to start the SOAP Adapter I got the following error in the RWB: "failed to initialize: org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException: com.hp.gerryaxis.GerryAxis..." (my class was called "GerryAxis" and I placed this in package "com.hp.gerryaxis"). I'm not an experienced Java programmer (my background is in ABAP), so if anyone can suggest whey I'm getting this error, I'd be very grateful (for example, could my choice of package be causing the problem?).
    Thanks for your help.

    I went ahead and wrote a simple bespoke Axis Handler. By invoking this from the standard "HandlerBean" in the module processor of my communication channel, I was able to overwrite and set new MIME headers in the Attachment Parts of my SOAP Message. I was also able to change the contents of the SOAP Envelope; for example, I found I could easily delete the SOAP Header. However, I've encountered a problem when I try and update the MIME headers of the SOAP Part i.e. the Part of the multipart/related message containing the SOAP Envelope.
    Does anyone know why I can't seem to change the MIME headers of the SOAP Part?
    The Axis API calls I used were as follows:
    (1) To update the MIME headers of attachements in my SOAP message:
    (a) Message = MessageContext.getCurrentMessage()
    (b) Iterator = Message.getAttachments()
    (c) AttachmentPart = Iterator.getNext()
    (d) AttachmentPart.setMimeHeader(name, value)
    This works.
    (2) To update the MIME headers of the SOAP (root) Part:
    (a) Message = MessageContext.getCurrentMessage()
    (b) SOAPPart = Message.getSOAPPart()
    (c) SOAPPart.setMimeHeader(name, value)
    This DOESN'Twork - the MIME headers of the SOAP Part never change.
    (3) To update the SOAP Envelope (delete the SOAP Header):
    (a) Message = MessageContext.getCurrentMessage()
    (b) SOAPPart = Message.getSOAPPart()
    (c) SOAPEnvelope = SOAPPart.getEnvelope()
    (d) SOAPHeader = SOAPEnvelope.getHeader()
    (e) SOAPHeader.removeContents()
    This works.
    I just don't understand why the call to SOAPPart.setMimeHeader() doens't work when I try and insert new MIME headers to the SOAP Part (e.g. "Content-Name") or when I try and change existing MIME headers there (e.g. "Content-ID"). I don't get any errors.
    The code of my handler is:
    @(#)GerryAxis.java       
    Set MIME headers in the SOAP and specified attachment part of a message
    package com.hp.handlers;
    import org.apache.axis.handlers.BasicHandler;
    import org.apache.axis.AxisFault;
    import org.apache.axis.attachments.AttachmentPart;
    import org.apache.axis.Message;
    import org.apache.axis.MessageContext;
    import java.util.Iterator;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    The <code>GerryAxis</code> handler class sets MIME headers.
    <p>
    This handler accepts the following parameters:
    <ul>
    <li><b>name</b>: Name of header
    <li><b>value</b>: Value for header
    <li><b>attachment</b>: Attachment number
    </ul>
    public class GerryAxis extends BasicHandler {
      /* (non-Javadoc)
    @see org.apache.axis.Handler#invoke(org.apache.axis.MessageContext)
      public void invoke(MessageContext msgContext) throws AxisFault {
        int i=0;
        boolean found = false;
        AttachmentPart ap = null;
        javax.xml.soap.SOAPPart sp = null;
        StringBuffer debug = new StringBuffer();
        try {
          // The MIME header change is controlled from the parameters "name", "value", "attachment" which  are
          // set in the module processor as parameters.
          String name  = (String)getOption("name");
          String value = (String)getOption("value");
          String attachment  = (String)getOption("attachment");
          Message msg = msgContext.getCurrentMessage();
          // Get the SOAP Part (the part holding the SOAP Envelope
          sp = msg.getSOAPPart();
          if (sp == null)
              debug.append("getSOAPPart returned <null> / ");
          // Set a MIME header in the SOAP Part - THIS DOES NOT WORK - WHY?     
          sp.setMimeHeader(name,value);
          // Remove the SOAP Header for the Envelope - this works fine
          SOAPEnvelope se = sp.getEnvelope();
          SOAPHeader sh = se.getHeader();
          sh.removeContents();
          // For debugging - writes some debuggin information to a "DEBUG" MIME header in the first Attachement Part
          debug.append("name = " + name +" / ");
          debug.append("value = " + value +" / ");
          debug.append("attachment = " + attachment + " / ");
          debug.append("getMimeHeader for SOAPPart returned " + sp.getMimeHeader(name)[0] + " / ");
          debug.append("getContentId for SOAPPart returned " + sp.getContentId() + " / ");
          // Update the specified attachement's MIME header - this works fine
          Iterator it = msg.getAttachments();
          while (it.hasNext()) {
            i++;
            ap = (AttachmentPart) it.next();
            if (i == new Integer(attachment).intValue()) {
              found = true;
              break;
          if (found) {
            ap.removeMimeHeader(name);
            ap.setMimeHeader("DEBUG",debug.toString());
            ap.setMimeHeader(name,value);
          msg.saveChanges();
        catch (Exception e) {
          throw AxisFault.makeFault(e);
    Thanks
    Edited by: Gerry Deighan on Oct 3, 2010 10:27 PM

  • Hot to display PDF and Word documents as an attachment in OBIEE Reports

    Hi,
    From few of Oracle threads I learnt that we can store the files in a server locaiton and read it thro a URL. What I am trying to do is, PDF or Word document will be stored in database as BLOB fields. This BLOB field needs to be come as an attachment in OBIEE Reports and by clicking that icon, it uses the local applicaiton PDF reader or a word applicaiton and open the attachment, just like how we open an attachment from a E-mail. Can you please help me with the possible methods of that. I can provide you more information incase if you need.
    Thanks
    Augesthi

    As long as you used the paper-clip Attach icon, that should be fine.
    The entire document appears to you because your Mac recognizes the document type, and displays it for you, saving you from having to mouse around and find a Reader for it. You can still use the Save icon to save a copy of only the attachment.
    To avoid problems with other email readers, be sure the checkbox [√] send windows-friendly attachments is checked.
    I addition, some email readers cannot cope with any attachments positioned at any place in the document other than at the very end. So make sure you move the cursor to the absolute end of the document before clicking "Attach".
    If all else fails, send an email that says, "attachment to follow", then send the attachment right away in a separate email, with nothing else in the body of the message. Some use the Subject abbreviation (nt) to indicate "no text", that is, no words typed in the message portion.

  • Tabel for Attachements in Sales Order

    Hi There,
    We normally attach PO/Contract as a reference document in sales order while creating a SO. Can anyone tell me where these attachements get stored (table name)in the SAP database as i need to create a z report for viewing all the attachements.
    Thanks,
    Girish
    Edited by: Girish  Pawaskar on Jun 2, 2008 6:43 AM

    We have have done customization using ABAP program whereby in the sales order page we have an icon for attaching documents. A good ABAPEr should be able to give you this functionality.
    You can also go to texts tab in header or item level and there alos you have an icon for attachments.
    Let me know if this helps.
    Thanks,
    Girish

Maybe you are looking for

  • Need info on getting my client set up to be able to log on to BC and change text.

    Can't seem to find that info! Paige Powell

  • Classification of Purchase Info Records

    Hi , Not sure if anyone can help me here - I've searched hi and low, but here goes.... Is it possible to add classification to a Purchase Info Record? Essentially info records will be created by a custom procedure and have a series of "normal" fields

  • Column name as item in lov - parameter passing

    Hello Eveyone, Currently i am working on a requirement where the user will choose any one of the column of the database as parameter. Means all the column names should come in LOV. Once he selects the column he has to choose the operator(>,<,=,<>) in

  • Is it possible for me to import music from my pc?

    I have been able to import any music off of my pc that I had downloaded from the internet. The problem is that it seems all of my full albums (wva files) say they are downloading, but I cannot find them in my itunes library. The only thing that has w

  • RFQ and PO XSL-FO reports

    Hello All, We are currently implementing R12 (Sourcing, Purchasing etc) for one of the customer in APAC region, and we have to modify standard RFQ and PO XSL-FO reports. We are able to modify XSL files. But if we have to add new fields, we need to mo