Load master data on server startup

need to store the master data in cache on server restart
any help would be arretiated.
Thanks

Try to implement a javax.servlet.ServletContextListener and inside implementation of      
public void contextInitialized(ServletContextEvent sce) method write your Code to Pull up master data from respective Datasource bind it to a Java Object Something like a JavaBean or some random Collection class would be appropriate & finally save it under the scope of ServletContext or use a Static type to cache the Master data Object in the memory.
Adn configure the Listner in your web.xml accordingly.
Or
Write your code inside init(ServletConfig config) method of a servlet and make sure you configure the servlet in such a way that it executes init(ServletConfig config) method at the time of intialization (in web.xml under servlet configuration you use <load-on-startup/>)
and the rest if same as that of what i mentioned for ServletContext listener.
Hope that might answer your question.
REGARDS,
RaHuL

Similar Messages

  • Load Master Data to BPC from a file in BW server

    Hi all,
    the problem is the next one. We have create some files in Bw with APD. We left those files in a carpet in the Bw server. We want to load those files in BPC. Anyone can explain how we can upload those files?
    Thanks for the help.
    Gorka.

    Hi Gorka,
    Please find the link for the document, which explains you "Loading Master data from BW to BPC"
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00380440-010b-2c10-70a1-e0b431255827?quicklink=index&overridelayout=true
    I hope this may help you.
    Raghu B.S.

  • Lock NOT set for: Loading master data attributes error

    Hi experts,
    We were encountering this error before when trying to load master data.  When we checked the system we could not find any locks at the time, and activation or kicking off the attribute change run failed again.  We finally solved the problem running FM RSDDS_AGGR_MOD_CLOSE which sets the close flag to 'X' in table RSDDAGGRMODSTATE.  I have read that it is possible this lock error happens when two change runs happen at the same time.
    My question are:
    1. is it possible to find out what process exactly "caused" the lock? the table RSDDAGGRMODSTATE does not have a reference to any object or job. I am curious as we are trying to find ways to avoid this in the future...
    2. in our case, when we could not find any locks, is running this fm the only work around? is this a best practice?
    mark
    Message was edited by:
            Mark Siongco
    Message was edited by:
            Mark Siongco

    Hello Catherine
    I have had this problem in the past (3.0B) --> the reason is that our system was too slow and could not crunch the data fast enough, therefore packets where loacking each other.
    The fix: load the data into the PSA only, and then send it in background from the PSA to the info object. By doing this, only a background process will run, therefore locks cannot happen.
    Fix#2: by a faster server (by faster, I mean more CPU power)
    Now, maybe you have another issue with NW2004s, this was only my 2 cents quick thought
    Good luck!
    Ioan

  • BPC Error while loading master data from SAP BW

    Hello Guru,
    I have NW BPC 7.5 installed on BW server. Currently i have started to work on one application where i have to load master data first. I am loading master data for cost center.
    I looked into the process chain "BPC: Import BW InfoObject master data" and i found that few processes are  in GREEN color and few are in RED color (Display). is that correct or not ? then as per some of the thread i went to "BPC: Convert BW infoObject master data" --> SOURCE_TYPE = IP  and added one parameter "FORMULA_FILE_NO". Then i saved this process chain and activated it.
    I created transformation file in BPC and it got created successfully but while i try to load packages it throws me error.
    Q. Do i need to have entire process chain with all processes in GREEN to have the master data in BPC ?
    Q. Do i need to activate any BADI's for this or not ?
    I appreciate your help in advance. I trie

    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

  • Need help with loading master data from R/3 to BI 7.0.

    Hi,
           First i thank everybody who took efforts to answer for my posting, i really am learning this new version with your helps. I really appreciate  it.
    Could any one help me with a step by step process to load master data from R/3 to BI 7.0. Please don't send help.sap.com.
    will assign points .
    With Thanks,
    Ranjani R

    Hi,
        Thanks for the answers. I tried loading it yesterday, i had lot of confusions.
      What should i do to load a master data from a R/3 to BI7.0.
    1. Created a Info object named (EKKO_mas) with some attributes (ernam, ekorg, lifnr).
    2. Go to info provider and right clicked on info area and selected insert char as data target. (Please correct if i am wrong).
    3. Login to R/3, go to sbiw generic data source created one with a view/table as EKKO and map the application compound and select the needed fields by checking the checkbox. (please correct if wrong).
    4. Go to source system tab and replicate data source. ( Please correct if i am wrong)
    Then what should i do.
    guessing steps:
    4. Create a Data source, in BI 7.0 . In that as i am not using flat file, should i select "application server" instead of "local workstation" . In field tab i specified all the fields given in Info object. ( Will there be anything else i should do or change in this tab)
    5. Load data in PSA. ( will the data from R/3 i selected loaded in PSA without any problem)
    6. Create transformation , save and activate.
    7. Create DTP save and activate , click execute.
    By doing the above given step will i be able to load the master data from R/3 to BI 7.0 data target (IO) .  Please help me if something is wrong with my steps.
    Thanks.
    RR.
    *will assign points.

  • DTP error: Lock NOT set for: Loading master data attributes

    Hi,
    I have a custom datasource from ECC which loads into 0CUST_SALES.  I'm using DTP & transformation which has worked for loading data in the past for this infoobject.  The infopackage loads with a green status but when i try to load data, the DTP fails with an error message at "Updating attributes for InfoObject 0CUST_SALES Processing Terminated" & the job log says: "Lock NOT set for: Loading master data attributes".  I've tried reactivating everything but it didn't help. Does anyone know what this error means? We're on SP7.   Thanks in advance!

    Hello Catherine
    I have had this problem in the past (3.0B) --> the reason is that our system was too slow and could not crunch the data fast enough, therefore packets where loacking each other.
    The fix: load the data into the PSA only, and then send it in background from the PSA to the info object. By doing this, only a background process will run, therefore locks cannot happen.
    Fix#2: by a faster server (by faster, I mean more CPU power)
    Now, maybe you have another issue with NW2004s, this was only my 2 cents quick thought
    Good luck!
    Ioan

  • What are the tables will update while loading Master data ?

    Hello Experts,
    What are the tables will update while loading Master data ? And requesting you to provide more information about Master data loading and its related settings in the beginning of creation infoobjects. 

    It depends upon the type of Master data u r loading....
    In all the master data loadings, for every new value of master data an SID will be created in the SID table /BI*/S<INFOOBJECT NAME> irrespective of the type of master data.
    But the exceptional tables that get updated depending on the type of master data are.....
    If it is a time Independent master data then the /BI*/P<INFOOBJECT NAME> table gets updated with the loaded data.
    If it is a time dependent master data then the /BI*/Q<INFOOBJECT NAME> table gets updated with the loaded data.
    If the master data is of time Independent Navigational attributes then for every data load the SID table will get updated first and then the /BI*/X<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
    If the master data is of time dependent navigational attributes then for every data load the SID table will get updated first and then the /BI*/Y<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
    NOTE: As said above, For all the data in P, Q, T, X, Y tables the SID's will be created in the S table /BI*/S<INFOOBJECT NAME>
    NOTE: Irrespective of the time dependency or Independency the VIEW /BI*/M<INFOOBJECT NAME> defined on the top of /BI*/P<INFOOBJECT NAME> & /BI*/Q<INFOOBJECT NAME> tables gives the view of entire master data.
    NOTE: it is just a View and it is not a Table. So it will not have any physical storage of data.
    All the above tables are for ATTRIBUTES
    But when it comes to TEXTS, irrespective of the Time dependency or Independency, the /BI*/T<INFOOBJECT NAME> table gets updated (and of course the S table also).
    Naming Convention: /BIC/*<InfoObject Name> or /BI0/*<InfoObject Name>
    C = Customer Defined Characteristic
    0 = Standard or SAP defined Characteristic
    * = P, Q, T, X,Y, S (depending on the above said conditions)
    Thanks & regards
    Sasidhar

  • Loading Master Data from a Flat File

    Hi Guru, I have flat files of different SAP tables (Transactional data tables and Master Data ), I want to upload this flat files to a DSO, my question is in the case of Master Data Files example SAP table USR03 ( User Address Data) in a Flat file format which is better to create a Master data text and attributes Datasource or create it as a transactional data Datasource to upload it to a DSO.

    Hi
    Master data datasource should be used to load master data like customer details. customer data is the master data which does not change frequently. customer infoobject may have some attributes like customer name, customer contact number, customer address, etc. we have to maintain these attributes and text data.
    Transaction data is something which keeps changing very frequently like price of the material, sales, etc. for loading such data we go for transaction datasources.
    As mentioned above too,the changes in the address are very rare, therefore youshould not use transactional datasource.
    Regards, Rahul
    Edited by: Rahul Pant on Feb 7, 2011 12:24 PM

  • Error while loading master data to attribute ZMAJORGU(Major organisational unit)

    Hi Experts,
    While loading master data to  ZMAJORGU(MOU)(info object texts) from  datasource (ZOS_HRP1000)datasource iam getting error in DTP.
    below is the error...
    Diagnosis
        Data record 349 & with the key 'Ship &' is invalid in value 'Ship &' of
        the attribute/characteristic ZMAJORGU &.
    System Response
        The system has recognized that the value mentioned above is invalid, and
        has processed this general error message. A subsequent message may give
        you more information on the error. This message refers to the same
        value, even though it does not state this explicitly.
    Procedure
        If this message appears during a data load, maintain the attribute in
        the PSA maintenance screens. If this message appears in the master data
        maintenance screens, leave the transaction and call it again. This
        allows you to maintain your master data.
    Please find the below screen shots
    I have done the following regarding the issue ....Looking at the error i have gone trough the transformation and i didnt find any routines or formuales
    I have checked the PSA and down loaded the data to spread sheet and put a filter on SHORT and STEXT assuming i will find the value
    'Ship &' as mentioned in the Diagnosis description. However i was not able to find the relavent data(i went to se16 gave teh request ID from PSA and displayed the entire data)tarting with Ship .The closest  value i could find in both the fileds was was AVP Shipment .
    I have the following questions
    1)In the screen short 2 it says record number 349 is it right to go to PSA table and check against the record number 349(i tried that but i was not able to find the error against that record)
    2)why am i not finding the value 'Ship' in PSA ...but this is the value wich is creating a poblem in updating to the target ....does it mean the record value is Ship or it starts with Ship or is ir part of some word?
    Please find the attached PSA data file (u have to convert it to Excel)
    I request people to help me analyse the issue and fix the issue.
    Regards
    Kiran

    Ram
    I checked other records as well they were a lot of smallcharecters upper case charectres ,numeric special charecters .but nothing stopped ...when the system is even accpeting all other charectres  like smallof caps or numeric... why on this record is creating an issue...
    please have a look at error stack
    and i have one more question when i look at PSA there are close to 300000 records
    but when i do an SE16 with request id i see only close to one lakh records (i came to conclusion b dragging down and the last record number was (below screen shot)
    Can you tell me what my mistake is numebr or records are not tallying in SE16 and PSA..

  • Error while loading Master Data - BPC 10.0 NW

    Hello gurus,
    I am trying to load master data from a BW InfoObject to a dimension in BPC, but am getting the error as shown below:
    The transformation and conversion files are configured as shown below:
    I would greatly appreciate if you can help me troubleshoot the issue with the java script command.  Thanks in advance for your help.
    Best regards,
    Vijay

    Hello Vijay,
    Which Patch are you using for EPM add in.
    It seems that js:%external%.replace("#","_") does not work with some patches
    so in that case you have to use js:%external%.toString().replace("#","_") in your conversion file.
    Deepesh

  • Error while loading master data.

    I am facing error while loading master data in a infoobject.
    The error comes when I run DTP fo rloading data from PSA to infoobject.
    The error wordings are : "MCK_PRDT1 : Data record 1 ('Bleach '): Version 'Bleach ' is not valid"
    Please help me in understanding this Version errror and suggest a solution for this.

    SAP metodology integration MDM & BW you can look at:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0f1f135-0015-2b10-5e83-acca118e17aa
    You can turn matching strategy in MDM Data manager for delete dublicate of records
    and then use MDM Syndicator for export data to file and then load that file to BW
    If you use OHD you cannot load from BW to MDM repository 10 records and unload only 5 because
    in BW every record has unique key.
    also you can use MDM ABAP or Java API for delete dublicate of records
    Edited by: Kanstantsin Chernichenka on May 8, 2009 1:02 PM

  • Error 194 while loading Master Data.

    Hi,
         I've a custom Info Object which has 0MATERIAL as an attribute. While trying to load master data to this custom info object using DBConnect , I'm getting the error:
    RSDMD 194
    0MATERIAL: Data record 1('0001003') : Version '1009841' is not valid.
    I think it's a problem with conversion exit. But I'm not able to solve this problem. It would be of great help if you could guide me on how to overcome this.
    Thanks in advance.
    Regards
    Hari

    Hari,
        I'm thinking for DB Connected datasources we have Propose Tab Page and Fileds Tab Page. In the Propose tab Page you can see data type and Format(internal or External or check). select external, put data type of your Material Infoobject Data type in the Propose Tab Page.
    all the best.
    Note: I'm thinking DB Connected Datasources got Propose Tab page. Please correct me if i'm wrong.
    Regards,
    Nagesh Ganisetti.
    *Assign Points if it helps

  • BI 7.0 - Duplicate Record Error while loading master data

    I am working on BI 7.0 and I am trying to load master data to an info object.
    I created an Infopackage and loaded into PSA.
    I created transformation and DTP and I get an error after I execute the DTP about duplicate records.
    I have read all previous threads about duplicate record error while loading master data and most of the them suggested to check 'Ignore duplicate records' option in the infopackage. But in 7.0, I can only load to PSA with infopackage and it doesn't have any option for me to ignore duplicate records.
    My data is getting loaded to PSA fine and I get this error while loading to info object using DTP.
    I would appreciate your help to resolve this issue.
    Regards,
    Ram.

    Hi,
    Refer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/45/2a8430131e03c3e10000000a1553f6/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d0/538f3b294a7f2de10000000a11402f/frameset.htm
    With rgds,
    Anil Kumar Sharma .P

  • Error while loading master data from R/3

    Hi Friends,
                I'm just trying to load master data for the infoobject of type "0BUS_AREA", but i have got data into PSA, but not got into char, i have got an error stating that
    Record 1 :No source system ID exists for source system (logical system) RD1CLNT100
    In tran structure there are two objects not being populated 0LOGSYS & OSOURCESYSTEM, which might cause the problem.
    Pls waiting for your replays
    Thanx in advance
    Balaji K.

    Hi Aswin,
               Thanx for your replay, in that one column is there, "source system id" but it is empty, how to generate that two digit source system id and also there are three kind of tabs like
    "Release IDs that are in use" "Suggest Source System IDs" & "Maintain Logical Systems"
             How to use and which one to use, and how to follow step by step to run loads once again by populating "OLOGSYS" & "OSOURCESYSTEM" ?
    Pls clarify this problem
    Regards.,
    Balaji K.

  • 36 duplicate record  found. -- error while loading master data

    Hello BW Experts,
    Error while loading master data
    ( green light )Update PSA ( 50000 Records posted ) No errors
    ( green light )Transfer rules ( 50000  „³ 50000 Records ): No errors
    ( green light )Update rules ( 50000 „³ 50000 Records ): No errors
    ( green light ) Update ( 0 new / 50000 changed ): No errors
    ( red light )Processing end: errors occurred
         Processing 2 finished
    ƒÞ     36 duplicate record found. 15718 recordings used in table /BIC/PZMATNUM
    ƒÞ     36 duplicate record found. 15718 recordings used in table /BIC/XZMATNUM
    This error repeats with all the data-packets.
    what could be the reason of the error. how to correct the error.
    Any suggestions appreciated.
    Thanks,
    BWer

    BWer,
    We have exactly the same issue when loading the infoobject 0PM_ORDER, the datasource is 0PM_ORDER_ATTR.
    The workaround we have been using is 'Manual push' from the details tab of the monitor. Weirdly we don't have this issue in our test and dev systems, even in Production, this doesn't occur somedays. We have all the necessary settings enabled in the infopackage.
    Did you figure out a solution for your issue, if so please let me know and likewise I will.
    -Venkat

Maybe you are looking for