Output a text value from formula in query designer

I need to display different text values in a query. For example, if actual delivery date falls within 5 days of planned delivery date, display 'ON-TIME'; if earlier than 5 days display 'EARLY', if later than 5 days display 'LATE', etc. I've been researching this to death. Does it have to be a customer exit variable or is there a better way to do this?
thanks!

Hello Jill,
Yes creating three CKF's was correct and those will output a 1 if your condition satisfies else a zero. Create a new formulae and use a the  CKF's that you created and multiply with 2,3,4.
Example : Formulae Description "Early=2" ,"Late =3","Ontime=4"
Then your logic is "ckf12 + ckf23 + ckf3*4" which means only one will be true per line so it will result in either 2 or 3 or 4.You will see
Delivery Date       Scheduled Date   "Early=2" ,"Late =3","Ontime=4"    
12/20/2007            12/24/2007                          2
12/22/2007            12/21/2007                          3  
You will have to create a Text Variable with Customer Exit option which will say if output of  example Tech name of "Early=2" ,"Late =3","Ontime=4" is "ZEar_Lat_Otime"
When "ZEar_Lat_Otime"
   if     Result= 2 then "Early",
   if     Result =3 then "Late"
  else  Result =4 then "Ontime"
  into   "Text_Variable"
code to be some thing like that.
Result Display:
Delivery Date       Scheduled Date   "Early=2" ,"Late =3","Ontime=4"    
12/20/2007            12/24/2007                          Early
12/22/2007            12/21/2007                        Late
Show your client the below result and see if he is OK with the result then you dont have to use Customer Exit.
Delivery Date       Scheduled Date   "Early=2" ,"Late =3","Ontime=4"    
12/20/2007            12/24/2007                          2
12/22/2007            12/21/2007                          3

Similar Messages

  • How to output full-text document from BDB-XML

    I put a XML document(test.xml) into BDB-XML; Edit and modify use BDB-XML API.
    After, if I want to output(roll out) my XML document(test.xml) which was storage in BDB-XML.
    Are there any support in BDB-XML API or Shell to output full-text document from DB??
    Thank you very much :)

    In the shell:
    dbxml> getDocument "document name"
    dbxml> print ["output_file_name"]
    In a (Java) program:
    XmlDocument doc = container.getDocument("document name");
    String output = doc.getContentAsString();
    Regards,
    George

  • Retreiving a value from and SQL query

    If anyone can give me sample code or pointers to retreive a value from an sql query, I'd be greatful.
    Source code I've muddled together so far:
    Class seqNumType = Class.forName(nameOfClass);
    Constructor theConstructor = seqNumType.getConstructor(null);
    Object seqNumInstance = theConstructor.newInstance(null);
    String theStatement = "SELECT value INTO v_seqnum FROM DUAL;";
    OracleCallableStatement ocs = (OracleCallableStatement)conn.prepareCall(theStatement);
    ocs.registerOutParameter( 1, OracleTypes.NUMBER, 0);
    Method method = seqNumInstance.getClass().getMethod("getORADataFactory", null);
    seqNumInstance = ocs.getORAData(1, (ORADataFactory)method.invoke(null,null));
    ocs.execute();
    Problem with this seems to be the ORADataFactory isn't a method of the class, but as I'm thumbling around in the dark here a little, I've no idea where to go from here. Is this just generally overkill anyway?
    Suggestions?
    Cheers for any help.

    Like this:
                ResultSet resultSet=statement.executeQuery("SELECT * FROM TEST");
                while(resultSet.next())
                    for(int i=0;i<resultSet.getMetaData().getColumnCount();i++)
                        System.out.print(resultSet.getObject(i+1).toString()+" ");
                    System.out.println();

  • Submit text values from checkboxes?

    Hi - using asp/access/vbscript.
    I try to build a form where user can select multiple
    checkboxes. Each checkbox has its own db table, and is submitted as
    text.
    But doing this gives this error: Invalid string or buffer
    length
    Is it not possible to submit text values from checkboxes?
    Bjorn.

    Can we see the code? I have a feeling it has something to do
    with the
    checkboxes that aren't checked when submitting the form, but
    won't swear to
    that without code.
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technologies, Inc.
    =============================
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "btn" <[email protected]> wrote in message
    news:e66s0b$lh1$[email protected]..
    > Hi - using asp/access/vbscript.
    >
    > I try to build a form where user can select multiple
    checkboxes. Each
    > checkbox
    > has its own db table, and is submitted as text.
    >
    > But doing this gives this error: Invalid string or
    buffer length
    >
    > Is it not possible to submit text values from
    checkboxes?
    >
    > Bjorn.
    >
    >

  • Unable to write a formula in query designer

    Hi Experts,
    while writing a formula in query designer in development system there is an error.
    Formula is:
    Grand total =1
    when i write in the rows it is throwing the sytax error like " General syntax error in formula"
    But the same formula has been written in production( this query is not available in development so that i am designing the same query in the development system).
    some one give me an idea.
    Thanks

    Hi,
    As i checked with implementation team and they have written the formula it has been assigned like Grand Total = 1.
    i.e. Grand Total assign to 1.(But it is not Grand Total == 1).
    Thanks for your support.
    Thx
    Edited by: satya prasad on Apr 27, 2010 7:44 AM

  • Technical name for formula in query designer

    Hi,
    We have created some formulas in Query Designer.
    We tried to assign the technical names to these existing formulas, it goes away as the save button on the top of the pop up is disabled.
    Is there a way to assign technical names of the formulas created in the query designer.
    Regards,
    Charu

    Charu Pandey,
    Formulas are local, means available for particular queries only. No technical name.
    Create Calculated keyfigures instead of formulas..., so you can save with technical names.
    To display technical name in query, give discription same as technical name.
    Hope it Helps
    Srini

  • What is the Count function in formula of Query Design?

    What is the Count function in formula of Query Design?  Could someone gives an example?
    Thanks!

    Example :
    COUNT of
    Also, check :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7e58e690-0201-0010-fd85-a2f29a41c7af

  • How to get input text values from adf table - Urgent

    Hi Friends,
    This is my requirement. I designed customized master - detail - detail page. I customized the page in below format.
    1. Master Data Field (Input text,etc) .
    2. Detail in table format ( Rows are mapped to child table) and i given two buttons for to create row and delete row. I designed the table based on the example provided in forum for to create customized table. The input text component is mapped to the rows.
    Now i want to retrieve all the data's entered in the rows. The table is mapped to child table. When i read the values from the table its showing null.
    If any one faced this problem and fixed it, please send me the solution.
    Thanks & Regards
    VB

    Did you look into the valueChangeEvent?
    It has oldValue and newValue attributes.
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }Timo

  • Value input for screen and to apply it to formula in Query Designer

    Hi Gurus !
    How could i input an value for screen in BEx and soon to apply it to formulas resident in cells in Query Designer, the result must be appear for each cell in the report.
    Thank You for your helps.

    create a variable with Manual/user input option.
    use its value to populate the calculated field.

  • SSRS Column Chart Design Returning values in a format different from SSRS -SSAS Query Designer

    Hi All,
    I have an SSAS cube Measure Group with Multiple Measures that I am attempting to return on one SSRS report and reflect the 
    values using a ssrs column chart.
    My Measure Group (Patients).
    Measures:
    PatientsOnMeds
    PatientOnRelapse
    PatientsCounseld
    TotalNumberOfPatientsRegisterd
    NewlyRegisteredPatients
    HealthPersonelTrainef
    Demension:
    Time (Year) :filtered to 2012 & 2013
    In my SSRS query designer I have filtered the above Measures with Time Dimesion year 2012 & 2013
    and the data is returned as :
    Year |PatientsOnMeds|PatientOnRelapse|TotalNumberOfPatientsRegisterd|NewlyRegisteredPatients|
    2012 | 700          | 526            |  25                          | 456
    2013 | 245          | 245            |  15                          | 70
    Now the problem is when I return this data on the column Chart it's in messed up mesh
    On the chart Data:
    -Values :Measures
    -Series Group: Dimension
    The report values are returned in multiple columns for each value segmented by year i.e year 2012,Year 2013.
    I want a single column for each Measure (value) for each single year and The chart axis to reflect the measures(values) 
    instead of grouping values according to series group.
    instead the legend returns:
    -Year A -PatientsOnMeds
    -Year A -PatientOnRelapse
    -Year B -PatientsOnMeds
    -Year B -PatientOnRelapse
    I would like the legend to reflect on -Year A,Year B in color code that will be highlighted in the column values.
    Please point me in the right course if you can.Your insights are highly appreciated.Thank you in advance.

    Hi Charlie, 
    Thank you for your kind response. 
    In actual I want the legend to show:
    -2012
    -2013
    And the bottom axis to show:
    PatientsOnMeds
    PatientOnRelapse
    PatientsCounseld
    TotalNumberOfPatientsRegisterd
    NewlyRegisteredPatients
    HealthPersonelTrained
    Indicating in color code for Year 2012 and Year 2013.
    This the challenge that I am struggling with.I hope you understand my scenario.
    It aint easy.

  • Values Bifurcation in BEx Query Designer

    Dear BI Gurus,
    In a column we are getting both positive value and -ve value. We want to bifurcate the values and show only +ve value in one column and show -ve value in another column. Is it possible through Bex query designer?
    Please through some light on this issue.
    With Regards,
    Balachander.S

    Hi bala,
    This can be achieved by creating two calculated Key figures, Just use else if condition in the formula and use if KF1=KF>0 then KF else 0, here all the positive values will be displayed similarly use if KF2=KF<0 then KF Else 0 it will display all the negative values. But here all the values will be displayed. Just hide the Key figure and display only calculated keyfigures. Else you can use exceptions to differentiate the positive and negative values.
    Hope this helps.....
    Rgs,
    I.R.K

  • Formula in Query Designer

    Hi Experts,
    I am confused in calculating
    Total sales/ net sales in bex query designer
    can you help me
    Regards,
    Anil Doddi

    Hi,
    if u need to create formula in BEx first u need to create structure. any section column or Row right click on it and create structure, then right click on structure and add formula, in which u can select the chara or kf on which u wanna create formula.
    hope this helps.
    KS

  • Link to Web Analyzer from rsrt or query designer does not work.

    If I start with the transaction RSRT a query in the Java Web would get the following error message:
    Java Runtime Error
    But if I had started earlier browser, the portal there is no problem. Is this a SSO problem?
    The same problem I have when I would run in the Bex Query Designer the query.
    Greetings
    Kerim

    Hi,
    Do you have all the parameters correct in SPRO? Take a look at this, under the BW Customizing -> REporting relevant settings or BW Customizing -> SAP Web Application Server.
    I dont remember the right place where you have to configure this, but it should be there.
    The error is just "Java Runtime Error"? Try to talk with your Basis team, maybe there is a log to help you.
    Regards, Federico

  • Can Business Object Access Queries from the BI query designer?

    Hi Gurus,
    I've started working with BOBJ and honestly I'm not impressed with it's functionalities, specially with the report layouts (SO many limitations!!). Anyway I was wondering if Business Objects can access BI Queries in the Query Designer since I can do most of the manupilation in Query Designer that I need. Thank You in advance and any help will be most certainly appreciated.
    - Kit

    Hello KIT,
    Also, look at the below Blog for xcelsius where he directly consumes the BEx query the QUERY_VIEW_DATA Web service out of the BW system. This is one way to approach the BEx query:
    /people/arvind.bhaskar/blog/2009/04/17/consuming-bi-queries-in-an-xcelcius-dashboard
    Thanks
    Arun

  • Copy fixed text values from shopping cart to PO in SRMSERVER 5.5

    Hi,
    We use SRMSERVER 5.5 and want to use text schemas with fixed values to allow the user to in the shopping cart select specific predefined texts that should be visible on the output of the PO.
    When looking at the IMG documentation for standard text schemas, there is one line saying "Note: The system can only copy the long texts for text types for which no fixed values have been defined in Customizing for the source text schema or for the text type in the follow-on document."
    Do you have any idea how we can copy the fixed values to the PO from the shopping cart? I have taken a look at BADI BBP_LONGTEXT_BADI but I am not sure how this badi coudl help for the transfer of fixed values.
    Thanks for any help,
    Christine Hammerströ

    Hi
    <b>Please go through this -></b>
    <u>SRM - SPRO Settings -></u>
    Text Types Menu Path : SPRO -> SAP Implementation Guide &#8594; Supplier Relationship Management &#8594; SRM Server &#8594; Cross- Application Basic Settings -> Text Schema -> Define Text Types
    Text Schema: Menu Path : SPRO -> SAP Implementation Guide &#8594; Supplier Relationship Management &#8594; SRM Server &#8594; Cross- Application Basic Settings -> Text Schema -> Define Text Schema
    Fixed Values: Menu Path : SPRO ->SAP Implementation Guide &#8594; Supplier Relationship Management &#8594; SRM Server &#8594; Cross- Application Basic Settings -> Text Schema -> Define Fixed Values for Texts
    <u>Please read note 425117 and 581594.</u>
    <b>Related links -></b>
    Re: Reason code required for movement type 122
    Re: Changing properties of long text box
    Hope this will help. Do let me know.
    Regards
    - Atul

Maybe you are looking for

  • Downloading already purchased items from itunes store

    Every time I buy a song or any other audio file, not podcasts or vidieos just audio, it never downloads. I always get erro number 9006 and it says some purchases cannot be dowloaded, but it happens with all of them. What do I do? Message was edited b

  • Aluminum Unibody Macbook slightly unresponsive trackpad after scrolling

    It has started happening as of late. It's quite bothersome though. After scrolling around or keeping my finger on the trackpad to do anything that takes some time to do, like moving something around really quick in photoshop or anything of that sort,

  • Editing document text in Acrobat 10.1.9 - Black boxes!

    Someting when i "Edit Document Text" in a PDF in 10.1.9 black boxes will appear all over the document.  Sometimes they show up and sometimes they don't.  Any idea what would be causing the black boxes and how to shut it off? Thanks!

  • Oracle Identity Manager Configuration Error

    Versions I have used for the Installation: Software Version Oracle Database 11.2.0 Repository Creation Utility 11.1.1.5.0 Web logic 10.3.6 SOA Suite 11.1.1.6.0 Fusion Middle ware Installer 11.1.1.5.0 JDK Oracle Web-logic JRockit JDK or Sun JDK 1.6.0_

  • Mounting failed

    Dear all, For a while it has been impossible for me to innstal non-Apple software (like the new version of Skype and Plaxo) on my Mac. Downloading the files work fine, but each time the download is finished I get the same message: Mounting Failed Doe