AS_API_READ problem in archiving

Dear experts,
Recently i worked on one of archiving retrieval scenario where standard infoobject is SAP_FI_DOC_002.
I fetched data from BSEG,BKPF,WITH_ITEM using archiving FMs ARCHIVE_READ_OBJECT,ARCHIVE_GET_NEXT_RECORD.
Everything is going fine from retrieval point of view.Problem is performance.
Reason why its happening is as below:
CALL FUNCTION 'AS_API_READ'
    EXPORTING
      i_fieldcat                      = 'SAP_FI_DOC_002'
      i_selections                    = gt_selection[]
*   I_OBLIGATORY_FIELDS             =
*   I_MAXROWS                       =
   IMPORTING
      e_result                        = gt_result.
* EXCEPTIONS
*   PARAMETERS_INVALID              = 1
*   NO_INFOSTRUC_FOUND              = 2
*   FIELD_MISSING_IN_FIELDCAT       = 3
*   OTHERS                          = 4
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
In this FM ,if i provide selection field say 'BUKRS' 'GJAHR' 'BUDAT' 'BSTAT' .
Since only BUKRS GJAHR BUDAT lies in fieldcatalog of infostructure and BSTAT is an optional field,
so i get all possible combination of BSAT though i may be requiring less records.
It also adds to performance issue as i am not able provide correct index criteria.
This is a simple example.In my overall report i am facing this issue at many places where whole
data is getting retrieved.
How can i solve this problem. ?
I do not want to convert SAP_FI_DOC_002 to Z_SAP_FI_DOC_002 and do activation or deactivation because
i feel using a custom infostructure with standard reports atlast may invite other issues.
How to deal with this in abap . ?

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

Similar Messages

  • Problem while archiving faulty files in File Sender Adapter

    Hi All,
    I am facing some problem while archiving the faulty files using Sender File adapter.
    I have configured the option in the File Sender Channel to archive the files to some
    other location. I have configured some custom modules inorder to perform conversion.
    My file adapter is not archiving the faulty files. Please help me in this regard asap.
    Best Regards,
    Surya

    I have checked with all the authorization issues. It is still no archiving the faulty file.
    Can you please explain the mechanism behind this concept?
    How File adapter will decide that it is faulty? On what basis?
    How Modules play a role here?
    Regards,
    Surya.

  • Problem in Archiving for object FM_BEL_CA

    Dear all,
    Currently I am working on archiving project  who still use the R/3 4.7. One of the problems of archiving Archiving Objects is the FM_BEL_CA
    My questions to this objects are the following;
    1. At test run of Write process in t-code "SARA", the system only show the document type that can or cannot be archived. Is it possible in the SARA that the result of Write process also mention the document nr?
    2 Why the system request full authorization for all FM area?
    3. Is there any way to specify the the archiving is specified for certain FM area only?
    4. When I check the information Structure of this object, there is no Information structure for this FM_BEL_CA.
    5. Is it mandatory to create information structure for this object?
    6. What is the impact to the report on application side if we do not maintain Information Structure in the T-code "SARI"
    7. Is there any support package in relation to this Object?
    Is there anyone out there can help me?
    Thank you.
    Azni

    Hi Ajay, thanks for your information.
    I have tried to make the info structure recommended. In the process of info structure creation, there is no object FM_BEL_CA in the Object List.  Is there any reason for this?
    My next question, in practice is it a common to archive these object?
    My question raise after I read Note 114628. The impact of archiving this object will make the archived data become loss from data base and no way to retrieve it. So, if there is any payment received on the following period or Fiscal year after the archiving key date, will make the payment posted as unassigned revenue/expence.
    Please your support.
    Thank you so much.
    Azni

  • Problem in archiving change document

    Hi Experts,
    While doing function ' check in archive ' (CV02N) I am getting error that "problem in archive path"
    Can anybody tell me what may be the problem for this and how to overcome the same?
    Please do the needful.
    Thanks and best regards,
    Pravee

    Check this.
    1. Deletion flag is set or not.?
    2. Execute MCDOKDEL and check for the document
    3. Archiving path Storage Path location.?
    Thanks
    S.N.

  • 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

  • Problem in Archive log sync with Passive Node to Standby

    Hi,
    I have configured Active-Passive Oracle Database using Fail Safe between Active and Passive Node. Also successfully configured Data Guard between Active Node to Standby Node.
    Versions:
    1. Oracle Database Version: Oracle 11g R2
    2. Oracle Fail Safe: 3.4.2
    3. OS: Windows Server 2008 R2
    Problem:
    Now after fail over the database to Passive node, to check whether the DR is functioning or not, archive logs are not transferring to Standby node. In the Passive Node aler log file error is showing:
    "ORA-01031: insufficient privileges
    PING[ARC2]: heartbeat failed to connect to standby órcldr´. Error is 1031
    Could anyone please let me know the possible reason for this and the resolution.

    Hello;
    I'm thinking password file. It needs to be the same copy on all instances.
    Did you copy and rename it as needed?
    And you need to restart using the correct copy of the password file too.
    So a Standby for example must startup on the correct copy of the password file or you will still get the error.
    Best Regards
    mseberg
    Edited by: mseberg on Nov 14, 2012 9:46 AM

  • Problem while archiving the redo Log

    Hi all,
    I m having few issues in my server...
    I get the following error in the alert log of oracle..
    There are many errors
    1) No space left on device
    2) ARC0: I/O error 19502 archiving log 1 to
    '/oracle/admin/SNM/arch/arch_1_393_668727286.arc'
    ARCH: Archival stopped, error occurred. Will continue retrying
    3) ORA-16014: log 1 sequence# 393 not archive*d, no available destinations*
    Also please find the v$log file query
    SQL> select * from v$log;
    GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
    FIRST_CHANGE# FIRST_TIM
    1 1 405 1073741824 1 NO CURRENT
    60275455 20-OCT-09
    2 1 403 1073741824 1 NO INACTIVE
    59987366 19-OCT-09
    3 1 404 1073741824 1 NO INACTIVE
    60125083 20-OCT-09
    Also the diskspace is almost 97%.
    Can anyone let me know whether archival of redo log files is causing the issue here?
    If so if i stop the archival of logs ,will it solve the problem?
    Can anyone help me on this?
    Mon Oct 19 09:54:39 2009
    Errors in file /oracle/admin/SNM/bdump/snm_arc0_23831.trc:
    ORA-19502: write error on file
    "/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno
    577537 (blocksize=512)
    ORA-27063: number of bytes read/written is incorrect
    SVR4 Error: 28: No space left on device
    Additional information: -1
    Additional information: 1048576
    ORA-19502: write error on file
    "/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno
    559105 (blocksize=512)
    Mon Oct 19 09:54:39 2009
    Errors in file /oracle/admin/SNM/bdump/snm_arc0_23831.trc:
    ORA-19502: write error on file
    "/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno
    577537 (blocksize=512)
    ORA-27063: number of bytes read/written is incorrect
    SVR4 Error: 28: No space left on device
    Additional information: -1
    Additional information: 1048576
    ORA-19502: write error on file
    *"/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno*
    *559105 (blocksize=512)*
    ARC0: I/O error 19502 archiving log 1 to
    '/oracle/admin/SNM/arch/arch_1_393_668727286.arc'
    ARCH: Archival stopped, error occurred. Will continue retrying
    Mon Oct 19 09:54:40 2009
    ORACLE Instance SNM - Archival Error
    Mon Oct 19 09:54:40 2009
    ORA-16038: log 1 sequence# 393 cannot be archived
    ORA-19502: write error on file "", blockno (blocksize=)
    ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
    Mon Oct 19 09:54:40 2009
    Errors in file /oracle/admin/SNM/bdump/snm_arc0_23831.trc:
    ORA-16038: log 1 sequence# 393 cannot be archived
    ORA-19502: write error on file "", blockno (blocksize=)
    ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
    Mon Oct 19 09:54:40 2009
    ARCH: Archival stopped, error occurred. Will continue retrying
    Mon Oct 19 09:54:40 2009
    ORACLE Instance SNM - Archival Error
    Mon Oct 19 09:54:40 2009
    ORA-16014: log 1 sequence# 393 not archived, no available destinations
    ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
    Mon Oct 19 09:54:40 2009
    Errors in file /oracle/admin/SNM/bdump/snm_arc1_23833.trc:
    ORA-16014: log 1 sequence# 393 not archive*d, no available destinations*
    ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
    Mon Oct 19 10:00:16 2009
    ARC0: Encountered disk I/O error 19502
    Mon Oct 19 10:00:16 2009
    ARC0: Closing local archive destination LOG_ARCHIVE_DEST_1:
    '/oracle/admin/SNM/arch/arch_1_393_668727286.arc' (error
    19502)
    (SNM)

    yes it is the production server.
    Also the arch folder contains 2 GB file - arc file....
    Does disable of archival will solve the issue?
    I am try to clear the space or move to some other location..But the thing is my application files is of 3 to 4 GB.remaining thing is of dbf files.
    6564 drwxr-x--- 2 oracle oinstall 512 Oct 21 2008 .
    6563 drwxr-x--- 3 oracle oinstall 512 Oct 21 2008 ..
    6568 -rw-r----- 1 oracle oinstall 7061504 Sep 30 11:58 control01.ctl
    6569 -rw-r----- 1 oracle oinstall 7061504 Sep 30 11:58 control02.ctl
    6570 -rw-r----- 1 oracle oinstall 7061504 Sep 30 11:58 control03.ctl
    9283 -rw-r----- 1 oracle oinstall 5128192 Sep 30 10:21 mfxpima.dbf
    6600 -rw-r----- 1 oracle oinstall 17179877376 Sep 30 11:50 muse0.dbf
    6572 -rw-r----- 1 oracle oinstall 1073742336 Sep 30 08:10 redo01.log
    6573 -rw-r----- 1 oracle oinstall 1073742336 Sep 30 10:16 redo02.log
    6574 -rw-r----- 1 oracle oinstall 1073742336 Sep 30 11:58 redo03.log
    6578 -rw-r----- 1 oracle oinstall 19293806592 Sep 30 11:58 sysaux01.dbf
    6576 -rw-r----- 1 oracle oinstall 1698701312 Sep 30 11:56 system01.dbf
    6579 -rw-r----- 1 oracle oinstall 2147491840 Sep 30 11:04 temp01.dbf
    6577 -rw-r----- 1 oracle oinstall 4084211712 Sep 30 11:58 undotbs01.dbf
    6580 -rw-r----- 1 oracle oinstall 5251072 Sep 30 10:21 users01.dbf
    What as to be done....in this case....
    Help me out...
    I have no other option ....
    SRinivasan

  • Problem with archiving print lists

    Hi all,
    we have an issue with asynchronous archive requests.
    The archiving of some spool lists fails. Here the error message in OAM1:
    Order History
    12.03.2010 19:36:10     Request Created
    12.03.2010 19:36:10     Asynchronous request started; awaiting confirmation
    12.03.2010 19:36:10     Content Repository Reports Error
    JobLog:
    Job started
    Step 001 started (program RSCMSCAJ, variant &0000000023175, user ID XXXXXX)
    Error occurred during character conversion
    SAP ArchiveLink (error in storage system)
    Job cancelled after system exception ERROR_MESSAGE
    It gets weird when I reprocess the request in OAM1, because then it works and we have no error message. It feels like when we start 50+ requests, some jobs fail. And if we start archiving of <10 requests everything works fine.
    We tried archiving of 800+ spool lists in our QAS system with no problem. So we suspected, that our PRD content server may be broken or something. So we tried archiving spool lists from our SAP PRD system to our QAS content server -> same issue. The only thing left would be missconfiguration in our SAP PRD system but a few weeks ago everything worked fine and we had no issues.
    Have somebody faced similar issues?
    Regards
    Davor

    hi,
    Sorry i have to answer with questions:
    are you archiving spools larger then 2 gig?
    can you send use the logs from the content server?
    can you check OAM1 if there is more info ( check logging)
    Rgds
    Nico

  • Facing problem with archiving object - ISU_BCONT

    Hi,
    we have to archive Business Partner Contacts(ISU_BCONT) using program REARCH_BCONT_WRITE, as it was not working because FM - CHANGEDOCU_ARCHIVE_OBJECT is rising exception 'WRONG_ACCESS_TO_ARCHIVE'. checked the OSS note 515521 and did the changes accordingly still program is not working. requsting to help.
    Regards,
    Raghu

    Dear Experts,
    Problem solved, cannot say solved but yes its not required now as I am having Client Proxy call so it will be a native call to XI and which does not need SOAMANAGER things.
    Thank you all for taking your time and writing answers.
    Regards,
    [Gaurav Patwari|http://gauravpatwari.wordpress.com]
    Edited by: GauravPa on Apr 17, 2010 11:32 AM

  • Problem with Archiving

    when playing around with my archiving option within Aperture, I messed up and saved the library which is almost 2gigs, twice on my Desktop, and library.
    PROBLEM: the file is locked and unable to trash because its encrypted
    What To Do? To get one of these useless files on my Macbook
    Thanks
    Drew

    Same as you do with any locked file OS X, and there's no encryption involved at all.
    Select the item in the Finder.
    Hit Command-I to bring an info window.
    Uncheck the 'Locked' tickbox.
    Trash as needed.
    Ian

  • Problems with archive mailbox in Outlook, with exchange 2010+2013 co-existence

    Hi!
    We have an Exchange 2010 environment plus one Exchange 2013 MBX server meant for archive mailbox purpose. (We are going to upgrade to 2013 but with over 20.000 mailboxes it will take som time. Therefore we need to co-exist with primary mbx on 2010 and archive
    mbx on 2013 for some time.)
    My primary mailbox is on a 2010 MBX server, and I have today given myself an archive mbx on 2013 MBX server.
    When I use OWA, both my primary mailbox and my archive shows up and everything works 100% fine!
    But when I try Outlook 2010 or Outlook 2013, only my primary mailbox works. The archive mailbox shows up, but generates an error when accessing it:
    "The set of folders cannot be opened. Microsoft Exchange is not available. Either there are network problems or the Exchange server is down for maintenance"
    Anyone who knows about this issue? Would we nice to know why it works in OWA but not in Outlook.
    Thanks!
    Trond Jenssen

    Hi,
    Please try to recreate a profile to access archieve mailbox.
    If it doesn't make sense, also try Uncheck “Download shared folders” and check it again.
    If you have any feedback on our support, please click
    here
    Wendy Liu
    TechNet Community Support

  • Strange Problem While Archiving

    Hi Experts,
           I am able to archive messages but the problem here if i menstion specific Interface which has to be archieved then it is not working. In the sense that with this interface it is archiving other messages also. I want to do conditions specific archinving not all the messages.
          Please provide me the answer and don't provide me the links which has the steps of archiving. Because i alread followed those links and done the successful.
    Thanks in Advance,
    Best Regards,
    Vijay

    Hi Experts,
           I am able to archive messages but the problem here if i menstion specific Interface which has to be archieved then it is not working. In the sense that with this interface it is archiving other messages also. I want to do conditions specific archinving not all the messages.
          Please provide me the answer and don't provide me the links which has the steps of archiving. Because i alread followed those links and done the successful.
    Thanks in Advance,
    Best Regards,
    Vijay

  • Problem during archiving of QMEL

    Right now I am trying to archive through QM_QMEL and after providing input in the varint from the table QMEL (like notification number, type and Plant_for_material). But the Preprocesser results are as belows----
    > Kindly suggest
    27.01.2010                      QM Notif.: Set Archiving Indicator for Notifications w/ Deletion Flag                              1
    1 EIM774 No selection was made
    3 EIM752 "                                                 "
    3 EIM752 "                                                 "
    1 EIM756 Total    : Read according to selection conditions : "0"
    1 EIM757 Total    : Archiving flag set/possible : "0"

    Hi Surojit,
    Before doing the QM_CONTROL customizing , you have to define a selection profile. I think you already have done that.
    THe path in SPRO is Quality Management -> Quality Inspection -> Status Management -> Define Selection Profile.
    The reason why I am mentioning this is that perhaps you are not able get any eligible data when archiving of inspection lots using QM_CONTROL , because of the fact that you have not defined any selection conditions. This is over and above setting of retention dates in SARA -> QM_CONTROL -> Object customizing
    In the selection profile customizing , you can define criteria such as "Usage Decision Made" or LTCA status etc.
    Before you do this , you can also cross check which documents are eligible for archiving in inspection lots by going to transaction QA03 , and going to extended selection. There you can give criteria such as UD or LTCA to find whether you will really be able to archive Insp. Lots.
    This is not a direct solution to the problem , but possibly if you clear up the Inspection lots , you can proceed to the quality notifications , especially if there are open notifications waiting for LTCA status on Inspection lots.
    Regards,
    Chandra

  • Problems with archiving and deleting products created in CRM

    In the process of deleting products it is my understanding that one should first arhive the product.
    Reading the SAP help guidelines I was able to determine that there are various steps for accomplishing this, the first of which being Preprocessing.
    While carrying out this step an error was found that the product attempted to be archived could not be processed due to the fact that it was still used as a component to an installed base.
    However this is not the problem, once the correction was made I attempted again to carry out the preprocessing but I keep getting the message that the product "will not be checked again in archiving until 30.10.2006".
    It seems that somehow the system limits the attempts archive products in a limited period of time.
    My question here is:
    Is there anything I can do to change this? How can I attempt to succesfully preprocess the product without having to wait for date specified by the message?
    Many Thanks in advance,
    Pedro Rondó

    I was able to delete the product by reading the suggestions on another topic posted. I adhering the solution at the bottom of this post.
    However I was still not able to solve the initial problem concerning how to archive the product.
    Here's the solution posted by
    Nancharaiah Chatragadda
    Oct 23, 2006 8:31 AM
    Step1:
    Go to Transaction code: SE11 provide database table as : COMC_PR_TOOL_REG then click on display Goto Utilities Menu choose create entries in Table contents menu.. and provide
    Client: your client number
    Programme: COM_PRODUCT_DELETE_SINGLE
    User name: u r user name
    Exec date: select data
    STEP 2
    Programe: COM_PRODUCT_DELETE_SINGLE
    Then click on execute or F8
    It will ask u your
    Product name and type all the data..
    deselect check box..

  • Problem with Archive and Install - Second disc won't complete

    I'm trying to run an archive and install for my iMac, OS 10.4.11. I get through the first disc fine, but after I put in the 2nd install disc, it gets all the way to the "finishing installation" and then won't move past "running GarageBand Demo Songs Installer Script". it says less than a minute remaining, and the downloading bar is swirling, but there is nothing happening and it hangs here for hours. I've tried reinstalling, but it will only ask me to load the 2nd disk again, and the same thing happens over and over. I even tried a different install disc 2, and the same thing happened. Is there a way to push past this, or start the entire archive and install again? when i reboot to the disc drive with the 1st install disk, it ask me to put in the 2nd disc.
    This all started because iTunes was acting up after I got an ipod touch, no prior problems with the computer. Can anyone help?

    I've seen this reported before. What some have had some success with is to do a custom install so the second disk is not needed. See BDAqua's tip to someone with the same issue in the Tiger forum.
    http://discussions.apple.com/message.jspa?messageID=9959537#9959537

Maybe you are looking for

  • Training and Event Management (PE) - What does PE stand for?

    Hi Re: Training and Event Management (PE) Can someone tell me what (PE) stands for? I have had a look at the documentation on SAP Help but cannot see what this stands for.  I want to use this in the naming convention in my role stategy but need to un

  • IPod Shuffle with iTunes on Win8 64 bit. Doesn't work for me.

    Running Win 8 64bit. iTunes initially recognizes my iPod shuffle but then it disappears. Properties say driver is up-to-date. Details say Windows is removing the device. Restarted with connected and same problem. Downloaded iTunes today - 1/5/13. Any

  • Use of good quality of mother boards

    I AM USING YOUR COMPANYS TABLET PC HP PAVILLION  TX 1001 BUT AFTER 1.5 YEARS THERE IS A PROBLEM IN THE LAPTOP AND WHEN I SHOW IT TO HP CUSTOMER CARE THEY SAID THAT MOTHER BOARD HAS TO BE REPLACED AND ALSO THE EXPENSE FOR THE SAME IS OF RS.17000/- SO

  • 10.5.3 won't install... stuck in blue screen loop

    I chose to install it from software update. It told me to restart. I did. I got hung up on a blue screen loop. But no error messages or anything. I had to hard reset. Then started up fine- but system profiler shows I'm still 10.5.2. And software upda

  • Cannot Access Routers Web Based Page?

    I have a wireless Linksys router Model WRT54G and it will not let me access my routers web based page. When I enter the default IP address into the Address Bar nothing happens (I've checked to make sure my router is on the default IP), i just get a b