Changing master data record while loading Transaction data

Hello All,
We have a requirementt to change one of the master data field(FLAG) while loading on the transaction data.
we get the material info in the Master data. and in the sales order item data also we get the material.
While loading the Transaction data, I have to set a FLAG field has "s" in the Master data material based on the Key selection:
Master data -  MAterial = Tramsaction - Data Material.
I have written the code.. and implemented.. i get the correct records but i face huge performance issue. can any one guide me please
    DATA: itab1 TYPE STANDARD TABLE OF /bi0/pmaterial,
           wa_itab1 TYPE /bi0/pmaterial,
           w_tabix TYPE sy-tabix.
     IF itab1 IS INITIAL.
       SELECT * FROM /bi0/pmaterialINTO TABLE itab1.
     ENDIF.
     LOOP AT result_package ASSIGNING <result_fields>.
       READ TABLE itab1 INTO wa_itab1 WITH KEY
                          material =  <result_fields>-material.
       IF sy-subrc = 0.
         w_tabix = sy-tabix.
         IF <result_fields>-/bic/paa1c2033 IS NOT INITIAL.
           wa_itab1-FLAG = 'S'.
           MODIFY itab1 FROM wa_itab1 INDEX w_tabix TRANSPORTING FLAG .
         ENDIF.
       ENDIF.
     ENDLOOP.
     IF itab1 IS NOT INITIAL.
       MODIFY /bi0/pmaterial FROM TABLE itab1.
     ENDIF.

Here are some performance tips:
Add FOR ALL ENTRIES IN result_package WHERE material = result_package-material to your select statement
After your select statement, add IF SY-SUBRC = 0.  SORT itab1 BY material. ENDIF.
In your read statement, add BINARY SEARCH to the end of it
At the end of your end routine, make sure to CLEAR itab1.
You can also increase the number of parallel processes for your DTP, and DSO activation (assuming your target is DSO).

Similar Messages

  • While loading transaction data into cube what are the tables generats

    Hi,
    while loading transaction data into cube what are the tables normally generats.

    Hi,
    Normally datas will be loading to 'F'- Fact tables (/BIC/F****) *** - cube name..
    When you do compress the request the data will be moved into E tables.
    Regards,
    Siva.

  • Why we load Master data first before loading Transaction data

    Hi Experts,
    why we load Master data first before loading Transaction data, specify any reasons for that ? Is it mandatory to load MD first ?
    I will allocate points to those who help me in detail. My advance thanks who respond to my query.
    Edited by: Nagireddy Pothireddy on Mar 10, 2008 8:17 AM

    Hi Nagireddy,
    I hope this helps....
    The bottom line for building cubes it to view facts against dimensions. When i say facts these are the key-figures i.e sales volume, Sales vat etc against some characteristics like sales Area,  Cost center , plant.
    Basically charateristics are those against which key-figures are measures like Costcenter, plant, material etc.
         Dimensions are a grouping of related characteristic. So basically a cube has a central fact table with dimesions associated to it in a relational schema. Imagine now you want to view a key figure Sales Volume against a dimension plant. when you consider plant , it has a distribution channel, purchasing organisation , company code, sales area, region etc associated with it. So which form the attributes of plant and also have some or the other description (texts) and aslo hierarchy. first we load the master data and then the transaction data follows.

  • Error while loading Transactional data from NW BW Infoprovider

    Hi,
      I am trying to load the transactional data using the delivered "Transactional data from NW BW Infoprovider" package and getting error message Error occurs when loading transaction data from other cube .
    Below is the transformation file content
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = TAB
    AMOUNTDECIMALPOINT = .
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=NO
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT= 9999999999999
    ROUNDAMOUNT=
    *MAPPING
    ACCOUNT = 0ACCOUNT
    BUSINESSTYPE = *NEWCOL(NOBTYPE)
    BWSRC = *NEWCOL(R3)
    COMPANYCODE = 0COMP_CODE
    DATASRC = *NEWCOL(R3)
    FUNCTIONALAREA = *IF(0FUNC_AREA = *STR() then *STR(NOFA);0FUNC_AREA)
    GAME = *NEWCOL(NOGAME)
    INPUTCURRENCY = *IF(0CURRENCY = *STR() then *STR(NOCURR) ; 0CURRENCY)
    PROBABILITY = *NEWCOL(NOPROB)
    PRODUCT = *NEWCOL(NOPROD)
    PROFITCENTER = 0PROFIT_CTR
    PROJECT = *NEWCOL(NOPROJECT)
    TIME = 0FISCPER
    VERSION = *NEWCOL(REV0)
    WEEKS = *NEWCOL(NOWEEK)
    SIGNEDDATA= 0AMOUNT
    *CONVERSION
    Below is the Error Log
    /CPMB/MODIFY completed in 0 seconds
    /CPMB/INFOPROVIDER_CONVERT completed in 0 seconds
    /CPMB/CLEAR completed in 0 seconds
    [Selection]
    InforProvide=ZPCA_C01
    TRANSFORMATION= DATAMANAGER\TRANSFORMATIONFILES\R3_TD_P&amp;L.xls
    CLEARDATA= Yes
    RUNLOGIC= No
    CHECKLCK= Yes
    [Messages]
    Task name CONVERT:
    No 1 Round:
    Error occurs when loading transaction data from other cube
    Application: ACTUALREPORTING Package status: ERROR
    Does anyone had this issue before or is there something that needs to be looked in the BW delivered task ?
    ANy Inpout will be appreciated.
    Sanjay

    Hello Guru,
    Currently i am getting below error while loading costcenter master data from BW to BPC.
    Task name MASTER DATA SOURCE:
    Record count: 189
    Task name TEXT SOURCE:
    Record count: 189
    Task name CONVERT:
    No 1 Round:
    Info provider  is not available
    Application: ZRB_SALES_CMB Package status: ERROR
    Anybody can tell me, if i have missed anything ???
    Regards,
    BI NEW
    Edited by: BI  NEW on Feb 23, 2011 12:25 PM

  • Error while loading transaction data

    Dear Guru's
    I am loading transaction data which got terminated giving processing overdue error .
    While analysing i found there are lot of records in psa marked in red .
    Please suggest how to resolve and to load valid records.
    Regards
    Karan

    Hi,
    While analysing i found there are lot of records in psa marked in red .
    Correct the error records in PSA.Error will be in different ways (Ex Special chars, unit conversionu2026etc) so try to find the cause of the error and correct it.
    Before this make the QM status (in target) and technical status (in monitor screen) of error request to red and delete the request from target. Then only you can change the records in PSA.
    After correcting click on the tab Process manually in monitor screen or go to manage of the PSA (data source) click on schedule immediately. Error request will be updated again.
    I am loading transaction data which got terminated giving processing overdue error.
    Just wait for some time until it is loaded.
    Still it is not resolved See the error criteria in monitor screen status tab.
    Normally this type of message comes due to internal table space. Try to reduce the packet size and increase no of packets.  Consult the basis persons to increase the table space and clean the logs.
    Delete the request from the target and load again.
    With regards,
    Kishore.
    Edited by: Siv Kishore on May 26, 2009 10:47 AM

  • Incorrect records When load Transaction Data

    Hi experts:
    I just loaded transactional Data. Data first came from a CSV file to PSA, then from PSA to DSO, Last DSO to Cube.
    Data in PSA looks correct. After data got loaded to DSO, I found so many Item Numbers are not in PSA. I deleted all the old requests in PSA, and only have one request now. I don't know what are those old Item Numbers come from. It gets loaded everytime. Anyone knows?
    Thanks!

    In that case you must be having some update routine that is increasing number of records in DSO. Can you please paste here number of records transferred and added from DSO Manage for the data load request you are talking about. Also let me know what do you mean by -  I found so many Item Numbers are not in PSA
    Regards
    Pradip

  • Error while loading transaction data from an Infoprovider Mapping C_ACCT

    Hi Gurus,
    We are implementing BPC Consolidation for NetWeaver 7.5, and we're facing the following situation:
    We have loaded master data from 0RC_ACCOUNT (group account) to our dimension C_ACCT without a problem, but when we run the loading package from an infoprovider 0FIGL_C10 (Transactional Data), the following error message appear:
    Dimension: Member C_ACCT: 000 not valid
    We already check data in source InfoProvider and there's no record with 000 account value.
    Any suggestions?
    Thanks in advance
    Best Regards
    Abraham Méndez

    Rad,
    See if SAP note# 492647 & 849501 is of some help in your scenario.

  • ABAP/4 processor: MESSAGE_TYPE_X while loading transaction data in infopak

    Hi,
    While loading the transaction data through info package, short dump appears indicating the following error:
    ABAP/4 processor: MESSAGE_TYPE_X
    I guess there is SAP Note to be applied.
    If yes, which note number.
    Otherwise tell me the solution.
    Thanking you,
    Tarun Brijwani.

    Hi,
    in st22, I have got the following thing:
       Probably the only way to eliminate the error is to correct the program.
       If the error occures in a non-modified SAP program, you may be able to
       find an interim solution in an SAP Note.
       If you have access to SAP Notes, carry out a search with the following
       keywords:
       "MESSAGE_TYPE_X" " "
       "SAPLRSS1" or "LRSS1F11"
       "RSM1_CHECK_FOR_DELTAUPD"
    Please suggest some suitable notes
    Thanking You,.
    Tarun Brijwani.

  • Date problem while loading the data

    Hi Guys,
    When we are extraction the data from the DataSource  0CRM_SALES_ACT_1, it is giving an error for 0calday.
    If the date is greater than 2012, it is giving an error. i.e., it is taking date upto 31.12.2012. If the date is greater than that date is giving an error as "date is later than factory calendar definition".
    In that case we are modifying the date in the PSA and make date less than 2013 and loading the data.
    Even we have done Transfer Global setting at the source system and we checked the factory calendar in SCAL tcode it is setup to 2098.
    Can you please advice how to solve the problem when we are loading the date which is greater than 31.12.2012.
    Thanks in advance
    Jagan

    Hi Jagan,
    In the info package selections tab.
    for 0CALDAY field give to value as 31.12.9999 and try loading you will get all the records
    Regards,
    Venkatesh

  • Skipping errornous record while loading data

    Hi all,
    Some times while loading we get loading failed due to error in record no XXXX (invalid char in record. Due to this the entire load fails.
    Is there any way of skipping this errornous record while loading the data package and load the remaining data and also put the notifier about this error so that later on tis error could be removed and this record is loaded. Thus avoiding the entire load failure.
    Regards,
    Wrushali

    Hi Wrushali
    Try with only ALL_CAPITAL in RSKC .
    Value '07Rakesh" for Billing document number is really not suitable value. I hope this data is not from your R/3 Production system where instead of proper number value for billing document number,you are getting values like "07rakesh".
    You have 3 options-
    1. Clean the data in R/3 system & then load
    2. Edit this data in PSA and then load into ODS.
    3. Mark billing document number infoobject for lowercase letters..but then you can not search on billing doc number(limitations to it)
    Regards
    Pradip

  • Problem in loading transactional data from to 0MKT_DSO1(ods) to 0MKTG_C01

    Hi,
    I am trying to load lead transaction data to the standard Crm lead management cube from ODS.There is a problem while loading transaction data from 0MKT_DSO1(ods) to the infocube 0MKTG_C01 as the field 0STATECSYS2(CRM STATUS)  is set to 10 in ods -meaning incorrect transaction. This feild is not there in the infocube.
    There is a routine in the cube that deletes data records with (0statecsys2) set to 10.
    THIS field is not coming in the transaction.
    so, where can i see the master data in crm source system? and why is that feild getting set to 10 ?
    thanks in advance!

    Thanks for the reply..
    I have checked the Fact table which shows
    1. packet Dimension
    2. Time dimension
    3. Unit dimension.
    I have kept the 0CALDAY as the time characteristics.
    Sample data i have loaded from ODS to Cube.
    Sample data in ODS.
    Sales order No_____0CALDAY_____AMOUNT
    800001___________12/02/2009____15
    I have loaded this data in Cube with Full Upload.
    Data in Cube.
    Sales order No_____0CALDAY_____AMOUNT
    800001___________12/02/2009____15
    Again i am loading the same data to cube
    Data in cube after loading.
    Sales order No_____0CALDAY_____AMOUNT
    800001___________12/02/2009____15
    800001___________12/02/2009____15
    The data is duplicated and it is not cumulating.
    Am i missing anything on this.
    Pls help..
    Thanks,
    Siva.

  • What will happen if i load transaction data first?

    HI,
    With out master data if i load transactional data , what will happen?
    While loading master data then only SID will be created, If i load Transactional data first means when will SID will be create?
    -Arun.M.D

    Hi,
    We can upload the transaction data even we have not yet uploaded the master data. But the upload of Transaction data will take more time in case if the Master data has not yet been uploaded.
    So for performance point of view,it is recommended to upload the master data as  first  upload.
    With rgds,
    Anil Kumar Sharma .P

  • Deleting master data after loading transactional data using flat file

    Dear All,
    I have loaded transaction data  into an infocube using a flat file . While loading DTP i have checked the  option "load  transactional data with out master data exists" . So transactional data is loaded even if no master data is there in BW.
    While loading the flat file, I made a mistake for DIVISION Characteristic  where original master data value is '04000' , but i loaded the transactional data with value '4000' .Then i later realized after seeing the data from the infocube and deleted the request. then i reloaded data with value '04000'. Till now every thing is fine.
    But when I see the master data for DIVISION , i can see a new entry  with value '4000'.
    My question is how to delete the entry value '4000' from DIVISION. I tried deleting manually this entry from 'maintaining masterdata' , but it is not allowing me to do so .
    I have also checked if any transactional data exists for that value '4000' , as i said earlier I have deleted the transactional data with that values. even tried to delete the entries from the master data table, but i donot see a option to delete entries there.
    Please suggest me on this.
    Regards,
    Veera

    Hi,
    Goto RSA1 right click on the Info object and select Delete Master data. This will delete the master data unused existing in the table.
    If this master data is not used any where else just delete the master data completely with SID option.
    If even this doesnt work you can delete the complete table entire in SE14. But this will wipe out the entire table. Be sure if you wanna do this.
    Hope this helps
    Akhan.

  • What if i load transaction data without loading master data

    Hello experts,
    What are the consequences if i load transaction data without loading master data?Are there any other factors except the load performance because of SID generations etc and inconsistencies.
    <b>What kind of potential inconsistencies will occur?</b>
    Problem here is:
    when the transaction load starts a new master data such as employee(x) would be have been created in R/3 which does not exist in BW and hence transaction load fails.
    Thanks and Regards
    Uma Srinivasa rao

    Hi Rao,
    In case you load the master data after loading the transcation data and if there is any look up at the master data in teh update rules, then you can delete and reconstruct the requests in the ODS/Cube so that the latest master data is pulled in in the data target.
    Make sure you do the Apply hier/attr change before doing the delete and reconstruct.
    Bye
    Dinesh

  • Need more Info about "Load transactional data when master data not loaded"

    Hi,
    Can you please explain me this option in the infopackage " Load transactional data when master data is not loaded"....
    Say i load a transactional data record which has a material no. AAAXX.
    In the fact table, the material no. is replaced with the corresp. DIM ID.
    Now, assume that there is no entry for this Material no.
    AAAXX in the master data table...so no DIM ID for it..
    How is it then stored in the fact table ?
    Hope i have managed to explain the scenario..
    Thanks in advance,
    Punkuj

    Hello Punkuj K,
    How r u ?
    No, if the entry for that Material Number "AAAXX" is not there in the Master Data then it will create a SIDs & DIMs ID for that & Transaction Data will be loaded.
    Use
    Choose this indicator if you want to always update the data, even if no master data for the navigation attributes of the loaded records exists. The master data is generated from the loaded transaction data. The system draws SIDs. You can subsequently load the master data.
    Dependencies
    The texts, attributes, and hierarchies are not recognized by the system. Load the texts / attributes / hierarchies for the corresponding InfoObjects separately.
    This function corresponds to the update. Possible errors when reading the master data into the update rules are not associated with this indicator.
    Recommendation
    We recommended loading the master data into the productive systems in advance. Select this indicator especially in test systems.
    Best Regards....
    Sankar Kumar
    +91 98403 47141

Maybe you are looking for

  • Unable to delete photo from ipad

    When I first got my ipad, I synced s photo from My Pictures.  I am unable to delete it from the ipad by using the delete option.  How do I get it off my ipad?

  • Deploying war files to weblogic 10.3.4

    I have a weblogic domain 10.3.4 and a war file (smap.war). I can deploy this war file using weblogic console (10.3.4). However, I cannot using ant (wldeploy 11.1.1.4) to deploy this war file. It shows error as follow. This war file and weblogic domai

  • Install of OEM Grid Control on  10g RAC

    Hi, I try to install OEM Grid Control 10.1.0.3 on a 10G 10.1.0.2 database with ASM and RAC installed, on windows. At the step of choosing the product to install, i would like to choose 'OEM GC using an existing database' or 'Additional management ser

  • Vendor hierarchy abap code

    Hi Can you please let me know  how can we build this activity? 1. Create a general hierarchy (transaction MCK1): do not add data to this hierarchy as it is only used as a container to pass data to BW. 2. Generate a DataSource hierarchy (transaction B

  • Strange behaviour of the web UI

    Hi, I have encountered something weird when i used the web UI of Oracle 10g Express. I have a table with one of fields defined as Blob type and this table contains a record with data in the blob field. I used a Java application (created by myself) an