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

Similar Messages

  • HOW TO Know the cube for particular data source

    HI ,
    How to know the standard  data targets for standard  data sources in sap .
    can u give me the some links o it .
    regards ,
    srinvias

    Hi Srinivas,
    Go through this below BI Content Help. Here you will be able to find the data sources for specific application areas with the standard data models, you will find standard cubes as well.
    [http://help.sap.com/saphelp_nw04/helpdata/en/3d/5fb13cd0500255e10000000a114084/frameset.htm]
    Regards,
    Pratap Sone

  • How to use record type for inserting data into a table

    I've read through the web the following tip:
    "When working with a large number of columns, using variables of type RECORD is a better approach. With this approach, you do not have to list anything in the INSERT statement, because you are inserting a variable into the table that is defined as a row from the same table."
    I usually define a variable as
    r_mytable     mytable%ROWTYPE;
    and inside my procedure I'll set the fields I need as
    r_mytable.field1 := 1;
    r_mytable.field3 := 7;
    and then I perform the insert as
    insert into mytable
    (field1,
    field3)
    values
    (r_mytable.field1,
    r_mytable.field3);
    According to the tip I've copied above, how can I use the TYPE RECORD of pl/sql for achieving the same result but perhaps in a smarter way?
    Thanks in advance!

    Hi,
    Are you looking for this?
    SQL> create table table1 (id number, descr varchar2(30));
    Table created
    SQL>
    SQL> DECLARE
      2   my_rec table1%rowtype;
      3  BEGIN
      4   my_rec.id := 1;
      5   my_rec.descr := 'TEST';
      6   insert into table1 values my_rec;
      7  END;
      8  /
    PL/SQL procedure successfully completed
    SQL> select * from table1;
       ID DESCR
        1 TESTWorks with UPDATE too :
    SQL> DECLARE
      2   my_rec table1%rowtype;
      3  BEGIN
      4   my_rec.id := 2;
      5   my_rec.descr := 'TEST2';
      6   update table1 set row = my_rec where id = 1;
      7  END;
      8  /
    PL/SQL procedure successfully completed
    SQL> select * from table1;
       ID DESCR
        2 TEST2

  • Dbadapter has to pool for new records in a particular date

    i have requirement dbadter has to pool for new records in a particular date.
    what is the property to achieve this requirement and where i can set that property.
    please provide me solution....
    Edited by: 939689 on Jun 11, 2012 4:04 AM

    Ok I misunderstood the question.
    If a scheduler is not possible although easy to implement, you can also try something like this on your poller.
    select * from table where sysdate in (list_of_dates)
    I just typed the query in, but you get the idea I hope. I had a similar requirement and this is how I achieved it:
    Re: Scheduling BPEL Process to run at a particular Time

  • LSMW used only for master data upload?

    Hi
    Can you please let me know if LSMW is used only for master data upload or we can also use it for transaction data ?

    Hi Christino.
    I have come across a standard SDN thread which deals with the uploading master data, refer it:
    [SDN Reference for uploading master data using LSMW|how can we upload master data by using LSMW;
    [SDN reference for which uploading is preferred (Master data or Transaction data)|Which one is better for uploading data LSMW or ECATT ?;
    Good Luck & Regards.
    HARSH

  • How to find Info objects for particular filed??

    Hi
    I hav doubt Can anyone tel me???
    My Query s <b>How to find Info objects for particular filed??</b>
    For example i hav some table fileds, how to find Info objects for that fields??
    Pls explain me detaily
    Points wil be given for all answers.
    Thanks
    Senthil

    Hi Senthil ,
    You have your field description along with your Field right.
    For example:MATNR - Material Number
    Now take this description and go to your BW side Tcode:RSA1
    1)Search in Modelling >> Infoobjects >> Material Number
    Then you get few hits (matches)  which have description matched.
    For Example: 0material  - Material Number
    Check for the Length and type match.
    You will understand once you get those hits as to which is related to yours.
    2)Go to BI content and search in the infoobjects this has all active and inactive objects but this takes a little time (not much  though).
    3) You have meta data search / simple search also where you can search for the objects with field description as matching criteria.
    Hope your doubt is cleared atleast to some extent.
    Assign Points if helpful.
    Thanks,
    Priyanka

  • Stock at subcontractor for Particular Date

    Dear Experts
    There is a t-code to get the Stk at subcontractor for a particular date .MBLB will show only current Stk, i need it for Particular date.
    Rgds
    Pankaj Agarwal

    Hi,
    There's no standard report for this.
    You can develop you own report using current stock level (MARD, MSPR, MSKA, EKBE (stock in transit), etc) and goods movement (MKPF, MSEG) data.
    Regards,
    Csaba
    remark:
    ME2O won't provide information on stock on particular date. The date field is "requirement date".
    Edited by: Csaba Szommer on Jul 24, 2009 7:51 AM

  • How to take unreconcilled transactions report for a date range ?

    hi all,
    How to take unreconcilled transactions report for a
    data range ?
    we have taken unreconcilled transactons from
    external reconcillation using filter option mentioning
    range of dates,But when we take print out using PLD,
    it showing unreconcilled transactions for all dates.
    But our client requires it as a standard report from SAP ?
    Our client is using SAP B1 2005B PL39.
    Jeyakanthan

    Hi
    Financials -> Financial Reports -> Accounting -> General Ledger.
    In the 'Display' dropdown select, 'Unreconciled' .
    Hope this should help you.

  • SAP workload monitor is not showing for particular date in Total Option

    Hi,
    In t. code ST03N (Work Load Monitor) data is not showing in option total for particular date but it is showing in all the instances.
    Please support
    Regards
    Ganesh Tiwari

    Hi Mamtha
    Does the same navigation work directly in the backedn? In RSRT?
    Pls try that, will halp narrow down your problem. WHether it is a data issue, whetehr it is a BW issue or whether it is a display issue.
    Regards
    Rajesh

  • How to create process chains for Master Data?

    I need information on " how we can create process Chains for Master Data"

    Hi Sachin,
      http://help.sap.com/saphelp_bw33/helpdata/en/ad/6b023b6069d22ee10000000a11402f/frameset.htm
    and also Modelling aspects in process chains (ppt)
    https://websmp109.sap-ag.de/~sapidb/011000358700002337702003
    Hope this helps.
    Srini

  • Please tell me how to adjust field width for alv data .

    Hi,
          Please tell me how to adjust field width for alv data . Also i want to remove zeros after decimal coming in field.
    Regards,
    Ranu

    Hello Ranu,
    You need to set OUTPUTLEN field from field catalog table for every column.
    DATA lt_fieldcat TYPE lvc_t_fcat
    DATA lw_fcat type lvc_s_fcat .
    lw_fcat-fieldname = 'BNAME' .
    lw_fcat-inttype = 'C' .
    lw_fcat-outputlen = '12' .  -----> for e.g. set width of column BNAME
    lw_fcat-coltext = 'User Name' .
    lw_fcat-seltext = 'User Name' .
    APPEND lw_fcat to lt_fieldcat .
    Hope this resolves your issue!
    Thanks,
    Augustin.

  • RMAN BACKUP NO EXPIRE for particular date

    Hi,
    I want to save backup database for particular date.
    Can I save backup of database which cann't expire unless manually expire by DBA?
    if yes, what commands are required?
    thanks

    Have you ever tried to find the answer in the documentation?
    or simply want to respond to all their problems?
    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28273/rcmsubcl011.htm#i97063
    look at the link above vai you find your answer.
    read, read, read the documentation before you ask.
    AF

  • How do you record addresses for a group in contacts?

    How do you record addresses for a group in contacts?

    You can't create groups in the contacts app and even if you create a group in icloud.com, the group is useless for email purposes on the iPad. At least I have never been able to get the groups that I create in icloud.com to appears as options for emailing.
    There are third party apps that will let you do this.
    MailShot
    http://solubleapps.com/mailshot/
    Group Email with Attachments
    http://www.redbits.com/iphone/groupemail/
    There is also a workaround where you type all of the email addresses that you want to create a group for in the Notes app separated by a comma,between each address. Copy and paste that one long "email address" in the contacts app and name it whatever you like. Select that as your group when you want to send the group email.
    I Haven't done the workaround in ages, so experiment with it first. You may need to leave a space after the comma before you start trying the next email address.

  • How to put condition for one date range should not interfear with another ?

    hi friends,
    how to put condition for one date range should not interfear with another  date range.
    my data base table has two fields
    from date
    to date.
    when we enter the date range in the data base , new date range means from date and to date should not interfear.
    can  anybody help me.
    thanks &Regards,
    Revanth
    Edited by: rk.kolisetty on Jul 1, 2010 7:18 PM

    Do it the SAP way....
    First entry...from is today, to is 99991231.
    New dates entered, now we have two rows...:
        from is original date  to becomes yesterday.
        From is today          to is 99991231

  • Checkboxes only for particular rows.

    Hi frends..
    Here my requirement can we keep checkboxes only for particular in the alv using oops..
    I need to display a report showing first column as checkbox.But I need to display checkbox only
    for particular rows which satifies the condition.
    pls reply me
    Thanks

    Hi,
    Refer these threads for editing fields for certain rows only:-
    Re: Making selected alv rows editable
    Re: selective edit in ALV grid
    Locking Row in ALV
    And refer this wiki for code for using checkbox with alv grid:-
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir
    Edited by: Tarun Gambhir on Feb 10, 2009 10:31 AM

Maybe you are looking for