Archive write program

Hi,
I have a requirement that whenever a user runs Archive write program( Let say FI_DOCUMNT_WRI for object FI_DOCUMNT ) , I need to populate the current session number genrated and some fields of TOA01 into my custom table. 
Kindly let me know the procedure if any one has worked on similar requirement.
Thanks
Rajneesh

Hi Rajneesh,
What's the structure of ur z-table.
Once u run archive processs, u can simply insert the values into ur z-table:
Z_table-session = sessionID.
Z_table-date = SY-DATUM.
INSERT INTO Z_table VALUES Z_table.
thanks\
Mahesh

Similar Messages

  • DBIF_REPO_SQL_ERROR with archive write program FI_DOCUMNT_WRI

    Hello community,
    we have a problem with the archive write program FI_DOCUMNT_WRI, it generates DBIF_REPO_SQL_ERROR on the table REPOSRC. We get a lot of dumps DBIF_REPO_SQL_ERROR, SQL-Error -913, ERROR: UNSUCCESSFUL EXECUTION CAUSED BY DEADLOCK OR TIMEOUT. The dumps shows the error in FORM badi_write resp. get %_badi-implementations proxy of the method get_instance.  We use the FI_DOCUMNT_WRI program in 50 times parallel mode. The syslog shows error at select access on report source table REPOSRC in the kernel object package SBAC. The statement cache shows only valid SQL statements. Our database expert means these are timeout errors and the reason is the high number of the parallelism. The database is DB2 9.1.5 with SAP ECC 6.0. Does somebody knows this problem or in a similar way?
    Thanks for tips and hints.
    Cheers
    Stefan
    Edited by: Stefan Schnell on Sep 14, 2010 4:19 PM

    Hello community,
    after running RUNSTATS the problem exists no longer.
    Thanks and cheers
    Stefan

  • RSEXARCD: Idoc archiving deletion program issues

    Hi,
    I have two queries:
    1. The Idoc archive deletion program, RSEXARCD, when executed in background, terminates when there are no archive files to process (as seen in SARA). How can we prevent this? Our deletion jobs are scheduled weekly, but sometimes there are no archive files created from the archive write program RSEXARCA.
    2. Secondly, how can we process multiple archive files using this program RSEXARCD in background? Currently, it processes only one archive file at a time and takes up the oldest unprocessed archive file. Also, would like to know how it gets this information of the oldest unprocessed archive file?
    Thanks.

    if a program terminates, then you should look into the dump to see the root cause and follow the instructions. e.g. search for OSS notes with the metioned terms
    I just searched with the terms "archiving idocs termination" and found 12 notes with program fixes.
    Further, the program names you mentioned are not the most recent programs.
    Have a look into OSS note Note 582828 - IDoc archiving: Standardization
    maybe you will not have your problems anymore if you use the new programs

  • Archiving - Permission denied - cannot be open write program

    Hi, Gurus
    I executed a write program (SARA) and the result is partialy ok , as you can see below ( the job log and spool.)
    Questions:
    1.- there is not an archive file in C?
    2.- Permission denied --> Message BA161
    I checked object config,file and logical path and everything seems tobe ok.
    Anyone cant help on this?
    Thanks
    Job log:
    Job started
    Step 001 started (program MMREO050N, variant ZMM_001,
    Archiving session 000009 is being created
    Start of data processing
    Operating system message: Permission denied
    1 of 1 materials ( 100 %) processed
    Job finished
    Job spool:
    MARD: 1000 2000 material master record was archived
    MARC: 1000 long text(s) archived
    MARC: 1000 material master record was archived
    MAKT: E material master record was archived
    MARM: ST material master record was archived
    MLAN: ES material master record was archived
    MARA:  change documents archived
    MARA:  change documents archived
    MARA:  long text(s) archived
    MARA:  class assignments archived
    MARA:  material master record was archived
    Archive file C:\MM_MM_MATNR_20100316_210452_0.ARCHIVE cannot be opened for write program

    Dear,
    Either the file deleted from its physical location on drive C [OR] you dont have authorizations to write into the file (check with SU53 for any missing object for the user).
    Also check: Re: error while archiving the material master
    http://help.sap.com/saphelp_45B/helpdata/en/7e/c6c2ad98a711d2b429006094b9ea64/content.htm
    Regards,
    Syed Hussain.

  • Archive file cannot be opened for write program

    Hi All,
    I am getting the error message "annot be opened for write program" in log view, when I am trying to write data into archive file using "write' function.
    Please provide us the solution for this problem.

    Hello,
    It must be due to missing authorization for the write operation.
    Please inform the security consultant along with SU53 details.
    Regards
    Vijay Gajavalli

  • CO_COSTCTR Archiving Write Job Fails

    Hello,
    The CO_COSTCTR archiving write job fails with the error messages below. 
    Input or output error in archive file \\HOST\archive\SID\CO_COSTCTR_201209110858
    Message no. BA024
    Diagnosis
    An error has occurred when writing the archive file \\HOST\archive\SID\CO_COSTCTR_201209110858 in the file system. This can occur, for example, as the result of temporary network problems or of a lack of space in the fileing system.
    The job logs do not indicate other possible causes.  The OS and system logs don't have either.  When I ran it in test mode it it finished successfully after long 8 hours.  However, the error only happens during production mode where the system is generating the archive files.  The weird thing, I do not have this issue with our QAS system (db copy from our Prod).  I was able to archive successfully in our QAS using the same path name and logical name (we transport the settings). 
    Considering above, I am thinking of some system or OS related parameter that is unique or different from our QAS system.  Parameter that is not saved in the database as our QAS is a db copy of our Prod system.  This unique parameter could affect archiving write jobs (with read/write to file system). 
    I already checked the network session timeout settings (CMD > net server config) and the settings are the same between our QAS and Prod servers.  No problems with disk space.  The archive directory is a local shared folder \\HOST\archive\SID\<filename>.  The HOST and SID are variables which are unique to each system.  The difference is that our Prod server is HA configured (clustered) while our QAS is just standalone.  It might have some other relevant settings I am not aware of.  Has anyone encountered this before and was able to resolve it?
    We're running SAP R3 4.7 by the way.
    Thanks,
    Tony

    Hi Rod,
    We tried a couple of times already. They all got cancelled due to the error above. As much as we wanted to trim down the variant, the CO_COSTCTR only accepts entire fiscal year. The data it has to go through is quite a lot and the test run took us more that 8 hours to complete. I have executed the same in our QAS without errors. This is why I am bit confused why in our Production system I am having this error. Aside that our QAS is refreshed from our PRD using DB copy, it can run the archive without any problems. So I made to think that there might be unique contributing factors or parameters, which are not saved in the database that affects the archiving. Our PRD is configured with High availability; the hostname is not actually the physical host but rather a virtual host of two clustered servers. But this was no concern with the other archiving objects; only in CO_COSTCTR it is giving us this error. QAS has archiving logs turned off if it’s relevant.
    Archiving 2007 fiscal year cancels every after around 7200 seconds, while the 2008 fiscal year cancels early around 2500 seconds. I think that while the write program is going through the data in loops, by the time it needs to access back the archive file, the connection has been disconnected or timed out. And the reason why it cancels almost consistently after an amount of time is because of the variant, there is not much variety to trim down the data. The program is reading the same set of data objects. When it reaches to that one point of failure (after the expected time), it cancels out. If this is true, I may need to find where to extend that timeout or whatever it is that is causing above error.
    Thanks for all your help.  This is the best way I can describe it.  Sorry for the long reply.
    Tony

  • In Adobe Forms where to write to write Program lines

    Hi All,
    In Adobe Interactive Forms , in SFP transaction where do we write Program lines.
    In smar forms , roight clik flow logic and program lines creates an area for program line, what is the euqualiant to this in adobe forms.
    Please help me out on this.
    Thanks,
    Praveen

    Hi,
    Please check the following links,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken]
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap

  • BPM process archiving "Processing of archiving write command failed"

    Can someone help me with the following problem. After archiving a BPM proces, I get the following messages (summary):
    ERROR  Processing of archiving write command failed
    ERROR  Job "d5e2a9d9ea8111e081260000124596b3" could not be run as user"E61006".
    LOG -> Processing of archiving write command failed
    [EXCEPTION] com.sap.glx.arch.xml.XmlArchException: Cannot create archivable items from object
    Caused by: java.lang.ClassCastException: ...
    Configuration
    I've completed the following steps based on a blog item.
    1. created an archive user with the corresponding roles
    2. updated the destination DASdefault with the created user -> destination ping = OK
    3. created an archive store BPM_ARCH based on unix root folder
    4. created home path synchornization with home path /<sisid>/bpm_proc/ and archive store BPM_ARCH
    5. start process archiving from manage processes view.
    Process Archiving
    Manage Process -> Select a process from the table -> Archive button -> Start archiving by using the default settings.
    Archiving Monitor
    The following log is created which describe that the write command failed.
    Write phase log:
    [2011.09.29 12:00:18 CEST] INFO   Job bpm_proc_write (ID: d5e2a9d9ea8111e081260000124596b3, JMS ID: ID:124596B30000009D-000000000C08) started on Thu, 29 Sep 2011 12:00:18:133 CEST by scheduler: 5e11a5e0df3111decc2d00237d240438
    [2011.09.29 12:00:18 CEST] INFO   Start execution of job named: bpm_proc_write
    [2011.09.29 12:00:18 CEST] INFO   Job status: RUNNING
    [2011.09.29 12:00:18 CEST] ERROR  Processing of archiving write command failed
    [2011.09.29 12:00:18 CEST] INFO   Start processing of archiving write command ...
    Verify Indexes ...
    Archive XML schema ...
    Resident Policy for object selection is  instanceIds = [9ca38cb2343511e0849600269e82721e] ,  timePeriod = 1317290418551 ,  inError = false ,
    [2011.09.29 12:00:18 CEST] ERROR  Job "d5e2a9d9ea8111e081260000124596b3" could not be run as user"E61006".
    [2011.09.29 12:00:18 CEST] INFO   Job bpm_proc_write (ID: d5e2a9d9ea8111e081260000124596b3, JMS ID: ID:124596B30000009D-000000000C08) ended on Thu, 29 Sep 2011 12:00:18:984 CEST
    Log viewer
    The following message is created in the log viewer.
    Processing of archiving write command failed
    [EXCEPTION]
    com.sap.glx.arch.xml.XmlArchException: Cannot create archivable items from object
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: java.lang.ClassCastException: class com.sap.glx.arch.Archivable:sap.com/tcbpemarchear @[email protected]2@alive incompatible with interface com.sap.glx.util.id.UID:library:tcbpembaselib @[email protected]f@alive
    at com.sap.glx.arch.him.xml.JaxbTaskExtension.createJaxbObjects(JaxbTaskExtension.java:69)
    at com.sap.glx.arch.xml.JaxbSession.fillFromExtensions(JaxbSession.java:73)
    at com.sap.glx.arch.pm.xml.ArchProcessExtension.fillHimObjects(ArchProcessExtension.java:113)
    at com.sap.glx.arch.pm.xml.ArchProcessExtension.createArchObjectItem(ArchProcessExtension.java:60)
    at com.sap.glx.arch.xml.JaxbSession.createArchObjectItems(JaxbSession.java:39)
    at com.sap.glx.arch.xml.Marshaller.createItems(Marshaller.java:29)
    ... 61 more

    Hi Martin,
    I don't have a specific answer sorry, however I do recall seeing a number of OSS notes around BPM archiving whilst searching for a different issue last year - have you checked on there for anything relevant to your currnet version and SP level?  There were quite a few notes if memory serves me well!
    Regards,
    Gareth.

  • Does MM_EKKO  archive write job lock the tables?

    Archive experts,
    We run MM_EKKO archiving twice a week. From my understanding the write job just read the data and write it to archive files. But we run Replenishment jobs which hit EKPO tables, the jobs run slow, and I noticed that the archive write job is holding the locks on this table. As soon as I cancelled the write job, the replenishment jobs move faster. why this happens?  Archive write jobs should not be causing any performance issues, only the delete jobs will impact the performance. Am I correct?  Is any one experiencing similar issues?
    Sam

    Hi Sam,
    Interesting question! Your understanding is correct, write job just reads the data from tables and writes it into archive files... but....write job of MM_EKKO (and MM_EBAN) is a bit different. The MM_EKKO write job also takes care of setting the deletion indicator (depending on whether its a one step or two step archiving. So its possible that it puts a lock during the process of setting the deletion indicator, as its a change to database.
    please have a look at the folloing link for the explanation of one step and two step archiving:
    http://help.sap.com/saphelp_47x200/helpdata/en/9b/c0963457889b37e10000009b38f83b/frameset.htm
    Hope this explains the reason for the performance problem you are facing.
    Regards,
    Naveen

  • I have a problem with my mac  i have too many  archives and programs and i want to delete all files and start at the begin my mac with out do format

    i have a problem with my mac  i have too many  archives and programs and i want to delete all files and start at the begin my mac with out do format

    I do not recommend reformatting your harddrive and reloading your software.  This is a Windows thing. On an older mac it may be difficult to find all your software again.
    Best to have greater than 2gig of free space.  Many posters to these forums state that you need much more free space: 5 gig to 10 gig or 10 percent of you hd size.
    (0)
    Be careful when deleting files. A lot of people have trashed their system when deleting things. Place things in trash. Reboot & run your applications. Empty trash.
    Go after large files that you have created & know what they are.  Do not delete small files that are in a folder you do not know what the folder is for. Anything that is less than a megabyte is a small file these days.
    (1)
    Run
    OmniDiskSweeper
    "The simple, fast way to save disk space"
    OmniDiskSweeper is now free!
    http://www.omnigroup.com/applications/omnidisksweeper/download/
    This will give you a list of files and folders sorted by size. Go after things you know that are big.
    (2)
    These pages have some hints on freeing up space:
    http://thexlab.com/faqs/freeingspace.html
    http://www.macmaps.com/diskfull.html
    (3)
    Buy an external firewire harddrive.
    For a PPC computer, I recommend a firewire drive.
    Has everything interface:
    FireWire 800/400 + USB2, + eSATA 'Quad Interface'
    save a little money interface:
    FireWire 400 + USB 2.0
    This web page lists both external harddrive types. You may need to scroll to the right to see both.
    http://eshop.macsales.com/shop/firewire/1394/USB/EliteAL/eSATA_FW800_FW400_USB
    (4)
    Buy a flash card.

  • I bought an Adobe writer program a few years ago, and have had no problem saving information I've added to pdf forms.  For some reason, I can no longer save the information that I enter.on the form.  In fact, I get a message that the information will NOT

    I bought an Adobe writer program a few years ago,and have have had no problem saving information I've added to pdf forms.  For some reason, I can no longer save the information that I've entered.  In fact, I get a message that the information will NOT be saved.  How can I correct this?  Thanks!

    Hey louiseg45826294,
    Thank you for posting on Adobe forums.
    Could you please let me know what Adobe Writer program you are talking about. Is it Adobe Acrobat or Reader?
    Could you please share the screenshot of the exact error message that appears.
    Are the PDF forms saved on your computer's local drive?
    Hope to hear from you.
    Regards,
    Anubha

  • WMP Only Plays Part of Archived NPR Programs

    Trying to listen in to archived NPR programs using WMP. The player will only grab the first story in the program (the programs are essentially the stories from a program like Morning Edition "stitched together" into one program), and then stop there. WMP for Windows plays the entire program through, as will Real Player for os x. Any thoughts why WMP for os x won't? Thanks.

    Install Flip4Mac WMV. Find at usual sources. I don't do NPR, so I can't test it.

  • How to write program for handling  script ?

    In script i have 2 pages.
    In first page i have constant windows and variable windows.
    In second page i have main window.
    How to write program for this?

    Hi
    You need to write a driver program. You need to use open form, then write_form to write data into various windows and then close_form to close.
    As you don't want main window in the first page first try out just by having the window in the second page; i guess system will take care of it. As all other windows filled and if u start writing data in the main it'll go for next page.
    If doesn't work have the window on the first page with the least hight and write a command
    IF &SYST-PAGE& EQ 1
        NEXT-PAGE.
    ENDIF.
    Then in the second page you can have the main window hight as per your requirement.
    Here is an example
    (1) Get customer data
      TABLES: scustom, sbook, spfli.
      DATA: bookings like sbook...
      select * from...
    (2) Open form
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          DEVICE = 'PRINTER'
          FORM = 'S_EXAMPLE_1'
          DIALOG = 'X'
        EXCEPTIONS
          others = 1
    (3) Print table heading
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT = 'HEADING'
          TYPE = 'TOP'
          WINDOW = 'MAIN'
          FUNCTION = 'SET'
    (4) Print customer bookings
      LOOP AT bookings WHERE
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT = 'BOOKING'
            TYPE = 'BODY'
            WINDOW = 'MAIN'
      ENDLOOP
    (5) Close form
      CALL FUNCTION 'CLOSE_FORM'
    Regards
    Surya.

  • I want to how to write program to design for archived data?

    Hi,
    In my project already some z reports are there. Now some old data is archiving from the tables.
    I want read the data for the z reports . i  used below code to read the data by passing the archive document key to read the data.
    But the below code is reading entire data due to that it is taking lot of time.
    Please give some suggestions weather am i gong in right way or not?.
    LOOP AT it_arcindx1 INTO wa_arcindx1.
        v_key = wa_arcindx1-archivekey+0(6).
        CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ'
          EXPORTING
            archive_document = v_key
            object           = 'MM_EKKO'
          IMPORTING
            archive_handle   = lv_handle
          EXCEPTIONS
            OTHERS           = 1.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          EXIT.
        ENDIF.
        DO.
          CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT'
            EXPORTING
              archive_handle = lv_handle
            EXCEPTIONS
              end_of_file    = 1.          "nur die Ausnahmen, auf die man
          IF sy-subrc <> 0.                "wirklich reagieren will
            EXIT.
          ENDIF.
          CALL FUNCTION 'ARCHIVE_GET_TABLE'
            EXPORTING
              archive_handle        = lv_handle
              record_structure      = 'EKBE'
              all_records_of_object = 'X'
            TABLES
              table                 = git_ekbe_temp
            EXCEPTIONS
              end_of_object         = 0.
          LOOP AT git_ekbe_temp ASSIGNING <ls_ekbe>
                                 WHERE mandt = sy-mandt
                                 AND vgabe = '8'
                                 AND budat IN s_budat.
            MOVE-CORRESPONDING <ls_ekbe> TO waa_table1.
            APPEND waa_table1 TO it_table1.
          ENDLOOP.
        ENDDO.
        CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
          EXPORTING
            archive_handle = lv_handle.
        CLEAR wa_arcindx1.
      ENDLOOP.
    Regards,
    Maruthi S

    Hi Maruthi,
    Try using 'ARCHIVE_GET_NEXT_RECORD' instead of 'ARCHIVE_GET_TABLE' using which you can maintain no. of records hit by the handle.
    Have a look at sample logic given in SCN.
    http://scn.sap.com/thread/1263660
    Hope this helps.
    Regards,
    Naveen

  • SAP R/3 Archiving Restore Program

    Our company has a need to archive certain objects. We are using version 4.6C. It is our understanding that SAP does not provide a restore program for all objects. Below is a list of the objects that will be archived. Only 3 of the 22 objects have a restore program that we are aware of.
    Does SAP have other programs that could be used in the event that we need to restore deleted records to these objects or is there another solutions that could be implemented in the event that we remove records my mistake.
    MM_HDEL
    MM_INVBEL
    CS_BOM
    PR_ORDER
    MM_EINA
    PI_PLAN
    MM_MATNR
    MM_SPSTOCK
    MM_ACCTIT
    MM_EBAN
    MM_EKKO
    MM_REBEL
    MM_MATBEL
    FI_ACCPAYB
    SD_VBRK
    FI_ACCRECV
    SD_AGREEM
    SD_COND
    SD_VBAK
    LE_HU
    RV_LIKP

    Please go to Transaction AOBJ, and there you will see if a reload program is available or not.

Maybe you are looking for

  • N95 repeatedly loses consciousness during the upda...

    What is the problem as my N95 repeatedly (already 5 times) loses consciousness during the update. There is plenty of power in the battery and I have charger cable connected. The PC update software always asks me to resurrect the phone ("elvytä" in Fi

  • Airline adapter/ trucks

    so i got the airline adapter to use on a flight that i'm taking next week. but just curious. will this adapter work in the standard cigarette plug in my truck w/o frying anything or will i need a power inverter?

  • Sql loader performance problem with xml

    Hi, i have to load a 400 mb big xml file into mz local machine's free oracle db i have tested a one record xml and was able to load succesfully, but 400 mb freeying for half an hour and does not even started? it is normal? is there any chance i will

  • Material to consumption

    Hi I want to transfer material to consuptiom account and move through different storage locations/ plants ... so how to go forward for it Thank you

  • Mail 1.3.11

    My mail app. used to check for email automatically when set at 1minute or up to 1hour intervals, but not any more. Can anyone tell me why it isn't please and how to fix it? Thank you