Archive files from Webdynpro

Hi All,
I have a requirement where the uploaded file has to get stored in Archive from Webdynpro. I am using the file uploader which is giving me the file name, MIME type and data but I am unable to store it in the Archive.
I am using FM 'ARCHIVOBJECT_CREATE_FILE' but getting the error that GUI is not supported(NOT_SUPPORTED_BY_GUI). But the same FM is working from SAPGUI when run from SE37 and returning a document ID. When called from Webdynpro, it is going into error.
I tried using similar function modules I found in the Function Group but it seems none of them support getting called from the Webdynpro.
Is there a way to archive files from the desktop to the SAP Archive using Webdynpro ABAP?
Thanks
Shinjan
Edited by: Shinjan on Aug 3, 2010 8:08 PM
Edited by: Shinjan on Aug 3, 2010 8:09 PM

Hi Shinjan,
COuld you please tell me how did u achieve this?? i have a similar problem

Similar Messages

  • How to delete Archived files from FTP

    HI,
    I am looking to delete Archived files from FTP Server, Can anybody have idea about this.
    Thanks,
    Ram

    To be frank, deletion of archived files is really a manual activity and is never in reality done by an interface
    so you have two options;
    1. log into the archived folder and manually delete archived files
    2. run a script in your file adapter - this way everytime the interface is triggered the files will be deleted - but then y do this.. instead just dont archive any files at all

  • Problem in Archiving File From FTP Server to XI File Server Using FCC

    Hi,
    The scenario is file to IDOc. XI has to read the input file from client FTP server and archive it to XI local file server. Archiving on XI server is working fine without FCC (for xml files). But with FCC, the sender FTP adapter is archiving empty files (0 kb files).
    I've checked SXMB_MONI, even there I can see the file data and the IDoc is getting posted with proper data. But, the archived file is empty. Not sure about the problem.
    Please suggest. Thanks in advance.
    Regards,
    Joe.

    Hi,
    File adapter has the functionality which support the empty file handling.
    Handling of Empty Files
    Specify how empty files (length 0 bytes) are to be handled.
    ○ Do Not Create Message
    No XI messages are created from empty files.
    The files are processed according to the selected Processing Mode.
    For example, if the processing mode is Delete, empty files are deleted in the source directory.
    ○ Process Empty Files
    XI messages are created with an empty main payload.
    The files are processed according to the selected Processing Mode.
    ○ Skip Empty Files
    No XI messages are created from empty files.
    Empty files are skipped and remain in the source directory.
    refer the belwo link:
    http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    reward points if helpful*
    thanks
    SAPXI

  • How to download file from Webdynpro ABAP?

    Hello,
    What is the best way to download a file from ABAP Webdynpro?
    I tried calling method *cl_gui_frontend_services=>gui_download*
    from within an Action of my WDA, but it got an error 06, which is "Unknown Error" (not very helpful).
    The same code works when I execute it from a regular ABAP program.
    I am not using ALV.  I just created a file by reading a database with WDA selection fields, then transformed it to XML using CALL TRANSFORMATION.
    Thanks,
    Colleen

    You can't use the GUI_DOWNLOAD, because you have no GUI present, which is the reason why you are getting the error. You will want to take a look at the class/method  cl_wd_runtime_services=>attach_file_to_response
    Regards,
    Rich Heilman

  • Access SAP Data Archival file from outside SAP

    Hello Everyone,
    I have a requirement to archive the SAP data, dump that outside SAP in some other system like ILM or BI and build a reporting tool on top of that data.
    So, basically customer want to shutdown the SAP and want to retain data for legal and audit pourpose.
    I was doing some RnD and done archiving of MM_EKKO using SARA. the file got generated with extention .ARCHIVE. I donwnloaded teh file but it is encoded file with all special character in it.
    My question is:
    1. How can I read the archieved SAP data from outside SAP system.
    2. Can we decode the .ARCHIVE file to get it in .DAT format?
    3. Or Is there any other way to access the SAP data outside SAP in a report format.
    Thanks,
    Chintan SOni.

    Hi Chintan,
    1. How can I read the archieved SAP data from outside SAP system.
    For this you could refer SAP Note   460620 - Migrating archive files
    2. Can we decode the .ARCHIVE file to get it in .DAT format?
    As per my knowledge,it's not possible to decode or move to .DAT format.
    3. Or Is there any other way to access the SAP data outside SAP in a report format.
    Refer my first response & the SAP note.
    Hope this will help you.
    Good luck !!
    Gaurav

  • Where is the "Archive" file from "Archive and install"?

    I did an Archive and install when I upgraded to 10.5. I also made a bootable clone (external HD) of my Tiger.
    Now, I'd like to know where the Archive file is? And is it ok to delete?
    Need to free space on my internal HD.
    Thanks

    Open the folder Previous Systems on your hard disk, go through the highest numbered or most recent folder for items you want to keep; once done, throw it away and empty the Trash.
    (25395)

  • Passing an XML file from WebDynpro app to ABAP function module

    Hi all,
    I'm stuck with a problem, and am hoping one of you could let me know how to proceed:
    I need to pass an XML file (or at least the entire content of the XML) from my WebDynpro application to a backend ABAP function module. What I tried was this:
    In my WebDynpro app, I read the XML and convert the content into one long string (using java.io.FileReader and java.io.BufferedReader). In my ABAP function module I created an import parameter of type String. I then imported the ABAP Function module into my WebDynpro app as a model. I then tried to pass the XML string to the ABAP module. What happens is this:
    If the size of the string (XML) happens to be less than 255 characters, then it works. That is, the string is passed to the ABAP function module and I can see the contents. However, if the XML string happens to be greater than 255 characters, then it does not work. The string at the ABAP side is empty. Surprisingly, the ABAP module does not throw an error either. It just displays an empty string.
    Could you please tell me what the problem is?
    Thanks & Regards,
    Biju

    Hi Biju ,
    Welcome to SDN.
    If the import parameter is defined as type string it should work, however did you check whether your application pass it properly?
    I have applications using strings as import parameters working fine. (webapplications (BSP) to RFC)
    Regards
    Raja

  • Download Excel file from Webdynpro

    I have recently created functionality in a Webdynpro application that downloads an Excel 2003 file.  Unfortunately I also need to allow a download for a file to prior versions of Excel.  Does anyone have a code snippet that will perform this type of function?

    Hi Atilio.
    The tutorial 34 under the following link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on excel export using the web dynpro binary cache - 34.htm
    Explains how to download the content of a table from a wdp app to an Excel 2003 file.
    Best Regards.
    Gregory.

  • Junk Characters while opening a file from webdynpro ABAP

    Hi All,
    We have a Webdynpro ABAP application ,  in that application from a link we are opening DOC,PDF,JPG........files . When we click on that link it is opening in a Junk charcters .  We have another webdynpro ABAP application in portal , in that application the files are opening fine.
    Could you please let me know why it is opening in a junk characters in first application?
    Regards,
    Krishna.

    Hi ,
    The files are opening fine in IE7 but when we try to open in IE8 and IE9 they are opening in a junk characters.
    I am not sure in another webdynpro ABAP application the files opening correctly in IE 8 .
    Regards,
    Krishna.

  • How to Download a PDF file from Webdynpro ABAP Screen

    Hi,
    I have developed a input form in webdynpro - ABAP(Not Adobe),
    As I am not using above services here, but would like to download the information I am capturing into a PDF file.
    can I do it without using adobe interactive forms ?
    thanks
    Siddharth

    Hi siddharth,
    My suggestion would be to create your output as a Smartform and call your Smartform in your View.
    For more Click this link.
    [HOW TO DISPLAY A SMARTFORM AS PDF DOCUMENT IN WEB DYNPRO FOR ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]
    Regards
    Bulent

  • Opening a PDF File from WebDynpro

    Hello Everyone,
    I have a Webdynpro project and need to create a link on one of the views to display a .PDF document.
    1.  Where should I store the PDF document within the webdynpro project?
    2.  How do I open the PDF file?
    I've created a link with action on the view and just need to know how to open it.
    Thanks in advance for your help.
    Mike

    Hi Mike,
    You can try one of the following methods:
    Method 1:
    1. Create a context attribute (say pdfsource) of type binary.
    2. Create a file download control
    3. Attach this attribute to the data property of file download control.
    4. In the init method of the view or in some other method store the content of the pdf in the context attribute. And do the following code
         IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("pdfSource");
         ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
         IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
         binaryType.setFileName("Test.pdf");
         binaryType.setMimeType(WDWebResourceType.PDF);
    5. Now on click of File Download link, it will ask for "Open", "Save", or "Cancel" dialog box. You can choose open to open as a pdf document.
    Method 2:
    1. Write an action on click of the button or so.
    2. In that action get the contents and store it in an byte array and open the pdf file directly as follows.
         byte[] PDFbytes = <source string>.getBytes();
         if(PDFbytes!= null) {                                IWDCachedWebResource pdffile= WDWebResource.getPublicCachedWebResource(                    PDFbytes ,                                 WDWebResourceType.PDF,                            WDScopeType.CLIENTSESSION_SCOPE,               wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),
                    "Some Title");                             wdComponentAPI.getWindowManager().createNonModalExternalWindow(pdffile.getURL(), "Some PDF").open();
    Thanks and regards
    RK

  • How to download data in Word or Excel file from webdynpro?

    Hello everybody,
    In my webdynpro application, I want to download my Table control data in word or excel file. Is there anyway to do this?
    Thanks in advance,
    Bhavik

    I am sorry.Please ignore this reply
    Please go through the following
    downloading internal table contents to excel sheet
    Regards,VIP
    Message was edited by: Anilkumar Vippagunta
    Message was edited by: Anilkumar Vippagunta

  • Error while passing file from webdynpro screen to DMS server to gene DMS no

    hello gurus,
                    i have one requirement in webdynpro abap.i need somme stuff to achive this.let me explain my requirement first.
    i have one view as main having file upload UI element and one action button as CREATE. now i perform browse and selected one file . now i am going to  perform action on that create button it is should generate one DMS document number against the selected file and strore this file in DMS storage location.for this i have used  'BAPI_DOCUMENT_CREATE2' bapi inside Action  of CREATE BUTTON. but it is showing error like    'Error while checking in and storing: D:\file1.doc'
                                            TYPE                                             E
                                            ID                                             26
                                            NUMBER                                             253
                                            MESSAGE                                             Error while checking in and storing: D:\file1.doc
    but when i am executing the BAPI  'BAPI_DOCUMENT_CREATE2'  directly while passing the same data to bapi it is generating the document number perfectly.
    i am new for this webdynpro could you please suggest me how can i overcome this problem.
    regards.
    babu.

    Hi,
    This is not error with respect to WD. you can check same problem in thread Error while checking in and storing: C:Userscbt.abapDesktopLOP.XLS
    I guess this will solve your problem.
    Thanks,
    Chandra

  • Not able to open pdf file ( smart form from webdynpro )

    Dear friends,
    while trying to download pdf file from webdynpro i am getting the following error ( pls check the screen shot and also my  code )
    could any one please let me know what's the issue
    Thanks
    Vijaya
    data    v_bin_filesize           TYPE i,
               st_job_output_info       TYPE ssfcrescl,
                bin_pdfx TYPE xstring,
    data  : it_docs     TYPE STANDARD TABLE OF docs,
              it_lines    TYPE STANDARD TABLE OF tline.
    data : lv_file_name type string.
              lv_file_name = 'PDFSMARTFORM.PDF'.
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    * EXPORTING
    *   USE_OTF_MC_CMD               = 'X'
    *   ARCHIVE_INDEX                =
         IMPORTING
           bin_filesize           = v_bin_filesize
         TABLES
           otf                    = st_job_output_info-otfdata
           doctab_archive         = it_docs
           lines                  = it_lines
         EXCEPTIONS
           err_conv_not_possible  = 1
           err_otf_mc_noendmarker = 2
           OTHERS                 = 3.
       cl_wd_runtime_services=>attach_file_to_response(
       i_filename = lv_file_name
       i_content = bin_pdfx
       i_mime_type = 'application/pdf'
       i_in_new_window = abap_false
       i_inplace       = abap_false ).

    Hi,
    I think the binary file conversion was not done properly( you haven't filled bin_pdfx, its the otf_data ). OR, Use CONVERT_OTF FM and pass format as PDF. Check this document for reference: Opening a Smartform in Web Dynpro ABAP
    Hope this helps u,
    Regards,
    Kiran

  • Creating Repository from using Archive file (.a2a)

    Hello,
    I Archived a repository from MDM 5.5 SP4 running on Oracle.
    Can I create a repository using that Archived (.a2a) file in MDM 5.5 SP5 running on SQL Server ?
    Is it possible to create like that? Note: Database is different and MDM version is different.
    Thanks!

    Prashant -
    Thanks for your response. I am trying to create a repository in MDM 5.5 SP5 (SQL Server DB) using an Archive file from MDM 5.5 SP4 (Oracle DB) and I get the below information in the mds log file. I am unable to create the repository.
    4248 2011/06/19 10:21:14.734 GMT ErrorRecord->HResult/NativeErr: 0x80040e21/0
    Description: Invalid character value for cast specification.
    Source/File/Line: Microsoft OLE DB Provider for SQL Server/.\OLEDB_DBConnection.cpp/2438
    4248 2011/06/19 10:21:15.062 GMT UnArchiving operation for Customer Master CM1 ended in error
    Any idea why this is so?
    Thanks.

Maybe you are looking for

  • Can't open project from RH for HTML

    I want to work in my RH for HTML Project, but everytime I would want to open it, the software starts jamming. I tried to shut down computer and restart and it didn't fix the problem. Can somebody help me with this problem?

  • Financial Statement Version output in ECC 6.0

    Hello to all, I have two systems. ECC 5.0 and ECC 6.0. When i run and output the FSV in ECC 5.0, i get the following output, FSV Item      Text for B/S P&L Item            Total of reporting period 00001          XXX071 FIXED ASSETS-OLD          1124

  • Doubt regarding CURSORS in PRO*C

    Hi all, I have a problem with cursors in proc 1. Can i declare a cursor and with in it another cursor in proc like EXEC SQL DECLARE emp_cursor CURSOR FOR SELECT ........; EXEC SQL OPEN emp_cursor; for(;;) EXEC SQL FETCH emp_cursor INTO :emp_structure

  • "Class instance is already in Maintenance Mode" - but it isn't

    Hello, we have a powershell script to set the servers managed by scom agent in maintenance mode (e.g. for windows updates and restart). A colleague recognized an error during running this script. It says that instances of the server are still in main

  • Xperia Z1 Call log after a certain update always crashes

    After a certain system update on the contacts, everytime when i open my Call Log i got error and hangs off the call log "unfortunately, the process com.android.phone has been stopped" i can't open my ccall log anymore.