Crystal Report XI R2 Validate Start Date - End Date

Hi All,
I want to validate that Start Date is not greater than End Date.
Thanks,
Rick

Hello Raghavendra,
It's good to setup one parameter if take Range method.
But when we use any parament as range, then the parameter value can't be displayed in the report? (Blank)
Wonder if you can solve the printout of parameter value problem, then it's wonderful to use this kind of parameter, .... because the parameter input window will get shorten than the from-to parameters
Best regards,
Michelle

Similar Messages

  • Report for Validity Start and End Date in PO

    Dear All
    Is there any report where I can get PO validity start and end date which user input in addtional data header tab of PO?
    Regards
    Satish Kumar

    Hi,
    Yes, It is available standard report using T-code ME2N - Purchasing Document (PO) Per Document Number, enter the T-code and provide the following input data's are as follows.
    Scope of List                 :  ALV ( for Ms-Excel format report)
    Plant                               :   __________ to __________ (if required)
    Document Date              : ____________ to ___________ (if Required)
    Execute the report shown by default in excel format and if required PO validity start and end data, you have to select Change Layout button and open new window options screen right side field option as Validity Per.Start, Validity Period End, Commutative number field data's are selected and click <--- arrow button and then click bottom tick marked button. Now, the report shown your requirement.
    Hope, it is useful for you,
    Regards,
    K.Rajendran

  • URGENT REPORT START AND END DATE

    GUYZ help me how to generate a report with start date and end date, two text item or calendar rpresent start and end date, it will generate only the start to end date... plzz put the code guyss..
    this is my code when i call my report in runtime only in client server .. i want to generate it wit start and end date but dunno newbie ..
    Declare
    v_Rep varchar2 (30);
    repid report_Object;
    begin
    repid:=find_report_object('dept');
    v_rep:=run_report_object(repid);
    end;

    Check this sample Code..
    DECLARE
    pl_id ParamList;
    pl_name VARCHAR2(10) := 'repdata';
    BEGIN
    pl_id := Get_Parameter_List(pl_name);
    IF Id_Null(pl_id) THEN
    pl_id := Create_Parameter_List(pl_name);
    Add_Parameter(pl_id, 'P_STARTDATE', TEXT_PARAMETER,:BLK_CTRL.P_TODATE);
    Add_Parameter(pl_id, 'P_ENDDATE', TEXT_PARAMETER, :BLK_CTRL.P_CURRENCY);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    ELSE
    Destroy_Parameter_List( pl_id );
    END IF
    RUN_PRODUCT(REPORTS, 'D:\MMRROLDL.RDF' ,SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id ,NULL);
    END;

  • Report execution start and end date/time

    Hi All,
    How can one find execution start and end date/times for all reports? Basically I am looking to see what reports were run on a day, when and how long it took for each to complete.
    Thank you.
    Denis

    Hi,
    The "eul5_batch_reports" holds the data about the scheduled report and if you don't have any so you will not have any data.
    Take a look at "EUL5_QPP_STATS"
    for example:
    select
    qpp.qs_doc_name,
    qpp.qs_doc_details,
    fu.user_name Ran_by,
    qpp.qs_created_date Start_run,
    qpp.qs_doc_owner Doc_owner,
    qpp.qs_num_rows rows_fetch,
    qpp.qs_est_elap_time estimated_time,
    qpp.qs_act_elap_time Run_time,
    qpp.qs_act_cpu_time Cpu_time
    from eul_us.EUL5_QPP_STATS qpp,
    fnd_user fu
    where substr(qpp.qs_created_by,2,10)=fu.user_id
    order by qs_created_date

  • Error while updating reimbursements Journey start date / End date missing

    Dear All,
    From ESS employee requested for Reimbursement of LTA from Benifits & Payments - Reimbursements & Claims.
    There is 3 level approval process and got the approval for reimbursement. We maintained Earned leave record for 6 days  in 2001 - Absences infotype.
    But while running the report HRPBSIN_AC_INFU - Advanced Claims: Infotype Update Report system is giving the error Journey Start date / End date is missing.
    help me how can I solve this issue.
    System details: ECC 6.0 - EHP1 and SP 63.
    Portal Details: Netweaver 7.0
    Regards,
    Potru.

    Hi Sangu,
    See if the following notes help you:
    Error when calling API from SQL*Developer, eg. ORA-01403 in API OE_ORDER_PUB.PROCESS_ORDER (Doc ID 1054295.1)
    Cancellation Of Transfer Orders Is Not Possible - ORA-01403: no data found in Package OE_Order_PVT Procedure Process_Order (Doc ID 391307.1)
    Thanks &
    Best Regards,

  • How to change both start and end dates for an business event (or any object

    Hi all.
    We are in the case to change the validity dates for several business events in training management.
    The special point is that both, start and end date, have to be changed.
    In example, business event 00000001 is valid from 2010.01.01 to 2010.01.31 and shoud be "moved" from 2010.05.01 to 2010.05.31.
    So if i run RHBEGDA0 report to change start date first, it doesn't work propperly because new start date is bigger than old enddate.
    Next thing we thought is to change end date first, using RHGRENZ1, and then change the start date, with the report RHBEGDA0. Problem with this solution is that a business event duration shoud be calculated taking care of free days (weekends and day ofs).
    Is there any better solution for this?
    Thanks in advance for your help.
    Best regards.

    Hi,
    I gueass the best solution is to use PV1A t-code.
    You can write an LSMW for this t-code if the number of business events to be maintained is huge.
    Regards,
    Dilek

  • Reduce Working Days by Emp Start and End Dates

    I'm banging my head trying to get this working. The set-up:
    DimResources table with various employee information including a Start and End Date.
    A Calendar table with FullDate, Year, Quarter....WorkingDays (1 for working and 0 for non-working) and WorkingDayNumber (working days increased by 1, weekends are not).
    Page View report with page view filters for Business, Role, Month, Week, Year.
    In the calculation the denominator is total working days for the period * 8. Works great. Further reduced by any submitted time off. Again, so far so good. The part I'm having trouble with is trying to further reduce total working days by
    the number of days the person wasn't available in a month, defined by the person's start or end date.
    The calculated field works great when only 1 person is selected. As soon as more than 1 person is selected or the slicer is cleared, an error is thrown.
    Any ideas on what is wrong or better ways to accomplish what's needed?
    TotalWorkingDays2CF=CALCULATE
     SUM(Calendar[WorkingDays]),
                    FILTER(Calendar,Calendar[WorkingDays]=1),
                    Calendar, DATESBETWEEN(Calendar[FullDate],SUM(DimResources[Start Date]),SUM(DimResources[End Date]))
    Error:
    <detail>
      <ErrorCode>rsErrorExecutingCommand</ErrorCode>
      <Message>Query couldn't run for dataset 'Tablix41DataSet'.</Message>
      <ProductName>Power View</ProductName>
      <ProductVersion>11.0.2150.3</ProductVersion>
      <MoreInfo>MdxScript(Model) (10, 27) Calculation error in measure 'Calendar'[TotalWorkingDays2CF]: An invalid numeric representation of a date value was encountered.</MoreInfo>
    </detail>
    Dennis DeRobertis

    ok, but this is not a running total but just a sub-total/grand-total
    so what you can do is the following:
    create two measures - first calculate the workdays per ressourcen and second use SUMX() to get the sub-/grand-total if multiple employees are selected (e.g. subgroups, groups,division, etc)
    WorkdaysRessource:=CALCULATE(
    COUNTROWS('Date'),
    FILTER('Date',
    'Date'[Date] >= CALCULATE(MIN('DimResources'[Start Date]))
    && 'Date'[Date] <= CALCULATE(MIN('DimResources'[End Date])))
    Workdays:=CALCULATE:=SUMX(
    'DimResources',
    [WorkdaysRessource]
    hth,
    gerhard
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Effective start and end dates for a compensation workbench plan

    Hi all,
    We are having a requirement where we want to get the data respective to current plan for reporting purposes. What i have noticed is there is no such thing as effective_start_date and effective_end_date directly in all the cwb tables.
    The different dates we are looking at to capture the data are
    enrt_perd_start_dt and enrt_perd_end_dt
    upd_strt_dt and upd_end_dt
    within_yr_strt_dt and within_yr_end_dt
    But we have same plan with different enrollment period and start dates. We are planning to use max(data_freeze_date or lf_evt_occrd_dt) to get
    the records.
    select max(nvl(bcpdx.data_freeze_date, bcpdx.lf_evt_ocrd_dt))
    from ben_cwb_pl_dsgn bcpdx
    where bcpdx.pl_id = p_pl_id)
    Catch with this is, We have 62 business groups off which only 50 might run the plan next year and ohters might not. in that case it will also return data for all the BG's including the 12 BG's where plan has not been run for that year.
    Any suggestions or help will greatly be appreciated.
    Thanks
    Hari

    Hi Ankush,
    I am also of the same opinion. Start and end dates can probably be enforced by a policy condition in AM but would lead to proliferation of policies as we would end up creating policies per role entitlement duration for a user.
    Any thoughts on whether the sunrise/sunset concept of Identity Manager can be used for this requirement.
    Thanks,
    Srinivas

  • SAP CRM Tables and Fields for Contract start and End dates

    Hi Experts,
    Please Provide me SAP CRM Tables and Field names for the below.
    SAP CRM Contracts start date and End date
    SAP CRM Conditions(PROO, K007 etc....) records start and End Date.
    Thanks and Regards,
    Teja

    correction
    10 Replies Latest reply: 24 May, 2013 8:38 AM by nishant Vasudev  
    Tweet
    SAP CRM Tables and Fields for Contract start and End dates
    This question has been Answered.
    Teja Dhar 12 Oct, 2009 8:03 PM  
    Currently Being Moderated
    Hi Experts,
    Please Provide me SAP CRM Tables and Field names for the below.
    SAP CRM Contracts start date and End date
    SAP CRM Conditions(PROO, K007 etc....) records start and End Date.
    Thanks and Regards,
    Teja
    Correct Answer by Sreekantha Gorla  on Oct 22, 2009 8:22 PM
    Hi,
    dates will be stores in the table 'SCAPPTSEG'.
    I double checked it. This table stores all the date types of one order transactions...
    The relationship is as follows..
    CRMD_ORDERADM_H- guid = crmd_link-guid_hi
    crmd_link-guid_set = SCAPPTSEG-APPL_GUID.
    Thanks and regards,
    Sreekanth
    <:footer>See the answer in context
    6281 Views
    Topics: Customer Relationship Management
    Reply
    Average User Rating
    0
    (0 ratings)
    My Rating:
      Rating Saved!
    Comment on your rating
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Robert Jesionowski 14 Oct, 2009 2:23 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi, 
    you should try with FM: CRM_DATES_READ_SINGLE_OB or CRM_DATES_READ_DB.
    There is something in table SCAPPT and SCGENAPPT.
    Regards, R
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Teja Dhar 22 Oct, 2009 5:30 PM (in response to Robert Jesionowski)  
    Currently Being Moderated
        Hi Robert, 
    I am not able to find contract start date and End dates in the tables SCAPPT and SCGENAPPT.
    Can you suggest some relevant tables.
    Best Regards,
    Teja
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Sreekantha Gorla 22 Oct, 2009 2:35 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi, 
    Table SCAPPTSEG stores the contract start and end dates.
    Thanks,
    Sreekanth
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Teja Dhar 22 Oct, 2009 5:32 PM (in response to Sreekantha Gorla)  
    Currently Being Moderated
        Hi Sreekanth, 
    I am not able to find contract start date and End dates in the table SCAPPTSEG.This is for appointments.
    Can you suggest some relevant tables.
    Best Regards,
    Teja
    Report Abuse
    Like (0)
    Reply
    Correct AnswerRe: SAP CRM Tables and Fields for Contract start and End dates
    Sreekantha Gorla 22 Oct, 2009 8:22 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi, 
    dates will be stores in the table 'SCAPPTSEG'.
    I double checked it. This table stores all the date types of one order transactions...
    The relationship is as follows..
    CRMD_ORDERADM_H- guid = crmd_link-guid_hi
    crmd_link-guid_set = SCAPPTSEG-APPL_GUID.
    Thanks and regards,
    Sreekanth
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Wim Olieman 23 Oct, 2009 9:12 AM (in response to Sreekantha Gorla)  
    Currently Being Moderated
        Hi, 
    I can tell you where the pricing records are saved, replicated from ECC.
    The data from ECC table Axxx (e.g. A304) is replicated to CRM table
    CNCCRMPRSAPxxx (e.g. CNCCRMPRSAP304).
    Here you can find fields TIMESTAMP_TO and TIMESTAMP_FROM.
    About the dates: what Sreekantha Gorla stated, about table 'SCAPPTSEG' is correct.
    What might help is to execute program "CRM_ORDER_READ". Here you can find
    the relevant entries also.
    regards,
    Wim
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    Teja Dhar 23 Oct, 2009 4:59 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi Experts, 
    Thanks a lot for your support.My problem got resolved.
    Best Regards,
    Teja
    Report Abuse
    Like (0)
    Reply
      Re: SAP CRM Tables and Fields for Contract start and End dates
    rajesh gadamsetty 27 Nov, 2009 12:29 PM (in response to Teja Dhar)  
    Currently Being Moderated
        Hi Teja 
    Please let me know how you got the dates. i got the same requirement
    Report Abuse
    Like (0)
    Reply
    Correction on above mail.
    Hi Sanjay,
    Can you please help me to find the contract st art date and end date fetching from the table as below
    ITEM DATES:
    Select guid_set from table CRMD_LINK where guid_hi              =  CRMD_ORDER_I-GUID AND
                                                                              OBJTYPE_HI     =  '06'
                                                                              OBJTYPE_SET  =  '30'.
    Select * from SCAPPTSEG where APPL_GUID = guid_set.
    as from the table scapptseg has some unusal fields which fields to select to get the start date and end date and on what condition and isuppose we need to convert als the same
    pls suggest further on same
    regards
    Arora

  • Need start date & end date for MMYYYY

    HI ,
    I need to find start date & end date of MMYYYY.
    Is there any FM to do this??
    thanks
    Moderator comments: 1st warning.
    Pl read the rules of engagement & [Date questions not allowed|/thread/1360534 [original link is broken];
    Awarded points are unassigned & the thread is locked.
    Edited by: Suresh Datti on Aug 6, 2009 4:14 AM

    Hi Karthik,
    Try this way.
    REPORT ZTEST_NOTEPAD.
    PARAMETERS :p_month(2) type n,
                p_year(4)  type n.
    data:first_day LIKE  VTBBEWE-DVALUT,
         last_day  type datum,
         days(2)   TYPE c.
    "First date of the month
    CONCATENATE p_year p_month '01' INTO first_day.
    CALL FUNCTION 'END_OF_MONTH_DETERMINE_2'
      EXPORTING
        i_datum        = first_day
    IMPORTING
       E_TT           = days.
    "Last date of the month
    CONCATENATE p_year p_month days INTO last_day.
    WRITE:/ first_day,
          / last_day.
    Thanks
    Venkat.O

  • 0Person to 0employee loading, how to handle start and end date

    Hi
    I need help on some basic understanding of time dependent master data object.
    In my scenario i am loading 0employee and 0Person from R/3. I need to update 0employee from 0person.
    0employee
    BEGDA            ENDDA             PERNR        Position....................So many fields
    10.10.2001     10.10.2004        8000123    Associate
    11.10.2004     10.10.2008        8000123    Consultant
    11.10.2008     31.12.9999        8000123    Senior Consultant
    0Person
    BEGDA            ENDDA             PERNR         City....................So many fields
    10.10.2001     10.10.2003        8000123      Singapore
    11.10.2003     10.10.2007        8000123      Tokyo
    11.10.2007     31.12.9999        8000123      Newyork
    As the begining and end date are different i can't simply read City from 0person into 0employee. If i go for checking the city for the start and end date in 0employee, i will get multiple records ( If try to get city for 0employee's first record, i will get 2 city Singapore and Tokyo).
    Please help me out how to handle this ...... i think i am missing somelink somewhere
    Thanks
    Tripple k

    Hi Srini
    Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
    Thanks
    Tripple k

  • How to retrieve start and end date values from sharepoint 2013

    Hi,
    How to retrieve start and end date values from new event form of calendar in SharePoint foundation2013
    Thanks
    Gowri Balaguru

    Hi Srini
    Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
    Thanks
    Tripple k

  • Open capacity -start date & end date in cprojects

    Hello,
    In cProject,system will show the open capacity for the resource but system will not show start date & end date of open capacity
    how i can find start date & end date for open capacity
    E.g. If Resource XYZ is staff from 01.11.2010 to 12.11.2010 & same resource is not allocated from 13.11.2010 to 20.11.2010
    Also Resource XYZ is staff from 21.11.2010 to 30.11.2010 on other project
    Here system will calculate open capacity but not showing date for open capacity
    Regards
    Ravindra

    Dear:
    Try my code.
    REPORT  ZPRO_GET_RESOURCE_LIST.
    TABLES DPR_PROJECT.
    SELECT-OPTIONS: S_PROID FOR DPR_PROJECT-PROJECT_ID.
    DATA: GT_DATA TYPE DPR_TT_XML_PROJECTS_TYPE.
    DATA: GS_DATA LIKE LINE OF GT_DATA.
    **Output table
    DATA: BEGIN OF ITAB OCCURS 0,
            PROJECT_ID       TYPE DPR_TV_PROJECT_ID,         "project id
            DESCRIPTION_DPO  TYPE DPR_TV_NAME,               "
            BU_PARTNER       TYPE      BU_PARTNER,           "
            FULL_NAME        TYPE BU_NAME1TX,                "
            SCHEDULED_START  TYPE  DPR_TV_SCHEDULED_START,   "
            SCHEDULED_FINISH TYPE     DPR_TV_SCHEDULED_FINISH,   "
          END OF ITAB.
    DATA: PROJECT_ID TYPE DPR_TV_PROJECT_ID OCCURS 0 WITH HEADER LINE.
    DATA: GS_ROLE TYPE DPR_TS_XML_PROJECT_ROLE_TYPE.
    DATA: DPR_TV_PROJECT_ID TYPE DPR_TV_PROJECT_ID.
    DATA: GS_ASGM TYPE DPR_TS_XML_RES_ASSGNMNT_TYPE.
    DATA: GS_RERS TYPE DPR_TS_XML_RESOURCE_TYPE.
    TYPE-POOLS SLIS.
    DATA: L_WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
          L_WA_LAYOUT TYPE SLIS_LAYOUT_ALV,
          IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    SELECT PROJECT_ID INTO TABLE PROJECT_ID FROM DPR_PROJECT WHERE PROJECT_ID IN S_PROID.
    LOOP AT PROJECT_ID INTO DPR_TV_PROJECT_ID.
      CLEAR: GT_DATA,GT_DATA[].
      CALL FUNCTION 'DPR_GET_PROJECT_XML'
       EXPORTING
    *   IV_PROJECT_GUID         =
         IV_PROJECT_ID           = DPR_TV_PROJECT_ID
       IMPORTING
         ET_PROJECTS             = GT_DATA
    *   EV_XML                  =
       EXCEPTIONS
         PROJECT_NOT_FOUND       = 1
         OTHERS                  = 2
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT GT_DATA INTO GS_DATA.
        CLEAR ITAB.
        ITAB-PROJECT_ID = GS_DATA-PROJECTDATA-NUMBER.
        ITAB-DESCRIPTION_DPO = GS_DATA-PROJECTDATA-DESCRIPTION.
        LOOP AT GS_DATA-PROJECT_ROLES INTO GS_ROLE.
          ITAB-DESCRIPTION_ROL = GS_ROLE-PROJECT_ROLE_DATA-DESCRIPTION.
          LOOP AT GS_ROLE-RESOURCE_ASSIGNMENTS INTO GS_ASGM .
            LOOP AT GS_DATA-RESOURCES INTO GS_RERS WHERE BU_PARTNER = GS_ASGM-BU_PARTNER.
              ITAB-BU_PARTNER = GS_RERS-BU_PARTNER.
              ITAB-FULL_NAME = GS_RERS-FULL_NAME.
              ITAB-SCHEDULED_START = GS_ASGM-SCHEDULED_START.
              ITAB-SCHEDULED_FINISH = GS_ASGM-SCHEDULED_FINISH.
              APPEND ITAB.
            ENDLOOP.
          ENDLOOP.
        ENDLOOP.
      ENDLOOP.
    ENDLOOP.
    *Assigning Values
    L_WA_LAYOUT-ZEBRA = 'X'.
    L_WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    *** Field cat
    L_WA_FIELDCAT-FIELDNAME = 'PROJECT_ID'.
    L_WA_FIELDCAT-SELTEXT_L = 'Project Number' .
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'DESCRIPTION_DPO'.
    L_WA_FIELDCAT-SELTEXT_L = 'Project Name'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'DESCRIPTION_ROL'.
    L_WA_FIELDCAT-SELTEXT_L = 'Role'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'BU_PARTNER'.
    L_WA_FIELDCAT-SELTEXT_L = 'BP Number'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'FULL_NAME'.
    L_WA_FIELDCAT-SELTEXT_L = 'Resource Name'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'SCHEDULED_START'.
    L_WA_FIELDCAT-SELTEXT_L = 'Start Date'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    L_WA_FIELDCAT-FIELDNAME = 'SCHEDULED_FINISH'.
    L_WA_FIELDCAT-SELTEXT_L = 'End Date'.
    APPEND L_WA_FIELDCAT TO IT_FIELDCAT.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = SY-REPID
    *     I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
       IS_LAYOUT                         = L_WA_LAYOUT
       IT_FIELDCAT                       = IT_FIELDCAT
       I_SAVE                            = 'A'
    *     IT_EVENTS                         = IT_EVENT
      TABLES
        T_OUTTAB                          = ITAB
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Getting error while invoking ADF Start and End Dates

    Hi,
    I am new to developing ADF Application.
    Into :
    I am developing a search Page which has a select (drop down), startDate and endDate and a 'GO' Button
    when user selects 'data from Drop Down', selects startDate and endDate and Presses 'GO' Button
    Based on the Selected combination of Data i should get the Data.
    Problem :
    I am getting the following Error
    WARNING: JBO-25058: Definition TheStartDate of type Variable not found in FastTelcoQueryTransactionDetailsVO1
    What i have done / doing
    Jspx -
    <af:selectInputDate label="Start Date" value="#{FastTelcoTransactionBean.startDate}"></af:selectInputDate>
    <af:selectInputDate label="End Date" value="#{FastTelcoTransactionBean.endDate}"></af:selectInputDate>
    Bean File
    I am converting the this.startDate and this.endDate (both Date format) (which i have taken startDate & endDate as Dates and Generated Getters & Setters for them ) to String format.
    DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(this.startDate);
    map.put("_startDate", startDate);
    map.put("_endDate", endDate);
    VOImpl File
    public void getTransStartEndDate(Number transTypeId, String startDate, String endDate)
    TransactionDetailsVOImpl QueryVO = getQueryTransactionDetailsVO1();
    QueryVO.setNamedWhereClauseParam("MstTransTypeId", transTypeId);
    QueryVO.setNamedWhereClauseParam("TheStartDate",_startDate);
    QueryVO.setNamedWhereClauseParam("TheEndDate",_endDate);
    QueryVO.executeQuery();
    BindVariables Used
    TheStartDate - String format
    TheEndDate - String format
    SQL Query in VOIMPL - JDEV
    SELECT DISTINCT
    TransactionDetail.TRANS_TYPE_ID,
    MstTransaction.TRANS_DESC,
    TransactionDetail.TRANSACTION_NUMBER,
    TransactionDetail.CREATOR_NAME,
    TransactionDetail.CREATOR_EMAIL,
    TO_CHAR(TransactionDetail.TRANS_DATE, 'MM/DD/YYYY hh:mm:ss') TRANS_DATE,
    Error.ERROR_SH_MSG,
    Error.ERROR_DETAIL_MSG
    FROM
    TRANSACTION_DETAIL TransactionDetail,
    MST_TRANSACTION MstTransaction,
    ERROR Error
    WHERE
    (TransactionDetail.TRANS_TYPE_ID = MstTransaction.TRANS_TYPE_ID)
    AND (TransactionDetail.ERROR_ID = Error.ERROR_ID)
    AND MstTransaction.TRANS_TYPE_ID=(:MstTransTypeId)
    AND MstTransaction.IS_NOTIFICATION_REQ='Y'
    AND TransactionDetail.TRANS_DATE BETWEEN (TO_DATE((:TheStartDate), 'MM/DD/YYYY')) AND (TO_DATE((:TheEndDate), 'MM/DD/YYYY'))
    order by TRANS_DATE
    NOTE : TheStartDate & TheEndDate are not in Attribute list of JDEV
    i think i made it clear ...
    anybody as a solution or Idea please provide
    Thanx in advance
    regards,
    anvv sharma

    Hi,
    I have started developing the code with the following SQL Query -
    Query 1
    SELECT DISTINCT
    TransactionDetail.TRANS_TYPE_ID,
    MstTransaction.TRANS_DESC,
    TransactionDetail.TRANSACTION_NUMBER,
    TransactionDetail.CREATOR_NAME,
    TransactionDetail.CREATOR_EMAIL,
    TO_CHAR(TransactionDetail.TRANS_DATE, 'MM/DD/YYYY hh:mm:ss') TRANS_DATE,
    Error.ERROR_SH_MSG,
    Error.ERROR_DETAIL_MSG
    FROM
    TRANSACTION_DETAIL TransactionDetail,
    MST_TRANSACTION MstTransaction,
    ERROR Error
    WHERE
    (TransactionDetail.TRANS_TYPE_ID = MstTransaction.TRANS_TYPE_ID)
    AND (TransactionDetail.ERROR_ID = Error.ERROR_ID)
    AND MstTransaction.TRANS_TYPE_ID=(:MstTransTypeId)
    After that there is a change in the Requirement to add "Start Date" and "End Date" with a "Go Button" --> Clicking on this Go Button displays the Data Based on
    "Drop Down" box, "Start Date" & "End Date" --> Corresponding Data is Picked From Database and Displayed....
    Now, i have Updated the VO (From JDEV Design Time) with the latest Updated Query (added Start Date and End Date in the Query),
    also check the Corresponding XML file is also Updated with the latest Query.
    Query 2
    SELECT DISTINCT
    TransactionDetail.TRANS_TYPE_ID,
    MstTransaction.TRANS_DESC,
    TransactionDetail.TRANSACTION_NUMBER,
    TransactionDetail.CREATOR_NAME,
    TransactionDetail.CREATOR_EMAIL,
    TransactionDetail.TRANS_DATE,
    Error.ERROR_SH_MSG,
    Error.ERROR_DETAIL_MSG
    FROM
    TRANSACTION_DETAIL TransactionDetail,
    MST_TRANSACTION MstTransaction,
    ERROR Error
    WHERE
    (TransactionDetail.TRANS_TYPE_ID = MstTransaction.TRANS_TYPE_ID)
    AND (TransactionDetail.ERROR_ID = Error.ERROR_ID)
    AND MstTransaction.TRANS_TYPE_ID=(:MstTransTypeId)
    AND MstTransaction.IS_NOTIFICATION_REQ='Y'
    AND TransactionDetail.TRANS_DATE BETWEEN (TO_DATE((:TheStartDate), 'YYYY-MM-DD')) AND (TO_DATE((:TheEndDate), 'YYYY-MM-DD')) order by TRANS_DATE
    So now at Design Time i have Query 2, but Strangely at RUN Time Query 1 is Excecuting asking for "Start Date" Binding Variable NOT Found (as there is no Start Date Bind Variable in Query 1)
    for this i have to re-Design the required Part...to make it work
    can any body explain why it behaved like this ??
    regards,
    anvv sharma

  • SNP Planned order start and end dates are not calculated correctly

    Hello SNP Guru's
    The SNP planned orders generated after the Heuristics run, have a start and end date based on the Activity Duration (Fixed), while the resource consumption is based on the Bucket Consumption (Variable), which is correct.
    The Activity Duration (Fixed) is based on the BOM Base Quantity. So if the Activity Duration = 1 day, and if the order quantity is more than a day, the start and end dates, still shows as 1 day. So no matter what is the order quantity, the start and end dates is always = 1 day.
    Does anyone have any experience in implementing any code to change the start and end dates on SNP Planned Order?
    Seems like it should work as standard.
    Am i missing something?
    Thanks,
    Mangesh

    Dear Mangesh,
    SNP is a infinite planning tool. If you have defined fixed duration to be 1 DAY in the activity, no matter how many quantity you input for your planned order, the order will last for one day. If the resourced is overloaded, you then run capacity levelling to
    banlance the capacity. What your expected beahavior happens in PPDS planning.
    Claire

Maybe you are looking for