Attaching documents using plsql package FND_WEBATTACH

I'm trying to attach a file from standard package FND_WEBATTCH to the Customer screen,
can any one help me how to attach a file using plsql procedure??
I could able to do the same from application but when I'm trying to attach a file using Add_Attachment procedure in FND_WEBATTCH package it displays my record in applications but when I click on view document button . I'm getting error
Its very urgent
I'll appreciate if someone will get back to me as soon as possible
Thanks in advance

Hi
Please verify with the BASIS Person in your team to Verify whether the authorization object is correctly defined in the system.
<b>The authorization object to check here is ->
S_SRMGS_DC</b> This refers to Records Management: Authorization for Documents.
Here is the documentation of the this authorization object.
Definition
This authorization object refers to documents (as collections of versions and variants). The term document covers documents, records, record models, file plans, and notes.
Defined fields
ACTVT
Entries in this field restrict the authorization to particular activities. Enter the activity numbers of the activities that are to be allowed.
Notes:
Authorization for the activity Create is only effective if you assign the same authorization for versions, variants, and attribute values.
Authorization for the activity Delete is only effective if you assign the same authorization for versions and variants (do not assign delete authorization for attribute values).
Authorizations for the activities Search and Transport refer to the document with all its associated versions and variants.
Authorizations for the activities Close Consolid. Unit Processing and Open Consolid. Grp Processing refer to the document with all its associated versions and variants.
SPS_ID
Entries in this field restrict authorization to a particular element type. Enter an element type ID.
SRM_MODEL
Entries in this field restrict the authorization to records of a particular record model. Enter the unique ID of a record model.
DOCUMENTID
Entries in this field restrict the authorization to a particular element. Enter the unique document ID.
Hope this will help.
Please reward suitable points.
Regards
- Atul

Similar Messages

  • Attaching documents using plsql package FND_WEBATTCH

    I'm trying to attach a file from standard package FND_WEBATTCH to the Customer screen,
    can any one help me how to attach a file using plsql procedure??
    I could able to do the same from application but when I'm trying to attach a file using Add_Attachment procedure in FND_WEBATTCH package it displays my record in applications but when I click on view document button . I'm getting error
    Its very urgent
    I'll appreciate if someone will get back to me as soon as possible
    Thanks in advance

    Pl post details of OS, database and EBS versions. Pl enable trace before running the FND_WEBATTACH process to determine why it takes so long
    HTH
    Srini

  • Attach Documents using Generic Object Services

    With reference to Manual Bassani's SDN Contribution of code examples on how to attach documents using Generic Object Services - we have found that since implementing ECC 6 the following code no longer works (at the end of page 9):
    CALL CREATE ATTACHMENT SERVICE FROM TOOLBAR
    WHEN 'ATTACH'.
    CALL METHOD MANAGER->START_SERVICE_DIRECT
    EXPORTING
    IP_SERVICE = 'CREATE_ATTA'
    IS_OBJECT = OBJ
    EXCEPTIONS
    NO_OBJECT = 1
    OBJECT_INVALID = 2
    EXECUTION_FAILED = 3
    OTHERS = 4.
    It is necessary to use IP_SERVICE = 'PCATTA_CREA' to get this to function correctly.
    The original document can be found at [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3]

    Check the Naimesh Patel Blog he explain very well
    http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html

  • When attaching documents using GOS send them with workflow

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

    Hello Andrés,
    Thank you for replying. The main problem is starting the workflow. For that I need to create an event and that is my biggest trouble. I have seen the object IFSAP already. There are no events in it and as such I have created my custom object as super type.
    So I need to create the event from scratch.
    Hope my requirement is clear.
    Thank you.
    Edited by: Apoorv Lohani on Feb 3, 2012 7:54 AM

  • PtG SQL-Adapter using PLSQL Package

    Hi,
    I'm using a PLSQL Package instead of a single procedure to build a service.
    If I call my personal error procedure after a no_data_found Exception, I get an Errormsg in the Webbrowser: oracle.panama.PanamaException: Expected 'EOF'.
    Does anybody has some ideas?
    Thanks.
    Kind regards
    Claus

    Problem was that the exception occured in a subblock and the rest of the procedure was worked of after the exception handling. So I resolved two <SimpleResult> Blocks in one XML Page.
    Sorry for stealing your time this time.
    Thx.

  • Loading/breaking large files containing multiple XML documents using plsql

    Hi I have a requirement where in the client sends the multiple xml payloads/documents in a single text file. I need to load that into the xmltype varialbe. How to do this?
    I'm able to load the entire document into a clob object, here.. all the xml payloads are loaded into a single row. When I try to access this I get a error
    ORA-31001: Invalid resource handle or path name "/MobileInventoryResponse.dtd"
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    This error is due to the dtd present in the xml document : <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
    But if I load the data into a clob after removing the doctype reference then I get the following error. Here to mulitple xml documents are loaded into a single clob row.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00209: PI names starting with XML are reserved
    Error at line 81
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    When try to access this by using select xmltype(x) from t
    where x is column type of clob.
    Please let me know any method or type loading the multiple xml documents by using plsql. Only plsql method. There is a way by using SAX Loader. But can it be used in plsql or its a java method of loading.
    Regards,
    Naveen
    Edited by: MAN on Oct 18, 2008 9:21 PM

    sorry for that...
    There was enter character between some tags. From there I'm not receiving that particular error.
    Now what I get is
    ORA-31001: Invalid resource handle or path name "/MobileInventoryResponse.dtd"
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    ORA-06512: at line 39
    This is because there is a doctype at the start of the xml payload.
    But if there is no <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd"> this statement then it works fine.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
    <MobileInventoryResponse>
    And this exercise I'm doing in my Windows xp loaded operating system with a local instance of oracle ... Do i need to do any other setting.
    Along with that I followed your method mentioned @ Re: LPX-00209: PI names starting with XML are reserved
    ignore:=dbms_xdb.createResource('/MobileInventoryResponse.dtd',bfilename('XML_DIR','MobileInventoryResponse.dtd'));
    And I'm not getting how it will refer the this resource.
    this above partilcular statement . should it be executed when ever we insert into the table ? But in the dtd there is no word saying "MobileInventoryResponse".
    got this error.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00104: Warning: element "MobileInventoryResponse" is not declared in the DTD
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    ORA-06512: at line 21
    This is how I'm doing in the block
    DECLARE
    l_filehandle UTL_FILE.FILE_TYPE;
    l_filename VARCHAR2(50):='test.xml';
    l_rec_data VARCHAR2(500);
    l_rec_trim_data VARCHAR2(500);
    l_rec_trim_upper VARCHAR2(500);
    l_rec_full_data CLOB;
    ignore boolean;
    BEGIN
    l_filehandle := UTL_FILE.FOPEN('XML_DIR',l_filename,'R');
    --dbms_xdb.deleteResource('/MobileInventoryResponse.dtd',dbms_xdb.DELETE_RESOURCE   );
    LOOP
    ignore:=dbms_xdb.createResource('/MobileInventoryResponse.dtd',bfilename('XML_DIR','MobileInventoryResponse.dtd'));
    commit;
    UTL_FILE.GET_LINE(l_filehandle, l_rec_data);
    --dbms_output.put_line('l_rec_data : '|| l_rec_data);
    -- Trim the record to remove spaces
    l_rec_trim_data := TRIM(l_rec_data);
    l_rec_trim_upper := UPPER(l_rec_trim_data);
    l_rec_full_data := l_rec_full_data||l_rec_data;
    IF l_rec_trim_upper LIKE '</MOBILEINVENTORYRESPONSE>' THEN
    dbms_output.put_line('l_rec_full_data : '||l_rec_full_data);
    INSERT INTO library_xml VALUES(xmltype(l_rec_full_data));
    l_rec_full_data:=NULL;
    END IF;
    dbms_xdb.deleteResource('/MobileInventoryResponse.dtd',dbms_xdb.DELETE_RESOURCE );
    commit;
    END LOOP;
    UTL_FILE.FCLOSE(l_filehandle);
    COMMIT;
    --exception just for testing purpose
    EXCEPTION
    WHEN no_data_found THEN
    NULL;
    commit;
    END;
    Edited by: MAN on Oct 21, 2008 2:47 AM

  • Attaching documents using object services

    Hello,
    Are there any performance/sizing guidelines for utilizing the object services function to attach documents to service orders, notification, equipment, etc?
    Our users would like to do this, and I am concerned about performance.
    chris

    Hi Chris,
    from the document point of view I do not know any restrictions which lead to a loss in performance if you attach more documents to a service order or something else.
    Best regards,
    Christoph

  • How to attach document using Generic Object Service

    Hi all,
    How can i create attachment to the parked invoice using Generic Object services? i want function modules which are used to do it.
    Actually I want to do this from the business object method. I am having word document as one of the workitem step. once i get this document I need to attach this document to the parked invoice so that users can see that document by view object list.
    Its urgent.
    thanks.

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • Extracting attributes from XML document using plsql

    Hello,
    I have successfully written a plsql procedure that has been
    using Xpath to extract the element values from an XML doument:
    i.e.
    l_xpath := '/Form_Data/Person_Details/Initials';
    l_DomNodeList := xslprocessor.SelectNodes(l_RootNode, l_xpath);
    l_DomNode := xmldom.item(l_DomNodeList,0); -- first Element
    l_DomNode := xmldom.getfirstchild(l_DomNode);
    l_id_number := xmldom.getNodeValue(l_DomNode);
    However the data (Initials) I wish to extract is now stored as
    attributes within the Person_Details element and I was wondering
    how I would go about explicitly extracting the attributes values!
    I have not been able to find any examples, although I have been
    pointed in the direction of xmldom.getattribute without any
    success!
    Any help, or code examples greatly appreciated,
    - Mark...

    example:-
    xpath.VALUEOF(i_doc,v_PricingPath||'@LockIndicator');

  • Attaching documents using oracle forms

    Can we develop a functionality so that the user can attach and view the attachments using professional forms?.
    Thank You.
    PK

    Hi,
    If you are on Forms 10g
    Please try using WEBUTIL.
    Ask user to attach a file...meaning ...you are uploading that file on to Aserver
    when user tries to view it you are downloading it from Aserver to client m/c.
    if this helps,Please mark as helpful/answered
    thanks

  • I purchased an $89.99 pack 2 days ago thinking I could use this to edit PDFs. How do I edit PDF document using this package?

    I purchased an 89.99 Acrobat pack but can't figure out how to edit PDF's which is the reason I made the purchase. How do I edit with this software?

    Hi peggyb50904266,
    I'm sorry for the confusion: Adobe PDF Pack allows you to create and combine PDF files, but not edit them. To do that, you need to use Acrobat. If you'd like, we can switch your PDF Pack subscription for an Acrobat Pro or Standard subscription.
    Best,
    Sara

  • PlSql Package in Jdeveloper

    I want to use Plsql packages for insert/update/delete in Jdeveloper Jsp forms . Can anyone help me regarding this . Thanks in Advance
    Thanks
    N.Nagarajan

    Or you could create an EntityObject based on a view, and have your Pl/SQL package called by "instead of" triggers on this view. This way, you keep a consistent interface between various applications (for instance, a BC4J application and something built with PHP).

  • No results searching attached documents in e-Recruiting/TREX

    Hi,
    I get no results using TREX when searching the content of the documents attached to the candidates using free text search in Talent Relationship Management service.
    I get though all results searching the attached documents using the transaction SKPR07.
    I get also results applying all other search criteria.
    We are using ERECRUIT 6.0 SP10. I have also checked MIME types both in IMG and in TREX. Everything is set up.
    Best regards,
    Beata

    Hi Beata,
    it's normally not possible to lokalize the reason of such problem. So I would like to ask you to create a new OSS message for BC-TRX component
    Best regards,
    Mikhail

  • How to use fnd_webattch.add_attachment API to attach document to an invoice?

    I am trying to use fnd_webattch.add_attachment API to attach document to an invoice.
    But the program seems successfully loaded  the attachment to Invoice. But when I try to open the attachment from UI, I got ORA-01403 no data found screen.
    Don’t know what’s worng with code, Can someone help?
    My pdf file is locate  at app  and DB servers.
    Here is my sql program,
    set feedback off
    set verify off
    set serveroutput on size 100000
    set autocommit off
    Declare
    v_category_id              NUMBER;
    v_attached_doc_id          NUMBER;
    v_invoice_id               NUMBER :=2814131;
    v_invoice_image_url        VARCHAR2(500) := NULL;
    v_function_name            VARCHAR2(50)   := 'APXINWKB';
    v_category_name            VARCHAR2(100) := 'CUSTOM291';
    v_description              VARCHAR2(300) := 'Test script for attaching OB10 scanned image file to AP invoice';
    v_entity_name              VARCHAR2(100) := 'AP_INVOICES';
    v_file_name                VARCHAR2(100) := '/tmp/AMKOR_PRD_0000577922_20130712-151504.pdf';
    v_user_id                  NUMBER               := 1234;
    TYPE result_set_type IS REF CURSOR;
    v_result_set_curr           result_set_type;
    CURSOR  cur_cat_id
    IS
        SELECT     fdc.category_id
        FROM       fnd_document_categories fdc
        WHERE      fdc.name  =  v_category_name;
    BEGIN
         OPEN cur_cat_id;
         FETCH cur_cat_id INTO v_category_id;
         CLOSE cur_cat_id;
             -- Invoke the fnd_webattach api for attaching the file to the invoice
            fnd_webattch.add_attachment ( seq_num                   => 100
                                         ,category_id               => v_category_id
                                         ,document_description      => v_description
                                         ,datatype_id               => 6
                                         ,text                      => NULL
                                         ,file_name                 => v_file_name
                                         ,url                       => v_invoice_image_url
                                         ,function_name             => v_function_name
                                         ,entity_name               => v_entity_name
                                         ,pk1_value                 => v_invoice_id
                                         ,pk2_value                 => NULL
                                         ,pk3_value                 => NULL
                                         ,pk4_value                 => NULL
                                         ,pk5_value                 => NULL
                                         ,media_id                  => NULL
                                         ,user_id                   => v_user_id
                                         ,usage_type                => 'O'
            SELECT    count(fad.attached_document_id)
            INTO      v_attached_doc_id
            FROM      fnd_attached_documents fad
            WHERE     fad.pk1_value = v_invoice_id;
            IF  v_attached_doc_id > 0
            THEN
              DBMS_OUTPUT.PUT_LINE('Attached sucessfully');
            ELSE
              DBMS_OUTPUT.PUT_LINE('Failed to Link the Attacment.');
            END IF; --IF  v_attached_doc_id > 0

    Hi Hussein,
    Yes. I got "Attached Successfully" message at the end.
    Don't know why it didn't created FND_LOBS record for it.
    My sql was copied from the reference on your reply.
    Thanks,
    Florence

  • Dynamic attachment name with receiver mail adapter and use mail package

    We need to send mapped XML payload as attachment (with dynamic name) to a recepient (recepient email id is part of input xml payload, but not part of the mapped XML payload).
    I could probably do this using the adapter module (as per the following link),
    http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
    I would like to explore if this would be feasible using Mail package and XI payload.I already have a Java mapping that is converting the input XML to required Output format. If I am using Mail package (XI Payload), how do I go about sending this Output XML from java mapping as attachment to email id available in the input payload?

    Hi,
    1) XML payload as attachment (with dynamic name)
    2) recipient (recipient email id is part of input xml payload, but not part of the mapped XML payload)
    These two is possible by using Mail Package. You have a standard xsd for mail package which you can download from the SAP Note 748024.
    The xml created in you java mapping which will be your attachment should be put into the <content> tag of the mail package xml structure. and the file name can be set in the <Content_Type> tag.
    <?xml version="1.0"; encoding="UTF-8"?>
    <p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
    <Subject>My Invoice</Subject>
    <From>from email address<;/From>
    <To>to email address</To>
    <Content_Type>text/plain;name="MyFile.csv";</Content_Type>  --> file name here
    <Content>123;A49;aaa</Content>   -> attachment xml here
    </p2:Mail>
    And you have to select MailPackage in the receiver mail adapter.
    Regards,
    Aravind

Maybe you are looking for

  • Driver for HP laserjet 1000

    I have a flashy new imac and my hp laserjet 1000 is not listed on the drivers list. Lots of other hp printers are listed - is there a way to 'trick' the computer into thinking a different printer is connected but still be able to print simple text? I

  • Replace text with formula in calculate columns

    How can I replace ";" in a text like this with " AND " ? example text: "abc;cde;efg;ijk" the result should be like this: "abc AND cde AND efg AND ijk"

  • Cannot find loops and comes up red

    hi i have worked with ST before but when i opened STP all of the instrument names were in a red font. I tried to search them again but then they wouldn't appear at all and the tabs went grey. I then tried the suggested solution of creating a new fold

  • HP g049au downgraded to windows 7 32 bit showing atikmdag.sys display problem

    HP g049au downgraded to windows 7 32 bit showing atikmdag.sys display problem.  Downgraded according to HP support instructions found here- http://h30434.www3.hp.com/t5/Notebook-Operating-Systems-and-Software/hp-15-g049au-K5B45PA-driver-for... Crash

  • Aperture 1.1 Unable to update

    I have OSX 10.4.6, Aperture 1.0.1 and Norton AntiVirus turned off. Aperture update won't alow me to update to 1.1. It keeps telling me I need 1.0.1. Have any of you run into this problem? Thanks in advance, Jim