Archive Smartform printout into SAP database

Dear All,
I am printing a smartform through Z-Program.
I need to archive this printout.
Please suggest me the solution.

Hello,
Please be noted that archiving documents other than ABAP lists has been
deactivated through SAP note 725723.
So, OTF objects should be archived directly from the application.
The suggestion was that when the application calls the Smartforms
function module, it asks to prepare the OTF data and give it back to
the application.
If you set parameter CONTROL_PARAMETERS-GETOTF = 'X', then OTF data will
be returned to application and no printing/ archiving will be performed.
The application can manipulate the returned data. for instance convert
it to PDF and send as email (usual practice).
The application can also accumulate the OTF data received from different
Smartforms and then call the archiving procedure. e.g.
   perform otf_archive in program SAPLSTXBC tables otfdata
                                          using  arc_params
                                                 arc_index.
It was also suggested that some modifcations to the OTF data before
appending it to a common table otfdata.
For instance, if you want to put 3 Smartforms into one archive, the
nntermediate OTF data returned will be OTF1, OTF2, OTF3. For OTF1
last line ('//'), for OTF2 you need to delete the first and last line,
for OTF3 you need to delete the first line only.
Then you can append them into the one OTFDATA table and do the call
above to otf_archive.
Or you can also use the Storage Mode Print and Archive instead of Print Only when print.
Regards,
David

Similar Messages

  • How to reload archived data into SAP database for object FI_DOCUMNT

    Hi..could any one plz let me know how can i reload the archived data  which is on third party storage into sap database back. The archived data is related to FI_DOCUMNT. We don't have the Reload program for this object. The requirement is : Some of the FI documents are archived before being cleared. So, we want to reload the archived data back to SAP database and then do some modifications.
    Please tell me how this is possible..thanks a lot in advance.
    It's urgent.
    Thanks,
    Shamim

    Thanks Mylene. I've already gone through the same note..i was just looking out for the new standard program or any one have created any new program for the same. I think it's better we must wait for SAP to launch its reload program or else it's not possible to reload the archived data for this object.
    Thanks
    Shamim

  • How to upload a Flat file into sap database if the file is in Appl'n Server

    Hello Sap Experts , Can you tel me
    " How to upload a Flat file into sap database if the file is in Application Server.
    what is Path for that ?
    Plz Tel Me its Urgent
    Thanks for all

    Hi,
    ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
    *& Report  ZUPLOADTAB                                                  *
    *& Example of Uploading tab delimited file                             *
    REPORT  zuploadtab                    .
    PARAMETERS: p_infile  LIKE rlgrap-filename
                            OBLIGATORY DEFAULT  '/usr/sap/'..
    DATA: ld_file LIKE rlgrap-filename.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
        name1 like pa0002-VORNA,
        name2 like pa0002-name2,
        age   type i,
        END OF t_record.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
          wa_record TYPE t_record.
    *Text version of data table
    TYPES: begin of t_uploadtxt,
      name1(10) type c,
      name2(15) type c,
      age(5)  type c,
    end of t_uploadtxt.
    DATA: wa_uploadtxt TYPE t_uploadtxt.
    *String value to data in initially.
    DATA: wa_string(255) type c.
    constants: con_tab TYPE x VALUE '09'.
    *If you have Unicode check active in program attributes then you will
    *need to declare constants as follows:
    *class cl_abap_char_utilities definition load.
    *constants:
    *    con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *START-OF-SELECTION
    START-OF-SELECTION.
    ld_file = p_infile.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
          MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
          APPEND wa_upload TO it_record.
        ENDIF.
      ENDDO.
      CLOSE DATASET ld_file.
    ENDIF.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *!! Text data is now contained within the internal table IT_RECORD
    * Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.

  • Uploading Excel file into SAP Database table?

    I built a table in the SAP Data Dictionary, and i need to write a program that uploads the Excel table, into the SAP Database table.  Does anybody have a sample program that may help me?  Thanks!

    TYPES:
         BEGIN OF ty_upload,
         matnr like mara-matnr,
         meins like mara-meins,
         mtart like mara-mtart,
         mbrsh like mara-mbrsh,
         END OF ty_upload.
      DATA it_upload TYPE STANDARD TABLE OF ty_upload WITH header line.
      DATA wa_upload TYPE ty_upload.
      DATA: itab TYPE STANDARD TABLE OF alsmex_tabline WITH header line.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename    = 'C:\Documents and Settings\venkatapp\Desktop\venkat.xls'
          i_begin_col = 1
          i_begin_row = 1
          i_end_col   = 4
          i_end_row   = 65535
          TABLES
          intern      = itab.
    if not itab[] is initial.
    loop at itab .
    case itab-col.
    when '0001'.
    it_upload-matnr = itab-value.
    when '0002'.
    it_upload-meins = itab-value.
    when '0003'.
    it_upload-mtart = itab-value.
    when '0004'.
    it_upload-mbrsh = itab-value.
    append it_upload.
    clear it_upload.
    clear itab.
    endcase.
    endloop.
    endif.
    loop at it_upload into wa_upload.
    ztable-matnr = wa_upload-matnr.
    ztable-meins = wa_upload-meins.
    ztable-mtart = wa_upload-mtart.
    ztable-mbrsh = wa_upload-mbrsh.
    insert ztable.
    endloop.

  • Using bapi how to upload the data into sap database?

    hi dear all,
                  im facing problem with bapi ? let me edcuate on bapi ..
    i will be  waiting for reply.
    my e-id :[email protected]
    thanks&regards
    shiva.

    Hi
    A BAPI is a method of a SAP Business Object. BAPI enables SAP and third party applications to interact and integrate
    with each other at the Business Object / Process level.
    Check this link to know more about BAPI.
    http://www.sapgenie.com/abap/bapi/example.htm
    http://sappoint.com/abap/
    Batch Data Communication (BDC) is the oldest batch interfacing technique that SAP provided since the early versions of R/3. BDC is not a
    typical integration tool, in the sense that, it can be only be used for uploading data into R/3 and so it is not bi-directional.
    BDC works on the principle of simulating user input for transactional screen, via an ABAP program. Typically the input comes in the form
    of a flat file. The ABAP program reads this file and formats the input data screen by screen into an internal table (BDCDATA). The
    transaction is then started using this internal table as the input and executed in the background.
    In ‘Call Transaction’, the transactions are triggered at the time of processing itself and so the ABAP program must do the error handling.
    It can also be used for real-time interfaces and custom error handling & logging features. .
    To know more about BDC,
    check the link.
    http://sappoint.com/abap/
    Main differences are...
    In case of bdc data transfer takes place from flat file into sap system ie the file existing in sap system to sap sytem
    where is bapi's r remotly enabled function modules which are assigned to some business objects n used to transfer the data between different business partners who are using different systems other than sap.
    not only that...
    when you plan to upgrade your system version then bdc willnot support those upgradations where as bapi's will support.
    http://www.sap-img.com/abap/ale-bapi.htm
    SAP BAPI
    BAPI STEPS
    Hope this helps.
    ashish

  • Reloading of Archived Sales Activity in SAP database

    Hello Everyone,
                             I have a query regarding reloading of Archived Sales Activity document.
    Suppose I archive a Sales Activity (SD_VBKA) through SARA in my external Storage system and then delete it. An archive key will be generated.
    After that i reload ithe data again in Database and then again rearchive it. So a new Archive key is generated.
    And if i try to read it, i am unable to read it as it is pointing to the original first archive Session and not the newer one.
    Please help me on that. How can i now read this archived Sessiion
    Edited by: Suruchi Razdan on Jul 29, 2011 8:41 AM

    Dear Gayathri,
    Please be aware that you have opened the question two times, please close this one from your side!
    Regards,
    Gerhard (Moderator)

  • Unable to store PDF , XL , Word document into SAP archived tables

    Hi Experts,
    I have created a web interface in WD ABAP which stores the employee's attachement data into sap arcived link.
    For that I have carried out following activities.
    I have Complted customizing for a document type under business object PREL and for this I have reffered following link.
    SASAP Archived Link
    Now I have used file Upload UI element in WDABAP which passes the local file data in Xstring to following function modoules for creating
    an attachment.
    data: it_out type TOADT,
    it_storage type ZDMSSTORAGE.
    CALL FUNCTION 'ARCHIV_CREATE_TABLE'
    EXPORTING
    ar_object = 'HRPDATA' " Object catagory that I have created for file storage under Business Object PREL
    object_id = '10000008'
    sap_object = 'PREL'
    document = filedata
    IMPORTING
    OUTDOC = it_out
    EXCEPTIONS
    error_archiv = 1
    error_communicationtable = 2
    error_connectiontable = 3
    error_kernel = 4
    error_parameter = 5
    error_user_exit = 6
    OTHERS = 7.
    For reading the attached document I am using following FM's
    CALL FUNCTION 'SCMS_AO_TABLE_GET'
    EXPORTING
    MANDT = SY-MANDT
    arc_id = 'Z1'
    doc_id = lv_doc_type"im_doc "'4D5D8445165220C8E10000000A3C082E'
    COMP_ID = 'data'
    IMPORTING
    LENGTH =
    tables
    data = bindata.
    *data: BINARY_TAB type
    CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
    EXPORTING
    input_length = 10000
    FIRST_LINE = 0
    LAST_LINE = 0
    IMPORTING
    BUFFER = V_XSTRING
    tables
    binary_tab = bindata.
    Now when I upload any file text or image file, its working fine. When I try to upload any pdf , XL or word document, it uploads the file into acchived table
    but when I read this file by converting file data into xstring and passing it into file downlod UI element, It says file is corrupt. Please suggest that if that
    is a issue with object catagory configration ( With storage class) or it is wrong way of reading a document for PDF, XL and word
    Thanks in advance
    Abhay

    hi
    please check the function module used whether it can handle the PDF as well as xl, word documents. if not use some other function module

  • Converting SQL server database into SAP readable XML??

    Could anyone kindly let me know what is the procedure to convert SQL server database into SAP readable (encrypted) XML for SAP Authoring tool???

    Sorry you will need to be more specific, what is it exactly you want to do? What authoring tool do you mean.
    A bit more info and someone might be able to help you.
    BRgds,
    Simon

  • Steps to archive SAP Database

    Dear Sir,
    Please suggest me that how many steps are there to Archive SAP database and how can sequencially execute those steps.
    I am confused that which step i have to execute first and which one after that and so on.
    Please provide me some documents or link throgh which i can go through and successfully i can execute this task.
    Regards,
    Mushtaq

    Hello Mushtaque,
    You can use the link
    http://help.sap.com/saphelp_nw70/helpdata/EN/8d/3e4e74462a11d189000000e8323d3a/frameset.htm
    Regards, Jatin

  • Convert SQL server database into SAP readable (encrypted) XML for SAP tool?

    Could anyone kindly let me know what is the procedure to convert SQL server database into SAP readable (encrypted) XML for SAP Authoring tool???

    So If I understood it correctly there an existing propriertory question bank with SQL server. You are looking at an option to migrate all the tests and questions from the existing system to the LSO system. Right ?
    I am still not clear on the xml conversion. Have you guys found a solution which could be achieved through a xml file ?
    am not aware of a way through which you could import only a xml file and create tests/questions. If you have a sample xml file then forward me so that I could do some testing on my end.As per my knowledge you could do one of the following. I
    1. Create the tests and questions manually in Authoring Environment. It will be a time consuming task. Based on the number of questions you have you might have to assemble a team of content developers to acheive this.
    2. Alternatively, you could create a Adobe Flash based assessment. The Flash component would be the front-end and will read from a xml file to display the questions and to drive the funcationality. This would be a easier and less time consuming than creating the assessments manually in authoring environment. However, you might miss out some of the functionality available in the Test Author of Authoring Environment unless you have all the functionality replicated inside Flash. This would require one time effort in creating the Flash template and the xml file structure. Once that is created you could create multiple assessments by just replacing the xml file. If you select this approach then you would have to ensure the data from SQL is converted in the desired xml format required by your Flash component.
    Please let me know if you require any further guidance or clarification regarding this.
    Regards,
    Ravi Sekhar

  • A question about SAP database archiving

    Hi Archiving experts,
    I am working on SAP database archiving. Due to operation error, I run two times write program "S3VBAKWRS" for object SD_VBAK. so there are generate two archiving session in tcode SARA. so whether I can maked one archiving session as invalid? 
    Kelvin
    Regards

    Srikishan D wrote:
    Hi,
    >
    > You would need to activate logon tickets for the ABAP system.
    > Follow this link and set the profile parameters accordingly followed by a system restart.
    >
    > http://help.sap.com/saphelp_dimp50/helpdata/en/62/831640b7b6dd5fe10000000a155106/content.htm
    >
    > Regards,
    > Srikishan
    Hello there and happy new year !
    Thanks for the link, according to the documentation in this link, I'm supposed to install
    SAPSECULIB (I don't have enough rights in my MarketPlace account to download softwares).
    However, as I understand (please correct me if I'm wrong) what I have installed on my PC
    is not a complete SAP system. It is just a trial version with an ABAP server allowing to test
    local codes and developing. Are  you sure that SAPSECULIB goes as well with a trial version
    of SAP? because I checked in the  installation package, there were no SAPSECULIB to install so
    I thought maybe it is not going  to work with this version of SAP Netweaver (Yet, it is strange
    because in the download page  it is specifed that we may create web dynpro with this package)
    Thanks in advance,

  • Data extraction into sap table  from legacy oracle database

    Hello All,
        I have a scenario where I have two different software systems (SAP and xyz systems), where a intermediate table will be created in between the two systems that is shared. Data will be updated by the xyz systems into this shared table. Now, my questions regarding this shared table.
       1) Can we write some program or something to get the data from shared table to update the SAP?
       2) If possible send me the suggestions
       3) Please also send me the sample code to get the data from the shared table
    Thanks in advance,
      SDN powered

    this shared table should be compatiable to sap fields...write code to fetch data from this table and assign data to appropriate fields in SAP and insert the data into sap.
    1. Push mechanism
    Write a RFC on SAP side to insert entries into the table.
    Call the RFC from xyz application passing the data you want to insert.
    2. Pull mechanism
    Write a ABAP Program, where you can somehow read the data of the xyz application and insert data into the table.
    3. Flat file
    Dump the data from xyz application into the file.
    Write a ABAP program to read the file and update the table.

  • Reload archived file on another sap system

    Dear Experts,
    We have multiple plants in sap system maintained with different clients.  For example Plant A , Plant B, Plant C. Is it possible to migrate plant data from one SAP System to new sap system. we have a Plan to provide separate systems as per plant. For example If i do archiving Plant B of customizing data and  belonging dependent data records( SO,PR,..) and  reload in to new sap system ?  If so how can i access on new system ?
    Any advice on techniques or procedure would be greatly appreciated.
    Reg,
    chandu.

    This is unfortunately a little bit to naive.
    Archiving is only possible for master and transaction data, but not for customizing
    Archiving is only possible for closed business cases.
    In most Archiving objects it is not foreseen to reload it into the database.
    Archiving is not a 1:1 copy of your data, SAP is collecting data from many tables and put this together into 1 archiving record, this record is even reduced to the necessary data, many flags will not go into the archive as they are only needed to control the execution during runtime. If the archive is missing this data, then it cannot be expected to reload the data from the archive.
    What you want is as complex  as a new rollout, and it usually requires exact the same steps (except training), you need to create master data (extending existing records) like in a migration.
    Within the same client it can be a little less effort than in different clients, but even this depends on the skills of those who execute the migration. Some have less issues creating new record than extending existing records.
    Depending on the volume and the scope of migration objects we usually have smaller projects which can be from a few days to several months.

  • Archiving Information from "old" SAP systems and switch off the server

    Good day
    I hope someone can offer some advice. Our company has a few sites across the globe. Three of the sites in South Africa ( where I'm working at the moment ) had their own SAP systems. Three odd years ago, we implementeted a new SAP system, combining the separate SAP systems into the new one, running of the same box etc etc. The "old" SAP systems were still availbale after the new one went live, in the event that people want to look back at history.
    We are you busy with a project where we are going to merge our current SAP implementation into our global SAP system... obviously only the current master data are going to be transfered to the new system. It's an idea time for us to clean up our data.
    My question: Once we go live on our global SAP system, we want to "export" or archive from the 3 "old" SAP systems the Master Data from the HR module ( like employees who's left the company - it's law to keep the records for 5 years at least once a employee has left) , HSEC and FI modules into a single datastore... this way we don't have to keep the three servers running in the event that history is required. The servers wil be kept off-line and only switched back on if a detailed audit is required.
    The global SAP system does not have an archive solution implemented to we can't access archived data from the new system...
    So, we need to export master data from our 3 old SAP boxes into a Unicode type file system, and our local South African sites needs to be able to access the information using a text type editor or a web based interface we can run off our SAP Portal...
    Thank you

    Hello Cornelius,
    To introduce myself, I am an active SDN/BPX member as well as an ASUG Archiving and Information Lifecycle Management Volunteer.
    Decommissioning Legacy Systems (SAP and non-SAP systems) is quite the topic these days with divestitures becoming such a common occurrence. 
    Some things to think about in this situation are:
    Identifying the data to be decommissioned:
    what information would be needed for an audit
    what information would be needed for a lawsuit situation
    Identifying the access requirements to this data.
    Identifying the retention policies for this data (this will be
    driven by regulatory requirements, etc.).
    If this has not already been done - define retention periods for this data - it will most likely have different retention periods based on the type of data.
    You mention that you do not have an archive solution in place yet. 
    I would recommend that you may want to research that option because typical requirements for retaining legacy data is that it is stored in such a manner so that it is protected from any type of modification.
    There are a lot of 3rd party archiving/storage solutions that provide this type of secure storage.
    You are correct in that you will want to export or archive the legacy data as opposed to loading the data into your current system.  It would probably involve a large increase in the size of your SAP database and you would probably run into number range overlaps.
    But, if this data is exported to a filesystem, you will be losing the business logic associated with the data, and the information is no longer in its original format (this could have legal ramifications). 
    I would recommend using SAP Archiving functionality for this effort.  If you are looking for outside resources, there are many vendors out there that have a lot of experience with these types of projects.
    Two that come to mind are Dolphin IT and OpenText.
    Or, depending on the timeline of your project, SAP is coming out with a tool that can be used for decommissioning SAP Systems.  It is part of
    their SAP ILM solution.  It will be called Retention Warehouse.  Here is a paragraph from their latest white paper describing this new tool:
    With the retention warehouse, SAP now offers a
    standardized method for system decommissioning in
    answer to these pressing issues. It allows you to reuse the archived data outside the original system in a central
    retention warehouse.
    For more detail on this topic, the white paper can be found on the SAP ILM Website:
    service.sap.com/ilm
    This tool is part of a larger initiative from SAP to help customers with their ILM (Information Lifecycle Management) strategy.  This tool is near and dear to me as I was fortunate enough to be part of an
    ASUG Influence Council that helped with some of the requirements for this solution.
    I hope this information is useful. 
    Good luck and Best Regards,
    Karin Tillotson

  • Archivelink to archive dunning printouts

    Hello !!
    I wonder if someone have used archivelink to archive dunning printouts(sapscript) with an external archiving product.
    I wonder if it is possible or if someone have tried the same.

    please correct me if i am wrong ... the process is: you get paper-based incoming invoices from vendors -which you somehow scan- and you want to attach the scanned paper to the document posted in MIRO??
    why would you want to upload that image to SAP? this will consume lots of space in your database and what for? plus: it is not safe for an audit from your government.
    that 3rd party .net product ... is it some kind of (document archiving system)?
    usually the process is:
    papery vendor invoice comes in and gets 'scanned' (usually to some kind of .pdf)
    the scan goes to an archiving system (caution: there are legal requirements to be fullfilled!!)
    you post a (parked) MIRO
    you get the ID of the scanned and archived paper and attach it to the MIRO-document (TOA*)
    you can jump to the .pdf using GOS (generic object services) ... should even be there on 4.7, after you configured that.
    but the physical .pdf stays in its legally approved black boxed archive system!!

Maybe you are looking for

  • Ipod is not recognized by my iTune nor my computer::::::please help me!!

    since yesterday i have been transferring my music perfectly fine. today for some reason, i accidently took my ipod shuffle out witout pressing the eject button or clicking the safely remove device from my computer. Later it says that there was a song

  • Failed to find xswebconfig tool via bundle after 10.8.2 update

    After updating my OS X 10.8.1 Server to 10.8.2 and the latest version of the server app, any time I launch Server and try to view the services for Web or Wiki, I get the following error: "Error Reading Settings". I see this in the console logs: "Fail

  • Rounding Up to be done at Header Level.

    Hi experts, I want to carry out rounding up at header level where there will be a multiple line items. E.G. Condition type JEXP (BED) is a item condition . There are two line items in a sales order and duty applied is Rs. 1.40 per item. Now system is

  • Partial Exchange Rate Difference Postings following upgrade to 2007

    Hi Experts, My customer has upgraded from 2005 to 2007.  The upgrade has posted roughly 1000 "Partial Exchange Rate Difference Recognition" journals. We understand the reasons why the journals have been posted.  The problem we have is that the Jounra

  • Survey Application problem

    I have installed the survey application successfully on my machine but unfortunately when i try to log in i get this unexpected error.Can you give me a solution asap.I belong to ORACLE DIRECT India.. PLs respond Asap. Thanks in advance, Sreedhara [Te