Coding Required for Data Load...

Hi All,
I am stuck up in an issue where I know the logic but unable to write a code. I have the requirement as follows :-
I have the records in Excel as given below:-
Fiscal Year          2004
Key                     004
Capitalization       A
Norm Debts         B=0.7*A
Rate of Interest    C
Repayment          D=B/10
Op. Balance         D=B/10
Cl. Balance          E = B-D
Total Interest        G=E+F/2*C
The above records are the data which I am loading first time and only one record. The cube shud be populated with the data till Closing Balance becomes zero.
So my logic will be
First record by excel and second onwards is :-
Fiscal Year         2004 +1 (It shud add 1 to every record till closing balance becomes zero)
Key                    004 (Constant till Closing balance becomes Zero)
Capitalization      A (Constant till Closing balance becomes Zero)
Norm Debts        B (Constant till Closing balance becomes Zero)
Rate of Interest    C (Constant till Closing balance becomes Zero)
Repayment         D (Constant till Closing balance becomes Zero)
Opening Balance   (Closing Balance will become Opening Balance here) = B-D
Closing Balance     (Closing balance will now again will be debited by repayment that is B-2D)
Total interest        = (Opening Balance + Closing Balance)/ 2 * Rate of Interest
So next record will be opening balance = B-2D and Closing Balance will be B-3D and the record shud be automatically fetched till Closing Balance becomes zero.
Any help will be assigned with points.
Thanks and Regards,
Sangini Mathur.

Hi Sangini,
I think in ur case u have to LOOP aginst source_package
in the start routine only then you can get ur requirement.
Data: w_temp1 like source_package-cl.balance.
while w_temp1 eq 0.
Put all your calculations here
endwhile.
Hope it helps
Bhaskar
Edited by: shanthi bhaskar on Jun 3, 2008 2:34 PM

Similar Messages

  • R3 Table Required for data load status

    Hi all,
    I am in 3.x version so rsstatmanpart(fast table only available in bi7) wont work.
    I want the no of records added and transferred for a specific cube on a specific date.
    Thanks in advance.

    Check Tables RSMONICTAB, RSMONFACT, RSMONICDP
    Hope this helps..
    /pradeep

  • Missing Standard Dimension Column for data load (MSSQL to Essbase Data)

    This is similar error to one posted by Sravan -- however I'm sure I have all dimensions covered -- going from MS SQL to SunOpsys Staging to Essbase. It is telling me missing standard dimension, however I have all accounted for:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last): File "<string>", line 23, in ? com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
    at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    I'm using multiple time period inputs -- BegBalance,Jul,Aug,Sep,Oct,Nov,Dec,Jan,Feb,Mar,Apr,May,Jun (target has all of those in place of Time Periods)
    I'm using hard coded input mapping for Metric, Scenario, Version, HSP_Rates and Currencies. -> 'Amount', 'Actual', 'Final', 'HSP_InputValue','Local' respectively.
    The only thing I can think of is that since I'm loading to each of the months in the Time Periods dimension (the reversal was set up to accomodate that)... and now its somehow still looking for that? Time Periods as a dimension does not show up in the reversal -- only the individual months named above.
    Any ideas on this one??

    John -- I extracted the data to a file and created a data load rule in Essbase to load the data. All dimensions present and accounted for (five header items as similar here) and everything loads fine.
    So not sure what else is wrong -- still getting the missing dimension error.
    Any other thoughts?? Here's the entire error message. Thanks for all your help on this.
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 23, in ?
    com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
         at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx8.f$0(<string>:23)
         at org.python.pycode._pyx8.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.Py.exec(Py.java)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.A(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
         at com.hyperion.odi.essbase.ODIEssbaseDataWriter.validateColumns(Unknown Source)
         ... 32 more
    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.A(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

  • Sample SOAP request for Data Loader API

    Hi
    Can anyone please help me out in giving a sample SOAP request for Data Loader API .This is to say import 1K records from my system to the CRM instance I have .

    Log into the application and then click on Training and Support there is a WS Library of Information within the application

  • Takes Long time for Data Loading.

    Hi All,
    Good Morning.. I am new to SDN.
    Currently i am using the datasource 0CRM_SRV_PROCESS_H and it contains 225 fields. Currently i am using around 40 fields in my report.
    Can i hide the remaining fields in the datasource level itself (TCODE : RSA6)
    Currently data loading takes more time to load the data from PSA to ODS (ODS 1).
    And also right now i am pulling some data from another ODS(ODS 2)(LookUP). It takes long time to update the data in Active data table of the ODS.
    Can you please suggest how to improve the performance of dataloading on this Case.
    Thanks & Regards,
    Siva.

    Hi....
    Yes...u can hide..........just Check the hide box for those fields.......R u in BI 7.0 or BW...........whatever ........is the no of records is huge?
    If so u can split the records and execute............I mean use the same IP...........just execute it with different selections.........
    Check in ST04............is there are any locks or lockwaits..........if so...........Go to SM37 >> Check whether any Long running job is there or not.........then check whether that job is progressing or not............double click on the Job >> From the Job details copy the PID..............go to ST04 .....expand the node............and check whether u r able to find that PID there or not.........
    Also check System log in SM21............and shortdumps in ST04........
    Now to improve performance...........u can try to increase the virtual memory or servers.........if possiblr........it will increase the number of work process..........since if many jobs run at a time .then there will be no free Work prrocesses to proceed........
    Regards,
    Debjani......

  • Variable Required For Date Difference In Ac Create Date

    Respected All;
    I am stuck in a variable for couple of weeks.
    Please help me to get the difference in dates coming under the Ac Create Date Column for respective Request Id's.
    I want the result in the Delay Column (Variable Required for the result of delay).
    For eg:-
    A
    B
    C
    D
    E
    F
    G
    Request Id
    Ac Create Date
    Act Role Proper Name
    Delay Simplified(Variable Required
    Result In Delay
    Act Activity Name
    1
    000000000560492
    7/9/2014
    Debt Recovery - Archive
    =Ac Create Date C2 - Ac Create Date C1
    5
    Resolved
    2
    7/14/2014
    Call Centre - Back Office
    =Ac Create Date C3 - Ac Create Date C2
    1
    Forward
    3
    7/15/2014
    OWN Shop - AL Rayyan
    =Ac Create Date C4 - Ac Create Date C3
    7
    Resolved
    4
    7/22/2014
    Call Centre - Back Office
    = Ac Create Date C5 - Ac Create Date C4
    0
    Customer Feedback
    5
    7/22/2014
    Call Centre - Back Office
    "NA"
    NA
    Closed FC
    6
    000000000561010
    7/1/2014
    Call Centre - Back Office
    =Ac Create Date C7 - Ac Create Date C6
    1
    Forward
    7
    7/2/2014
    FOLLOW UP TEAM
    =Ac Create Date C8 - Ac Create Date C7
    0
    Resolved
    8
    7/2/2014
    Call Centre - Back Office
    =Ac Create Date C9 - Ac Create Date C8
    1
    Forward
    9
    7/3/2014
    R_RO
    =Ac Create Date C10 - Ac Create Date C9
    12
    Return - Wrong Assignment
    10
    7/15/2014
    Call Centre - Back Office
    =Ac Create Date C11 - Ac Create Date C10
    1
    Forward
    11
    7/16/2014
    IT CRM & Provisioning
    =Ac Create Date C12 - Ac Create Date C11
    0
    Reassignment
    12
    7/16/2014
    IT CRM & Provisioning
    =Ac Create Date C13 - Ac Create Date C12
    1
    Follow Up
    13
    7/17/2014
    IT CRM & Provisioning
    =Ac Create Date C14 - Ac Create Date C13
    0
    Reassignment
    14
    7/17/2014
    IT_Comptel
    =Ac Create Date C15 - Ac Create Date C14
    3
    Resolved
    15
    7/20/2014
    Call Centre - Back Office
    =Ac Create Date C16 - Ac Create Date C15
    0
    Recategorization
    16
    7/20/2014
    Fiber Call Center-Back Office
    =Ac Create Date C17 - Ac Create Date C16
    0
    Forward
    17
    7/20/2014
    IT CRM & Provisioning
    =Ac Create Date C18 - Ac Create Date C17
    1
    Resolved
    18
    7/21/2014
    Fiber Call Center-Back Office
    =Ac Create Date C19 - Ac Create Date C18
    0
    Resolved
    19
    7/21/2014
    Fiber Call Center-Back Office
    =Ac Create Date C20 - Ac Create Date C19
    0
    Customer Feedback
    20
    7/21/2014
    Fiber Call Center-Back Office
    "NA"
    NA
    Closed
    I have used Delay =DaysBetween([Ac Create Date];Previous([Ac Create Date]))
    but however I'm not getting the results required..
    Can someone please help me out with the variable.. For better understanding of the question kindly copy paste the table in excel and check it out, but please please help me out !!!
    Thanks In Advance

    Hi Fahad,
    Try Below-
    Create variable-
    V_NextDate=If RelativeValue([Request Id];([Request Id];[Ac Create Date];[Act Activity Name];[Act Role Proper Name]);1)=[Request Id] Then ToDate((RelativeValue([Ac Create Date];([Request Id];[Ac Create Date];[Act Activity Name];[Act Role Proper Name]);1));"MM/dd/yyyy")
    In Delays column put below
    =If IsNull(DaysBetween([Ac Create Date];[V_NextDate])) Then "NA" Else DaysBetween([Ac Create Date];[V_NextDate])
    See sceenshot

  • Increase the number of background work processes for data load performance

    Hi all,
    There are 10 available background work processes in the BW system. We're doing some mass load to multiple ODS.But system uses only 3 background processes. How can i
    increase the number of used background work processes for new data load.
    I tried to change number of prosesses with RSODSO_SETTINGS. But no successes. Are there any other settings need to change?
    thanks,
    Yigit

    Hi sankar,
    I entered the max proc. number into ROIDOCPRMS. But it doesn't make difference. System still uses only 3 of background processes. RSCUSTA2 is replaced with
    RSODSO_SETTINGS in BI 7.0 and this trans. can only change the processes for data activation, SID generation and rollback. I need to change the process numbers for data extraction.

  • Urgent help require-ASO data loading

    I am working on 9.3.0 and want to do incremental data loading so that it wont affect my past data.I am still not sure that it is doable or not .Now the question is
    do I need to design a new aggragation after loading data.
    Thanks in advance

    Hi,
    The ASO cube will clear off all the data , if you make any structural changes to the cube ( i.e if you change your outline ,and you can find out what exactly can clear off hte data ,for example , if you add a new member ,then ,it clears off , and in other case ,if you just add a simple formula to the existing member , it might not clear off the data ).
    If you dont want to effect the past data ,and yet you want to incrementally load , then ensure that all the members are already in the otl( take care of time dimension , let all the time members be there in place) and then you can load in ,using the option of 'add to existing values' while you load .
    But remember , you can only do ,without any structural changes. Else , you need to load all together again
    Its good if you design aggregation , as it helps in retrieval performance, but its not mandatory.
    Sandeep Reddy Enti
    HCC

  • Underlying RS Table :: Date & Time for Data Load Requests

    Dear SAP BW Community,
    In BW 3.5, does anybody know the underlying "RS" table where I can check to see the earliest date & time which a data target was loaded, by providing the data target's technical name in SE16 ?
    Thanks!

    OK, I've found the timestamp the data load requests in the table RSMONICDP.
    To get the earliest data load for infoCube FRED, I'm going to Oracle via SQL*Plus, as follows:
    select to_char(min(TIMESTAMP)) from sapr3.RSMONICDP where ICUBE = 'FRED' ;

  • Is license required for Sql Loader?

    I find that Sql Loader could save much time for me in bulk inserting.
    But I'm not sure whether license is required for using it in business software developing.
    Or is there any API that can provide similar functionality of Sql Loader?

    The sqlldr utility, expdp and impdp, and sqlplus come with the rdbms license. Earlier client software had the option of installing sqlldr, exp, and imp onto the client machine for use against a remote database. Being that expdp and impdp only run on the database server now these two utilities are probably not included but sqlldr may still be available as part of the client.
    HTH -- Mark D Powell --

  • Help required in data loads

    Hi all,
    We have actually installed some patch in R/3 system. so now we are testing BW3.5 system  whether the full and delta loads are working or not.
    Full loads are not having any problem but few delta loads are having problems . what we did is -
    1) Re- initialize the delta loads .
    2) Put/ change  some records in R/3 system
    3) Schedule delta loads in BW .
    But 0 records are coming in BW  though in R/3 the records are present.
    Kindly help.

    Hi
    You mentioned that no recorde are moved to BW.
    1)  Did you  check in R/3 side weather the data is in RSA7 or not?.
    2)  If not check in SM13 (V3) and lBWQ(Qued Delta).Activate the data source.
    3)  Replicate the datasource in BW and
    4)  Run the Program RS_TRANSTRU_ACTIVATE_ALL in SE38.
    5)  Perform data Loading.
    You can get data in this way.
    I think this will help you.
    Regards,
    Siva

  • Where Clause in Table Lookups for Data Load

    Hello,
    In Shared Components I created in Data Load Table. In this Data Load Table I added a Table Lookup. On the page to edit the Table Lookup, there is a field called Where Clause. I tried to add a Where Clause to my Table Lookup in this field but it seems that it has no effect on the Data Load process.
    Does someone know how to use this Where Clause field?
    Thanks,
    Seb

    Hi,
    I'm having the same problem with the where clause being ignored in the table lookup, is this a bug and if so is there a work around?
    Thanks in advance

  • Add Data Source for Data Load Rule

    I created an ODBC system data source in both the 32-bit and 64-bit ODBC managers (just to be sure), but they're not showing up as options for data sources in the SQL interface in EAS. Is there some step that I'm missing?
    Thanks.

    Have you created the ODBC on the Essbase server or on the server hosting EAS, it should be on the Essbase server.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Suggest good strategy for data load through standard datasources

    Hi BW Gurus,
    we currently are using standard purhasing related datasources. We forsee new reports coming in later based on the standard datasources.
    Can you please suggest a good general startegy to follow to bring in R/3 data. Our concerns are towards data loads [ initializations etc..] as some of the standard datasources are already in production.
    please advice.

    Hi
    go through these web-blogs -  From Roberto Negro it may help you.
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    Regards,
    Rajesh.

  • Essbase 9.3.1, more time taken for data load.

    Hi,
    i am trying to load 15gb of data, (data is taken from two seperate database of oracle) to my ASO application directly.
    the load is very slow, what factors should i consider to make the load faster?
    Will incresing the RAM size help me in this context?
    i have gone through the admin doc of Essbase 9.3.1, in that the Hard-Disk and the RAM requirement is given, but it is for the Block storage.
    is there any difference between this estimation and the ASO estimation?
    If anyone can guide me, what things has to be taken care while loading the cube with huge data.
    i shall be very thankful.

    The statements which matters for the Aggregate storage is
    DLSINGLETHREADPERSTAGE FALSE
    DLTHREADSPREPARE Sample Basic 3
    The write(DLTHREADSWRITE Sample Basic 4) option doesnt have any impact on the writing speed of the data in the ASO.
    The statements has to be included in the essbase.cfg file, which is the configuration file of the Essbase server.
    Well as per the document this should be done throught the maxl ,Esscmd or the Analytic services console?
    Question?
    1) Should we simply put this statements in the essbase.cfg file without a semicolon? and restart the server/application?
    2) if these statement can be executed by the maxl? Please let us know how can we do that?
    3) How do we know what is the current level of thread being used for the Read/write?
    Thanks

Maybe you are looking for

  • Need help on my requirement...

    Hello Experts, I am experimenting with BADI 'COM_PARTNER_BADI' and 'CRM_PRICING_BADI' for transaction CRMD_ORDER. My requirement is this, I need to check the customer classification of the given customer and if it falls as '09', then I need to bypass

  • P-card  process available for SRM 5.0 extended classic scenario

    Hello, I didn't find the information, so I'm posting this message. Is  the p-card functionality available for the extended classic scenario in SRM 5.0 ?

  • Error: Variable QUERYTT is undefined.

    Hello i ahve this error on the application. Variable QUERYTT is undefined. The specific sequence of files included or processed is: Z:\dev\HD\dsp_TCQ.cfm, line: 136 i then checked the line 136 and found <td width="50%"><font face="Verdana, Arial, Hel

  • Scsi device discovery in Cisco MDS switches

    I was using this device discovery to find out how many luns can be seen on that server. I tried to use discover scsi-target command and it does not give much useful information. and I do not want to add the OS WWNS on my LUN security in addition to H

  • How do I switch from Chinese back to the U.S store?

    The phone won't let me update my apps because its under the Chinese store I need to switch it back to the U.S store!!!!