Incorrect initial value for char 0FISCYEAR in i_t_range in DTP filter prog

Gurus
I need your help , I have searched all the threads but could not find anything which can help me resolve this issue.
I have a filter in DTP as a routine to get the year from system date.
The program is correct for syntex but when I trigger the DTP I am getting the following message , not sure what needs to be added to my programe.
Incorrect initial value for characteristic 0FISCYEAR in i_t_range
Message no. DBMAN889
appreciate any help I can get to reoslve this ASAP.
Thanks in advance

Hi
Pleae check if you have initialised with a NULL value . "blank/null" is indeed not a valid characteristic value for fiscal period. Fisc.per is of type NUMC which means all characters have to be numerical. The initial value should be "0000000" .
Thanks,
Rajesh.
Please provide points to answers if you find them helpful

Similar Messages

  • Incorrect initial value for characteristic 0fiscyear in i_t_range

    Hi,
    While extracting the data from the source DSO to Target I got an error message like '' Incorrect initial value for characteristic 0fiscyear in i_t_range".
    what is the step should i take to resolve this?
    Thanks in Advance.

    Gurus
    I have the same problem with my ABAP code written in DTP filter.
    Can anyone please help what needs to be done , I am getting this error when I try to load the data to cube.

  • What the Initial value for sy-tabix & sy-index

    Hi Folks
       I have a small doubt.
    What the Initial value for sy-tabix & sy-index?
    Can anyone please clarify me?
    Regards,
    Sree

    hi sree,
    both values are initialized to 0 before processing and after processing values are changed according to used scenarios.
    if helpful reward some points.
    with regards,
    suresh babu aluri.

  • Error: Missing initial value for session parameter

    Hi,
    I'm facing a problem while running the ETL process for Complete 11.5.10 Execution Plan in DAC Client. Some tasks are getting failed beacuse of the following error:-
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: VAR_27026 [Error: Missing initial value for session parameter:[$DBConnection_OLAP].].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6270 [Error: Variable parameter expansion error.].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6163 [Error initializing variables and parameters for the paritition.].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6226 [ERROR:  Failed to initialize session [SDE_ORA_Product_Category_Derive_Full]].
    ERROR : LM_36320 [Mon Nov 19 21:02:08 2007] : (2108|2632) Session task instance [SDE_ORA_Product_Category_Derive_Full]: Execution failed.
    When i checked the parameter file i can see the value assigned to the $DBConnection_OLAP. The same tasks ran successfully when i ran the ETL process for Complete 11.5.10 for the first time. I did not change anything after that and also all these are came built-in with the installation of Oracle BI Applications.
    Please anyone give me an idea what is causing the problem.
    Thanks,

    in DAC > Run History > Task Details, query
    Name = SDE_ORA_Product_Category_Temporary
    Open Status Description, look for string -lpf, the file after it is the actual parameter file DAC send to INFA server. E.g
    -lpf D:\DACTOPUS\Informatica\parameters\SDE_ORAR12_Adaptor.SDE_ORA_Product_Category_Temporary.txt
    Open the parameter file, most likely the [session_name] does not match with SDE_ORA_Product_Category_Derive_Full or some parameters are missing.

  • What is the initial value for a numeric field ??

    Can someone tell me what the INITIAL VALUE FOR A NUMERIC FIELD is ?? Thank you
    Rod.

    Using the following...
       class MyClass
         int myvar1;  // Default initial value
         int myvar2 = 3;  // Default initial value and default value
         MyOtherClass myclass1; // Default initial value
         void doit()
           int mylocal1;  // No value
           MyOtherClass myclass2; // No value
    All number member variables, like myvar1 start off with andefault initial value which is zero. For booleans this is false. Object reference variables, like myclass1, have a null value.
    All local numeric variables are considered undefined. So mylocal1 and myclass2 are undefined. Before you can use them you must explicitly provide a value.
    Finally note that myvar2 will have two values during class instantiation. Initially it will have a value of zero. Sometime later it will have the value of 3. (When that happens is very definitely outside the scope of what this forum covers. If you want to know then ask in the advanced forum.)

  • How to set initial value for a dropdown box?

    Hi,
    Within Netweaver 2004S (BI 7.0) we use integrated planning. In one of our applications we want to use a dropdown box (created with the WAD) to make a selection possible for a characteristic.
    We set up a pre-query to fill the dropdown box (via data binding CHARACTERISTIC_SELECTION) with the proper values. This works fine.
    We pass on the choosen entry (via command SET_VARIABLES_STATE) to a second variable that is used in another query. This command is triggered after the user makes a selection in the dropdown box. Also this works fine. After selection of one entry, the output of the second query is limited.
    We have the following problem: the first time a blank selection entry is added to the dropdownbox and that no values are passed on to the second query. Because it seems that the user first must choose an entry.
    What we would like to do is that one of the found values of the pre-query is automatically selected in the dropdown box and passed on to the second variable (to limit the second query).
    I give you an example:
    The first query delivers value A, B, and C for the characteristic of the dropdown box.
    The first time the dropdown box showns an empty entry, and three additional entries A, B and C. The second query shows all results, because the second variable doesn't receive any value via the command SET_VARIABLES_STATE. The command is not yet triggered.
    When you select A, B or C, the command is triggered and the second query shows only results for the choosen entry (this is correct). Now the empty entry has disappeared from the dropdown box. Only the entries A, B and C are left.
    Is it possible to set up the dropdown box on such a way (or add some script coding around it) that in the initial show for the dropdown box one of the entries is choosen automatically, so that the empty line is not part of the value set of the dropdown box and that the command connected to the dropdown box (in our case the SET_VARIABLES_STATE) is carried out automatically?
    Please, who can help us with this?
    Kind regards and thanks in advance,
    Marcel.

    Hi,
    In BW 3.5,say you want to set default for calmonth.
    In order to avoid the “ALL” option from appearing in the dropdown box,
    filter infobject 0CALMONTH for DP1 by any valid value.
    In the object Data_provider include the lines in Bold:
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="SET_DATA_PROVIDER"/>
    <param name="NAME" value="DP1"/>
    <param name="QUERY" value="WORKSHOP_CALMONTH_DROPDOWN"/>
    <param name="INFOCUBE" value="0D_SD_C03"/>
    <<b>param name="FILTER_IOBJNM" value="0CALMONTH"/>
    <param name="FILTER_VALUE" value="200401"/></b>
    DATA_PROVIDER: DP1
    </object>
    Hope this helps.
    Anu.

  • Problem setting initial value for LOV

    Hello, everyone. This seems like it should be simple, but it's giving me lots of problems. I am trying to create my first LOV. I have a messageLovInput item called PFedFilingStatus. From the Property Inspector, I can set an Initial Value of "02", which displays when I run the page, and lets me change it and validate it using the associated LOV.
    What I would rather do is set the initial value programmatically, but here are my problems:
    If I set the value like this:
    OAMessageLovInputBean lovText = (OAMessageLovInputBean)pageLayout.findIndexedChildRecursive("PFedFilingStatus");
    lovText.setText("02");
    then the field displays properly at run time, but can't be changed. The LOV runs, but any value I select flips back to "02"
    If I set the value like this:
    lovText.setDefaultValue("02");
    then nothing seems to happen at run time. The value is not displayed at all.
    Can anyone tell me what I am doing wrong? Thanks for your help.
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, that helps a bunch. Now can you tell me where that is set?
    Thanks so much.
    --Dave                                                                                                                                                                                       

  • Default initial value for opportunity field

    Hi all,
    What is the fastest and most elegant way to achieve this requirement:
    When user clicks create opportunity the field "Relevant for forecast" should be default unflagged. Currently it defaults it to be flagged. It should only happen at creation time. The user should be able to flag the field again before saving. So basically I need to make sure that the defaulting is only done once in the lifetime of an opportunity (i.e. at the very first creation).
    Br,
    Anders

    Hi,
    1) Enhance your component
    2) Enhance view "BT111H_OPPT"
    3) Generate GETTER/SETTER for "STRUCT.FORECAST_REL" in context node "BTOPPORTH"
    4) Add the following code at the end of the method "GET_FORECAST_REL"
    IF value IS INITIAL.
    * value = 'X'  -> to check the checkbox if initial
    value = ''.
    ENDIF.
    This should work, but I have not tested it in this case.
    Kind regards
    Michael

  • Initial value for a dropdown box

    Hello all,
    I have created a web template in the WAD (BI 70) with a dropdown box on a characteristic. A chart is displayed based on the query result. My query is built on an infoset.
    My problem is to populate the filter with an initial value and still let users change the characteristic value in the dropdown (all values for the characteristic is not acceptable in the context) . Also, I don't want the variable screen to show up.
    What is the best approach to achieve this?
    Thanks,
    JL

    In Query Designer you put in your default value in the area to the right in the first pane..
    If you put it on the left hand side, the filter will not be changeable.
    Hope this helps.
    Can give more presise answer if you need it.

  • How to use bind variable value of one VO as initial value for other VO row?

    JDeveloper 10.1.3.3, ADF Faces, ADF BC
    Hi,
    I have two View Objects: one read only with several bound variables and another editable entity based. Correspondingly there are two ADF Faces pages: first contains search form based on the read-only VO and second create form based on the editable VO. The search form has several hidden fields for some of bound variables because they aren't edited directly by user. These fields are updated with PPR when user selects other search criteria from LOV.
    There is a command button in the first page that navigates to the second form. Is there any way to transfer values of bound variables from the first VO to the second VO as initial values of the new row?
    I tried to set custom controller for the second page and retrieve search criteria values from request parameter map but values from hidden fields are missing. I think because that these fields are updated by PPR. Of course I can add custom action method to the navigation button and in the method put these values to request parameter map but I hope there is better solution.
    Thanks,
    Marius

    To summarize, given a bind variable value for one VO, on creating a row in a second VO, for 1 of the attributes of the second VO, you want to use the first VO's bind variable value. Correct?
    A potential solution ADF BC driven:
    1) Ensure you have an AppModuleImpl for your AM
    2) Ensure you have a ViewImpl for your 1st VO (where the bind variable will exist) - lets refer to that VO as "Alpha"
    3) Ensure you have a ViewRowImpl for your 2nd VO (the one you want to default the value in) - lets refer to that VO as "Beta"
    4) For your first VO "Alpha" create the bind variable (say pValue)
    5) In your second VO "Beta" ViewRomImpl add following code:
    @Override
    protected void create(AttributeList attributeList) {
      super.create(attributeList);
      AppModuleImpl am = (AppModuleImpl)this.getApplicationModule();
      String someValue = am.getAlphaView1().getpValue();
      setSecondVOAttr(someValue); // change this code to whatever your setter is for the field you want to initialize.
    }Hope this helps. Let us know how you go.
    Regards,
    CM.

  • Initialized values for Init blocks disappear at random

    Hi everyone
    I have a strange scenario and would appreciate your help with some ideas on how to troubleshoot this.
    We have OBIEE 10.1.3.4. It is a BI Apps 7.9.6.1 environment and OBIEE is integrated with EBS. Everything is working 100% fine and all initialiation blocks are initialized succesfully. Now iit has happened a couple of times that the init blocks seems to "lose" their initialized values. For example, CURRENT_FISCAL_YEAR will be initialized to 2011. Then out of the blue, next time you log in this init block has the value of 2008, which is the default initializer. The servers are all up and there are no errors.
    Any ideas about what is going on here?
    Thank you

    Check the SQL query in init block.It will take default value if SQL query does not fetch any record.
    I guess you have created a repository variable.
    Regards,
    Sandeep

  • Set initial value for numerical control

    Hello LV users,
    I have a VI that is used to initialize some experimental equiptment. It passes on a cluster of ten or so numerical control DBL integers as parameters. Everytime I open the programe the values are reset back to zero and I have to enter the values back in. Is there any way to set default values for  the controls so I do not have to change them everytime I open the program.
    Thanks 
    Solved!
    Go to Solution.

    Wowden,
    If you want to set default values for multiple numeric control's in your cluster in one go, 
    -Type in the desired default values
    - Right click on your cluster, browse to 'data operations'
    - Choose 'Make current values default. 
     Similarly, if you need to set defaults for  multiple clusters or multiple controls on your front panel,
    - Choose 'Edit' in the menu 
    - Choose "make current values default' (This sets defaults for all controls/constants etc. in one go)
    RaVI

  • Incorrect CRC16 value for ACE file

    Hi,
    I am trying to implement a Java app that will read ACE files. These are files that are compressed using an app such as WinAce.
    I have looked at the ACE file structure documentation that says that the first 2 bytes holds the CRC 16-bit for the file header. The header is usually 54-bytes long. The first 2 bytes is the CRC-16. The next two bytes holds the length of important ACE file info. The next single byte up until the end of the header is the section that is read and the CRC is calculated from it. So, for example, if the total header is 55 bytes, the CRC is calculated from bytes 4 to the end 54 (as first byte is 0).
    0      2           4             5                    ...                                54
    |CRC16 | Length    |     00      |  IMPORTANT ACE FILE INFO (BYTES 4 to 54 USED IN CRC16) |
    -------------------------------------------------------------------------------------------However, the CRC calculated by WinAce is "de 06" in hexadecimal and when I calculated the checksum I got "a2 94". I dont know why my checksum is incorrect.
    Here is my entire class that calculates the checksum:
    package org.ace.internals;
    public class CRCDemo
    // calculating 16-bit CRC
         * generator polynomial
        private static final int poly = 0x1021; /* x16 + x12 + x5 + 1 generator polynomial */
        /* 0x8408 used in European X.25 */
         * scrambler lookup table for fast computation.
        private static int[] crcTable = new int[256];
        static
            // initialise scrambler table
            for ( int i = 0; i < 256; i++ )
                int fcs = 0;
                int d = i << 8;
                for ( int k = 0; k < 8; k++ )
                    if ( ((fcs ^ d) & 0x8000) != 0 )
                        fcs = ( fcs << 1 ) ^ poly;
                    else
                        fcs = ( fcs << 1 );
                    d <<= 1;
                    fcs &= 0xffff;
                crcTable[i] = fcs;
         * Calc CRC with cmp method.
         * @param b byte array to compute CRC on
         * @return 16-bit CRC, signed
        public static short cmpCRC( byte[] b )
            // loop, calculating CRC for each byte of the string
            int work = 0xffff;
            for ( int i = 0; i < b.length; i++ )
                work = ( crcTable[( (work >> 8)) & 0xff] ^ ( work << 8 ) ^ ( b[i] & 0xff ) ) & 0xffff;
            return(short)work;
        public static void main(String[] args)
            //The relevant ACE header section that is used to calculate the CRC16
            byte[] bytes = new byte[]
                (byte)0x00, (byte)0x00, (byte)0x90, (byte)0x2a, (byte)0x2a, (byte)0x41,
                (byte)0x43, (byte)0x45, (byte)0x2a, (byte)0x2a, (byte)0x14, (byte)0x14,
                (byte)0x02, (byte)0x00, (byte)0xac, (byte)0x5a, (byte)0xe1, (byte)0x32,
                (byte)0x2b, (byte)0x0d, (byte)0x3e, (byte)0x23, (byte)0x00, (byte)0x00,
                (byte)0x00, (byte)0x00, (byte)0x16, (byte)0x2a, (byte)0x55, (byte)0x4e,
                (byte)0x52, (byte)0x45, (byte)0x47, (byte)0x49, (byte)0x53, (byte)0x54,
                (byte)0x45, (byte)0x52, (byte)0x45, (byte)0x44, (byte)0x20, (byte)0x56,
                (byte)0x45, (byte)0x52, (byte)0x53, (byte)0x49, (byte)0x4f, (byte)0x4e,
                (byte)0x2a
            CRCDemo crcdemo = new CRCDemo();
            short crc16bit = crcdemo.cmpCRC(bytes);
            System.out.println(Integer.toHexString(crc16bit));
    }Any hints and code is much appreciated. Thanks.
    Rizwan

    Hi,
    not sure if WinACE uses the same CRC algorithm and CRC seeds as WinZip.
    But here's a utility class I've been using a long while, which generates the exact CRC values as Winzip.
    regards,
    Owen
    import java.io.FileNotFoundException;
    import java.io.FileInputStream;
    import java.io.BufferedInputStream;
    import java.io.InputStream;
    public class CRC32
        protected static long []CRCTable;
        /* Initial Polynomial values may be choosen at random, in a 32-bit CRC algorithm
         * anything from 0 to 4294967295     ( ( 2 ^ 32 ) - 1 ).
         * However EDB88320 is the exact value used by PKZIP and ARJ, so we generate
         * identical checksums to them.  A nice touch to make testing easier.
        protected final static long CRC32_POLYNOMIAL = 0xEDB88320L;
        protected final static long INITIAL_CRC32    = 0xFFFFFFFFL;
        static
            CRCTable = new long[256];
            int i, j;
            long crc;
            for (i = 0; i <= 255; i++)
                crc = i;
                for (j = 8; j > 0; j--)
                  if ( ( crc & 1 ) != 0 )
                      crc = ( crc >> 1 ) ^ CRC32_POLYNOMIAL;
                  else
                      crc >>= 1;
                CRCTable[ i ] = crc;
        public static long getInitialCRC ( )
            return ( INITIAL_CRC32 );
        public static long calcFileCRC32 ( String filename ) throws Exception
            FileInputStream inputStream = new FileInputStream ( filename );
            CRC32InputStream checksumInputStream = new CRC32InputStream ( inputStream );
            long crc32 = calcFileCRC32 ( checksumInputStream );  // inputStream );
            // long crc32 = calcFileCRC32 ( inputStream );
            long checksum = checksumInputStream.getChecksum();
            System.out.println ("CRC32InputStream : " + Long.toHexString ( checksum ) );
            if ( inputStream != null )
                 inputStream.close();
            return ( crc32 );
        public static long calcFileCRC32 ( InputStream inStream ) throws Exception
            long lCrc = INITIAL_CRC32;
            int iCount = 0;
            byte []buffer = new byte [ 4096 ];
            BufferedInputStream myFastReader = new BufferedInputStream ( inStream );
            while ( ( iCount = myFastReader.read ( buffer ) ) > 0 )
                // lCrc = calculateBufferCRC (buffer, iCount, lCrc);
                lCrc = calculateBufferCRC (buffer, 0, iCount, lCrc);
           lCrc ^= INITIAL_CRC32;
           return ( lCrc );
        public static long calcCRC32 ( String aStr )
            long lCrc = 0;
            if ( aStr != null )
                byte [] strBytes = aStr.getBytes(); // Warning : encoding scheme dependant
                if ( strBytes != null )
                    lCrc = calculateBufferCRC ( strBytes, strBytes.length, 0xFFFFFFFFL );
            return ( lCrc );
        public static long updateCRC ( byte b, long lCrc )
            long temp1 = ( lCrc >> 8 ) & 0x00FFFFFFl;
            long temp2 = CRCTable [ ( (int) lCrc ^ b ) & 0xFF ];
            return ( temp1 ^ temp2 );
        public static long calculateBufferCRC ( byte []pcBuffer, int iCount, long lCrc )
            if ( iCount <= 0 )
                 return ( lCrc );
            int pcIndex = 0;
            long temp1, temp2;
            while (iCount-- != 0)
                temp1 = ( lCrc >> 8 ) & 0x00FFFFFFl;
                temp2 = CRCTable [ ( (int) lCrc ^ pcBuffer[pcIndex++] ) & 0xFF ];
                lCrc = temp1 ^ temp2;
          return ( lCrc );
        public static long calculateBufferCRC ( byte []pcBuffer, int offset, int iCount, long lCrc )
            if ( iCount <= 0 )
                 return ( lCrc );
            int pcIndex = offset;
            long temp1, temp2;
            while (iCount-- != 0)
                temp1 = ( lCrc >> 8 ) & 0x00FFFFFFl;
                temp2 = CRCTable [ ( (int) lCrc ^ pcBuffer[pcIndex++] ) & 0xFF ];
                lCrc = temp1 ^ temp2;
          return ( lCrc );
        public static void main ( String args[] )
            long crc;
            if ( args.length > 0 )
                for ( int i=0; i<args.length; i++ )
                    try
                        // crc = calcCRC32 ( args[i] );
                        crc = calcFileCRC32 ( args[i] );
                        System.out.println ( i + " : " + crc + " ( " + Long.toHexString(crc) + " ) : " + args[i] );
                    catch ( Exception e )
                        e.printStackTrace();
    }

  • How to specify an initial value for a sequence? (using DPL)

    I've been trying to come up with a piece of code that would initialize the sequences defined within the annotations in my persistent classes, with no success. According to the documentation I could find, I figured that the following method would work:
    public void initSequence(String sequenceName, String svalue) {
         SequenceConfig sequenceConfig = null;     
         try {
         sequenceConfig = m_store.getSequenceConfig(sequenceName);
         sequenceConfig.setInitialValue(Long.parseLong(svalue));
    m_store.setSequenceConfig(sequenceName, sequenceConfig);
         System.out.println("Successfully initialized sequence: " + sequenceName);
         } catch (IllegalStateException e) {
    // ignore; the sequence had already been opened
    } (where m_store is an EntityStore instance)
    Before this method gets called, all my primary and secondary indices get created as in:
    m_linkIndex = m_store.getPrimaryIndex(Integer.class, Class1.class);
    etc.
    And my classes look like the following:
    @Entity
    public class Class1 {
         @SecondaryKey(relate=MANY_TO_ONE)
         private String m_contentUrl;
         private String m_creatorId;
         @PrimaryKey(sequence="linkID")
         private int m_key;
    etc.
    Problem: when I execute the 'initSequence' method with proper parameters (e.g. 'linkID', '10000000'), it has no apparent effect on the values the sequence uses. In fact, the sequence starts at number 1 :-(.
    Could somebody explain what is that I am doing wrong? (assuming the software is not buggy). I am using version
    3.3.69. Thanks in advance!

    Sorry, you're right.
    Before this method gets called, all my primary and secondary indices get created as in:Perhaps the problem is that you're configuring the sequence after you open the index. The sequence (and database) configuration must occur before opening the index.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Initial value and value in the database

    Hello world ,
    i want to add initial value with value in the database depend on the date
    for example i have initial value for 30/09/2009
    i and to all it with value in the database in 31/12/2009
    take a look what i did
    PROCEDURE pkd_prem IS
    cursor gr_pkd_prem is select
    SUM(DECODE(mark,'01',FM_mark,TM_mark) A,
    SUM(DECODE(FMS,'01',LS,NS) b
    from fr_treaty_profile ftp, fr_monthly_summary
    where
    (ftp.tpr_cgp_id = fr_monthly_summary.fms_cgp_id )
    AND (ftp.tpr_cmp_id = fr_monthly_summary.fms_cmp_id )
    AND (ftp.tpr_treaty_origin = fr_monthly_summary.fms_treaty_origin )
    AND (ftp.tpr_uw_year = fr_monthly_summary.fms_uw_year )
    AND (ftp.tpr_class = fr_monthly_summary.fms_class )
    AND (ftp.tpr_type = fr_monthly_summary.fms_type )
    AND (ftp.tpr_serial = fr_monthly_summary.fms_serial )
    AND
    (fr_monthly_summary.fms_treaty_origin=:BLK1.EO_ORIGIN) AND
    (fr_monthly_summary.fms_uw_year=:BLK1.EO_UW_YEAR) AND
    (fr_monthly_summary.fms_class=:BLK1.EO_CLASS) AND
    (fr_monthly_summary.fms_treaty_type=:BLK1.EO_TYPE) AND
    ( fr_monthly_summary.fms_treaty_serial=:BLK1.EO_SERIAL)
    AND (FMS_TYPE ='P')
    AND FMS_SERIAL = '01'
    AND (FMS_OFC_ID !='X')
    and (FMS_YEAR =substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),7,4))
    and (FMS_PERIOD between substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)-2 and substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)) ;
    ---Initial value
    cursor base is select EO_GR_BKD_PREM from FR_EN
    where
    EO_TREATY_ORIGIN=:BLK1.EO_ORIGIN AND
    EO_UW_YEAR=:BLK1.EO_UW_YEAR AND
    EO_CLASS=:BLK1.EO_CLASS AND
    EO_TREATY_TYPE=:BLK1.EO_TYPE AND
    EO_TREATY_SERIAL=:BLK1.EO_SERIAL AND
    EO_YEAR=:BLK1.EO_YEAR;
    A number(18,3);
    B number(18,3);
    v_base number(18,3);
    BEGIN
    open base;
    open gr_pkd_prem;
    fetch gr_pkd_prem into a,b;
    fetch base into v_base;
    :BLK1.EO_GR_BKD_PREM :=nvl(a,0)+ nvl(b,0)+ nvl(v_base,0);
    close gr_pkd_prem;
    close base;
    END;
    the proceudre is correct and the values come as i want
    but here
    FMS_PERIOD between substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2)-2 and substr(to_char(:BLK1.EO_TRNX_DATE,'DD/MM/YYYY'),4,2))
    suppose i will add from 6 to 9
    the value will come down to add with base value
    but next time i want from 10 to 12
    it will add value 10 to 12 with the base for just period 10 to 12
    i want to keep adding
    if i start from 6 to 9
    then shoud be
    add the value of 6 to 9 to 10 to 12
    but

    look ..
    i created a form and let's say there is one field called Base ..
    and i inert value on that field and saved .
    then
    i created cursor to fetch value from another table
    that value which i fetched from another table must add to past value
    take this scenario
    i started with value 6
    then i fetch by cursor value from 1/1/2010 to 31/3/2010 and that value = 33
    first action
    6+33
    then
    i fecth by using cursor from 1/6/2010 to 30/9/2010 and that value = 2
    the result of first action must add with the last value which is 2
    (6+33) from first action plus(+) 2 and display the result on the secreen

Maybe you are looking for

  • Wireless and batter problems with Compaq Presario CQ45-315TX Notebook PC

    Was using my Compaq a year or so when it suddenly stopped detecting the battery. Short time after it stopped detecting the wireless module (listed as error 702 during startup). I've already made sure all of my drivers are up-to-date, automaticaly and

  • Openshot - graphical glitches

    Hello there, I have some problems with Openshot in GNOME3. Actually, I wasn't even able to launch it in the beginning, but it doesn't matter because I've fixed it recompiling MLT. First of all, there are a few lacks of things as you can see here: Alt

  • Applet in Websphere

    Hi! I'm writing applet in WebSphere-4, Win2000, IE-5. It's only do System.out in it's init() function. When I put mouse over I see "applet found" in IE, but it doesn't writes nothing. Have somebody the same problem?

  • Problem while running Adobe Interactive Forms

    Hi,    I had developed an application using adobe interactive forms, and I am not able to view the form in the browser when i run the application. the error stack is as below.. Error stacktrace: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeExc

  • Forum Find for 2009-April-22 Happy Earth Day!

    Check out how BestBuy.com customers are rating our latest "Forum Find" for ENERGY STAR Qualified washers! LG - 3.6 Cu. Ft. 5-Cycle Washer - White Model: WM2016CW | SKU: 8247569 ENERGY STAR Qualified The abundant settings on this washer let you custom