BW: Modify Info-Cube Input-Table

Hi,
First of all, I am not very well involved with BW,
but I have to solve following problem:
PROCESS:
I have to delete some rows of the importing table
under certain circumstances.
I am doing this within the START-Section.
If I run the import in debug-modus <b>it seems</b> to work fine!
RESULT TEST-MODE:
A message appears, which tells me, that the number of
lines has changed. FINE ==> OK to me
A list of imported lines is displayed on the screen.
The deleted lines don't appear! FINE ==> OK to me
PROBLEM:
But when I run the import in production-mode, the deleting
of the lines is ignored.
All lines are imported. The deletion does'nt work!
QUESTIONS:
Is it in general possible the change the number
of Import-lines?
Or Do I something wrong?
Thanks for any help
BR
Michael

Hi Michael,
first of all I think you should post your message in the BW forum. But now back to your issue. The ways to restrict the data import to BW in general is to use the selection criteria in the infopackages or to delete data of the datapackages in the user exit for data extraction.
Once the data is in BW you can restrict the data by deleting records of the datapackage in the start routine of the transfer rules and in the second step in the start routine of the update rules. Additionally you can prevent records from being updated into the datatargets if you set the returncode parameter of the routines for each infoobject to a value <> 0.
Hope this helps
regards
Siggi
PS: In your case I think you try to delete records in transfer or update rules. As this normally works fine, please post your code.
Message was edited by: Siegfried Szameitat

Similar Messages

  • Significant of key field in Info cube table

    Hi,
    what is significant of key field in Info cube table?
    Best regards,
    dushyant.

    hi ,
          key figures are very important in tables, when it is in cube it act as dimensions
    for the reporting purpose see this scenario
    the table has following fields
    student no
    student name
    student attendance
    student mark
    in this scenario when we want report according to student no its normal we would get, but when we want according to attendance,marks we dont get report according to attendance and mark, so we put all those fields in key fields.
    So we could say that Key fields are the dimensions and according to this we get reports
    thank yu

  • How to extract data from info cube into an internal table using ABAP code

    HI
    Can Anyone plz suggest me
    How to extract data from info cube into an internal table using ABAP code like BAPI's or function modules.
    Thankx in advance
    regds
    AJAY

    HI Dinesh,
    Thankq for ur reply
    but i ahve already tried to use the function module.
    When I try to Use the function module RSDRI_INFOPOV_READ
    I get an information message "ERROR GENERATION TEST FRAME".
    can U plz tell me what could be the problem
    Bye
    AJAY

  • Cube ODS table level info

    Dear All,
              When we create a cube or an ODS how many tables are created?or is it structures that are created?What are those tables that are created?
    Yours truly,
    Ratish
    [email protected]

    Fact table is nothing but table with Data.
    While loading the data 1st the data will moves to F fact table.
    We load the data in to the F fact table,where the data are grouped according to the individual load among requests.
    The F table allows us to check for overlapping requests and to delete unnecessary requests.
    The F fact table degrades the query performance,When executing a query,the OLAP process must aggregate keyfigures to eliminate the requests information in the data packet dimension.
    To overcome this drawback,BW allows us to aggregate the F fact table and save the aggregated data in the E fact table in a process called the Info cube Compression.
    After the compression ,the OLAP processor will go to the E fact table to retrieve the data.
    For performance and disk space,it is recomended that you roll-up a request as soon as possible and then compress the Infocube......
    Hope it will helps you..........

  • 0IC_C03 info cube loading issue

    Hi,
    While loading the 0IC_C03 (Inventory) info cube from 2LIS_03_BF
    extractor job is taking long time, even while loading upto PSA and also
    while loading the data from PSA to info cube through DTP.
    When i checked the same with other two extractors it was working fine
    i.e., 2LIS_03_BX and 2LIS_03_UM. I have checked in the process monitor
    in SM50 in BI it was showing ACTION: Direct Read TABLE: NRIV.
    Regards,
    Prabhakar.

    Ouuupsss, you must be on the interval definition.
    Execute the SNRO transaction
    Enter your number range ID
    Modify the definition of your number range (the pen )
    Menu Goto
    Buffer
    Memory
    Then there is a new field that that should be displayed. Something like "Buffer size". 500 is a good start (not too small, not too big).
    Regards,
    Fred

  • End routine to populate Info-cube.

    Hi ,
    Is it possible to load fileds of a Info-cube using End routines in the following scenairos.
    1.Loading fields of info-cube by referencing/using a master data table in End routine.
    2.Loading fields of info-cube by referencing/using a DSO fields  in End routine.
    3.Loading fields of info-cube by referencing/using a fields of another info-cube in End routine.
    Please advise.

    Hi Stalin,
    Before answering your question you need to understand something about "End routine" and "Expert routine".
    End Routine:
    - Result_fields and Result_package are available
    - End routine contains only those fields available in Data target.
    Start Routine:
    - Source_fields and Source_package are available
    - Start routine contains only those fields coming from source.
    Expert Routine:
    -  Source_fields, Source_package, Result_fields and Result_package are available
    So Now if you want write code to look up into some other cube, in look up you may need to test condition using source fields, in that case " Expert Routine" is only the option.
    For Ex
    my data target contains : x,y and z fields (it becomes result_field)
    source contains : a field ( it becomes source_field)
    now if i want to write look up code like this " select x,y and z fields from other cube where my a field value = other cube a field value. here u r accessing both S_F as well as R_F. So only the option is "EXPERT ROUTINE"
    or else u want to write code only with R_F then "End routine " is enough.
    Thanks,
    Gowd

  • Info cube data doesn't match with R3

    Hi,
    We are using "0AFMM_C02" Info cube for Inventory data.
    for some records its not fatching data for distribution channel.
    I checked the update routine for Distribution Channel.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:  BEGIN OF it_data OCCURS 0,
         material LIKE /bic/cs2af_mm_inv_1-material,
         plant LIKE /bic/cs2af_mm_inv_1-plant,
         val_type LIKE /bic/cs2af_mm_inv_1-val_type,
         END OF it_data.
    DATA: lt_mrpods TYPE TABLE OF /bic/ascm_d0500.
    INCLUDE rs_bct_retail_update_rules.
    $$ end of global - insert your declaration only before this line   -
    FORM compute_key_field
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
      USING    COMM_STRUCTURE LIKE /BIC/CS2AF_MM_INV_1
               RECORD_NO LIKE SY-TABIX
               RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING RESULT LIKE /BI0/V0AFMM_C02T-DISTR_CHAN
               RETURNCODE LIKE SY-SUBRC
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    data:DISTR_CHAN LIKE /BI0/MCUST_SALES-DISTR_CHAN.
    SELECT SINGLE DISTR_CHAN INTO DISTR_CHAN FROM /BI0/MCUST_SALES
        WHERE CUST_SALES = COMM_STRUCTURE-CUST_SALES.
        IF SY-SUBRC EQ 0.
          RESULT = DISTR_CHAN.
        ELSE.
          RESULT = COMM_STRUCTURE-DISTR_CHAN.
        ENDIF.
    result value of the routine
    RESULT = .
    if the returncode is not equal zero, the result will not be updated
      RETURNCODE = 0.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    Can any body tell for what distribution channel it will get data..
    Please help .. its very urgent..
    Regards,
    Viren.

    Hi,
    I have a better suggestion..Try to write this code in Start Routine of Update Rule.
    DATA:  S_DATA TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    DATA:  ITEM_TABLE TYPE STANDARD TABLE OF /BI0/MCUST_SALES
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    *start of modification
    *Populating the item status data from the item status ODS table
    SELECT * FROM  /BI0/MCUST_SALES INTO TABLE ITEM_TABLE.
    LOOP AT DATA_PACKAGE INTO S_DATA.
       LOOP AT ITEM_TABLE WHERE CUST_SALES = S_DATA-CUST_SALES.
         MOVE item_table-DISTR_CHAN to s_data-DISTR_CHAN.
         APPEND S_DATA.
       ENDLOOP.
    ENDLOOP.
    DATA_PACKAGE[] = S_DATA[].
    Hope this works...
    Regards,
    San!

  • Delta records are not loading from DSO to info cube

    My query is about delta loading from DSO to info cube. (Filter used in selection)
    Delta records are not loading from DSO to Info cube. I have tried all options available in DTP but no luck.
    Selected "Change log" and "Get one request only" and run the DTP, but 0 records got updated in info cube
    Selected "Change log" and "Get all new data request by request", but again 0 records got updated
    Selected "Change log" and "Only get the delta once", in that case all delta records loaded to info cube as it was in DSO and  gave error message "Lock Table Overflow" .
    When I run full load using same filter, data is loading from DSO to info cube.
    Can anyone please help me on this to get delta records from DSO to info cube?
    Thanks,
    Shamma

    Data is loading in case of full load with the same filter, so I don't think filter is an issue.
    When I follow below sequence, I get lock table overflow error;
    1. Full load with active table with or without archive
    2. Then with the same setting if I run init, the final status remains yellow and when I change the status to green manually, it gives lock table overflow error.
    When I chnage the settings of DTP to init run;
    1. Select change log and get only one request, and run the init, It is successfully completed with green status
    2. But when I run the same DTP for delta records, it does not load any data.
    Please help me to resolve this issue.

  • Regarding Info cube and DSO

    Hi,
    Generally reporting will be done on Info Cube rather than DSO.
    Suppose If we assign the same data source to Info Cube and DSO then both contains the same data.
    Info cube have additive and aggregated functionality where DSO have the overwrite functionality .
    Are we using cube for this functionality only ?
    What about the Dimensions in Cube how they differ from data fields and key fields in DSO when we are developing same Bex Report on both ?
    Please advice me .
    Thanks in advance.
    Thanks & Regards,
    Ramnaresh.p

    It is hard to compare Cube and DSO.
    Both thier own usage.
    1. InfoCube is always additive, while DSO supports overwrite functionality.
    2. In InfoCube, combination of all the characteristic value is a Key in the Fact Table, while in ODS, you can specify your own Key Fields based on which you want to generate unique record in the DSO.
    3. DSO supports many delta modes like D, R, N, X, after image, before image, while cube does not support all the modes. You can not delete the record based on the key from the cube by just loading the data. While DSO automaitcally deletes the record from active table and generates the reverse entry for Cube.
    4. DSO is a flat structure and therefore, it is used to store information at detail level, while cube is used to store information at aggregated level.
    So both the structures are very much different from each other. One can replace other at some places, but both the objects have thier own functionality.
    - Danny

  • I am planning to create custom defined  DSO Object & Info cube

    Hi ,
                     i am planning to create custom defined  DSO Object & Info cube.what ratio i can calculate what is the keyfields & what are the data fields in DSO.How can i calculate.
                     2. how can i create  suitable dimensions, suitable characterstics  for dimensions.what ratio i can decide.
    Thanks,
    chandu.

    Hi Diego Garu,
                               Thanks for your fast response.i
    VBELN     VBAP     2LIS_11_VAITM                                              0DOC_NUMBER
    POSNR     VBAP     2LIS_11_VAITM                                                0S_ORD_ITEM
    KUNNR     VBAK     2LIS_11_VAHDR                                                 0SOLD_TO
    VBELN     VBRP     2LIS_13_VDITM                                                    0BILL_NUM
    FKDAT     VBRK     2LIS_13_VDHDR                                                 0BILL_DATE
    INCO1     VBRK     2LIS_13_VDHDR(INCO1FieldNot Available in Data Source)     0INCOTERMS
    ZTERM     VBRK     2LIS_13_VDHDR(Payment terms field Not Available in Data Source)                                                                                0UCPYTERMS
    NETWR     VBRP     2LIS_13_VDITM                                                           0NETVAL_INV.
                                           here data is coming from the multible tables.that why i am planning to create custom defined data source based on view. here how can i calucate dso is suitable or cube is suitable.
    suppose dso is suitable how can i decide which on is the data field and which one is the key field.
                                        how can i decide how many dimensions are needed here.and which chara are suitable for that dimensions.
    Thanks ,
    chandu.

  • How to use create, delete, modify butttons in a table

    hi all
    in my application i have emp table in my source view
    in that table i have inserted static data in columns i.e., empid, empname. i have 3 buttons create, delete, modify buttons in that table. when i press Create button it navigates to another view1 in which we have a emp form with create new emp button and labels empid, empname and 2 input fields.After filling the form when hit the create newemp button the form data should be displayed in the table.
    The same for Modify and delete.  i.e., when i select a particular empid row in my source view table and hit the modify button it should navigate to view2 in which the particular record form with data displays and after making necessary modifications the modified data should be display in the particular row .
    For delete button, when i select a particular record in the table and hit delete button it should be deleted from the table.
    any snippet of code is valuable
    Thanks in advance
    sravan

    Hi Sravan,
    I just need a clarification, are you getting the table data from the back-end system?
    On the second view, after the user input on click of the "Create New" or "Modify" button, update the back-end. Once the update is successful, fire a plug back to the first view and reload the table or execute the model again. The updated records will be fetched from back-end system.
    On click of "Delete" button, remove the record from the back-end and execute the model again.
    This holds good if you have the data fetched from the back-end.
    Regards,
    Santhosh.C

  • Backup of an Info-cube.

    Hi Xperts,
       i got problem to delete all the contents of the info-cube.how do i backup the infocube contents since last year.My architect was saying to me use Open hub or infospoke.
    Any body can tell me whats the procedure to do back using Infospoke or Open hub service.
    Please.

    Hi Chowdhary,
        Infospoke is used to extract data from BW and send it to other systems...
    that means you want to send ur data from BW data target i.e from ODS or InfoCube... to FlatFile.. or other databases..
    T.Code is --RSBOH1
    1.Go to this RSBOH1 tcode..
    2. and select INFOSPOKE tab..
    3.give info spoke name.. which you want to create...
    4.click on Create button( in application tool bar)
    5.in general tab.. there you need to select ur source systemm..(i.e. ODS or InfoCube or any data target.)
    6. and in destination tab select Flat file or DB table.. and give the path which you want to store ur data...(example select File option and there you need to give the path.. C drive or Desktop.. like that.. and give , seperator.. because.. it will gives you in CSV format..)
    7. and in infoobjects tab.. select which objects data you want to extract..
    8. Activate it..
    9. now you will get one icon in application tool bar.. that is.. Dailog(Execute) button..
    10. click on this button.. and check ur target path....you can find two files.. that is one metadata file.. and another one is original data file..
    thanks
    @jay

  • Input table sort for uncommited data

    Hi OTN,
    I have an input table on my ADF page. The table is based on a view object which has ORDER BY VALUE clause.
    There is an opportunity to insert new rows and edit Value attribute of any row.
    I would like the table always to be sorted by Value attribute before commiting the changes.
    Input fields have autosubmit=true and I also have button which performs ADFUtils.findIterator(..).executeQuery() and refreshing the table (with addPartialTarget or table's partial trigger).
    Besides I tried declarative column sorting.
    By no means I succeeded to sort the table with new values without commiting data.
    Is there any possibility to do this?
    Thanks.
    JDev 11.1.1.4

    Hi,
    After applying this code in a managed bean           System.out.println("ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES | ViewObject.QUERY_MODE_SCAN_VIEW_ROWS");
              trIter.getViewObject().setQueryMode(ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES | ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
              trIter.getViewObject().setSortBy("NEnd");
              trIter.executeQuery();in-memory sorting really works.
    But now I have a row with null NEnd first in my table. Without modifying query mode it was last just as I need.
    It is now:null
    10
    20
    30Can I bring null row back to last position?
    Tried trIter.getViewObject().setSortBy("NEnd nulls last"); and trIter.getViewObject().setSortBy("deocde(NEnd, null, 9999, NEnd)"); with no success.
    Edited by: ILya Cyclone on Jul 8, 2011 3:28 PM

  • How to upload data from POS Workbench to BW Info Cubes and then to SAP R/3

    Hi,
    I have used some sample data as input to BAPI "/POSDW/BAPI_POSTR_CREATE" to create sample transactions in POSDM.
    Then I had executed this data to POS Workbench.
    Now my requirement is to upload this data further to Info Cubes and then to R/3 in IDocs format.
    Can anyone please tell me the method to how to do this?
    Thanks in advance.

    Hi,
    Please see the below links,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/5ef84112f49c39e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0f/7af634b576bc4ee10000009b38f83b/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b7/b6d59344e93443a7ac8934d2acfb55/frameset.htm
    Hope this helps,
    Regards
    CSM Reddy

  • How to check No of Records in INfo Cube

    Hi Experts
    My Infocube consists of records in Millions...and i performed selective Deletion.
    Now can i check the No of records in the Info Cube
    Please update

    To fully estimate the volume of data in a cube, I'd also suggest that you check the number of records in each dimension table of the cube.
    go t-code listschema
    enter cube name
    all relevant tables will be displayed. right click on a dim table -> call se16
    on this page hit button "number of entries"
    hope this helps...

Maybe you are looking for