Steps to retrieve attachments from a storage system linked via ArchiveLink.

Dear experts,
I want to retrieve the documents stored in a storage system linked to SAP via the archivelink and show it in a webdynpro application(Adaptive RFC).I need to know the right approach to do so.I am searching for a funtional module which can fetch me the documents from the data storage.The stored documents are linked to business object type BUS2104.
I'll appreciate any help.
Thanks,
Karambir Singh

Tortsen,
I tried the solution suggested by you.Here's what i did :
I executed the  ARCHIV_GET_CONNECTIONS with input field  OBJECTTYPE values as BUS2104.It gives me some entries in the output connections table.From the results , i picked up the ARCHIV_ID and ARC_DOC_ID fields as suggested by you.
I went to execute SCMS_AO_TABLE_GET  with above two values as import parameters and COMP_ID = "data".But it does not give me any output.It says "HTTP error: 404 Not Found". Any idea why is it so?
Then i went to try SCMS_DOC_URL_READ .I find here that there are two mandatory parameters viz . STOR_CAT , DOC_ID.I tried giving the ARCHIV_ID  value above as value for  STOR_CAT . But it does not recognize it.Then i went to the table SDOKSTCA to look for any valid values for STOR_CAT , but i am not sure which one applies to my scenario.How do i find this?
i'll appreciate any help.
Thanks,
Karambir Singh

Similar Messages

  • Retrieving attachments from guided procedure

    I have a problem with the GP API in webdynpro to retrieve attachments from a guided procedure.
    According to the documentation on help.sap.com this should be easy:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f7/d3c2fd5081446a844575e5af <http://help.sap.com/saphelp_nw2004s/helpdata/en/f7/d3c2fd5081446a844575e5af484722/frameset.htm> 484722/frameset.htm
    But when implementing the code the IGPRuntimeManager class doesn't have a function getAttachmentList()
    I checked it in multiple service packs. I tested it on 2004S SP10 and 2004S SP 16 and in both the function isn't there. I also tested it on the Composition Environment and there it does work.
    When looking at the SAP Note 924776
    it says that there are changes in the public API of SAP Netweaver 7.0 SP10 and SP7.
    Does know how this API works after SP10 ?
    I can't find any SAP documentation about how it works after the change.

    Well, Not sure which you are using. I will talk about 10134. I got the count of attachments using Human Task's global variable. count(bpws:getVariableData('MyHumanTask_1_globalVariable','payload','/task:task/task:attachment')).
    I have used hwf:getTaskAttachmentContents() to read the contents of the file and I have assigned that to base64binary type variable.

  • Retrieving Data from SQLite and make link with the ID of the retrieved data?

    Hello, first of all sorry if my english is bad as im from Mexico.
    I using HTML/Javascript/SQLite, and im having an issue while retrieving data from SQLite, all my querys work right, but when i try to select an Id, the Name, Firstname, and Lastname and only use the Name, Firstname and Lastname to print on screen and the Id to use as a link or OnClick query with the id more info from the name of the person..
    My SQLite query is the next one.
    var sql = "SELECT [sis_persona].[idPersona], [sis_persona].[Nombre], [sis_persona].[Paterno], [sis_persona].[Materno] FROM  [sis_persona] WHERE Nombre  LIKE '"+ nombre1+"%' AND Paterno LIKE '"+ paterno1+"%' AND Materno LIKE '"+ materno1+"%' ORDER BY [sis_persona].[Nombre], [sis_persona].[Paterno], [sis_persona].[Materno] LIMIT 20";
    And my ResultHandler is the next one:
        row = document.createElement("tr");
                    cell = document.createElement("th");
                    cell.innerText = "Nombre";
                    row.appendChild(cell)       
                    cell = document.createElement("th");
                    cell.innerText = "Paterno";
                    row.appendChild(cell)       
                    cell = document.createElement("th");
                    cell.innerText = "Materno";
                    row.appendChild(cell)       
                    tbl.appendChild(row);
                    var numRows = result.data.length;
                    for (var i = 0; i < numRows; i++)
                        // iterate over the columns in the result row object
                        row = document.createElement("tr");
                        for (col in result.data[i])
                var ea = result.data[i];
                cell = document.createElement("td");
                var a  = document.createElement( 'a' );
                a.setAttribute('HREF','#');
                var txt = document.createTextNode( ea.Nombre );
                a.appendChild( txt );
                a.onclick = function() {querytest(ea.idPersona);};
                row.appendChild( a );
                row.appendChild(cell);
                            cell = document.createElement("td");
                var a  = document.createElement( 'a' );
                a.setAttribute('HREF','#');
                var txt = document.createTextNode( ea.Paterno );
                a.appendChild( txt );
                a.onclick = function() {querytest(ea.idPersona);};
                row.appendChild( a );
                row.appendChild(cell);
                        cell = document.createElement("td");
                var a  = document.createElement( 'a' );
                a.setAttribute('HREF','#');
                var txt = document.createTextNode( ea.Materno );
                a.appendChild( txt );
                a.onclick = function() {querytest(ea.idPersona);};
                row.appendChild( a );
                row.appendChild(cell);
                        tbl.appendChild(row);
    And this is where i have the problem, it print three times and i dont know how to take print only the result and make a link with the id from the query.
    var ea = result.data[i];
                cell = document.createElement("td");
                var a  = document.createElement( 'a' );
                a.setAttribute('HREF','#');
                var txt = document.createTextNode( ea.Nombre );
                a.appendChild( txt );
                a.onclick = function() {querytest(ea.idPersona);};
                row.appendChild( a );
                row.appendChild(cell);
    Anyone have any ideas?
    Sorry again if my english is bad.
    Thanks in advance

    Hi Prashant,
    Continuation to above my thread. There is a small correction.Directly in lsmw not possible. I uploaded using the same code of lsmw and made one report. Through that i uploaded the data directly selecting the file.
    Regards,
    Madhu.

  • How to retrieve images from the file system in Portal Forms?

    Portal 3.0.9.8.0
    In a Portal form , there is a field named ID wherein a value is entered. Say the value entered is 5 , how can we get the image named 5.jpg
    from C:/images/ folder and get it displayed in the form ? The images are not stored in the database . Depending on the ID field value , we
    have to retrieve the image.
    Thanks .
    Neeti.

    Hi Neeti,
    This is what I did :-
    Steps:-
    1> I created a procedure named get_image in the application schema as :-
    create or replace procedure get_image
    p_id in integer default 1
    is
    begin
    htp.p('Image Id='||nvl(to_char(p_id),'No Image Id'));
    htp.br;
    if p_id is not null then
    htp.p('<img src="C:\images\'||p_id||'.jpg">');
    end if;
    end get_image;
    2> Created a form on the procedure get_image.
    3> Run the form and for p_id field, enter the image id, and click on Submit - the image will be displayed.
    Hope this helps.

  • How to retrieve attachments from a PDF?

    Hi All,
    how do i retrive attachments in a pdf using workbench process?
    I have used a DDX file which is :
    <?xml version="1.0" encoding="UTF-8"?>
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
    <FileAttachments result="attachmentInfo.xml" nameKeys="*" extract="true">
    <PDF source="inDoc"/>
    <FilenameEncoding encoding="ISO-8859-1"/>
    </FileAttachments>
    </DDX>
    Now i got the attachmentInfo.xml with the informartion of all the attachments.
    My problem is how to actually get hold of the attachments inside the PDF.
    Pls help.
    Thanks
    Abhiram

    The trick to this is in the results that the DDX returns.   When using the FileAttachments tag in a DDX the result is not just the attachments, but also an XML that describes the attachments. 
    http://livedocs.adobe.com/livecycle/8.2/ddxRef/000663.html
    The description file (identified using the “result” attribute in the DDX) goes into a Map stored in AssemblerResult.object.documents.   The extracted documents are also stored in this map. 
    By reading the description XML file you can tell the file name, content type and location (key) of the attachments. A simple loop is used to read the XML file, find the attachments (by the key in the Map) and write them to the file system.

  • How do I retrieve photos from adobe storage to my new hard drive?

    My hard drive crashed and I lost all my data and pics.  The pics are stored in a 20gig file on the adobe cloud.  The software does not show me how to bring those pics back to my new hard drive.  Anyone got a solution?

    ralphbates wrote:
    Thanks John...went there and nothing in the cloud.  I have 20 gigs of photos stored with Adobe but that didn't access them.
    Where exactly did you upload the photos to and how?
    creative.adobe.com is the address for Cloud storage.

  • OSB: Retrieving file from disk and sending it via MTOM

    Hi,
    I'm trying to retrieve binary file from OSB local disk and than send it via MTOM.
    I've created a JCA synchronized reading file adapter. I've unchecked the "native message" option to disable schema translation. The files content seems getting picked up into <wsdl:part name="opaque" element="opaque:opaqueElement" />. I don't like the fact that it is encoded in base64. How to disable base64 decoding?
    I've tried to set the "native message" to some binary element, like <xs:element name="Attachment" type="xs:base64Binary" />. Then I get the "Schema translation failed" exception every time. What my native message should be to pick up a straight forward binary file?
    Can you guide me please how to create a file OSB transport service that would be able to read files?
    Also, if I obtain the file's content, how do I send it from proxy to proxy as a mtom? All of my proxy chains have enabled MTOM and pass binary as reference, but when I look up the messages transmitted, the opaque element seems to contain straigth forward base64 content, not binary reference.
    I would appreciate any help regarding any of this topics.

    Hi Veronica,
    there is absolutely nothing in my $body variableI did a quick test, the reference for the binary content goes to the $body variable...
    Service type = Messaging Service ... Transport = file
    Content of body after picking up a bmp image...
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <con:binary-content ref="cid:-63889258:138079cb851:-7d8e" xmlns:con="http://www.bea.com/wli/sb/context"/>
    </soapenv:Body>
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • Open/save attachments from a website forum link is not working

    Every time I click on a .doc or .docx or PDF it tells me I have chosen to open index.php and wants to open it in Dreamweaver. Other forum members using Firefox are having the same problem. Internet Explorer does open/save the document correctly so it isnot a forum problem.

    Resolved by latest update - V 9.0.1

  • Retrieve Accounts from Remedy System

    Hi,
    I am trying to retrieve accounts from Action Remedy System. I am trying to search accounts and bring in the return list to IDM.Pleas let me know how to query Remedy from SUN IDM.
    Regards,
    flb

    have u acheived this?Please post the code.

  • Loading of transaction data from SAP ECC system failed

    Hi!
    I successfully connected SAP ECC system to SAP BI system.
    The following steps have been executed:
    - user ALEREMOTE with max. authorization
    - RFC destination
    - Distributing Data model
    - Generated Partner profile
    - Maintaining message types in WE20
    Now when I try to load any data from SAP ECC system the loading process in hanging in status "yellow" and never comletes.
    [0FI_AR_4|http://www.file-upload.net/view-1447743/0FI_AR_4.jpg.html]
    The following steps within Load process are yellow:
    Extraction (messages): Missing messages
      Missing message: Request received
      Missing message: Number of sent records
      Missing message: Selection completed
    Transfer (IDocs and TRFC): Missing messages or warnings
      Request IDoc : Application document posted (is green)
      Data Package 1 : arrived in BW ; Processing : 2nd processing step not yet finished
      Info IDoc 1 : sent, not arrived ; Data passed to port OK
      Info IDoc 2 : sent, not arrived ; Data passed to port OK
      Info IDoc 3 : sent, not arrived ; Data passed to port OK
      Info IDoc 4 : sent, not arrived ; Data passed to port OK
    Subseq. processing (messages) : Missing messages
        Missing message: Subseq. processing completed
        DataStore Activation (Change Log) : not yet activated
    Question:
    Can some one give me some technical steps (tcode, report) to solve this problem?
    Thank you very much!
    Holger

    Hi!
    Many thanks for your answer.
    Via BD87 on BW system I detect that all the IDOC's (type: RSRQST) will be received from SAP ECC system.
    Via tcode SM58 I could not detect any entries.
    However the loading status from yesterday is set to "red".
    The errors are:
    Extraction (messages): Missing messages
    Data Package 1 : arrived in BW ; Processing : 2nd processing step not yet finished
    Info IDoc 1 : sent, not arrived ; Data passed to port OK
    Info IDoc 2 : sent, not arrived ; Data passed to port OK
    Can you investigate my issue again?
    Thank you very much!

  • How to load from one BW System to another BW System

    Hi Guys,
    I want to load the BW data from  PAX(BW-Production System) to PRX (BW-DCC-System) .Is there any steps to load it from One BW System to another BW System.
    Any doc available to do the loading from One BW System to another BW System.
    Pl mail to [email protected]
    Send me the steps .
    Points will be assigned.
    Thanks,
    Chinna

    Hi Chinna,
    Loading from one BW system 2 another primarily involves loading data from one infocube to another in other BW system.
    U can create export data sources from infocubes ( rt. clk on infocube n then select  ) and then use these datasources to load data into the infocubes of othar system in usual way.
    Try this out.
    Hope it helps,
    Manish

  • Error at reading RSQONCOND system table via RFC_READ_TABLE

    Hello dear experts,
    I try to read RSQONCOND system table from our external java application via JCO and RFC_READ_TABLE function but receive the following error:
    Could not execute function '[MBI_SAPBW_F0012] Could not execute function 'RFC_READ_TABLE'. Error with ASSIGN ... CASTING in program SAPLSDTX .'. Table: RSQONCOND; columns: INFOSET, ONCOND; where clause: (INFOSET EQ '0SRVE_IS1') AND OBJVERS EQ 'A'
    We used our code successfully with other system tables but in case of RSQONCOND  we got this error, so our code must be fine (if this particular request doesn't require some specific attributes or settings).
    One more thing... I noticed that WCOND attribute in RSQONCOND is of String data type, can it be the cause of the error? But at the same time error takes place even when I try to retrieve the only one record without WCOND attribute (e.g. just INFOSET).
    I also have the same error if to use SE37 transaction with RFC_READ_TABLE  and the RSQONCOND table name in parameters.
    Is it possible to get data from the mentioned system table via RFC_READ_TABLE at all? What the cause of the error? Does any alternatives to RFC_READ_TABLE exist to get the data I need?
    << Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    Thanks in advance,
    Vova
    Edited by: Rob Burbank on May 20, 2011 4:22 PM

    Thank you very much, Sandra for your reply.
    Unfortunately I'm limited by the scope of our application and cannot make any changes on the SAP server, so adding our own custom functionality on the SAP servers is not an option.
    I've also found RFC_GET_TABLE_ENTRIES which doesn't throw an exception but returns somehow encoded values of the STRING datatype (for example from the RSFOBUEV000 or RSQONCOND tables). So, one of the way out is to decode values but I cannot find how.
    Does somebody know how to cope with the issue of retrieving values of the String datatype from third party applications without modifying SAP server?
    We use java and jco library to get access to SAP server.

  • Store \ Retrieve files from file system

    Hi to all!
    I would like to implement a solution for storing files uploaded via apex user interface to servers file system. As well I would like this files to be retrievable by apex users. I designed the following solution:
    For upload:
    1. Through file browse item user chooses file to be uploaded
    2. File goes to custom table (as BLOB)
    -- so far i would use apex Upload\Download files tutorial
    3. File(BLOB) would then have to be written to file system to some directory and file id would have to be written to some db table which holds pointers to files on file system
    4. delete file(blob) from custom table (from step 2)
    For download:
    1. user chooses link from some report region(based on table giving file pointers to files residing on file system)
    2. file identified with chosen file pointer is then inserted into blob column of some custom table in db
    3. from custom table with download procedure fie is finally presented to user
    4. delete file(blob) from custom table (from step 2)
    Using apex tutorial for Upload\Download files it is straitforward to get the files from db table or into db table using blobs. But i have not seen any example of using BFILE or migrating files from db to file system and vice versa.
    So some Q arise:
    a) How can I implement step 3 under For upload section above
    b) How can I implement step 2 under For download section above
    c) Is there any way to directly upload file to file system via apex user interface or to directly download file from file system via some report region link column?
    Please help!!!
    Regards Marinero
    Message was edited by:
    marinero

    marinero,
    Here is a procedure that will copy an uploaded file to the file system:
      Procedure BLOB_TO_FILE(p_file_name In Varchar2) Is
        l_out_file    UTL_FILE.file_type;
        l_buffer      Raw(32767);
        l_amount      Binary_Integer := 32767;
        l_pos         Integer := 1;
        l_blob_len    Integer;
        p_data        Blob;
        file_name  Varchar2(256);
      Begin
        For rec In (Select ID
                              From HTMLDB_APPLICATION_FILES
                             Where Name = p_file_name)
        Loop
            Select BLOB_CONTENT, filename Into p_data, file_name From HTMLDB_APPLICATION_FILES Where ID = rec.ID;
            l_blob_len := DBMS_LOB.getlength(p_data);
            l_out_file := UTL_FILE.fopen('UPDOWNFILES_DIR', file_name, 'wb', 32767);
            While l_pos < l_blob_len
            Loop
              DBMS_LOB.Read(p_data, l_amount, l_pos, l_buffer);
              If l_buffer Is Not Null Then
                UTL_FILE.put_raw(l_out_file, l_buffer, True);
              End If;
              l_pos := l_pos + l_amount;
            End Loop;
            UTL_FILE.fclose(l_out_file);
        End Loop;         
      Exception
        When Others Then
          If UTL_FILE.is_open(l_out_file) Then
            UTL_FILE.fclose(l_out_file);
          End If;
      end; And here is a procedure that will download a file directly from the file system:
      Procedure download_my_file(p_file In Number) As
        v_length    Number;
        v_file_name Varchar2(2000);
        Lob_loc     Bfile;
      Begin
        Select file_name
          Into v_file_name
          From UpDownFiles F
         Where File_id = p_file;
        Lob_loc  := bfilename('UPDOWNFILES_DIR', v_file_name);
        v_length := dbms_lob.getlength(Lob_loc);
        owa_util.mime_header('application/octet', False);
        htp.p('Content-length: ' || v_length);
        htp.p('Content-Disposition: attachment; filename="' || SUBSTR(v_file_name, INSTR(v_file_name, '/') + 1) || '"');
        owa_util.http_header_close;
        wpg_docload.download_file(Lob_loc);
      End download_my_file;I could put a sample application on apex.oracle.com, but it wouldn't be able to access the file system on that server.

  • TS3276 Most attachments from a specific address (work) can not be opened, identified as winmail.data and no data available. Not sure if this is based on the e-mail coming from a windows based system, too old of a windows based system or simply how i have

    Most attachments from a specific address (work) can not be opened, identified as winmail.data and no data available. Not sure if this is based on the e-mail coming from a windows based system, too old of a windows based system or simply how i have it set on my Mac.

    Brightbleu wrote:
    Most attachments from a specific address (work) can not be opened, identified as winmail.data and no data available. Not sure if this is based on the e-mail coming from a windows based system, too old of a windows based system or simply how i have it set on my Mac.
    Winmail.data are not usable files. They just preserve RTF within the message.
    http://support.microsoft.com/kb/278061
    Cheers
    Pete

  • I'm losing attachments from email how do I retrieve  them from cloud

    Im losing attachments from email @me.com how do I retrieve them from icloud?
    CHeers Mitchell

    Tap Settings > iCloud
    Switch Mail off then back on.
    Give iCloud a few minutes to re sync your Mail.

Maybe you are looking for

  • Cannot download full DVD Movie Factory version for Satellite A100 and clean Vista

    Hi there I made a clean Windows Vista orgianal upgrade set from Modus link. Installed and now when a want to install the DVD Movie Factory patch (DMF5.51_Patch_18in1_for TOSHIBA_147.05_0718) there is no dvd creator software installed and also no cd c

  • Boot Camp for Windows 7 64 bit on 21.5" late 2009 iMac

    I've read much about installing Windows 7 64 bit on my 21.5" late 2009 iMacs - - nevertheless there is some lack of clarity about how to do it right. First I read "http://manuals.info.apple.com/enUS/Boot_Camp_Install-Setup10.6.pdf". That's all well a

  • Win 7 and Adobe Acrobat 8 Professional

    I have a user with win 7 and adobe acrobat 8 pro and in the digital signature on the PDF, it has a question mark and a pick of a person over it on the left hand side.  I have reimaged the machine, recreated the signature, same thing.  Logged onto his

  • Starting Oracle XE on linux by /etc/init.d/oracle-xe start

    Hello, I installed Oracle Database 10g Express Edition on a Linux Ubuntu 7.04 (feisty) following official installation instructions found here http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABCEAHD bu

  • What information do I need to prove I have insurance?

    what information do I need to prove I have insurance? My MacBook Pro recently hretoasn't wanted to turn on, so tomorrow it will be brought to an Apple Store to get fixed. I will not be going with who is bringing it; I have insurance for the laptop wh