Error while attaching the document using Method add_attachment

Hello Friends,
We are getting an error while using the BCS Class Method for attaching the documents to the mail.
We are using method:  add_attachment()
For this I am passing the parameters:
attachment_type: PDF
attachment_subject: XXXXXXX
att_content_hex: content_hex[]  "Internal table
The system is throwing error message X_ERROR.
Friends please help me in how to rectify the error message.
Thanks and Regards
Pradeep Goli

Hi,
Please code as below.
data: binary_content type solix_tab.
CALL METHOD Document->add_attachment EXPORTING i_attachment_type = u2018PDFu2019
i_attachment_subject = u2018My attachmentu2019 i_att_content_hex =
binary_content.
Regards
chitra

Similar Messages

  • Posting period 011 2013 is not open while posting the document using F-02 getting the error

    Hi SAP Captains,
    Pls help me here.
    While posting the document using T-code F-02 getting the error "Posting period 011 2013 is not open.
    Please help me how to do, can you provide step by step.
    Rgds..Suresh

    Hi Suresh,
    You can search google and will get number of posts on this. This will lead to duplication of similar posts on forum.
    The message says "FI posting period is closed for 11th period of 2013". In which period you are trying to post the transaction?
    If it is past, open the FI posting periods in OB52.
    BR, Srinivas Salpala

  • Bursting Program errors with "Error while generating the Document"

    Hello Folks
    Here is my bursting control file
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:globalData location="stream">
    </xapi:globalData >
    <xapi:request select="/XMLEXCEL1/LIST_G_Q0">
    <xapi:delivery>
    <xapi:email server="mycompany.com" port="25" from="[email protected]"
    reply-to ="[email protected]">
    <xapi:message id="1234" to="[email protected]"
    attachment="true" content-type="html/text"
    subject="Employee Report for Empno"> Dear
    Please review the attached document</xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document key="123" output-type="XLS" delivery="1234"
    output="XMLEXCEL1" >
    <xapi:template type="RTF" location="xdo://AR.XMLEXCEL1.en.00/?getSource=true">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    this is the output of bursting status report:
    <?xml version="1.0" encoding="UTF-8"?>
    <BURS_REPORT><REQUESTID>40403415</REQUESTID>
    <PARENT_REQUESTID>40403339</PARENT_REQUESTID>
    <REPORT_DESC>XMLEXCEL1</REPORT_DESC>
    <OUTPUT_FILE>/opt/local/application/orafin/applmgr/out/outfaud/S1759.zip
    </OUTPUT_FILE>
    <DOCUMENT_STATUS>
    <KEY>123</KEY>
    <OUTPUT_TYPE>XLS</OUTPUT_TYPE>
    <DELIVERY></DELIVERY>
    <OUTPUT>
    </OUTPUT>
    <STATUS>fail</STATUS>
    <LOG>Error while generating the Document...</LOG>
    </DOCUMENT_STATUS>
    </BURS_REPORT>
    Can anyone help on this please.

    can anyone help me?

  • MDS-00521 - error while reading the document  in Oracle ADF at Runtime

    Hi All,
    we are using Jdeveloper Version : Oracle JDeveloper 11g 11.1.1.5.0
    we are getting below error message while opening the page at run time.
    MDS-00521 : error while reading the document app1/screen1.jsff from metadata repository.
    MDS-00569 : unable to read document app1/screen1.jsff from file "D:Oracle/Middleware11115_1/user_projects/domains/j2eeprd1/servers/app1j2eeprd1/.....
    WEB-INF/Lib/ADFViewControllerapp1.jar!/app1/screen1.jsff
    Note : we disable 1) Enable User Customizations and 2) Enable seeded customization in Project properties -> ADF View
    can you please help us to resolve this issue.!
    Thanks,

    This seems issue with MDS schema. You can try two things:
    - Restart everything again (database and admin server as well)
    - If above doesn't solve you problem. then there must problem while creating schema using RCU. Run RCU utility again, drop and recreate schema and reconfigure OIM.
    This is what I suspect. Other experts can jump in with better solution.
    regards,
    GP

  • Error while uploading the data using FM"upload"

    Hi,
    I encountering an error while uploading the data using text file with FM " UPLOAD"
    The error is "File does not exist or cannot be opened "
    But there is a file with name and extenstion right.
    Regards
    Vishnu

    You have to create RC29P-IDNRK(var) using concatenate statement. Try this.
    DATA: new_mark TYPE bdcdata-fnam.
    CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-QTY

  • Error while generating the Document...  Bursting Status Report

    Hey all,
    I am getting some errors in a production environment when trying to burst out some invoice data.
    This process has been pretty robust and out of 1000+ invoices a day, I can only find 4 that are failing regularily.
    Why am I mentioning?, just to show that I am thinking this is a data issue, but just cannot see anything that stands out.
    I can take the xml output and run it through my development suite on my local machine and all runs fine.
    Just when it is running live through the db is when it fails.
    Here is the Bursting output that shows the error....
    <?xml version="1.0" encoding="UTF-8"?>
    <BURS_REPORT>
    <REQUESTID>27044820</REQUESTID>
    <PARENT_REQUESTID>27044726</PARENT_REQUESTID>
    <REPORT_DESC>Invoice Print Selected Invoices</REPORT_DESC>
    <OUTPUT_FILE>[$OUT_DIR]/o27044820.zip</OUTPUT_FILE>
    <DOCUMENT_STATUS>
    <KEY></KEY>
    <OUTPUT_TYPE>pdf</OUTPUT_TYPE>
    <DELIVERY></DELIVERY>
    <OUTPUT></OUTPUT>
    <STATUS>fail</STATUS>
    <LOG>Error while generating the Document...</LOG>
    </DOCUMENT_STATUS>
    </BURS_REPORT>
    The problem is that this output doesn't necessarily help, nor can I find any hints in the OPP logs.
    So... the question becomes...
    Any ideas on where I can look to resolve this issue?+
    Or where I can find any clues at, that would possible point at the issue?+
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    BI Publisher 5.6.3
    Thanks
    Hayden,

    Tim,
    Thanks for the suggestion, always seems to slip my mind that the Bursting Report has debug on it.
    As far as what is generating the XML, it is oracle's standard, only slightly modified ... ;), invoice generating report, RAXINV_SEL.
    Well RAXINV_SEL, or RAXINV_NEW, doesn't matter, same code, that is the executable.
    I have turned on the debug, for both the source xml and the burst request, and unfortunately, still nothing stands out to me.
    I was really expecting to see something in the burst log, pasted at the bottom...
    but, it yet avoids me.
    If I had to guess, I would bet the user went, in our terminology, "slashwit crazy", or example "model /w options", in some description.
    But can't seem to find which field it is blowing up on, since we are catching these special characters in several places already, and slashwit is littered throughout the output.
    I was also looking in the bursting control file for the special xml tags identified there, as those would require no slashes. But those are all clean.
    Hayden,
    XML Publisher: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XDOBURSTREP module: XML Publisher Report Bursting Program
    Current system time is 21-SEP-2009 10:43:12
    XML/BI Publisher Version : 5.6.3
    Request ID: 27048106
    All Parameters: ReportRequestID=27044726:DebugFlag=Y
    Report Req ID: 27044726
    Debug Flag: Y
    Updating request description
    Updated description
    Retrieving XML request information
    Node Name:{node}
    Preparing parameters
    null output =/u007/app/applmgr/{instance}/out/{instance}/o27048106.out
    inputfilename =/u007/app/applmgr/{instance}/out/{instance}/o27044726.out
    Data XML File:/u007/app/applmgr/{instance}/out/{instance}/o27044726.out
    Set Bursting parameters..
    Temp. Directory:/u007/app/applmgr/{instance}/temp
    [092109_104315337][][STATEMENT] Oracle XML Parser version ::: Oracle XDK Java 9.0.4.0.0 Production
    [092109_104315340][][STATEMENT] setOAProperties called..
    Bursting propertes.....
    {burstng-source=EBS, font.Free 3 of 9.normal.normal=truetype./usr/java/jre/lib/fonts/FREE3OF9.TTF, font.Times New Roman.normal.normal=truetype./usr/java/jre/lib/fonts/TIMES.TTF, system-temp-dir=/u007/app/applmgr/{instance}/temp, font.Arial.italic.normal=truetype./usr/java/jre/lib/fonts/ARIALI.TTF, user-variable:cp:parent_request_id=27044726, user-variable:cp:application_short_name=XDO, font.Courier New.normal.bold=truetype./usr/java/jre/lib/fonts/COURBD.TTF, font.Times New Roman.normal.bold=truetype./usr/java/jre/lib/fonts/TIMESBD.TTF, user-variable:cp:request_id=27048106, font.Arial.normal.normal=truetype./usr/java/jre/lib/fonts/ARIAL.TTF, font.Courier New.normal.normal=truetype./usr/java/jre/lib/fonts/COUR.TTF, user-variable.OA_MEDIA=http://diierp.corio.com:8002/OA_MEDIA, font.Courier New.italic.bold=truetype./usr/java/jre/lib/fonts/COURBI.TTF, user-variable:cp:org_id=83, user-variable:cp:DebugFlag=Y, font.Times New Roman.italic.bold=truetype./usr/java/jre/lib/fonts/TIMESBI.TTF, user-variable:cp:responsibility=51270, font.Arial.italic.bold=truetype./usr/java/jre/lib/fonts/ARIALBI.TTF, font.Courier New.italic.normal=truetype./usr/java/jre/lib/fonts/COURI.TTF, user-variable:cp:user=HAYDEN, user-variable:cp:reportdescription=Invoice Print Selected Invoices, user-variable:cp:language=en, font.Times New Roman.italic.normal=truetype./usr/java/jre/lib/fonts/TIMESI.TTF, user-variable:cp:ReportRequestID=27044726, user-variable:cp:locale=en-US, user-variable:cp:territory=US, font.Arial.normal.bold=truetype./usr/java/jre/lib/fonts/ARIALBD.TTF}
    Start bursting process..
    Bursting process complete..
    Generating Bursting Status Report..
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 27048106 on node {node} at 21-SEP-2009 10:43:19.
    Post-processing of request 27048106 completed at 21-SEP-2009 10:43:20.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 21-SEP-2009 10:43:20
    ---------------------------------------------------------------------------

  • Error Message "Error while Opening the Document"

    Hi Friends,
    I have a problem while opening the SFP transaction and Clicking on the Layout Tab the SAP System is giving an error message saying "Error while Opening the Document".
    I have tried testing on several systems like IDES, ERP, Retail systems. But it is giving me same error. Is this the problem with ADOBE LIVECYCLE DESIGNER?
    And when I click on the Performance Assistant it has given me some information:
    Error while opening document
    Message no. SOFFICEINTEGRATION143
    Diagnosis
    An error occurred in the desktop application while opening a document.
    Friends can you help me in solving this problem.
    Thanking yoy in Advance
    Pradeep Goli

    Pradeep,
    Maybe Live Cycle Designer has not been uninstalled correctly from your system. So goto the following lcaotions and remove the Designer folder if you find them:-
    C:\Program Files\Adobe
    C:\Documents and Settings\<your-username>\Application Data\Adobe\
    Alternatively try installing Live Cycle Designer on some other machine in your network and see if you encounter the same error.
    Similar thread for reference :  Error - Adobe Live Cycle designer
    Chintan

  • Getting Error while accessing the data using odata service

    Hi All,
    Iam new to SAP FIORI. 
    Iam getting the below error while accessing the data using odata service.
    "Failed to load resource: the server responded with a status of 404 (Not found)"
    "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin "
    i have tried all the solutions like changing the url pattern "proxy/htttp".
    and disabled - security in chrome (Chrome is Updated version).
    i tried with IE still got the same problem.
    And installed all the required software in eclipse
    While installing GWPA plugin i got the following error.
    let me know if any one have idea.
    Thanks in advance.

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

  • Error while starting the OA using opmnctl

    HI,
    Am a Beginner on OAS.Am facing a error while starting the application using ./opmnctl startall.
    opmnctl: starting opmn and all managed processes...
    Failed to get IP for localhost (1)
    Failed to get IP for localhost (1)
    Failed to get IP for localhost (1)
    opmnctl: opmn start failed
    Not able to select the components using console.
    Can you help me to resolve
    Edited by: Tarunkudikala on Feb 26, 2009 3:25 AM

    Why not better put that info ???
    If you are installing Oracle Application Server in a DHCP network you must use a loopback configuration. To access the Oracle Application Server, you need to use a local browser. Perform the following steps to install Oracle Application Server in a DHCP network:
    1.
    Find the IP address allocated from the DHCP server by running the following command:
    $ /sbin/ifconfig -a
    The IP address is associated with the interface configured to use DHCP.
    2.
    Configure the host to resolve hostname to loopback IP address:
    1.
    Configure the host to resolve hostname to loopback IP address, by modifying the /etc/hosts file to contain the following entries:
    127.0.0.1 hostname.domainname hostname
    127.0.0.1 localhost.localdomain localhost
    2.
    Check that the hostname resolves to the loopback IP address by entering the following command:
    $ /bin/ping hostname.domainname
    ----------------------

  • Error while transferring the document

    Hi Friends,
    We are getting an Error when we try to create a service confirmation.The error is an 'Error has occurred while transferring the document'.When we see in the transmission log it is telling inconsistent update flags.
    How can the error be removed?
    Regards,
    Jay.

    Hi Jay,
    Try doing this once again and go to Tcode SMW01 and try to locate your Bdoc. First it will be in yellow state and it will turn red (error).
    Once you get the error Bdoc, check the error messages in it (there is proper button on the top to get this). You might get the cuase of the error in Bdoc messages itself.
    If not, post me the Bdoc status and the Flow Context.
    Regards,
    Alin

  • TSV_TNEW_PAGE_ALLOC_FAILED error while loading the DATA using DTP

    Hi,
    While loading the data using DTP for 2  DSO's we are gettig the error
    TSV_TNEW_PAGE_ALLOC_FAILED
    can any one kindly help me out regarding the same.
    Thank You,
    Poornima.

    Hi Soundarya,
    Thanks a lot for the reply. But i found that its running fine in development, where as coming to quality its throwing an error. These happened for Two DSO's. In both the transformations i have identified that the Transformation names are different from Development and Quality..
    There are no routines written for them and no select statements have been used
    Can you please suggest me regarding the same.
    Edited by: Poornima Gayatri on Mar 22, 2010 7:00 AM

  • Error while creating the ASSET using LSMW BAPI method ( BUS1022 )

    Hello,
    Im creating assets using the below LSMW BAPI method
    Business Object      BUS1022     
    Method                     CREATEINCLVALUES
    Message Type         FIXEDASSET_CREATEINCLVALU
    Basic Type              FIXEDASSET_CREATEINCLVALU
    the following errors were triggered while populating the values to ACQ_VALUE and ORD_DEP value.
    Correction to ordinary dep. greater than acc. dep. in area 01
    Correction to ordinary dep. greater than acc. dep. in area 30
    Correction to ordinary dep. greater than acc. dep. in area 31
    Correction to ordinary dep. greater than acc. dep. in area 32
    if i pass only ACQ_VALUE, I am able to create the asset with out any issues.
    Can you guys plz guide me to fix this issue to create the asset with both ACQ_VALUE and ORD_DEP values??
    Cheers,
    Sriram.

    Hello,
    Review AO21.
    Regards
    Waza

  • Error occur while protecting the document using RMS sharing application

    The set-up in which the error occurs has the following details,
    Server name :    hcdc1.ad.com
    RMS SCP :            adrms.ad.com
    http:// adrms.ad.com /_wmcs/licensing/license.asmx
    http:// adrms.ad.com /_wmcs/certification/certification.asmx
    Unable to protect the document and error as "An internall error occured error code 0X8007054F" 

    Hi,
    What Office Suite version you use? If Office 2010, I suggest you uninstall RMS Sharing App and install it once again using following command: 
    setup.exe /s /configureO2010Admin
    After that, run one of the following commands, depending on you operating system:
    For Windows 8 and Windows 8.1, 64-bit: x64\aadrmprep.exe /configureO2010  ; 32-bit: X86\aadrmprep.exe /configureO2010
    For Windows 7, 64-bit: x64\win7\aadrmpep.exe /configureO2010
    Did my post help you or make you laugh? Don't forget to click the Helpful vote :) If I answered your question please mark my post as an Answer.

  • Bursting Program in error 'error while generating the document'

    Hi All,
    We have a requirement to place EXCEL output generated through BI XML report, in EBS path. ex: /usr/tmp
    Parent Concurrent program is generating output file and program got completed normal and Bursting program got submitted.
    But, Bursting program completing in error, saying 'Error While Generating Document'
    Other programs which use Bursting are working normal and they are using same path (/usr/tmp)
    Anyone faced similar issue ? Any sample bursting control file that sends .xls file will also be helpful.
    Below is the bursting file that we created:
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
      <xapi:request select="/XXPREDICT/G_DATA_GROUP">
        <xapi:delivery/>
        <xapi:document output="/usr/tmp/XXYYZZ_${RUN_DATE}_${RUN_TIME}.xls" output-type="excel">
          <xapi:template type="xsl-fo" location="xdo://<APPLSHORTNAME>.<TEMPLATECODE>.en.US/?getSource=true" />
        </xapi:document>
      </xapi:request>
    </xapi:requestset>
    P.S: When we give template type as 'rtf', then we are getting a different error i.e., "No such file or directory"
    Regards,
    Rupa

    You should use:
    <xapi:template type="rtf" location="CUSTOME_TOP_PATH/US/REPORT_RTF_NAME.rtf"/>
    You need to check that there should rtf file present with the same name as you mentioned in above code. Also verify the port number.
    Example:
    <?xml version="1.0" encoding="US-ASCII"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
    <xapi:request select="/DEBIT_MEMO/LIST_G_1/G_1">
    <xapi:delivery>
    <xapi:email id="123" server="localhost" port="1028" from="[email protected]" reply-to="[email protected]">
    <xapi:message id="123" to="[email protected] ${EMAIL}" attachment="true" subject="Invoices for VENDOR_NO:${SEGMENT1} and Period ${CF_4}">
    Please ignore this report.It is for Testing,For INVOICES of vendor ${VENDOR_NAME} for the Period ${CF_4}</xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="${SEGMENT1}||TSRL HM||${CF_4}" output-type="pdf" delivery="123">
    <xapi:template type="rtf" location="/ebiz/app01/appldev/DEV/apps/apps_st/appl/xxabrl/12.0.0/reports/US/XXTSRL_DEBIT_CREDIT_MEMO_PRINT_LATEST_TSRL_HM.rtf">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    HOP! it will help you.

  • Errors while uploading the document

    Hi ,
    I am implementing Applcore Attachment functionality to upload the docs to UCM.
    I have created Content Repository in Jdev by specifying the connection details of UCM instance.But I do not see any "Attachments" folder under "Contribution Folders" and no "Trash" folder either.
    Also , I see some errors ( in UCM server )when I upload the document as below:
    +Privilege cannot be determined for role sysmanager. Cannot find the group Attachments. Exception type is 'java.lang.Throwable'. [ Details ]+
    The content server has generated a diagnostic warning. The stack trace below shows more information.
    +!apUnableToDetermineRolePrivilege,sysmanager,Attachments!syExceptionType,java.lang.Throwable+
    java.lang.Throwable
    +     at intradoc.shared.RoleDefinitions.getRolePrivilegeEx(RoleDefinitions.java:266)+
    +     at intradoc.shared.RoleDefinitions.getRolePrivilege(RoleDefinitions.java:222)+
    +     at intradoc.shared.SecurityUtils.determineGroupPrivilege(SecurityUtils.java:119)+
    +     at intradoc.server.ServiceSecurityImplementor.determinePrivilege(ServiceSecurityImplementor.java:655)+
    +     at intradoc.server.DocumentAccessSecurity.checkSecurity(DocumentAccessSecurity.java:162)+
    +     at intradoc.server.DocumentAccessSecurity.checkSecurity(DocumentAccessSecurity.java:117)+
    +     at intradoc.server.ServiceSecurityImplementor.checkSecurity(ServiceSecurityImplementor.java:371)+
    +     at intradoc.server.Service.checkSecurity(Service.java:2776)+
    +     at intradoc.server.Service.checkSecurity(Service.java:2754)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
    More details can be viewed here
    here
    Any pointers will be helpful to me.
    Regards
    Aradhana

    Which version of UCM are you using? UCM 10g had different default content types and came with ADENG, ADHR, ADMFG etc. already created . 11g has a different set of content types which does not include ADENG. These content types are really just examples to get the system started an operational and would not ever be used in production (I hope).
    You can add the ADENG content type Administration > Admin Applets > Configuration Manager > Options > Content Types...
    A better solution would be to see where ADENG is being set in the code you should be able to change the dDocType setting to something supported in UCM 11g like 'document'
    Tim
    Edited by: Tim Snell on 23-Aug-2010 01:38
    Edited by: Tim Snell on 23-Aug-2010 01:38

Maybe you are looking for

  • External Hard drive does not show up on Disk Utility

    I have a External Hard Drive that I used to use on a PC. Recently, I just bought a new Macbook Pro 13'' and want to transfer my documents from the old PC to the Macbook. My External HD requires a password that you need to type in in order to access t

  • Adding Objects to Object List on the Service Contract Line Item

    Hi, I want to add a new fields at the object list. This is identified as configurable when I click on Configure Page button. Now when I add click on new field it which object should I select to enhance Object List. << Moderator message - Please do no

  • ESP300 error

    Hi, I found an old ESP300 controller that I am trying to get to work. The controller does not reply to any RS232 commands. I checked with a similar ESP300 that is known to work and same computer: no problems communicating. After power on, it takes qu

  • Premiere Pro CC exporting a file has  started crashing my computer of if it completes gives me an audio only MP4

    Read somewhere that a possible solution would be to delete all "Preview" files.  Does this sound logical? Where are these located?

  • Problem with getUserData()

    Hello, i have a problem when i call getUserData from a custom PickBehavior. I have a class that creates a sphere, adds it to a branchgroup and then sets the user data on this branchgroup. In my PickBehavior class then getUserData always returns null.