DI Special Prices Invalid Date Range - SAP 8.8 Patch 10

Hi Gurus,
I have seen many posts concerning this particular problem but no solution.
Most posts were for SAP 2005.
I have Patch 10 in 8.8 and am still getting this error.
I have simplified my code to the lowest level and its still giving me the same message.
As you can see from the code bellow, i have tried different types of formats for the date and nothing works.
Dim oSPrices As SAPbobsCOM.SpecialPrices = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oSpecialPrices)
        oSPrices.CardCode = "C110124"
        oSPrices.ItemCode = "B"
        oSPrices.Currency = "$"
        oSPrices.Price = 12.5
        oSPrices.PriceListNum = 8
        oSPrices.SpecialPricesDataAreas.SetCurrentLine(0)
        oSPrices.SpecialPricesDataAreas.DateFrom = "2010/07/03" '"2010-07-03" 'New Date(2010, 7, 3)
        oSPrices.SpecialPricesDataAreas.Dateto = "2010/07/16" '"2010-07-16" 'New Date(2010, 7, 16)
        oSPrices.SpecialPricesDataAreas.PriceListNo = 8
        oSPrices.SpecialPricesDataAreas.AutoUpdate = SAPbobsCOM.BoYesNoEnum.tNO
        oSPrices.SpecialPricesDataAreas.Add()
        oSPrices.SpecialPricesDataAreas.SpecialPricesQuantityAreas.SetCurrentLine(0)
        oSPrices.SpecialPricesDataAreas.SpecialPricesQuantityAreas.Quantity = 1
        oSPrices.SpecialPricesDataAreas.SpecialPricesQuantityAreas.SpecialPrice = 12.5
        oSPrices.SpecialPricesDataAreas.SpecialPricesQuantityAreas.Add()
        If oSPrices.Add <> 0 Then
          MsgBox(oCompany.GetLastErrorDescription)
        End If
This is a very pressing issue so any help would be much appreciated.
Thanks!
Denis

I finally made it.  Hope this code will help others :
if (SpecialPrices.GetByKeyDiscounts(ItemCode, SelectedListNum))
    SpecialPrices.SpecialPricesDataAreas.SetCurrentLine(SpecialPrices.SpecialPricesDataAreas.Count - 1);
    SpecialPrices.SpecialPricesDataAreas.Dateto = dtpDateFrom.Value.AddDays(-1);
    OldPriceFromExisting = SpecialPrices.SpecialPricesDataAreas.SpecialPrice / Factor == 0 ? 1 : Factor;
    if (NewPrice == 0 && Augmentation != 0 && Factor != 0 && OldPriceFromExisting != 0)
        NewPrice = (Augmentation * Factor) + OldPriceFromExisting;
    else
        NewPrice = NewPrice * Factor;
    if (SpecialPrices.Update() != 0)
        int ErrCode = -1;
        string ErrMsg = "";
        oCompany.GetLastError(out ErrCode, out ErrMsg);
        MessageBox.Show("ERREUR SAP : " + ErrCode.ToString() + " - " + ErrMsg);
        IsThereError = true;
        break;
    else
        SpecialPrices.SpecialPricesDataAreas.Add();
        SpecialPrices.SpecialPricesDataAreas.PriceListNo = SelectedPriceList.ListNum;
        SpecialPrices.SpecialPricesDataAreas.DateFrom = dtpDateFrom.Value;
        SpecialPrices.SpecialPricesDataAreas.SpecialPrice = NewPrice;
        if (SpecialPrices.Update() != 0)
            this.Enabled = false;
            Cursor.Current = Cursors.WaitCursor;
            MessageBox.Show("ERREUR SAP : " + oCompany.GetLastErrorCode().ToString() + " - " + oCompany.GetLastErrorDescription());
            Application.DoEvents();
            Cursor.Current = Cursors.WaitCursor;
            tsslInfo.Text = "Relâchement de l'objet SAP.  Un instant s.v.p...";
            ssInfo.Refresh();
            IsThereError = true;
            break;
        else
            if (SelectedPriceList.ListType != '*')
                ViewItems.SetRowCellValue(iRow, "PricePer12", NewPrice);
            AtLeastOneChange = true;

Similar Messages

  • Special price by date

    Maybe someone will be able to help me on this issue.
    We have a customer that we periodacly give him discounts on a group of 20-30 items for a limited time.
    We would like to enter it in SAP but its a lot of work since on every line we have to click again to enter the dates the discount is valid.
    Is there any way to enter a date range and then select all the items that will be discounted that period?
    Ephraim

    Hello ...
    If there is a way you can do ...
    If you open the window of special prices, you can select several lines .. test by selecting from last to first ... then uncheck without double clicking on the first and assigns a date range ... ell copy button then applies discounts and will open a new window that lets you choose any option ..
    I just did .. and that is why I commented that if possible
    Best Regards,

  • Special Prices DI Object in 2005 SP1 PL4

    Hi all, I've been trying to use DI Object's Special Prices to add a new record. I'm using SAP B1 2005 SP01 PL4. I've heard that this Special Price bug revolving Invalid Date Range was fixed in this patch, but I've tried many times to no avail.
    Here is my code:
        Private Sub InsertSpecialPrices()
            Try
                Dim oSpecialPrices As SpecialPrices = oCompany.GetBusinessObject(BoObjectTypes.oSpecialPrices)
                ' SpecialPrices settings
                oSpecialPrices.ItemCode = "A1000"
                oSpecialPrices.CardCode = "C1000"
                oSpecialPrices.AutoUpdate = BoYesNoEnum.tYES
                oSpecialPrices.PriceListNum = 3
                oSpecialPrices.DiscountPercent = 50
    START -
                ' SpecialPricesDataAreas settings
                oSpecialPrices.SpecialPricesDataAreas.SetCurrentLine(0)
                oSpecialPrices.SpecialPricesDataAreas.DateFrom = "2006-06-13"
                oSpecialPrices.SpecialPricesDataAreas.Dateto = "2006-06-20"
                oSpecialPrices.SpecialPricesDataAreas.AutoUpdate = BoYesNoEnum.tYES
                oSpecialPrices.SpecialPricesDataAreas.Discount = 15
                oSpecialPrices.SpecialPricesDataAreas.PriceListNo = oSpecialPrices.PriceListNum
                oSpecialPrices.SpecialPricesDataAreas.PriceCurrency = "GBP"
                oSpecialPrices.SpecialPricesDataAreas.Add()
    END -
                oSpecialPrices.Add()
                oCompany.GetLastError(lErrCode, sErrMsg)
                If lErrCode <> 0 Then
                    MsgBox(lErrCode & ": " & sErrMsg)
                End If
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
        End Sub
    I always get the message "Invalid Date Range", unless I comment out the region between START and END as shown above.
    I've even tried other forms of dates like "new Date(2006, 06, 15)", "20060516", "2006-05-16", etc. Can someone tell me if there is anything wrong?
    Thanks for assisting,
    Keith Leow

    Hi Jose,
    Yes this error is from SAP, specifically from the oCompany.GetLastError method.
    I've tried all sorts of Date format, and using both String and Date type, and in all cases I still get the Invalid Date Range error.
    I'm pretty sure this is not about the date input format, because incorrect date format would have thrown me an exception on SQL's expression error. This error is more likely that SAP treats my input to be of incorrect RANGE.
    I've made sure that my DateFrom is definitely earlier than my DateTo field. So now I'm at a total lost about what to do.
    Perhaps I should ditch the Special Prices object and directly manipulate the data from OSPP and SPP1?

  • DI API: 2005A PL: 08  Special Prices

    Hi everyone,
    I am using the DI-Object SpecialPrices for adding a special price in the Database. We use a German MSSQL Server 2000 and VB.Net (1.1)
    My Code:
    Public Sub PreislisteZwischenspeichernLöschenUndSetzen()
                'Dim oPreisliste As SAPbobsCOM.PriceLists
                Dim oSonderpreisliste As SAPbobsCOM.SpecialPrices
                Dim oSonderpreislisteDataArea As SAPbobsCOM.SpecialPricesDataAreas
                Dim oSonderpreislisteQuantityArea As SAPbobsCOM.SpecialPricesQuantityAreas
                Dim oSBOB As SAPbobsCOM.SBObob
                oSBOB = oCibAddOn.oCompany.GetBusinessObject(BoObjectTypes.BoBridge)
                'oPreisliste = oCibAddOn.oCompany.GetBusinessObject(BoObjectTypes.oPriceLists)
                oSonderpreisliste = oCibAddOn.oCompany.GetBusinessObject(BoObjectTypes.oSpecialPrices)
                ' Staffelpreisliste neu eingeben
                ' Wichtig, Standardpreis muss in der Preisliste unter ITM1 eingegeben sein
                Dim oArtikelPreis As SAPbobsCOM.Items
                Dim oArtikelPreise As SAPbobsCOM.Items_Prices
                oArtikelPreis = oCibAddOn.oCompany.GetBusinessObject(BoObjectTypes.oItems)
                oArtikelPreis.GetByKey("9999")
                Dim intIndex As Integer = 0
                Dim blExit As Boolean = False
                Do While blExit = False And intIndex < oArtikelPreis.PriceList.Count
                    oArtikelPreis.PriceList.SetCurrentLine(intIndex)
                    If oArtikelPreis.PriceList.PriceList = 1 Then
                        oArtikelPreis.PriceList.Currency = "EUR"
                        oArtikelPreis.PriceList.Price = 12.5
                        If oArtikelPreis.Update() <> 0 Then
                            MsgBox(oCibAddOn.oCompany.GetLastErrorDescription)
                        End If
                        blExit = True
                    End If
                    intIndex += 1
                Loop
                oSonderpreisliste.CardCode = "70000"
                oSonderpreisliste.ItemCode = "9999"
                oSonderpreisliste.Currency = "EUR"
                oSonderpreisliste.Price = 12.5
                oSonderpreisliste.PriceListNum = 1
                oSonderpreisliste.SpecialPricesDataAreas.SetCurrentLine(0)
                oSonderpreisliste.SpecialPricesDataAreas.AutoUpdate = BoYesNoEnum.tYES
                oSonderpreisliste.SpecialPricesDataAreas.DateFrom = New System.DateTime(2006, 4, 26)
                oSonderpreisliste.SpecialPricesDataAreas.Dateto = New System.DateTime(2006, 4, 28)
                oSonderpreisliste.SpecialPricesDataAreas.PriceCurrency = "EUR"
                oSonderpreisliste.SpecialPricesDataAreas.PriceListNo = 1
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPrice = 12.5
                oSonderpreisliste.SpecialPricesDataAreas.Add()
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.SetCurrentLine(0)
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.PriceCurrency = "EUR"
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.Quantity = 1
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.SpecialPrice = 12.5
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.Add()
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.SetCurrentLine(1)
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.PriceCurrency = "EUR"
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.Quantity = 100
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.SpecialPrice = 10
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.Add()
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.SetCurrentLine(2)
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.PriceCurrency = "EUR"
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.Quantity = 1000
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.SpecialPrice = 7.5
                oSonderpreisliste.SpecialPricesDataAreas.SpecialPricesQuantityAreas.Add()
                If oSonderpreisliste.Add <> 0 Then
                    MsgBox(oCibAddOn.oCompany.GetLastErrorCode)
                    MsgBox(oCibAddOn.oCompany.GetLastErrorDescription)
                End If
                System.Windows.Forms.Application.Exit()
            End Sub
    We get all the time the errormessage: Date is out of range.
    We also try to use the functions SaveAsXML and GetBusinessObjectFromXML, but then the same error comes.
    Trinidad wrote a lot of time that the error is solved in the Version 2005, but it isn`t so for us.
    Please help
    Regards
    Jörn

    Sorry for the double post; I thought I would be better showing how my code goes.
    As with the original poster, I am using the DI-object Special Prices to insert new records. I am trying to create a Special Price that is BP-Item specific, using the default demo company (SBO Demo UK), valid date from 15 Jun to 20 Jun.
    Dim oSpecialPrices As SpecialPrices = oCompany.GetBusinessObject(BoObjectTypes.oSpecialPrices)
    Dim oSpecialPricesDataAreas As SpecialPricesDataAreas = oSpecialPrices.SpecialPricesDataAreas
    ' SpecialPrices settings
    oSpecialPrices.ItemCode = "A1000"
    oSpecialPrices.CardCode = "C1000"
    oSpecialPrices.AutoUpdate = BoYesNoEnum.tYES
    oSpecialPrices.PriceListNum = 3
    oSpecialPrices.DiscountPercent = 50
    ' ------------------ START ------------------
    ' SpecialPricesDataAreas settings
    oSpecialPricesDataAreas.SetCurrentLine(0)
    oSpecialPricesDataAreas.DateFrom = New DateTime(2006, 6, 15)
    oSpecialPricesDataAreas.Dateto = New DateTime(2006, 6, 20)
    oSpecialPricesDataAreas.AutoUpdate = BoYesNoEnum.tYES
    oSpecialPricesDataAreas.Discount = 15
    oSpecialPricesDataAreas.PriceListNo = oSpecialPrices.PriceListNum
    oSpecialPricesDataAreas.PriceCurrency = "GBP"
    oSpecialPricesDataAreas.Add()
    ' ------------------- END -------------------
    ' Adding and checking for any errors
    oSpecialPrices.Add()
    oCompany.GetLastError(lErrCode, sErrMsg)
    If lErrCode <> 0 Then
        MsgBox(lErrCode & ": " & sErrMsg)
    End If
    If the portion of the code between START and END was commented out the insertion was successful. Else as it is, it will keep prompting Invalid Date Range (-10).
    Can anyone please shower some enlightenment?

  • [Special Prices for Business Partners] and [Hierarchies and Expansions]

    Dear Sirs,
    I am running into three problems.
    1.) I loaded 313 items Special Prices by DTW however I can not locate where it went?
         I searched via the path [Inventory>Price Lists>Special Prices>Special Prices for Business Partners]but find nothing in there.
    2.) I can not find DTW templates for Hierarchies and Expansions data load.
         Also I searched via the path [Inventory>Price Lists>Special Prices>Hierarchies and Expansions] to see if the Special Prices I loaded with DTW maybe there but find nothing there.
    3.) I can not find any information related to Hierarchies and Expansions in the [diapi] help file.
    Could it be these two functionalities require "manual" input?
    If so, how on earth the 313 Special Prices DTW data load went through "successfully" and find no trace of it?
    I am pulling my hair off to find some advice.
    Would appreciate it greatly if someone could enlighten me on these two functionalities.
    Kuni - Tokyo
    Edited by: furuya kunitomo on May 15, 2009 2:28 PM

    Hi Kuni,
    To quickly answer your questions:
    1.) I loaded 313 items Special Prices by DTW however I can not locate where it went?
    The path is correct. If you can't find anything probably something went wrong in the DTW import.
    Check that the "Test Run" checkbox was not checked and all required keys are entered in the templates.
    2.) I can not find DTW templates for Hierarchies and Expansions data load.
    The relevant templates are:
    SpecialPrices.xlt
    SpecialPricesDataAreas.xlt
    SpecialPricesQuantityAreas.xlt
    the default location when installing DTW is:
    C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates\oSpecialPrices
    When entering Hierarchies and Expansions (renamed to Period and Volume Discount in Version 2007) you must enter *x for CardCode where x is the price list number.
    3.) I can not find any information related to Hierarchies and Expansions in the diapi help file.
    The information in the DI API file is under the SpecialPrices Object.
    See below some general information regarding special prices:
    SpecialPrices is a business object part of the Inventory and Production module under
    Select Inventory > Price Lists > Special Prices > Special Prices for Business Partners.
    OR
    Select Inventory > Price Lists > Period and Volume Discount (Hierarchies and Expansions in previous versions)
    Interesting points:
    Source table: OSPP
    DTW Template: SpecialPrices.csv
    Mandatory fields in SAP Business One: CardCode and ItemCode.
    PriceListNum is a foreign key to the PriceLists object - source table OPLN, field name ListNum.
    CardCode is the Business Partner CardCode to enter Special Prices for Business Partners.
    Child object of the SpecialPrices Object: SpecialPricesDataAreas (source table: SPP1)
    DTW Template: SpecialPricesDataAreas.csv
    LineNum (Field name LINENUM) - Always enter the appropriate LineNumber you want to update (starts from 0).
    Child object of the SpecialPricesDataAreas Object: SpecialPricesQuantityArea (source table: SPP2)
    DTW Template: SpecialPricesQuantityAreas.csv
    LineNum (Field Name SPP2LNum). Always enter the appropriate LineNumber you want to update (starts from 0).
    Hope that information helps a little. If you have any fruther questions enter the following information:
    1. SAP Business One Version including Patch level
    2. Do you get any error message after the import? What is the message returned?
    Kind Regards,
    Friederike Mundt
    SAP Business One Forums Team

  • Price change report for  a given date range in inforecords

    hi,
    Can any body suggest how we can get price changes in inforecords for given date range. is there any standard sap tcode or  fuction module.

    Hi,
    If you are referring to the changes in the condition record (for eg. for PR00), then you may go through the foll path:
    Execute VK13 for any condition type - once inside the detail screen, from the menu path, choose Environment -> Changes -> change report. This will take you to a new selection screen where you can define the period you want to see the change record as well as the condition type for which you want to track the changes. Beware, this is a complex report for SAP and it will take definitely longer time to complete. So, it is better to specify short time periods and specific condition types and execute this in background.
    Hope, this helps!
    S. Siva

  • How to pull records only for particular date range in Flex frm SAP wd table

    Hi,
    Can anyone help me with databing for datefield.
    I am using two datefields in Flex for Start Date and End Date. When I click the Execute button, it should pull only the records for that date range from SAP wd table and display in my Flex datagrid.
    Thanks,
    Sri
    Edited by: rmsridevi on May 17, 2011 4:38 PM

    Hi,
    Your query has mistakes as well. I corrected them.
    Check this two different ways were in first you can define the period (month) you want and in second you have the option to select from the drop drown list :
    SELECT T0.DocNum, T0.DocDate, T0.CardName,T0.DocTotal,T1.whsCode
    FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE t0.docdate >= '2011.01.01' and t0.docdate <='2011.01.31'
    OR
    SELECT T0.DocNum,T0.DocDate,T0.CardName,T0.DocTotal,T1.whsCode
    FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE t0.docdate >= [%1] and t0.docdate <= [%2]
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • What is 'date range' in SAP CRM?

    I am SAP CRM beginner. Also very new to SDN. Reading very basic documents.
    While reading Marketing related document (Campaign Management), I have come accross a term called ' date range ' where I am really confused with -
    what is - date range, pre-dip- post-dip, buying period........
    & what is the use of the same.

    hi
    date range specifies that in a particular transaction what is the validity of the transaction,for example LEAD<ACTIVITY etc are the transactions we have in CRM
    as u said you saw it in campaing management,there date reange specifies the start date and end date opf the campaign
    whenever we start a acmapaing after executing it we have some start date from where we got to see the results of the campaign,
    you define an additional date range that has a specific meaning, for example, pre-dip or post-dip, you need to select the corresponding period type in this activity. This is used to trigger validation of the dates in the BW System.
    You should define at least one buying pattern type in Customizing for Marketing Planning and Campaign Management under Basic Data -> Define Default Buying Pattern Types.
    For Instance  you can define that the buying period should start weeks before the promotion takes
    place and that buying finishes weeks before the end of the promotion. You define the buying period
    as a date range in Customizing and then you can enter the actual dates here. A buying pattern can
    be defined for each combination of campaign type, buying pattern type and duration.
    also technically if u know about date range in CRM
    i would like to explain like this that
    there is a thing "milestone"
    this refers to the range of date from start to end
    withinthe particular date that you mention inside the transaction u do the needed task like u create a new task and u do the buying and u generate invoice
    in simple terminology we have date range which specifies the start of a particular task and there is always an end date at which this task has to end,so take this way
    check out the date range in trade promotion (trade promotion is an alternate for the campaing in CRM)
    http://help.sap.com/saphelp_crm60/helpdata/en/46/080afc50e05876e10000000a11466f/frameset.htm
    hope it will help you
    do revert back in case of any doubt
    best regards
    ashish

  • Special price list items last sale date

    Can anyone give me a query which identifies the last sale date of an item for a customer special pricelist item?  I want to identify special price list items that are out of date in order to delete special prices which have not been sold in the last year.
    What I would like to do is create a list of special price list items that have been sold in the last year.  I would them delete all speical price list items and then DTW the active special price list items back into the db.
    Customer is running 2005 SP01, PL 42.
    Thank you, Jeff

    Jeff,
    First things first, are those special prices still current?  If the price lists update often, I don't think you have options to get your required info by query.
    Thanks,
    Gordon

  • Moving average price  based on date range, site and article.

    Hi ABAPers,
    I am working on SKU wise sales report. Based on user input of date range ,site and article I fetch data from VBRP table i.e., (billing data from stores) . I have searched a lot to find MAP but dint get convincing solution.
    I tried to get data from MBEW-VERPR but that doesnot give MAP for a given date. I also tried with condition record table and KONP table but not helpful.
    I also got to know about s031 and LIS configuration I am not sure whether functional consultant should do the changes.
    Kindly help me in obtaining the MAP for particular bill date, article and site(store).
    Regards,
    Dep

    You can found the moving average price in MBEW (current) and MBEWH (history table)
    The first goods movement after the period closing program updates the period in MBEW and writes the data of the previous period to table MBEWH
    - If you actually need map on a daily (or less) basis, you will have to calculate it from MBEW, MBEWH, MSEG and BSIM (...)
    - You could also look for the actual cost in MSEG related to records of VBRP.
    Regards,
    Raymond

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • Getting Error in Infoview while using Date Range Filter in SAP BW Universe

    Hi,
    I have created a date range Filter in My Universe
    <FILTER KEY= "@Select(Debit Memo Date\L01 Debit Memo Date)">
    <CONDITION OPERATORCONDITION= "Between">    
    <CONSTANT CAPTION= "[ZFDAY_MTH].[LEVEL01]"/>
    <CONSTANT CAPTION= "[ZCBDATE].[LEVEL01]"/> </CONDITION></FILTER>
    It was Parsed "OK" without any errors.
    When I used this filter in my report it does not return any records, while there are some records which I had verified earlier. When I include the two fields "[ZFDAY_MTH].[LEVEL01] and "[ZCBDATE].[LEVEL01] in My Report with the filter I am getting the following error -
    A database error occured. The database error text is: A pointer intended for use is NULL. pConstantOperand is NULL in SAPSQLExpressionEvaluator::getOperandsFromCondition, exception raised at line 125 of file source/sofasqlexpressionevaluatorbase.cpp. (WIS 10901)
    If I remove the filter and run the report , it gives me the expected results.
    Please help me if anyone has faced this issue earlier.
    Thanks ,
    Pankaj Goswami

    Hi,
    How about using this code.
    I have not tested but I think if we follow this syntax pattern, it might work
    <FILTER KEY="[Debit Memo Date\L01 Debit Memo Date].[LEVEL01].[TECH_NAME]"><CONDITION OPERATORCONDITION="Between"><CONSTANT TECH_NAME="@select(ZFDAY_MTH.LEVEL01','D',,mono,free)"/><CONSTANT TECH_NAME="@select(ZCBDATE.LEVEL01','D',,mono,free)"/></CONDITION></FILTER>
    Regards,

  • Net Price of Info record appearing in table EINE for Invalid dates

    Dear Expert
    Net Price ( Purchasing data view ) for Info record should be zero if Info record  is not having valid price ( not within Validity dates) but still its appearing in Table EINE,please advice why this is happening ?how to resolve this problem

    Hi,
    Please check the OSS note 369511. You need to run program RM06INPO AFTER the validity has become active.
    BR,
    Patil

  • Special Prices are not expired for BP

    Hi,
    We have set the special prices against a BP code for a date range, even after the expiry of the date range. The special price is picking for the mentioned BP. it is not getting expired as per criteria selected.
    Pl suggest for the issue.

    Hello Vijay57,
    I would like to ask you on which window you wrote the discount.
    If you add a date range the correct field where to add the discount percentage is Discount under:
    Management - Price List - Special prices - Special Prices for Business Partners - Period Discounts.
    There is another Discount field in the Special Prices for Business Partners window, but if you write the discount there it will disregard the date range.
    Can you please tell me if this information helps you?
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Future Dated Special Prices

    I have created a Special Price that does not go into affect until a future date. When the item associated with this special price is entered in an order for the BP, no price comes up. It appears that the existence of the special price stops SAP from looking elsewhere yet because the special price is not in affect yet relative to the date entered, no price is retrieved. The BP has a Discount Group that supports a price for the Item and the BP has a default price list. One would expect that SAP would look for a Special Price for the date on the order, not find it because of the date set in the Special Price,  and then go look at Discount Group and find the price there. I wouldn't expect that I would have to enter a line in the Special price to support the BP until the future date is reached. Bug or poor functionality?

    Hi Chris,
    I'm not able to replicate that behaviour.  The system however doesn't operate quite as you expect, as special prices always override discount groups.  So when we set up a special price it has to have a price in the main special prices window as well as in the period discounts window.  then when you key an order, it will use the price from the special prices window over any discount group price until the period discount comes into effect.
    Perhaps you have no price in the main special prices window?
    Michael

Maybe you are looking for