Extracting SAP Tables Error

Hello Experts,
I am trying to extract data from a SAP Instance and dumping to a SQL server table. We are able to execute the data dump jobs for all tables except ADRC, BKPF, etc (Tables with 25 Million + records) .  I am not sure if this has to with high data volume .
SAP Environment: SAP 4.6 C
BODI Environment:
Server: Windows 2008 R2
Database: SQL Server 2008, Web Server: Tomcat and Job Server run on the same server (Windows 2008 R2).
Designer is installed on The client (desktop) PCs run on Windows Vista 64 Bit or Windows 7 64 Bit
Note: I can run the same job for the same tables (ADRC, BSEG) from a different SAP instance (with much less data volume) without any issues.
When I run the job, I get an RFC Error: Key: RFC_ERROR_SYSTEM_FAILURE
                                                Status: &INCLUDE INCL_INSTALLATION_ERROR
The BASIS guys looked at the logs and mentioned that there are "DBIF_REPO_PART_NOT_FOUND" and "STORAGE_PARAMETERS_WRONG_SET" runtime errors.
Any help will be highly appreciated.
Edited by: Chaitanya Kasarkod on Sep 13, 2011 12:34 AM

Chaitnya -
make sure you have set the property parametes for ABAP DF to extract the data from SAP has set in right way. as in for standared ABAP prog name has to be start ZDQ/DI_* and some other relevant settings.
thx
Deep

Similar Messages

  • Perl script to extract SAP table

    Hi everyone,
    Is that possible to use Perl script to access and extract SAP table ? Is there any documentation for this ?
    Thanks

    Here's a bit of script using SAP::Rfc to read the table TBTCO, which stores background job information.  You can find the whole script here: http://www.sapdba.com/forums/viewtopic.php?f=3&t=6.  I've removed most of it so that the following is just an example of reading the table and printing the results to stdout:
    (note, this was written on a 4.6B system)
    #!/usr/bin/perl -w
    use SAP::Rfc;
    ### Variable Declarations
    $DEBUG = 0;
    $OUTPUT = "sm37.csv";
    $JOBCOUNT = 0;
    @ICONFIG = ();
    $CFGCTR = 0;
    ### End of variable declarations
    open(OUTFILE, ">>$OUTPUT") || die ("cannot open output file ", $OUTPUT, "\n");
    my $RFC = new SAP::Rfc(
                 ASHOST   => 'servername',
                 USER     => 'username',
                 PASSWD   => 'password',
                 LANG     => 'EN',
                 CLIENT   => '010',
                 SYSNR    => '01',
                 TRACE    => '0' );
    my $IT = $RFC->discover("RFC_READ_TABLE");
    $IT->QUERY_TABLE('TBTCO');
    $IT->OPTIONS( ["ENDDATE = $MAXDATE AND ENDTIME > $MAXTIME OR ENDDATE > $MAXDATE"] );
    my @FLDARRAY = qw(JOBNAME JOBCOUNT JOBCLASS PERIODIC REAXSERVER RELUNAME SDLUNAME AUTHCKMAN EVENTID SDLSTRTDT SDLSTRTTM STRTDATE STRTTIME ENDDATE ENDTIME STATUS);
    $IT->FIELDS([@FLDARRAY]);
    $RFC->callrfc( $IT );
    print "Num Rows in PRD matching selection criteria: ".$IT->tab('DATA')->rowCount()." \n";
    for my $ROW ( $IT->DATA ) {
            print "\n\nRaw row: $ROW";
            $JOBNAME = trim(substr($ROW, 0, 32));
            $JOBID = substr($ROW, 32, 8);
            $JOBCLASS = substr($ROW, 40, 1);
            if (substr($ROW, 41, 1)) {
                    $PERIODIC = 1;
            } else {
                    $PERIODIC = 0;
            $SERVER = trim(substr($ROW, 42, 20));
            $CREATOR = trim(substr($ROW, 62, 12));
            $USERNAME = trim(substr($ROW, 74, 12));
            $MANDT = substr($ROW, 86, 3);
            $EVENT = trim(substr($ROW, 89, 32));
            $SCHDATE = substr($ROW, 121, 8);
                    $SYEAR = trim(substr($SCHDATE, 0, 4));
                    $SMONTH = trim(substr($SCHDATE, 4, 2));
                    $SDAY = trim(substr($SCHDATE, 6, 2));
            $SCHTIME = substr($ROW, 129, 6);
                    $SHOUR = trim(substr($SCHTIME, 0, 2));
                    if ($SHOUR == 24) {
                            $SHOUR = "00";
                    $SMINUTE = trim(substr($SCHTIME, 2, 2));
                    $SSECOND = trim(substr($SCHTIME, 4, 2));
            $STRDATE = substr($ROW, 135, 8);
                    $BYEAR = trim(substr($STRDATE, 0, 4));
                    $BMONTH = trim(substr($STRDATE, 4, 2));
                    $BDAY = trim(substr($STRDATE, 6, 2));
            $STRTIME = substr($ROW, 143, 6);
                    $BHOUR = trim(substr($STRTIME, 0, 2));
                    if ($BHOUR == 24) {
                            $BHOUR = "00";
                    $BMINUTE = trim(substr($STRTIME, 2, 2));
                    $BSECOND = trim(substr($STRTIME, 4, 2));
            $ENDDATE = substr($ROW, 149, 8);
                    $EYEAR = trim(substr($ENDDATE, 0, 4));
                    $EMONTH = trim(substr($ENDDATE, 4, 2));
                    $EDAY = trim(substr($ENDDATE, 6, 2));
            $ENDTIME = substr($ROW, 157, 6);
                    $EHOUR = trim(substr($ENDTIME, 0, 2));
                    if ($EHOUR == 24) {
                            $EHOUR = "00";
                    $EMINUTE = trim(substr($ENDTIME, 2, 2));
                    $ESECOND = trim(substr($ENDTIME, 4, 2));
            $STATUS = substr($ROW, 163, 1);
            if ($SCHTIME && $STRTIME && $SYEAR && $BYEAR) {
                    ($LY,$LM,$LD, $Lh,$Lm,$Ls) = Delta_YMDHMS($SYEAR,$SMONTH,$SDAY, $SHOUR,$SMINUTE,$SSECOND,
                                                              $BYEAR,$BMONTH,$BDAY, $BHOUR,$BMINUTE,$BSECOND);
                    $DELAY = ($Ls + ($Lm * 60) + ($Lh * 3600) + ($LD * 86400));
                    $LY = ""; $LM = "";
            if ($ENDTIME && ($ENDDATE >= $STRDATE) && $BYEAR && $EYEAR) {
                    ($DY,$DM,$DD, $Dh,$Dm,$Ds) = Delta_YMDHMS($BYEAR,$BMONTH,$BDAY, $BHOUR,$BMINUTE,$BSECOND,
                                                              $EYEAR,$EMONTH,$EDAY, $EHOUR,$EMINUTE,$ESECOND);
                    $DURATION = ($Ds + ($Dm * 60) + ($Dh * 3600) + ($DD * 86400));
                    if ($DURATION < 0) {
                            $DURATION = 0;
                            print "Duration less than zero, set to zero\n";
                    $DY = ""; $DM = "";
            } else {
                    $DURATION = 0;
            print OUTFILE ("$SAPSID,$JOBNAME,$JOBID,$JOBCLASS,$PERIODIC,$SERVER,$CREATOR,$USERNAME,$MANDT,$EVENT,$SCHDATE,$SCHTIME,$STRDATE,$STRTIME,$ENDDATE,$ENDTIME,$DELAY,$DURATION,$STATUS\n");
           $JOBCOUNT ++;
    $RFC->close();
    close OUTFILE;

  • Exceute in Backround option(SAP tables) error in BODS 4.2

    Dear All
    We are using BODS 4.2 SP1
    Our R3 server is 4.7 release 620
    We have a simple dataflow where we pull data from sap tables,pass it from query transform and then load it in the Oracle Database.
    In the SAP datastore configuration,we have selected "execute in background option".Also we have selected the same "execute in background option" by double clicking on SAP table in dataflow and selecting "execute in background option"(This option didn't exist in BODS 4.0 ).The query transform has some mixed 'and' and 'or' condition.
    In BODS 4.0 the job runs without any error and takes hardly 10 minutes.
    However in BODS 4.2,the same job fails.When we uncheck the background option under SAP table(not in datastore configuration,but under properties in SAP table),the job runs,but fails with timeout error in BODS 4.2.Their was no such issue in 4.0
    The user account under which job runs on R3 has all rights as mentioned in SAP note 189 1274 except these two:
    G_800S_GSE : This authorization allows Data Services to access ERP hierarchies.
    ZSDS DEV    : This authorization lets you to define whether the SAP system should be treated as a development or
                            production system from the perspective of Data Services.
    Some lines of the error code:
    The SAP job was canceled for host < >, job name <b966ddd5239f11e4998c0f7840a849bc>, job count <16124501>, job log from SAP
                                                         <20140814, 161245, Job started
                                                         20140814, 161245, Step 001 started (program /BODS/RPT_STREAM_READ_TABLE, variant &0000000000002, user ID MFIBODI)
                                                         20140814, 161246, ABAP/4 procPlessor: RAISE_EXCEPTION
                                                         20140814, 161246, Job cancelled
    Please help me out here.
    Regards
    Ankit

    Hi,
    Go to BIP Server->services.msc->Business objects data services->stop and restart the services.
    For Tomcat also stop and restart the services.
    Regards,
    Narasimha.

  • View with SAP tables fails with "No Owner" error

    Dear experts,
    We have created a view (VIEW_MARA_MAKT) on Information Steward (4.2 SP1) using SAP tables MARA and MAKT.  This view is working perfectly.  Next we create another view to join with our previous view (VIEW_MARA_MAKT) to table MARC.  The view validates correctly, but when trying to view the data we get the following error:
    Data Services execution failed for VIEW_MATERIAL_PLANT. Error :
    (14.2) 04-08-14 12:46:21 (E) (0432:6996) RES-020106: |SESSION JOB_VView_736_43f3f6da_b863_46d6_ad64_b4f432a939b0|DATAFLOW EABAPDF_VIEW736_0|STATEMENT <GUID::'4a0dddf9-c993-4577-9e9a-1e0adf2dc9e2::794ee432-24f4-4801-bccf-587ef489e934::65e45615-06f8-426f-abf2-61345f6c252f' READ TABLE ICCDS_21."".MARC OUTPUT(IS_VIEW_RDR_475_0)> Table <MARC> for owner <> was not found in the repository for datastore <ICCDS_21>. Import this table from the external source. If the name is case-sensitive in the database (and not all uppercase), enter the name as it appears in the database and use double-quotation marks around the name to preserve the case. (COR-10690)
    It appears that DS is not satisfied that there is no owner name sent from IS, but for SAP connections it is not possible to specify owner names when adding the tables to IS.
    Please can you give some recommendations to resolve this error.

    What you can do is to use a table of record.
    And create a block based on stored procedure.
    Below is a table of record and procedure for querying from multi-tables.
    If you want to update, insert, delete rows, you need to create 3 more procedures on the package. One for updating, another for inserting, and so on.
    I never done updaing part before. So I need to spend time for coding.
    If you want, I can post later as soon as I got it.
    CREATE OR REPLACE PACKAGE TEST5 AS
    TYPE REC1 IS RECORD (FIRST TEST1.FIRST%TYPE,
    SECOND TEST1.SECOND%TYPE,
    THIRD TEST2.THIRD%TYPE);
    TYPE TAB1 IS TABLE OF REC1 INDEX BY BINARY_INTEGER;
    PROCEDURE TEST1CREATE (P_TAB IN OUT TAB1);
    END;
    CREATE OR REPLACE PACKAGE BODY TEST5 AS
    PROCEDURE TEST1CREATE(P_TAB IN OUT TAB1) IS
    CURSOR C IS
    SELECT A.FIRST,A.SECOND,B.THIRD
    FROM TEST1 A, TEST2 B
    WHERE A.FIRST=B.FIRST;
    i NUMBER:=0;
    BEGIN
    OPEN C;
    LOOP
    EXIT WHEN C%NOTFOUND;
    i:=i+1;
    FETCH C INTO P_TAB(i).FIRST,P_TAB(i).SECOND,P_TAB(i).THIRD;
    END LOOP;
    END TEST1CREATE;
    END;
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Hercules:
    <HR></BLOCKQUOTE>
    null

  • Runtime Error while updati9ng a standard sap table - fagl_saplinfo_val.

    Hi,
    I am facing a problem in updating a standard sap table through a z program. The table name is fagl_saplinfo_val.
    Error description is:
    Termination occurred in the ABAP program "ZMIGR_PCA_COPY" - in                   
      "SUB_POST-CUSTOMER_DATA".                                                       
    The main program was "ZMIGR_PCA_COPY ".                                
    In the source code you have the termination point in line 644                    
    of the (Include) program "ZMIGR_PCA_COPY".                                       
    The program "ZMIGR_PCA_COPY" was started as a background job.                    
    Job Name....... "ZMIGR_PCA_COPY"                                                 
    Job Initiator.. "BASAKK"                                                         
    Job Number..... 10485700                                                         
    The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in      
    procedure "SUB_POST-CUSTOMER_DATA" "(FORM)", but it was neither handled locally  
      nor declared in the RAISING clause of its signature.                                
    The procedure is in program "ZMIGR_PCA_COPY "; its source code begins in line    
    631 of the (Include program "ZMIGR_PCA_COPY ".                                   
    Is it related to non availability of space in that standard sap table?
    kindly suggest me the solution to this as soon as possible. Its vvvvv urgent!!!
    Regards,
    Panchali.

    Thanks Lakshman!
               I debug the program.There is no BDC used update.In this program after taking the data from excel sheet one internal table is prepared and this internal table is directly used to insert data into z table.This is the last code which executes.
      INSERT zmmpoamend FROM TABLE t_zmmpo_amend_tab.
      IF sy-subrc EQ '0'.
        MESSAGE 'Data Upload Successfully completed' TYPE 'S'.
      ELSE.
        ROLLBACK WORK.
        MESSAGE 'Data Upload failed ' TYPE 'E'.
      ENDIF.
      CLEAR t_zmmpo_amend_tab.
      REFRESH t_zmmpo_amend_tab.
         Is it possible to configure z table using SPRO tcode,such that this z tables data will go to standard table and then we can see it in the standard tcode?
    I am not sure but it's just a guess.

  • HI,Can anybody pls explain me, while extracting database table from sap-r/3

    HI,Can anybody pls explain me, while extracting database table from sap-r/3 to sap-bw using GENERIC DATA SOURCE it will ask us Name of the APPLICATION COMPONENT what does it means?

    Application Component is a collcetion of tightly coupled S/W component. You can think of it is like folder, where all the related S/W will be put in. Like MM will have all the DS related to MM.
    Thanks..
    Shambhu

  • Extraction from table.

    Hi gurus,
    i would like to extract data from a Transparent say SAP table.that's fine but when i supposed to save ..it raised an error with "invalid extract structure template"
    Also in the error diagnosis i got this "You tried to generate an extract structure with the template structure XXX. This operation failed, because the template structure quantity fields or currency fields, for example, field CLABS refer to a different table."
    So, for this how can i rectify and proceed furthur.
    Regards,
    Rambo.

    hi Rambo,
    what sap table you are try to use ?
    you cannot use table that has quantity or currency field that refer to other table, check the table you used, in tab 'check table' something, you should see the table is different from the table itself.
    you may use table with quantity/currency refer to itself, alternatively you may use view, or function module. let's know your requirement, what data are you going to extract ?
    hope this helps.

  • What to do whit SAP Tables??

    Hi
    I'm using owb 10.2. patch p5696353_10202_WINNT
    on an Oracle 10.1.0.1
    to extract some SAP 6.40 tables on a AS400 installation.
    I reached after a long guerrilla to see the sap repository and i imported some tables.
    but when i try to use those tables in a mapping it gives me error saying position for Sap Table is not correct.
    What i have to do before using the table?
    I didn't obtain the script generated by the config menu cause the validation of the mapping is not successfully.
    Error Code given is - 1134.
    Thanks
    Roberto

    I have the same problem. No explanation. what bugware this is. I cannot shut down iCloud because it threatens: if you stop using icloud for calendars, calendars stored in icloud  will be deleted from this Mac.

  • Sap Payroll error log report

    Hi All,
    We are developing Report on SAP Payroll log with the error message . Is any table exist in SAP where we can get the standard error message repositery and then convert it in the User freindly error message ?
    Thanks
    H

    Hello hg,
    Before developing report on SAP Payroll error log I suggest taking a look at below blog. There is a new functionality from SAP to improve payroll data validation and they are calling it "Control Center Add-On".
    This is going to be a free add on for anyone who is on EHP7 and NetWeaver on 7.4 release. The general availability is June 2nd 2014.
    Improve payroll data validation with SAP Payroll control center add-on
    Hope this helps.
    Thanks,
    Hemanth Jamithi.

  • Finding changes in SAP tables

    Hi,
    I have problem with SAP - Cognos interface. It functions like an ABAP program that generates a file from spec. fields of some SAP tables like BKPF, BSEG, BSID, BSIK, etc. And this is all OK, but problem is that report always selects ALL data, and in FI case(those table that I mentioned) this is complicated. For example one item is in some period open item, and in few days it will go to closed items. As COGNOS interface runs once in a Month or something like that, it is problem how to select proper data, because of huge amount FI data.
    Any Idea how to select only changes at table level? This must be also applicable to MM, SD and CO data. I thought of CHANGE DOCUMENTS, but what if change is not traced in CDHDR table because some data element is used in SAP table is not check to be observed as Change Document?

    Mario,
    For the changes, when ever there is a change done in the system a change number is created which will be available in table CDHDR, based on the Object classes extract the data and the required dates of changes made pull out the data.
    In case for AP, AR, G/L you can check with some tables ( there are some tables which will be only be updated based in the process AP/AR/GL ). Based on the list of these tables, extract data from table CDPOS  using the Change Number obtained from CDHDR.
    Anmol Saxena.

  • Loading records from .csv file to SAP table via SAP Program

    Hi,
    I have a .csv file with 132,869 records and I am trying to load it to an SAP table with a customized SAP program.
    After executing the program, only 99,999 records are being loaded into the table.
    Is there some setting to define how many records can be loaded into a table? Or what else could be the problem?
    Pls advice.
    Thanks!!!

    hi Arun ,
    A datasource need a extract structure to fetch data .It is nothing but a temp table to hold data.
    First you need to create atable in SE11 with fields coming from CSV file.
    Then you need to write a report program to read you CSV file and populate your table in BW .
    Then you can create a datasource on top of this table .
    After that replicate and load data at PSA and use to upper flow.
    Regards,
    Jaya Tiwari

  • Using an on update or insert trigger on a SAP table

    Hi all,
    A question for you regarding using a database trigger in and SAP system. 
    We are needing to export data for our datawarehouse.  Currently we export all the data.  That data is getting quite large tho and time is becoming an issue.
    One suggestion has been to add a custome field to an existing SAP table to hold a flag to indicate the record has changed but not been extracted.  Thenput a trigger on the table in question so that the new field is updated upon update or insert of the record.  Then when the extract runs, it will only extract those records with the flag set, then reset the flag.
    we are using ERP 6 and SQL Server 2005 (or soon to as we will be upgrading next month).
    Any suggestions regarding triggers?  Or other options for flagging changed records in large table so we don't have to extract all records every time?
    Thanks
    Laurie
    Edited by: Laurie McGinley on Oct 27, 2008 10:51 PM

    Hi Laurie,
    just really shouldn't consider to put triggers into your application.
    The problem here is the very nature of triggers to do things 'in the background'.
    If you have problems due to the trigger, you won't see it anywhere in the SAP environment.
    In a while you probably forget about the trigger at all and then nobody can see, what is happening to the database, just because something is changed "in the background".
    Besides that you don't get support for this from SAP, you will make your life a lot harder.
    Tabledefinitions may change - your trigger might break.
    Put application logic where it belongs - to the application layer!
    regards,
    Lars

  • Read SAP table data outside of SAP, without a SAP license

    Hello all,
    I have been asked to allow people within my company to directly access vendor information, but of course they don't want to purchase a SAP license.
    Yes, yes, I know that directly reading from SAP tables at the Oracle database level is generally frowned upon.
    I can envision creating an external application that presents the user with a screen of searchable fields, uses these fields to create SQL for the oracle tables LFA1, LFB1, ADRC, and ADR6, and returns a report of vendors that match the selection criteria.  The report could have drill down capability to give additional detail per vendor  This application would be executed with a user that has read only table access to the aforementioned tables.
    I just started to use the Oracle tool SQL Developer for a project that has nothing to do with SAP and that gave me the idea I described in the previous paragraph.
    Is anyone doing something like this?  Or what other methods are being used to allow on demand access to SAP tables, without a SAP license . 
    We are using SAP Enterprise Edition  version 4.7and Basis 620.
    Thanks
    Bruce

    Hello,
    You can use an RFC to extract data from SAP.
    Depending on the language you can extract data, for example if it is on .NET, you can use the .Net SAP conector, and create a RFC function on SAP, that returns the data you need.
    To extract the data you will need a valid SAP user and password.
    Hope this helps
    Gabriel P.

  • How to add  functionality in  SAP tables

    Hi All,
    i created one  enchancement to ME31K screen,
    i added one button to contract header  page when user click on this button it will tak me to my functionlity.
    and in my screens i added one more button that will tak me to contract header  page.( i used that stmt 'Leave program').
    but in second cycle if the user click on button it is showing me the following error.
    This function not defined
    Message no. 06006
    Diagnosis
    There is no entry for this function in Table 168F (system table). An error involving the screen control has probably occurred.
    Procedure
    Contact your system administrator.
    Am i need to add this functionalty to any  sap table.
    plz guide me on this.
    Thanks & Regards,
    Murthy Sannidhi

    Hi,
    The function exits used for screen enhancement of ME31K screens would have an export parameter E_UCOMM. Which needs to be mapped to a function code maintained in T168F table. Ideally 'KOPF' function needs to be passed onto E_UCOMM within the function exit.
    i.e. E_UCOMM = 'KOPF'.
    This shall solve the issue.
    Thanks & Regards,
    Kiran Kumar Somaroutu

  • Workflow attchment data stored in which SAP Tables

    Hi,
    In Leave workflow when approver rejects it the approver(Agent) provide the reason for rejection as an attachment.
    I have to send the external mail to the employee.
    I am able to send the mail with fixed information, however unable to extract the information from attachment ( want to know in which SAP Tables say SW* this information is stored) or any other solution.
    Help Please.
    Praveen Jain

    You really shouldn't worry about that. Use the access functions instead.
    If you are thinking about the e-mail address for a user, use the function module BAPI_USER_GET_DETAIL.
    If you are thinking about the e-mail address for an employee (which is not stored in the same table), one solution is to use BAPI_EMPLCOMM_GETLIST and look for an entry with subtype 10 (this one is SAP standard I believe) or any custom subtype which should hold e-mail address.

Maybe you are looking for

  • MSI R7950 TF 3GD5/OC BE DXGI_ERROR_DEVICE_REMOVED

    Hi, sorry I speak very low english, I have a brand new system: Graphics: MSI R7950 TF 3GD5/OC BE (Serial number is: 602-V276-18SB1212032385 Board: Asus Sabertooth FX990 rev 2.0 SSD: Corsair 240GB GTX RAM: 2x 4 GB 1866Mhz Corsair Vengeance PSU: Corsai

  • Synchronising Sent messages to Outlook

    I'd have thought mine is a fairly common question, but I've not managed to find a specific answer on the Forum I generally access my emails from my PC using Outlook as a client.  My wife now has an I phone, and whilst on holiday I accessed my emails

  • End loop then advance to next frame

    I'm building a presentation and I'd like it if I could set up the following: There's a looping animation. It starts and ends with a solid transition to something else. However, I'm building this for a separate presenter (seveal, in fact) and I don't

  • Bugs in Acrobat - how to let Adobe know?

    Hello! Can I post document bugs here so that Adobe can read, react and possibly remove them?

  • Resetting Router

    We are having to reset our router sometimes seven or more times a day. A few months ago we moved it not even four feet from sitting on top of something to hanging on the wall and ever since it has needed to be restarted more often than I ever remembe