Using Start Point with Date-objects

Hi Expert guys and girls!
I use the "Start" point to execute my BAPI "Salesorder GetList" / BAPI_SALESORDER_GETLIST.
In order to use this BAPI you have to define
1) Customer Number
2) Sales Org
and optionally I checked also
3) Document Date
4) Document Date To
I fill in the values for all the fields. Using formulas for all - which works fine otherwise.
My Date - formulas are designed to retrieve the last 3 months.
ad 3)
DVAL(DADD(NOW(),-3,'M'))
4)
DVAL(NOW())
(I added the DVAL in front, but still I do not get any effect)
Problem is now that the model retrieves ALL records for the logged in Customer No. and Sales Org. NOT limiting data to the specified date-interval. This takes a long time and is certainly not what I expected.
I run SP14 - anybody had any experience in SP15 - maybe it is a simple upgrade?
Or am I missing something in parsing the dates??
Best regards
Jakob Diness

I got it to work with a little effort.
1) Try parse fixed-dates (e.g. 08.08.2008) as Start and End dates. When that works, replace first the Start date then the end-date with DADD formulas like DADD(NOW(), -3, 'M') and NOW() in the End-date for example (going three months back in the example).
2) Maybe you need to try with the Flex compiler instead of Flex 2 - since that was also not working for me in other cases. (Tools/Options/Compiler - change to Flex)
3) Otherwise - pls. let me know. I somehow got it to work in my customer model.

Similar Messages

  • Use Track Points with multiple objects

    I am trying to use the behaviour 'Track Points' to move the circles on the right with the glove, yes it might not look like it but that is a glove. The text and lines on the left are all static.
    I have figured out how to move the right end of the "horisontal" line so that it does what I want (using 'Analyze Motion'). But how do I get the two circles and the end of the line to move as one? There is no pathfinder and 'Track Points' wont apply to a group.
    I should probably point out that I am a complete noob with only a couple of hours on 'Motion 5'.
    Thanks in advance!

    To the circle(s) add a Behaviors > Motion Tracking > Match Move. Drag the Analyze Motion behavior into the source well. For the Anchor and Rotation-Scale parameters, set the Track # of the point you want to follow. You might need to set the Transform to Attach to Source. You will probably also have to drag the position of the circle over the first track point to align it.

  • How to use aggregate function with Date

    Hi All,
    I have a group of date from that is it possible to Max and Min of date.
    I have tried like this but its errored out <?MIN (current-group()/CREATION_DATE)?>.
    I have also tried like this but it doesnt works
    <?xdoxslt:minimum(CREATION_DATE)?>
    Is it possible to use aggregate function with date values.
    Thanks & Regards
    Srikkanth

    Hi KAVI PRIYA,
    if date is not in cannonical format, how can we change it in BI publisher, then how to calcualte minimum and as well as maximum.
    please advise me,
    Thanks,
    Sri

  • How to use TRUNC function with dates in Expression Builder in OBIEE.

    Hi There,
    How to use TRUNC function with dates in Expression Builder in OBIEE.
    TRUNC (SYSDATE, 'MM') returns '07/01/2010' where sysdate is '07/15/2010' in SQL. I need to use the same thing in expression builder in BMM layer logical column.
    Thanks in advance

    use this instead:
    TIMESTAMPADD(SQL_TSI_DAY, ( DAYOFMONTH(CURRENT_DATE) * -1) + 1, CURRENT_DATE)

  • How to use ADO(Microsoft ActiveX Data Objective 2.8 Library) to execute the store procedure of database in SQL server

    how to use ADO(Microsoft ActiveX Data Objective 2.8 Library) to execute the store procedure of database in SQL server?
    Does any body can tell me about this?
    thanks
    [email protected]

    Hi 
    Did you succeed to execute the procedure?
    How ?
    Thanks
    Shimon Zerbib

  • WHY THE IPHONE GETTING HOT WHEN USING 3G PLUS WITH DATa?, WHY THE IPHONE GETTING HOT WHEN USING 3G PLUS WITH DATA?

    why my iphone 4s getting hot when using 3g plus with data?
    then my phone left side speaker didnt work when i list songs?

    It is normal for the phone to get hot when your using data such as YouTube videos, streaming music etc.. And as for the left speaker not working, the left speaker is a microphone, the right one is for sound. Don't worry, everything your iPhone is doing is normal.

  • Problem with Date objects

    I have a problem when using Date objects. If i create a Date object like this:
    Date d = new Date( 2002,03,20,19,45 ), and i try to get the number of Milliseconds
    ( d.getTime() ) i get a number that cannot be correct. I't is to high. I't looks like i
    get the number of Milliseconds to year 3000+ ?? But if i write out the Date object
    using a DateFormat.getInstance(), the date is equal to the date i entered above!
    Can anybody help me with this ?? Please ??

    Hi... as far as I remember, the getTime method returns the number of milliseconds since January 1 1970 (a holdover from Unix days).

  • Comparing time with date objects

    Hi,
    I have two time intervals say 0400 and 0800.Now how do i construct a date object using these time 0400 and 0800 ?.I need to carry out few things only if the current time is outside of the above time intervals.
    Using the below code does not seem to work.Please suggest a better way out.
    Calendar cal = new GregorianCalendar();
    DateFormat drCTime = new SimpleDateFormat("hhmm a");
    Date curTime = cal.getTime();
    Date sd = null, ed = null;
    try
    String tempDateString = String.valueOf(cal.get(Calendar.HOUR)) +
    String.valueOf(cal.get(Calendar.MINUTE));
    tempDateString = tempDateString.concat(cal.get(Calendar.AM_PM) == 0 ? " AM" : " PM");
    curTime = drCTime.parse(util.format(tempDateString));
    int startTime = Integer.parseInt("0400");
    int endTime = Integer.parseInt("0800");
    String strStartTime = Integer.toString(startTime);
    String strEndTime = Integer.toString(endTime);
    strStartTime = (startTime > 1200 ? strStartTime + " PM" : strStartTime + " AM");
    strEndTime = (endTime > 1200 ? strEndTime + " PM" : strEndTime + " AM");
    sd = drCTime.parse(strStartTime);
    ed = drCTime.parse(strEndTime);
    catch (ParseException ex)
    ex.printStackTrace();
    if (curTime.after(ed) && curTime.after(sd))
    else
    }

    The following code is very simple, and may be missing something, but I just did a quick Google and came up with this... (not really tested though)
    Date now = new Date();
            Calendar cal = Calendar.getInstance();
            long nowTime = now.getTime();
            //set to 4am today
            cal.set(Calendar.HOUR_OF_DAY, 4);
            long startTimePeriod = cal.getTime().getTime();
            //set to 8am
            cal.set(Calendar.HOUR_OF_DAY, 8);
            long endTimePeriod = cal.getTime().getTime();
            if (nowTime > startTimePeriod && nowTime < endTimePeriod) {
                System.out.println("Within");
            } else {
                System.out.println("NOT Within");
            }Edited by: kramish on 16/10/2008 16:08

  • Problems with Date objects

    I want to use the HttpSession.getCreationTime() value and write it to an Oracle Date field.
    I am having trouble getting the value in the proper type and format.
    I have a test servlet to try to understand the various ways to use and convert DateTime values.
    Here's the code:
    response.setContentType("text/html");
    java.io.PrintWriter out = response.getWriter();
    HttpSession session = request.getSession();
    long logontime = session.getCreationTime();
    SimpleDateFormat formatter = new SimpleDateFormat("mm-dd-yyy hh:mm:ss");
    java.sql.Date sqlDate = new java.sql.Date(logontime);
    String sDate = formatter.format(sqlDate);
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("DateTime in Milliseconds: " + session.getCreationTime() + "<br>");
    out.println("DateTime as java.sql.Date: " + sqlDate + "<br>");
    out.println("java.sql.Date SimpleDateFormat: " sDate "<br>");
    out.println("</body>");
    out.println("</html>");
    out.close();
    Here's the output:
    DateTime in Milliseconds: 1016812138284
    DateTime as java.sql.Date: 2002-03-22
    java.sql.Date SimpleDateFormat: 48-22-2002 10:48:58
    What's happening with the Month in the SimpleDateFormat output?
    Also,
    How can I convert this string into a valid Date Object to use in CallableStatement.setDate(int index, Date x)?
    Thank you for your help.

    If you have a String that's in that format, and you want to convert it to a java.util.Date, you do something like this:SimpleDateFormat dateFormatter = new SimpleDateFormat("MM-dd-yyyy hh:mm:ss");
    java.util.Date date = dateFormatter.parse(thatString);Then if you want to convert that to a java.sql.Date, you do this:java.sql.Date sqlDate = new java.sql.Date(date.getTime());However, I suggest you don't actually want to do that. If your date has hours, minutes, and seconds in it then converting to java.sql.Date throws away that information. You may want java.sql.Timestamp instead.

  • Using Decimal Points with Quantity in 11i

    We are in apps 11.0.3 and going to migrate into 11i.
    While making Returns to Vendor we cannot use decimal points in the place of quantity and we have to complete the transaction same as transaction completed in the PO receipt.
    For ex: If I have case as following what is the solution in 11i?
    PO Receipt for Item AAA quantity 100 Metric Ton
    And due to some cases I have to return it 49.5m Metric Ton
    In apps 11.0.3 I can make Returns with integer quantity only, but how I can manage this case in 11i?
    null

    In IP 5.0 Patchset I you can receive and return with decimal quantities.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Altaf Hussain K. ([email protected]):
    We are in apps 11.0.3 and going to migrate into 11i.
    While making Returns to Vendor we cannot use decimal points in the place of quantity and we have to complete the transaction same as transaction completed in the PO receipt.
    For ex: If I have case as following what is the solution in 11i?
    PO Receipt for Item AAA quantity 100 Metric Ton
    And due to some cases I have to return it 49.5m Metric Ton
    In apps 11.0.3 I can make Returns with integer quantity only, but how I can manage this case in 11i?<HR></BLOCKQUOTE>
    null

  • Use the XML with data template

    Hi,
    I want to use double sql query with data template.
    How can I do ??
    Thanks...

    it's okey, I had use a rtf file insead and search/replace my keywords using the String.replaceAll(String, String) function...

  • Problem with Date object in Servlet

    in following code what i want to do is to convert database date field date
    string in to Date format oject. here user entered date string is convered to Date object successfully but database date field date String is not converting to Date object and i want to compare two dates wheter user ented date is more than the database date field. Pls if u can correct this it is a big help for me.
    Thank u,
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.Date;
    //import java.text.*;
    public class chkAvail extends HttpServlet
         Connection con=null;
         PreparedStatement ps1,ps2;
         PrintWriter out;
         String UArraDate="";
         String UDepaDate="";
         String ChkType="";     
         Date d2;
    String aDate="";
         public void doGet(HttpServletRequest req,HttpServletResponse res)throws IOException,ServletException
              d2=new Date();
              try
                   res.setContentType("text/html");
                   out=res.getWriter();
                   //UArraDate=req.getParameter("ArrDate");
                   //UDepaDate=req.getParameter("DepaDate");
                   //ChkType=req.getParameter("ChkType");
                   String mydb="jdbc:odbc:portal";
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con=DriverManager.getConnection(mydb);
                   UArraDate="13/09/05";
                   Date d1=new Date(UArraDate);
                   ps1=con.prepareStatement("SELECT * FROM cottageReservation");
                   ResultSet re1=ps1.executeQuery();
                   while(re1.next())
                        //aDate=re1.getString("ADate");
                        //d2=java.sql.Date.valueOf(re1.getString("ADate"));
                        //out.println(d2);
                        aDate=re1.getString("ADate");
                        d2=new Date(aDate);
                        if(d1.after(d2))
                             System.out.println("OK");
                        else
                             System.out.println("NotOK");
              catch(SQLException e)
                   System.out.println(""+e);
              catch(ClassNotFoundException e)
              catch(Exception e)
    }

    Here is an example of how objects can be refered.....
    have a look
    //////////////////////////CustomDatumExample.java///////////////////////////////
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.sql.*;
    import java.math.BigDecimal;
    public class CustomDatumExample
    /* Example invocation:
    java customDatumTest "jdbc:oracle:oci8:@" SCOTT TIGER \
    "oracle.jdbc.driver.OracleDriver"
    public static void main(String args []) throws Exception
    // Connect
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver ());
    OracleConnection conn = (OracleConnection)
    DriverManager.getConnection("jdbc:oracle:oci8:@",
    "scott", "tiger");
    // Create a Statement
    Statement stmt = conn.createStatement ();
    try
    stmt.execute ("drop table EMPLOYEE_TABLE");
    stmt.execute ("drop type EMPLOYEE");
    catch (SQLException e)
    // An error is raised if the table/type does not exist. Just ignore it.
    // Create and populate tables
    stmt.execute ("CREATE TYPE EMPLOYEE AS OBJECT(EmpName VARCHAR2(50),EmpNo INTEGER)");
    stmt.execute ("CREATE TABLE EMPLOYEE_TABLE (ATTR1 EMPLOYEE)");
    stmt.execute ("INSERT INTO EMPLOYEE_TABLE VALUES (EMPLOYEE('Susan Smith', 123))");
    stmt.close();
    // Create a CustomDatum object
    Employee e = new Employee("George Jones", new BigDecimal("456"));
    // Insert the CustomDatum object
    PreparedStatement pstmt
    = conn.prepareStatement ("insert into employee_table values (?)");
    pstmt.setObject(1, e, OracleTypes.STRUCT);
    pstmt.executeQuery();
    System.out.println("insert done");
    pstmt.close();
    // Select now
    Statement s = conn.createStatement();
    OracleResultSet rs = (OracleResultSet)
    s.executeQuery("select * from employee_table");
    while(rs.next())
    Employee ee = (Employee) rs.getCustomDatum(1, Employee.getFactory());
    System.out.println("EmpName: " + ee.empName + " EmpNo: " + ee.empNo);
    rs.close();
    s.close();
    if (conn != null)
    conn.close();
    /////////////////////////////////////////////////Employee.java///////////////////////////////////
    import java.math.BigDecimal;
    import java.sql.SQLException;
    import oracle.jdbc.driver.OracleConnection;
    import oracle.sql.*;
    public class Employee implements CustomDatum, CustomDatumFactory
    static final Employee _employeeFactory = new Employee(null, null);
    public static CustomDatumFactory getFactory()
    return _employeeFactory;
    public Employee ()
    /* constructor */
    public Employee(String empName, BigDecimal empNo)
    this.empName = empName;
    this.empNo = empNo;
    /* CustomDatum interface */
    public Datum toDatum(OracleConnection c) throws SQLException
    StructDescriptor sd =
    StructDescriptor.createDescriptor("SCOTT.EMPLOYEE", c);
    Object [] attributes = { empName, empNo };
    return new STRUCT(sd, c, attributes);
    /* CustomDatumFactory interface */
    public CustomDatum create(Datum d, int sqlType) throws SQLException
    if (d == null) return null;
    Object [] attributes = ((STRUCT) d).getAttributes();
    return new Employee((String) attributes[0],
    (BigDecimal) attributes[1]);
    /* fields */
    public String empName;
    public BigDecimal empNo;
    }

  • I need help with using the Make With Top Object envelope distortion.

    I'm doing a project for school called "Ocean Of Stars". I  have a few  objects,a sheet of purple stars and a few  blue gradient colored circles. I need to merge the stars and the circles as one object, but when I click the Make with top object command, the color in the cicles disappear. I don't know what I'm doing wrong.
    this is what my screen looks like now.
    And this is what I need to make.
    Any help is greatly appreciated!
    Thanks!

    His spheres are 3d yours are 2d. See what happens when you revolve a 1/2 a sphere. You will find a way to apply the stars in that same dialog box if you look really hard.

  • How to use ThreadPoolExecutor / ArrayBlockingQueue with event objects

    I am having some trouble figuring out how to use the new java.util.concurrent library for a simple thread pool that has custom threads pulling off event objects from a queue.
    I started with this kind of code below, which I know is not right but am having trouble seeing the correct approach. Any help is appreciated. Thank You!
    -Paul
    public class testThreadPool {
    public static void main( String [] args ) {
    //work queue actaully only takes runnables,
    //but I need to add my event objects to this queue ??
    ArrayBlockingQueue<Runnable> workQueue = new ArrayBlockingQueue<Runnable>(20);
    ThreadPoolExecutor pool = new ThreadPoolExecutor(10,//pool size
    20,//max pool size
    1,
    TimeUnit.SECONDS,
    workQueue);//the work queue
    //this will ensure that the pool executor creates worker
    //threads of type MyThreadWorker
    pool.setThreadFactory(new MyThreadFactory());
    pool.prestartAllCoreThreads();
    //throw some events on the queue and let the pool workers
    //start to execute with the given event object
    workQueue.add(MyEvent);
    workQueue.add(AnotherEvent);
    class MyThreadFactory implements ThreadFactory {
    public Thread newThread(Runnable runnable) {
    return new (Thread)MyThreadWorker();
    class MyThreadWorker implements Runnable {
    private boolean m_run = true;
    public void run(){
    Object obj;
    while (m_run) {
    obj = null;
    //get the event object from the blocking queue
    try {
    obj = workQueue.take();
    } catch (InterruptedException e) {
    if ( obj == null ) continue;
    if ( obj == null ) continue;
    if (obj instanceof MyEvent) {
    //do this
    } else if (obj instanceof AnotherEvent) {
    //do this
    public void stopRunning(){
    m_run = false;
    this.interrupt();
    }

    What database and connection type are you using? Are you connecting the report directly to the database, or trying to assign the datasource to object data?
    It sounds like you might be trying to use a linked list, collection or other C# construct to pass your data in. This currently isn't supported by the Crystal Reports SDK. You can use a DataSet or a DataTable, and possibly also an IDataReader depending on which version of Crystal Reports you're referencing in your project. Of course you can also connect directly to the database, even if the database isn't on the same machine as the application.
    The way to show master records with detail information is through the use of subreports and linked subreport parameters. Linked subreports take their parameter value from a record in the main report, so that only the data appropriate to that master record is displayed. The guys over in the [report design|SAP Crystal Reports; forum can help you out with this if you have questions on the specifics.

  • Use of APEX with Type Object Field in Forms

    Hello
    I would like to create a page that will have a form on which the users will be able to modify data. The data are stored in a table with a field that is a type object. Can I fetch and save this composite field from APEX Row Process ?
    Thanks in advance.

    You can if you use a view on top of your table and use that view to create your Apex-page.
    Then you also need to create an "instead-of" trigger on the view to handle CRUD actions.
    Regards,
    Richard
    blog: http://blog.warp11.nl
    twitter: @rhjmartens
    If this question is answered, please mark the thread as closed and assign points where earned..

Maybe you are looking for