Regreshing data in the query

Hi All,
I want to refresh the data in the worksheet when i exceute the query in another work sheet in the same work book automaticallay
is there any setting we need to enable this one?
will points assign for the solution.
thanks
sg

Hey sg!
You can find example of refreshing the other data/queries here:
http://www.bwexpertonline.com/downloads/boeke04.doc
Best regards,
Peter

Similar Messages

  • Current date in the query

    Hi Experts,
    I want to display current date in the query in one of the time characterstic which i am including in the data target but i don't want to load anything in the data target but still i want to display the current date in the query only.
    how can i achieve this.
    thanks and regards

    Hi,
    It's a real fcahllenge or a non ABAPer.You have to create  a project in cmod and to assign enhancement RSR00002.
    In component EXIT_SAPMRSRU_001 you will find a couple of includes.
    Please add attached code. Replace  YOURCUBE by the name of your info provider and  YOURIO by the name of desired info object.
    *&  Include           ZXRSRTOP
    DATA: G_POS_YOURCUBE_ YOURIO TYPE I.   
    *&  Include           ZXRSRU02
    DATA: L_S_CHANM TYPE RRKE_S_CHANM.
    DATA: L_SUBRC1 TYPE SY-SUBRC. "execute only, if key figure really used
    CASE I_S_RKB1D-INFOCUBE.
      WHEN 'YOURCUBE'.
        L_S_CHANM-CHANM = 'YOURIO'.
        L_S_CHANM-MODE  = RRKE_C_MODE-NO_SELECTION.
        APPEND L_S_CHANM TO E_T_CHANM.
      ENDCASE.
    *&  Include           ZXRSRZZZ
    FORM USER_YOURCUBE USING I_S_RKB1D TYPE RSR_S_RKB1D
            CHANGING C_S_DATA  TYPE ANY.
    FIELD-SYMBOLS <L_YOURIO>.
    ASSIGN COMPONENT G_POS_YOURCUBE_YOURIO  OF STRUCTURE C_S_DATA TO  <L_YOURIO >.
    <L_YOURIO >.= SY-DATUM.
    ENDFRORM.
    Hope it works.
    Good Luck
    Joe

  • Variable : Key date of the query

    Hello Everyone,
    I would like to share couple of points with you all during this cool holiday season.
    I need to use variable for a  time dependent hierarchy. I have a variable and selected that. Again I want to restrict this hierarchy by using variable for key date of the query.
    I can select a variable for the hierarchy. But I am not able to restrict the hierarchy.  When I choose a varaible for "key date of the query" system responed with an error message ' For characteristic 0Date, enter value in permitted format'. So I am not able to select a variable for "key date of the query " and restrict the hierarchy to choose a node.
    Please share your valuable inputs.
    Thanks in advance
    RJ

    Hello,
    what is the variable name that you are using to restrict the hierarchy date?
    Regards,
    Daniel

  • Subtraction of dates in the query.

    Hi Experts, I am new here and need some help please.
    I want to subtract 2 different dates in the query. They are defined as characteristics. Can somebody help me with this please?
    Thanks

    Hi,
    As said in the previous post, Create 2 formula variables on these 2 dates. and use them in the calculation.
    Go to rows right click on structure Select New formula. Popup will come, select the formula varibles onleft below. Right click New variable slect the processing type as Replacement path. and reference char as these 2 characteristics.
    Khaja

  • How to find System date in the query

    Hi,
    I have requirement where in the query I need to select the Document delivery date = today's date or system date.
    Can any once please let me know how to write the query?
    Murali

    Select * from ORDR where docduedate=convert(char(8), getdate(), 112)

  • What is "key date" in the query definition

    Hello,
    What is "key date" in the definition of query. Where does it come in picture and I see that it has value varaible?
    Can someone explain?
    Thanks

    Hi K M,
    This date is relevant for the time dependant master data if you are using it in your query.
    http://help.sap.com/saphelp_nw04/helpdata/en/1e/99ea3bd7896f58e10000000a11402f/content.htm
    You can use a variable in the key date and then the master data suuplied to the query (like nav attr) will be as per the date you have specified.
    Hope this helps...

  • Display Current/System date in the Query

    Hi,
    Can any one tell me how i can display the current date or system date in Bex Query/report. I tried to use "0DAT" SAP exit as the key date in the "General Properties"... this helps me to execute query based on a Key date, but does not display the date. Can any one tell me, how I can use the current date in my query for some calculations and how I can display the current date.
    Thanks

    Hi Tanu
    If you want to see the query run date along witn query properties in the report output ( after you execute the report).. then go to "Layout".. (please check for Icons) >display text elements> all. ( This is if you are in BW 3.5).. if you are in BI 7.0, then simplay click on information and you will see all the details
    I see you are asking for some calcuation's also.. for that you should see what date fields you have in the backend cube/dsou2026
    Hope this helps
    Thanks
    Kalyan

  • Display difference of a Date field and today's date in the query

    hi experts,
    I have a query which has a date field called 'Effective Date.'
    I just need to a add a column in the query that shows me the diffenrence between 'Effective Date' and the date the query is run (key date).
    Do i need a custom exit to accomplish this?
    The new column can either display the number days elapsed from 'Effective Date' to the key date or it can also display Number of Years/ Months / days.
    Any ideas?
    Thanks,

    Check this if it helps:
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html

  • Subtraction of 0Base_line date from 0Clearing date in the Query designer

    Hi
    How to subtract  0Base_line date from 0Clearing date  in query designer??
    I tried using 'Selection' by taking both 0Base_line and 0Clearing date separately in different selection and then subtracting them using formulas. But when i run the query,it is giving error "Use keyfigures in the selection".
    Pls suggest. Itz very urgent.
    Regards
    Deepak.

    Hi
    Thanks for your prompt reply.
    But if any of the date is 'blank' then while subtracting 0Base_line date  from 0Clearing date it is giving some value (like 78,90345).Actually i want *'No of days'* to be displayed.
    Date format is dd/mm/yyyy (12/6/2007)
    Pls help.
    Also i want Grading to be assigned in alphabets(as A, B and C) instead of numbers (1 ,2 and 3). Is there any way in Query designer to achieve such type of grading?
    Pls suggest
    regards
    Deepak

  • Most Recent Document data of the query

    Hi all,
    We have document data attached to a infoprovider,So in the query level, it should display the most recent updated document.But it is showing the previous document data.
    can anyone tell me if any setting is avaialble for this or how to achieve this.
    Please help.
    Thanks in advance!

    Hi rajesh,
    I dint try this solution. but im just guessing. so forgive me if it doesn't work.
    in your report did you try adding the time column and in the forumla give max(time by customer_site)
    thanks,
    Karthick

  • How to handle leap year date in the query ?

    Dear Exparts,
    Hope you are fine.
    Here is my banner,
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - ProdI have a date field name birth_date where i store date of birth. I need to pick date of birth in a given range. For example
    BIRTH_DATE
    01-FEB-1980
    12-FEB-1984
    29-FEB-1992
    01-MAR-1986
    01-APR-1986
    22-APR-1988
    01-MAR-1992My searching parameter is
    brith_date between 01/02/13 and 01/04/13I want the record
    01-FEB-1980
    12-FEB-1984
    29-FEB-1992
    01-MAR-1986
    01-APR-1986Here is the script
    create table
    CREATE TABLE DATE_OF_BIRTH
      BIRTH_DATE DATE
    );data insert
    insert into DATE_OF_BIRTH
    values(to_date('01-FEB-1980','DD-MON-RRRR'));
    insert into DATE_OF_BIRTH
    values(to_date('12-FEB-1984','DD-MON-RRRR'));
    insert into DATE_OF_BIRTH
    values(to_date('29-FEB-1992','DD-MON-RRRR'));
    insert into DATE_OF_BIRTH
    values(to_date('01-MAR-1986','DD-MON-RRRR'));
    insert into DATE_OF_BIRTH
    values(to_date('01-APR-1986','DD-MON-RRRR'));Thanks in advance... (thanks to Frank Kulash)
    ask2Learn
    Edited by: Asked to Learn on Feb 24, 2013 7:40 PM

    Hi,
    Asked to Learn wrote:
    Dear Exparts,
    Hope you are fine.
    Here is my banner,
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - ProdI have a date field name birth_date where i store date of birth. I need to pick date of birth in a given range. For example
    BIRTH_DATE
    01-FEB-1980
    12-FEB-1984
    29-FEB-1992
    01-MAR-1986
    01-APR-1986
    22-APR-1988
    01-MAR-1992My searching parameter is
    brith_date between 01/02/13 and 01/04/13I want the record
    01-FEB-1980
    12-FEB-1984
    29-FEB-1992
    01-MAR-1986
    01-APR-1986Here is the script
    create table
    CREATE TABLE DATE_OF_BIRTH
    BIRTH_DATE DATE
    );data insert
    insert into DATE_OF_BIRTH
    values('01-FEB-1980');
    insert into DATE_OF_BIRTH
    values('12-FEB-1984');
    insert into DATE_OF_BIRTH
    values('29-FEB-1992');
    insert into DATE_OF_BIRTH
    values('01-MAR-1986');
    insert into DATE_OF_BIRTH
    values('01-APR-1986');
    You defined the column as a DATE, which is correct, but you're trying to insert VARCHAR2 values, such as '01-FEB-1980' into that column.
    Use TO_DATE to convert a VARCHAR2 into a DATE:
    insert into DATE_OF_BIRTH (birth_date)
    values ( TO_DATE ('01-FEB-1980', 'DD-MON'YYYY'));or use DATE literals:
    insert into DATE_OF_BIRTH (birth_date)
    values ( DATE '1980-02-01);The same goes for queries.

  • How to exclude the data from the query ?

    Hi all,
    I got the following sql script :-
    SELECT OS.SL_DT, OS.sl_item_code, OS.SL_REF, (OS.sl_val_1) recp,B.CGCV_VALUE_1
    FROM OS_STK_LEDGER OS, ( SELECT cgcv_item_code, CGCV_STK_QTY_BU, CGCV_COST_1, CGCV_VALUE_1
                             FROM OS_COST_GROUP_CURR_VAL
                             WHERE CGCV_COST_GROUP_CODE = 'ACOSG'
                             AND CGCV_GRADE_CODE_1 = 'G1' ) B
    WHERE OS.sl_dt <= TO_DATE('31/05/2012', 'dd/mm/yyyy')
    AND OS.sl_rcvd_issd = 'R'
    AND (OS.sl_txn_code = 'SGRN' OR OS.sl_txn_code = 'PGRN' OR OS.SL_TXN_CODE = 'SAOP' )
    --AND (os.SL_REF LIKE 'CRE%' OR os.SL_REF LIKE 'UT%' OR os.SL_REF LIKE 'MAR%' OR os.SL_REF IS NULL )
    AND B.CGCV_ITEM_CODE(+) = OS.SL_ITEM_CODE
    AND OS.SL_COST_GROUP_CODE(+) = 'ACOSG'
    AND sl_grade_code_1 = 'G1'
    order by sl_item_code, sl_dt
    The following output will be :-
    Date_______Item__Code________V1___V2
    01/01/2012_AAA___CRE1005____100___200
    02/02/2012_AAA___ABC1005_____50____200
    02/03/2012_AAA___CRE1005_____90____200
    01/03/2012_BBB___ABC1005_____50____1000
    04/04/2012_BBB___ABC1005_____12____1000
    From the output, when group by item & code, I am actual needs only Code with CRE1005, but for item : AAA group, I cannot delete code of ABC1005 because it consists of code with CRE%. For item : BBB, where Code not like CRE% then the two records actually I don't need to select in my SQL.
    Can anyone help me to think about ways of solving this issue ?
    Thanks.
    Lim

    with t
    as
    select to_date('01/01/2012', 'mm/dd/yyyy') dt, 'AAA' item, 'CRE1005' code, 100 v1, 200 v2 from dual
    union all
    select to_date('02/02/2012', 'mm/dd/yyyy') dt, 'AAA' item, 'ABC1005' code, 50  v1, 200 v2 from dual
    union all
    select to_date('02/03/2012', 'mm/dd/yyyy') dt, 'AAA' item, 'CRE1005' code, 90  v1, 200 v2 from dual
    union all
    select to_date('01/03/2012', 'mm/dd/yyyy') dt, 'BBB' item, 'ABC1005' code, 50  v1, 1000 v2 from dual
    union all
    select to_date('04/04/2012', 'mm/dd/yyyy') dt, 'BBB' item, 'ABC1005' code, 12  v1, 1000 v2 from dual
    -- Output sample ends.
    -- Original select begins
    select t1.dt, t1.item, t1.code, v1, sum_v1, v2
    from t t1,
            select item, code, sum(v1) sum_v1
            from t
            group by item, code
            ) t2
    where t1.item =t2.item
        and t1.code = t2.code;
    DT       ITEM CODE            V1     SUM_V1         V2
    01.01.RR AAA  CRE1005        100        190        200
    02.02.RR AAA  ABC1005         50         50        200
    03.02.RR AAA  CRE1005         90        190        200
    03.01.RR BBB  ABC1005         50         62       1000
    04.04.RR BBB  ABC1005         12         62       1000
    5 rows selected.
    with t
    as
    select to_date('01/01/2012', 'mm/dd/yyyy') dt, 'AAA' item, 'CRE1005' code, 100 v1, 200 v2 from dual
    union all
    select to_date('02/02/2012', 'mm/dd/yyyy') dt, 'AAA' item, 'ABC1005' code, 50  v1, 200 v2 from dual
    union all
    select to_date('02/03/2012', 'mm/dd/yyyy') dt, 'AAA' item, 'CRE1005' code, 90  v1, 200 v2 from dual
    union all
    select to_date('01/03/2012', 'mm/dd/yyyy') dt, 'BBB' item, 'ABC1005' code, 50  v1, 1000 v2 from dual
    union all
    select to_date('04/04/2012', 'mm/dd/yyyy') dt, 'BBB' item, 'ABC1005' code, 12  v1, 1000 v2 from dual
    -- Output sample ends.
    -- Original select begins
    select t1.dt, t1.item, t1.code, v1, sum_v1, v2
    from t t1,
            select item, code, sum(v1) sum_v1
            from t a
            where exists
                    select 1
                    from t b
                    where code like 'CRE%'
                        and a.item = b.item
            group by item, code
            ) t2
    where t1.item =t2.item
        and t1.code = t2.code;
    DT       ITEM CODE            V1     SUM_V1         V2
    01.01.RR AAA  CRE1005        100        190        200
    02.02.RR AAA  ABC1005         50         50        200
    03.02.RR AAA  CRE1005         90        190        200
    3 rows selected.

  • How to get distinct data if the query contains a column with Long Datatype?

    How can we select distinct records based on a LOng column

    From the Oracle 9i SQL Reference:
    LONG columns cannot appear in certain parts of SQL statements:
    n GROUP BY clauses, ORDER BY clauses, or CONNECT BY clauses or with the
    DISTINCT operator in SELECT statements
    n The UNIQUE operator of a SELECT statement
    n The column list of a CREATE CLUSTER statement
    n The CLUSTER clause of a CREATE MATERIALIZED VIEW statement
    n SQL built-in functions, expressions, or conditions
    n SELECT lists of queries containing GROUP BY clauses
    n SELECT lists of subqueries or queries combined by the UNION, INTERSECT, or
    MINUS set operators
    n SELECT lists of CREATE TABLE ... AS SELECT statements
    n ALTER TABLE ... MOVE statements
    n SELECT lists in subqueries in INSERT statements

  • Cube loaded with data, but unavailable in the query

    Hello everyone,
    Someone can help me?
    I created a new Cube CO-PA for the year 2010, and loaded with data this year. To make sure that the data were correct did a ListCube, with all the filter equal to the query, and indeed the data is loaded properly for this year. And when i run the query with data from the years 2008 and 2009 show me  data in my report, but when I run the query for 2010, the query displays an error message saying that "no data".
    How is it possible to have the correct data in the Cube, and i can not view the data in the query?
    Note: The request in the cube is available to report
    Thank you all,
    Greetings,
    Maria João
    30-Março 2010

    Hello,
    I was in trouble because I had not selected the key figures in the multicube : S
    After selecting the key figures, I ran the query and it had data.
    Thank you for your help.
    Sincerely,
    Maria Joã

  • How to replace a dates on a SQL query on Visual Studio (and get the query to work in there in the first place)?

    Morning all,
    I've just been assigned a report-related project but I have not created much of anything in C# or .Net before!
    I was wondering if someone could help me get started. Here are the specifications:
    Basically, I am to create an automated report application. I have the query and I will include it further down
    in this post. The page is to have a couple blanks to specify the Start Date and End Date and replace those dates in the query, and generate the report. What I need some help on is how to make the SQL query work in the application which I will connect to the
    intended database to generate the report (basic I know, but I'm new at this) on Visual Studio 2010. I also need some help on programming the Start Date blank and End Date blank so that what the user types in for those blanks will replace the date fields in
    the SQL query, then generate the report with the new dates. 
    I appreciate the help!
    The SQL query and what the dates are replacing:
    select 
    PTH.INST_ID ,
    PTH.EMPLOYEE_ID,
    DBH.HR_DEDUCTION_AND_BENEFITS_CODE,
    replace(DB.DESCRIPTION,',',''),
    DB.WITHHOLDING_LIABILITY_ACCOUNT_MASK,
    DBH.HR_DEDUCTION_AND_BENEFITS_ID,
    DBH.CHECK_DATE,
    DBH.CHECK_NO,
    DBH.FIN_INST_ACCT_ID,
    replace(replace (DBH.COMMENT,CHAR(10),' '),CHAR(13),' '),
    DBH.HR_DEDUCTION_AND_BENEFIT_CYCLE_CODE,
    DBH.LENGTH,
    DBH.EMPLOYEE_COMPUTED_AMOUNT,
    DBH.EMPLOYEE_BANK_ROUTING_NUMBER,
    DBH.EMPLOYEE_ACCOUNT_TYPE,
    DBH.EMPLOYEE_ACCOUNT_NUMBER,
    DBH.EMPLOYER_COMPUTED_AMOUNT,
    DBH.EMPLOYEE_GROSS_AMOUNT,
    DBH.EMPLOYER_GROSS_AMOUNT,
    DBH.PAYROLL_EXCLUDE,
    PTH.VOID_DATE,
    PTH.BATCH_QUEUE_ID,
    B.BATCH_CODE,
    BQ.FY,
    BQ.END_DATE,
    BQ.COMMENTS,
    BQ.BATCH_CRITERIA_USED,
    BP.COLUMN_VALUE,
    PTH.REPLACEMENT,
    P.LAST_NAME,
    P.FIRST_NAME,
    P.MIDDLE_NAME
    from PY_EMPLOYEE_TAX_HISTORY PTH
    INNER JOIN PERSON_EMPLOYEE PE ON
    PE.INST_ID=PTH.INST_ID AND
    PE.EMPLOYEE_ID=PTH.EMPLOYEE_ID
    INNER JOIN PERSON P ON
    PE.INST_ID=P.INST_ID AND
    PE.PERSON_ID=P.PERSON_ID
    LEFT JOIN HR_EMPLOYEE_DEDUCTIONS_AND_BENEFITS_HISTORY DBH ON
    PTH.INST_ID=DBH.INST_ID AND
    PTH.CHECK_DATE=DBH.CHECK_DATE AND
    PTH.CHECK_NO=DBH.CHECK_NO AND
    PTH.EMPLOYEE_ID=DBH.EMPLOYEE_ID
    LEFT JOIN HR_DEDUCTION_AND_BENEFITS DB ON
    DB.INST_ID=DBH.INST_ID AND
    DB.HR_DEDUCTION_AND_BENEFITS_CODE=DBH.HR_DEDUCTION_AND_BENEFITS_CODE
    LEFT JOIN BATCH_QUEUE BQ ON
    PTH.BATCH_QUEUE_ID=BQ.BATCH_QUEUE_ID
    LEFT JOIN BATCH B ON
    B.BATCH_CODE=BQ.BATCH_CODE 
    LEFT JOIN BATCH_PARAMETER BP ON
    BQ.BATCH_QUEUE_ID=BP.BATCH_QUEUE_ID
    AND BP.COLUMN_NAME = 'SUPPRESS_DIRECT_DEPOSIT'
    ------Please change the WHERE condition for date range of the month you need to run this for.
    WHERE PTH.CHECK_DATE >='07/01/2013'
    AND PTH.CHECK_DATE <='07/31/2013'
    and BQ.BATCH_CODE='BAT_PY_PAYCALC'
    and bq.fy=2014
    ORDER BY PTH.INST_ID ,
    PTH.EMPLOYEE_ID,
    DBH.HR_DEDUCTION_AND_BENEFITS_CODE,
    DBH.CHECK_DATE

    Try this code.  The Server name will be the same name when you use SQL Server Management Studio (SSMS).  It is in the login window for SSMS.  I assume you are using SQLSTANDARD (not SQLEXPRESS) which is in the connection string in the code
    below. I also assume you have remote connection allowed in the database.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data;
    using System.Data.SqlClient;
    namespace ConsoleApplication1
    class Program
    const string DATABASE = "Enter Database Name Here";
    const string SERVER = "Enter Server Name Here";
    static void Main(string[] args)
    DateTime startDate = DateTime.Parse("07/01/2013");
    string startDateStr = startDate.ToString("MM/dd/yyyy");
    DateTime endDate = new DateTime(startDate.Year, startDate.Month + 1, 1).AddDays(-1);
    string endDateStr = endDate.ToString("MM/dd/yyyy");
    string connStr = string.Format("Server={0}\\SQLSTANDARD;Database={1};Trusted_Connection= True;", SERVER,DATABASE);
    string SQL = string.Format(
    "select\n" +
    " PTH.INST_ID\n" +
    ",PTH.EMPLOYEE_ID\n" +
    ",DBH.HR_DEDUCTION_AND_BENEFITS_CODE,\n" +
    ",replace(DB.DESCRIPTION,',','')\n" +
    ",DB.WITHHOLDING_LIABILITY_ACCOUNT_MASK\n" +
    ",DBH.HR_DEDUCTION_AND_BENEFITS_ID\n" +
    ",DBH.CHECK_DATE\n" +
    ",DBH.CHECK_NO\n" +
    ",DBH.FIN_INST_ACCT_ID\n" +
    ",replace(replace (DBH.COMMENT,CHAR(10),' '),CHAR(13),' ')\n" +
    ",DBH.HR_DEDUCTION_AND_BENEFIT_CYCLE_CODE\n" +
    ",DBH.LENGTH\n" +
    ",DBH.EMPLOYEE_COMPUTED_AMOUNT\n" +
    ",DBH.EMPLOYEE_BANK_ROUTING_NUMBER\n" +
    ",DBH.EMPLOYEE_ACCOUNT_TYPE\n" +
    ",DBH.EMPLOYEE_ACCOUNT_NUMBER\n" +
    ",DBH.EMPLOYER_COMPUTED_AMOUNT\n" +
    ",DBH.EMPLOYEE_GROSS_AMOUNT\n" +
    ",DBH.EMPLOYER_GROSS_AMOUNT\n" +
    ",DBH.PAYROLL_EXCLUDE\n" +
    ",PTH.VOID_DATE\n" +
    ",PTH.BATCH_QUEUE_ID\n" +
    ",B.BATCH_CODE\n" +
    ",BQ.FY\n" +
    ",BQ.END_DATE\n" +
    ",BQ.COMMENTS\n" +
    ",BQ.BATCH_CRITERIA_USED\n" +
    ",BP.COLUMN_VALUE\n" +
    ",PTH.REPLACEMENT\n" +
    ",P.LAST_NAME\n" +
    ",P.FIRST_NAME\n" +
    ",P.MIDDLE_NAME\n" +
    " from PY_EMPLOYEE_TAX_HISTORY PTH\n" +
    " INNER JOIN PERSON_EMPLOYEE PE ON\n" +
    " PE.INST_ID=PTH.INST_ID AND\n" +
    " PE.EMPLOYEE_ID=PTH.EMPLOYEE_ID\n" +
    " INNER JOIN PERSON P ON\n" +
    " PE.INST_ID=P.INST_ID AND\n" +
    " PE.PERSON_ID=P.PERSON_ID\n" +
    " LEFT JOIN HR_EMPLOYEE_DEDUCTIONS_AND_BENEFITS_HISTORY DBH ON\n" +
    " PTH.INST_ID=DBH.INST_ID AND\n" +
    " PTH.CHECK_DATE=DBH.CHECK_DATE AND\n" +
    " PTH.CHECK_NO=DBH.CHECK_NO AND\n" +
    " PTH.EMPLOYEE_ID=DBH.EMPLOYEE_ID\n" +
    " LEFT JOIN HR_DEDUCTION_AND_BENEFITS DB ON\n" +
    " DB.INST_ID=DBH.INST_ID AND\n" +
    " DB.HR_DEDUCTION_AND_BENEFITS_CODE=DBH.HR_DEDUCTION_AND_BENEFITS_CODE\n" +
    " LEFT JOIN BATCH_QUEUE BQ ON\n" +
    " PTH.BATCH_QUEUE_ID=BQ.BATCH_QUEUE_ID\n" +
    " LEFT JOIN BATCH B ON\n" +
    " B.BATCH_CODE=BQ.BATCH_CODE\n" +
    " LEFT JOIN BATCH_PARAMETER BP ON\n" +
    " BQ.BATCH_QUEUE_ID=BP.BATCH_QUEUE_ID\n" +
    " AND BP.COLUMN_NAME = 'SUPPRESS_DIRECT_DEPOSIT'\n" +
    " WHERE PTH.CHECK_DATE >='{0}'\n" +
    " AND PTH.CHECK_DATE <='{1}'\n" +
    " and BQ.BATCH_CODE='BAT_PY_PAYCALC'\n" +
    " and bq.fy=2014\n" +
    " ORDER BY PTH.INST_ID\n" +
    ",PTH.EMPLOYEE_ID\n" +
    ",DBH.HR_DEDUCTION_AND_BENEFITS_CODE\n" +
    ",DBH.CHECK_DATE", startDateStr, endDateStr);
    SqlDataAdapter adapter = new SqlDataAdapter(SQL, connStr);
    DataTable dt = new DataTable();
    adapter.Fill(dt);
    jdweng
    Could you elaborate more on what this code does in general?
    Does it generate a table with the data between specified dates? If so, where is the table shown? 
    Where does one enter in the specified start and end dates on the Web Application? Do I have to create start and end date blanks and link them to the code for it to work?
    Sorry for the inconvenience - I'm just really new at this. Thanks!

Maybe you are looking for

  • SIDadm locked ??? by Background job! not sure...?

    Hi Folks, We are curretnly running on SAP SCM 5.0. <SID>adm user is getting locked by Kernel(KNL). As per the locked time of the user, it is losked around 10 PM by KNL and there are NO users in the system yet. As per our understanding it looks like <

  • Delivery Split for subcontract materials in ME20

    Hi Friends When I try to delivery multiple materials from the same PO through ME2O, they get split into multiple deliveries. Lets say I have selected about 4 materials in one transaction, I see that 3 materials go into one delivery, 1 material  go in

  • Hi. I need to change my Itunes Country from Singapore to India. Can anyone help me?

    Hi. I need to change my Itunes country from Singapore to India. Can anyone suggest me how to do that?

  • BB app world

    Hi, I have just brought a BB and have already activiated the BBM and internet wiht my service provider o2. I have created a BB id on my phone in order to start downloading apps but the problem i am having is that when try to sign in the message that

  • Opening brower with URL of file contained in WebStart cache

    Hi all, I've written a webstart application that needs to open a browser and show some help pages that are stored within the webstart cache. I'm using the BasicService.showDocument() method to open the browser. My problem is that I don't know how to