Condition with dates

Hi All,
I created a condition based on dates and inserted in the details section of the design.
Instead checking the condition and giving the right output, itis showing all the records.
Is my condition getting checked or not...it is displaying the all other records except the conditional ones.
i am cheking the dates with the prompt parameters. is this the right way to do or not?
if ({?z_stdt} >= {MG_M09_MG_M09_Q105.D[MGSDT]K} and {?z_enddt} >= {MG_M09_MG_M09_Q105.D[MGEDT]K})
then GroupName ({MG_M09_MG_M09_Q105.D[MG_CH60]K}) else " "
this is the above logic...could some one pls help?

Hi Jetendra,
Place this condition in your Record Selection. ie. Go inReport-Selection FormulsRecord and past the below one.
({?z_stdt} >= {MG_M09_MG_M09_Q105.DMGSDTK} and {?z_enddt} >= {MG_M09_MG_M09_Q105.DMGEDTK})
Thanks,
Sastry

Similar Messages

  • ERROR: filter condition with date range

    Oracle db; 11g r2
    ODI: 11.1.1.3
    I have an interface with filter on date column as follows
    DATE_MODIFIED >'14-JUN-2012' This is working fine.
    But when change the date value to
    DATE_MODIFIED >'01-MAY-2012' then I am getting this following error,
    942 : 42000 : java.sql.BatchUpdateException: ORA-00942: table or view does not exist
    942 : 42000 : java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    java.sql.BatchUpdateException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:629)It seems anything more that 29 days I am getting this error.
    Even I have tried this also
    add_months(sysdate,-2), still I am getting the same error
    I think that I am missing something here but any help would be greatly appreciated.
    Thanks,

    Is it still works fine with '14-JUN-2012' and doesn't work with '01-MAY-2012'?
    Yes, It's true
    Try:
    1) Use your datastore prefixes in filters & mappings
    *could you please let me know, what does this means  datastore prefixes in filters & mappings *
    2) Avoid implicit conversions, especially with DATE type
    I am not sure on this, how to do the Avoid implicit conversions
    Thanks,

  • Can i Use a time stamp vale  in where condition with date field?

    HI,
    In a where condition the table field vale is of type timestamp and select options value is of type date.
    How do i select data?

    Define a range for r_dt for timestamp field.
    Initailize the range with the below values.
    r_dt-sign = 'I'.
    r_dt-option = 'CP'.
    concatenate r_date-low '*' into r_dt-low.
    concatenate r_date-high '*' into r_dt-high.
    append r_dt.
    Use r_dt in your select query where clause.
    Note - r_date is the select-option for your date field.
    Regards
    Anurag

  • Question regarding usage of CRM pricing conditions using date ranges

    Hi,
    I wonder if someone has a suggestion regarding how to set up pricing conditions in CRM to accomplish the following scenario:
    For existing customers we want to “freeze” the product price for certain customers,
    but at the same time let other customers get another prize for the same product
    and period.
    (We have scenarios where the product price changes retroactively, years back in time, but only for those custoemrs that  fulfill a specific criteria at the time where the prize change was decided to take place..)
    We want the prize to be dependent on the customer status AND when this status was set
    (before a specific date), but there doesn’t seem to be a way to set up pricing
    conditions with date ranges (i e "customer status changed before YYYYMMDD
    renders prize X").
    Since we are talking about quite a lot of customers we do not want to add each and every
    one of them as “individual price items” in the pricing conditions tables.
    Does anyone have an idea regarding how to set this up?
    Thanks
    /Marika Wasserman

    Hi Marika,
    condition records have validity (FROM - TO). Let us assume you have a condition record for product A with 50 EUR per piece and this record is valid from 01.01.2014 until 31.12.2014.
    If you create CRM Sales Order having product A at 4.12.2014 and this date is used as pricing date for the conditon determination, then it will find this condition record with price 50 EUR per piece. This 50 EUR should be the froen price.
    Now how can you achieve that for the same CRM Sales Order another product price is determined for certain customer or a certain customer group?
    The idea is to pass an additional pricing attribute, e.g. customer group. Then you can create a new condition table with this field with the key fields product and customer group. In the access seqeunce first the new condition table is checked and if no record is found, then the second conditon table is checked as shown below:
    Access Sequence ABC
    Access 10: condition table with key fields product + customer group
    Access 20: condition table only key field product
    Instead of customer group you define also any other field. You create your own implementation of the BAdI  CRM_COND_COM_BADI that passes this field with a value to pricing.
    Best regards,
    Baris Yalcin

  • Show days left until reset based on date and condition associated with date

    My question is simlilarly based to the previous discussion https://discussions.apple.com/message/15134714#15134714
    What I need to do is display the number of days until I have to reset a flight condition (FS Column) based on a set number of days (60 days).  I have several colums of information but the two I would use is a Date Column and the FS Column(drop down menu with text for options). I would need to be able to look at certain FS options and use the date associated with it to subtract from 60.
    If FS= "NG" use date associated with it to add 60 days, and then use that date to compare it with today's date to show how many days are left till the 60 day mark.
    So if the last "NG" was Jan 1, 2011 and today was Feb 1, 2011 I would want one cell to show 30 days and another cell to show Mar 2, 2011.
    I need to fly in a certain condition once every 60 days. I want to show how many days left I have until I need to reset that 60 day counter.  Also, I would like to have another cell show the date associated with the day I would need to reset that counter on.
    Unfortunately I am in a limited internet environment so I can not post a picture of my spreadsheet.  Sorry for the over explination, trying to make it as clear as possible first go round.
    Thanks in advance!

    Aron,
    I added a few columns to correlate the conditions and dates. There may be a better way than this brute force approach, but this will work.
    Date
    DS
    FS
    Hrs
    Seat
    Mission ID
    D
    H
    N
    NG
    NS
    Aug 1, 2011
    PI
    D
    1.0
    F
    C
    8/1/11
    Aug 1, 2011
    PI
    N
    0.5
    F
    C
    8/1/11
    Aug 2, 2011
    PI
    D
    0.5
    F
    C
    8/2/11
    Aug 2, 2011
    PI
    NS
    1.4
    F
    C
    8/2/11
    Aug 4, 2011
    PI
    NS
    0.2
    F
    C
    8/4/11
    Aug 12, 2011
    PI
    NG
    1.0
    F
    C
    8/12/11
    Aug 12, 2011
    PI
    NS
    1.2
    F
    C
    8/12/11
    Aug 14, 2011
    PI
    NG
    0.5
    F
    C
    8/14/11
    Aug 14, 2011
    PI
    H
    0.5
    F
    C
    8/14/11
    Aug 14, 2011
    PI
    NS
    0.6
    F
    C
    8/14/11
    Aug 20, 2011
    PI
    NS
    2.1
    F
    C
    8/20/11
    Aug 21, 2011
    PI
    NG
    2.0
    F
    C
    8/21/11
    Aug 22, 2011
    PI
    NG
    1.0
    F
    C
    8/22/11
    Aug 22, 2011
    PI
    NS
    0.4
    F
    C
    8/22/11
    Aug 29, 2011
    PI
    NS
    0.5
    F
    C
    8/29/11
    Then I added a summary table:
    FS Condition
    LastDate
    Plus 60 Days
    Today is Oct 11, 2011
    Alarm
    D
    8/2/11
    10/1/11
    10d
    Overdue
    H
    8/14/11
    10/13/11
    -2d

  • Send all line items of a sales order to IPC along with condition lines data

    We wrote some pricing routines in R/3, where while doing he calculations for condition line item, we needed to pull in the material information for previous line items. So we exported vbap and imported it inside the routine to be able to have access to all the line items in the sales order. Now, we need to put in the same kind of logic in CRM/IPC. My question is what would be the equivalent of SAP's(import/export) commands for internal tables in case of IPC. I looked at the BADI CRM_COND_COM_BADI but still do not see how I can send all the line items  data to IPC. So I guess, the question comes down to, how do I send all the line items of the sales order (whole VBAP in R/3 terms) to IPC along with the condition line data? Can someone please help?
    Thanks

    Hi Vaibhav,
    If you can get the list of Sales orders which has deleted line items and force completion status. You can manage them in BI via lookup  or navigation attribute.
    Just my views I am sharing .
    Thanks,
    KDJ

  • Wrong Exchange rate for Import PO with past Condition Price date

    Hi
    We do update Exchange rate type "M" on daily basis, but exchange rate in Import PO is wrong. While creating import PO, the PBXX condition automatically obtain the "exchange rate" with Old "condition price date" despite the Table "TCURR" has maintained updated data. Why system behavior is like this?
    As per our requirement, system should obtain the data based on PO date. Kindly help with your experiences.
    Prashant

    Hi Biswajit,
    Use the user parameter EVO to indicate that no price adoption from last Purchase Order must take place:
    IMG: MM -> Purchasing -> Environment data -> Default values for Buyers -> Setting for Default values.
    Select or setup a default value and on the "price adoption" tab you may choose how copying of conditions from last purchase order must behave. Select "Do not copy". Then assign this default value to the user, using the EVO parameter.
    Prashant

  • Conditions with Fixed end date before Loan term end

    Hi gurus,
    Please how do I set up an interest condition that should accrue and post only for the first six months of a loan with a 60 months repayment term?
    When I enter 1 in the frequency, it calculates for the whole of the loan period. When I leave the frenquecy blank, it calculate for the whole of the six months, and post the total on the sixt month.
    What I want is the interest to accrue and post monthly only for the first six months.
    Thanks
    Fisayo.

    Hi,
    You are expecting to set a condition for the first 6 months of the loan term where your contract is maturing after 60 months. If so please create an interest condition with out specifying any frequency but provide calc start date = start of term of contract and calc end date = (date completing 6 months after term start )- 1 day, due date = 6 months after term start. For eg: if your loan start date is 01.01.2010 and end of term is 31.12.2014:
    Interest Condition details:
    Int Start Date = 01.01.2010
    Calc End date = 30.06.2010
    Due Date = 01.07.2010
    Freq = NIL
    I hope by setting above condition, you can get the required cash flows for first six months only.
    Regards
    Prasad AV

  • CASE Statement in Where Condition with Multi Valued parameter in SSRS

    Hi All,
    I am little confused while using CASE statement in Where condition in SSRS. Below is my scenario:
    SELECT
    Logic here
    WHERE
    Date IN (@Date)AND
    (CASE
    WHEN NAME LIKE 'ABC%' THEN 'GROUP1'
    WHEN ID IN ('123456', '823423','74233784') THEN 'GROUP2'
    WHEN ABC_ID IS NULL THEN 'GROUP3'
    ELSE 'GROUP4'
    END ) IN (@GROUP)
    So above query uses WHERE condition with CASE statement from @GROUP parameter. I want to pass this parameter as multi- valued parameter and hence I have used CASE statement IN (@GROUP).
    For @Date one dataset will pass the available and default values and
    for @GROUP parameters, another dataset will pass the available and default values.
    But this is not working as expected. Please suggest me where I am making mistake in the query.
    Maruthu | http://sharepoint-works.blogspot.com

    Hi Maruthu,
    According to your description, I create a sample report in my local environment. It works as I expected. In your scenario, if the selected values from the Date parameter contains some of the Date field values, the selected values from the GROUP parameter
    contains some of GROUPS (‘GROUP1’,’GROUP2’,’GROUP3’,’GROUP4’) and the corresponding when statement is executed , then the dataset returns the corresponding values.
    In order to trouble shoot this issue, could you tell us what results are you get and what’s your desired results? If possible, you can post the sample data with sample dataset, then we can make further analysis and help you out.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Need to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.

    Hi All
    I have one sharepoint list with huge data i.e with 20columns and more than 200 records with the fields .
    Suppose lets consider there are A,B,C,D,E,F,G,H columns.
    Now i want to create one form with the fields A,C,E.
    When the user enter the existing data of list for columns A,C..based on C value the E column value should change and update that particular item in the list.
    Please guide me without visual web part can we acheive this by Sharepoint designer 2013 or what would be the preferable solution.
    Please help me on this as it is very urgent from me..
    Thanks in Advance
    Sowjanya G

    Hi,
    According to your post, my understanding is that you wanted to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.
    I recommend to create workflow associated to the list and then start the workflow automatically when an item is changed.
    In the workflow, you can add condition and actions as below:
    If current item: C equal to Test1
         Set E to Test2
    Then the value of the filed E will be changed based on the value of the filed C.
    In addition, if you create the form using InfoPath, you can add rule to the filed C as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Work with data from a table of another SAP R/3 system

    Hi,
    I want to work with data from a table of another system. I know there's a function called 'RFC_READ_TABLE' but I don't know really how it works. What I want to do is to get data from that system and pass it to the one where I'm working in order I can continue working with this data in the report.
    Besides, I'd like to select only the records that have some conditions.
    I'd appreciate if someone could tell how to do it, whether with FM 'RFC_READ_TABLE' or in another way.
    Thanks in advance,
    Gerard
    P.S: The systems are already connected in SM59

    Yes, you can use RFC_read_table .You can pass the number of columns but I recommend you to  bring all results in your internal table after that you can filter the records. Most of the time I have notice when you make RFC call with this FM to another system it works but it may also happen that other system controlling authorization and then it might give you nothing. As I face this problem on my last Project.
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Not able to put data selection condition in data selection tab of infopakag

    I was loading data from data source as data mart ( export data sauce from ODS) to other ODS.
    when I tried to do delta Initialization with data transfer , I am not able to put data selection condition in data selection tab of infopakage.
    when I choose Full Update in Update tab . It enables data selection fields in data selection tab. and I could put the condition.
    I have checked in transfer structure as well , the fields are marked for selection.
    Please advice .
    Please tell me what could be the reason for this problem

    Ashutosh,
    As you are doing delta upload the data selection tab will be disabled, if you want to do the selective load then you need to do init update with your selection.
    When you do the full updtae then definitely the data selection tab will be enabled for all the objects.
    Hope this helps...
    *******Assign Points if it helps********
    Thanks,
    Gattu

  • How to use Count with Date Parameters

    Hello,
    I am having issues using the Count() function in conjunction with date parameters.
    This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a start date within the given date period. However I don't see a reasonable way to put my date parameters within the Count() function. The reason being is that I need to have a huge chunk of code to convert the dates into a common format that can be compared, and it won't even fit within the code block in my rtf template. I am not even sure how to put multiple conditional statements inside a Count() function since all the examples I have seen are very simple.
    Anyone have a suggestion on how to use Count() with date parameters?
    Thanks.

    Any chance you can get the date formats in the correct format from siebel?
    I don't know Siebel - so I can't help you with that. If you get the correct format it is just
    <?count(row[(FromDate>=date) and  (date<=ToDate))?>
    Otherwise the approach would probably need to use string function to get year/monthd/day from the date
    and store it into a varialbe and compare later the same way
    <?variable@incontext:from; ....?>
    <?variable@incontext:to; ...?>
    <?count(row[($from>=date) and  (date<=$to))?>
    Potentially you can use the date functions such as xdofx:to_date to do the conversion
    [http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm]
    But I am not sure if they are available in your siebel implementation.
    Hope that helps

  • Condition Pricing Date is Diff. from PO Creation date

    Hi,
    We have created a PO 1100041212 on dtd. 05.05.2011.
    In PO Conditions tab, i have a field in the detail view ' Condition Pricing Date'. For Condition type P001, it is not showing the PO date. (mostly cases has the same date of PO Creation date)
    Condition Pricing Date showing is 30.01.2011. Why???
    Plz guide..from where these date is picking...

    Dear Anil,
    Yes, Info Record can exist and can be created without material number, This can be done in combination with vendor and Purchase Org. I suggest create this info record manually and then create PO and in PO check if the "Info Update" indicator is set or not. Info update record should be set in both quotation and in PO.
    Info record can be manually created using following menu path:
    SAP Menu -> Logistics -> Materials Management -> Purchasing -> Master Data -> Info Record -> Create
    Regards,
    Ahmad Farhan Khalid

  • PO prices and condition pricing date copied from previous PO using ME21N

    We have defined a default for buyers with the TAB Price Adoption - "copying of conditions from last purchase order" set to Do Not Copy. We have assigned this default via parameter EVO to all of our buyers. When creating a purchase order using transaction ME21N and creating based upon previous purchase order all of the previous purchase order pricing and the condition pricing date is copied over. Isn't this what the parameter is supposed to prevent?
    Any suggestions are appreciated.
    Brian

    No, copiing a complete PO is something different than creating a new PO where the price is usually taken from last PO if no price conditions are maintained in an info record.
    You prevent only the second case with EVO parameter.

Maybe you are looking for

  • Error in Runtime WorkBench/Component Monitoring

    Hi all, 1. I have configured an AS ABAP system to connect to the SLD successfully. In the Technical System List of SLD, it's named "TE1 on sap0810". (Successful) 2. After, i have created a Business System corresponding for this Technical System "TE1

  • Error in commenting text

    Hi All, We had this problem with comments added in a PDF file. When viewed in other computers, the comment "greater than" sign appears correctly. But in other computers, square box appears. I attached the screenshot for you to visualize it more. Does

  • How can i collect  email addresses from my web page viewers

    I would like to set up a way that if my website viewers are interested (volunterily), they can submit me their email addresses or phone numbers for further contact. How do I do this in iweb? thanks

  • 11.1.1.2 to 11.1.1.5 upgrade error.

    We applied PS4 to our 11.1.1.2 installation. Followed all the steps as per the upgrade documentation. When we restarted the SOA server all composites (over 250) started correctly except two. In the out file I see the following error /apps/bpel5/user_

  • Problem while creating the Partner Address in CRM

    Hi,    We are facing one problem while creating the new address for the Business Partner.    When ever customer wants to change the address : we are following one process : where we are          using 'BAPI_BUPA_ADDRESS_ADD' functin module. Becuse of