Validation on Date Field in tabular Report

Hi All,
I have manually created the Tabular report and in that I have TWO DATE field
1)Start Date
2)End Date
Now i want to put validation on start date as - Start Date Should Be More than sysdate.
and validation on End date as - End Date should be More taht Start Date.
How to put the validation ?

Manish Jha wrote:
What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
Thanks,
Manish
>What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
Thanks,
Manish
Hi manish ,
I have Used the following code to validate end date should be more less than start date;
DECLARE
l_error VARCHAR2 (4000);
BEGIN
IF TO_DATE(apex_application.g_f05 (i), 'DD-MON-YYYY ') > TO_DATE (apex_application.g_f04 (i),'DD-MON-YYYY'
THEN
l_error :=l_error
|| '</br>'
|| 'Row '
|| i
||' ,TEST';
END IF;
END LOOP;
RETURN LTRIM (l_error, '</br>');
END;
it's giving the error like :
ORA-06550: line 16, column 6: PLS-00103: Encountered the symbol "RETURN" when expecting one of the following: begin function pragma procedure The symbol "begin was inserted before "RETURN" to continue. ORA-06550: line 16, column 24: PLS-00103: Encountered the symbol "BEGIN"
Error ERR-1024 Unable to run "function body returning text" validation.
What to change in the code?
Edited by: N.K on Jun 23, 2009 11:43 PM

Similar Messages

  • Table for Valid To date field in C203 Tcode

    Let me know the table name for "Valid To Date" field in C203 transaction.
    Thanks,
    Angavai.E

    Hi Angavai,
    Check with table PLMW.
    Regards,
    Raghu

  • BAM Alerts - When a data field in a report meets specified conditions

    Hi ,
        Please find the below mentioned issue , which I am facing at the time of creating BAM alerts.
      I have created a data object, when i am creating the bam alert  [ create new alert --> create rule --> when i select an even " When a data field in a report meets specified conditions" and "When a data field in a data object meets specified conditions" then below in rule expression I am unable to edit the expression of  "this data fields has a specified condition of x".]
                          Appreciate your quick response.
    VAMSI.P

    Hi,
    I am having the same issue, and I am on IE9.  When I was on IE8 I had no problems.  Are you also on IE9
    Thanks
    Judy

  • Business partner change Valid From Date field

    How can I change the Valid From Date field in tables:
    BUT000
    BUT020
    BUT0BK
    BUT100
    Currently the of date of creation of the business partner is in this tables' Valid From field.
    In transaction BP the Address of the Business Partner is  valid from 01.01.1990 but still I get a warning that the business partner is not valid for date 01.11.2011.

    Sounds like the problem is the valid to date.  What is that date set to?

  • Using the same data field on a report

    Post Author: Lukey1972
    CA Forum: General
    Hi can anyone help me please? New to crystal reports and I have added the same Data field on a report being and I need to filter these one for Credits and the other for Debits. When I use Select Expert it effects both columns. I know that there is a logical way of doing this but being new have yet to be able to find it. Please help.

    Post Author: DHBelgium
    CA Forum: General
    Hi there,
    you can put a block filter on the data saying ex facturation is equal to c or to d leaving you only with credit or debit amounts.
    Are you using webi?
    Greetz,
    David

  • Set value for textarea field in tabular report

    Hi all,
    I need some help setting textarea values in a tabular report. The tabular report is for users to be able to build their own ad hoc report, by specifying which columns should be included and filtered. Here are the example tables:
    -- Table that holds all of the data for the report.
    create table vehicle (
      make varchar2(50),
      model varchar2(50),
      type varchar2(50),
      year number);
    insert into vehicle values ('Toyota','Camry','Sedan','2008');
    insert into vehicle values ('Toyota','4Runner','SUV','2008');
    insert into vehicle values ('Honda','Civic','Compact','2011');
    insert into vehicle values ('Honda','Accord','Sedan','2010');
    insert into vehicle values ('Ford','F150','Truck','2011');
    -- Table that holds the columns that are available to be filtered in report.
    create table vehicle_cols (
      col_id varchar2(50),
      col_label varchar2(50));
    insert into vehicle_cols values ('make','Vehicle Make');
    insert into vehicle_cols values ('model','Vehicle Model');
    insert into vehicle_cols values ('type','Vehicle Type');
    insert into vehicle_cols values ('year','Vehicle Year');
    -- Table that holds filters saved by user.
    create table vehicle_user_saved (
      saved_rpt_name varchar2(50),
      col_id varchar2(50),
      col_value varchar2(50));
    insert into vehicle_user_saved values ('Saved Report One','make','Toyota');
    insert into vehicle_user_saved values ('Saved Report One','make','Honda');
    insert into vehicle_user_saved values ('Saved Report One','model','Sedan');
    insert into vehicle_user_saved values ('Saved Report Two','make','Honda');
    insert into vehicle_user_saved values ('Saved Report Two','year',2010);And below is the source query for the region. The textarea value is initially set to null.
    -- Region Source for specifying query parameters.
    select
      col_label,
      apex_item.checkbox(1,'#ROWNUM#','CHECKED') as include_cols,
      apex_item.hidden(2,col_id)
      || apex_item.textarea(3,null,2,100) as filter_cols
    from
      vehicle_cols;When a user clicks the button to load the parameters for a report they have previously saved, I'd like to change the values in the textarea field from null to the saved values from the vehicle_user_saved table so the user can see the parameters and run the report, or modify the parameters if necessary.
    I thought I could run a PL/SQL process (After Footer) when the button is clicked to populate these textarea fields, but the test below doesn't do anything:
    begin
      apex_application.g_f03(1) := 'Hello';
    end;For example, when a user selects to load "Saved Report One," the following parameters should be loaded into the textarea fields:
    Column >> Filtered Columns
    Vehicle Make >> Honda, Toyota
    Vehicle Model >> Sedan
    Vehicle Year >> Null
    Vehicle Type >> NullCan someone help me out? I wouldn't think I need Ajax for this since it's ok to be processed after the button click. But if I do need to use Ajax, I definitely could use some help with it, as I've never used Ajax before. I've setup this example in my hosted account to help.
    Site: http://apex.oracle.com
    Workspace: MYHOSTACCT
    Username: DEVUSER1
    Password: MYDEVACCT
    Application: report parameters
    Thanks in advance!
    Mark
    APEX 4.1, Oracle 11g

    Hi, thanks for your response.
    I'm not adding any new rows, I'm just trying to change the values of the textarea fields in the tabular report when the user chooses to load his/her saved parameters. The default for the textarea field in all rows is null, because I assume users will want to start building the report from scratch. However, when the user clicks the button to load his/her saved values, I want to overwrite the null values with new values. How can I do that?
    Thanks,
    Mark

  • How do I apply filters or limit the rows on my report using a Date field in SQL report builder 3.0?

    I have a status of completed and a date field in the dataset. The date field is either empty or contains a date. All 2015 dates are holding dates.
    So how can I limit the report to only pull completed status with an empty date or a holding date?
    I have not been able to set an OR option on a date field filter and if I add two filters on the date column one for empty one for > 12/31/2014 then it treats it as an "and" and pulls nothing from the list I have in sharepoint.
    any help will be appreciated.

    Hi MB,
    In Reporting Services, the relationship of  filters is “And”, and there is no option to change the relationship from “And” to “Or”. While we can use “or” operator within the expression to create one filter to integrated all filters to work around this
    issue.
    We can add a filter as follows in the dataset to limit the rows in your report:
    Expression: =Fields!date.Value is nothing or Fields!date.Value>"12/31/2014"    Type: Boolean
    Operator: =
    Value: true
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Sending reports to various recipients using a data field on the report

    Hi,
    I am currently running Crystal Reports Server 2008 with SP 3  applied.
    I was wondering if this was possible.
    I have a report that I would like to be sent to an email address field on the table that the report runs from. Fields are something like this:
    Amount Due, Invoice #, Client's email address, Date
    What I would like CRS to do is send out emails depending on what's on the table. Obviously I would need the server to send out the report to a particular client with only the records that should be for them.
    I, for some reason, thought there was an ability to add a field from the report on the email itself using brackets or some sort of variable but I'm not sure if this is true.
    If anyone can help, I would appreciate it greatly.
    Thanks!

    You can use Publications for that. As far as I know this should be supported natively in CRS 2008 with SP3.
    Take a look at the demo on building a data-driver publication here:
    http://www.sap.com/solutions/sap-crystal-solutions/information-infrastructure/sapcrystalserver/featuresfunctions/index.epx
    You have to have CALs (concurrent access licenses) though.
    Regards,
    Stratos

  • Adding a Date Field to a Report Painter

    Hi,
    Could someone please throw light on adding a date field (for example, scheduled finish date of network) to a report painter report? I don't think this field (or any date field for that matter) is available as a characteristic for report painter.

    Hi Mahesh,
    i'm in the process of making a similar change,
    copying to a ZPROGRAM is not so difficult, but as i told you you have to add your new field to VBMTV structure, and copy the includes that you need to change,
    P.S. Note, when you copy you have to change some SELECT statements where
    it's selecting from T180V table based on sy-repid, you hav to change sy-repid to SAPMV75A, as there's some configuration done for this.
    Regards,
    Raghavendra

  • Validating a Date field in ADF which only contains a time

    Hi,
    I'm having problems in JDeveloper 10121 validating a "time" field in a jsp.
    * I have this field: <html:text property="InterviewTime" size="4" maxlength="4" />
    which is a date. I want the user to enter a date in 24 hour format. I.e. 0000 to 2400.
    * In my view object the interview time has a format of Simple Date (kkmm).
    * In the entity object this is a date column.
    If I submit with a valid date then it's fine. However if for example I enter 3333 and save I get a date parse error. The problem is where do I handle this?
    I added validation to the entity object but this only gets called when the date is valid (I imagine it is further on in the lifecycle?)
    I also added some regex to the onCommit method but again this gets called later in the lifecycle.
    Can anybody help?
    Thanks,
    Andy

    Frank,
    I can't use ADF Faces as I'm using 1012.
    I have a method validation on the entity object as shown below:
    public boolean validateInterviewTime()
    Date interviewTime = getInterviewTime();
    if ( interviewTime != null )
    LOG.info("Testing");
    SimpleDateFormat sd = new SimpleDateFormat("kkmm");
    String interviewTimeString = sd.format( getInterviewTime().getValue() );
    LOG.info("interviewTimeString"+interviewTimeString);
    if ( !Pattern.matches( "((0?[0-9]|1[0-9]|2[0-3])[0-5][0-9])", interviewTimeString ) )
    LOG.info("BAD");
    return false;
    else
    return true;
    However if the interview time is outside the range anyway (i.e. not between 0000 and 2359) then it will not even get as far as validating it as I get an invalid date exception called?
    So I need to catch it somewhere else.

  • Error in validation of Date Field

    Hi Experts,
    For my date field i assigned validation and is working properly.I could pop up the error message also.But my issue is, the entered wrong data is not getting deleted or cleared from the date field after validation.
    How i can clear the wrong data entered in field automatically?
    Please help me.
    Regards,
    Arun.

    Hello Arun,
    Can we use validate event for the same? Ideally it should cancel teh submit of the form.
    I am a using SAP Adobe Interactive forms using transaction SFP in ABAP Workbench and am trying to check the possible ways to apply validations (client side validations) to the form data. These forms are expected to get called from HCM Processes and Forms processes.
    Regards
    Rajeev

  • Data validation for Date Field in Web Dynpro ABAP

    Hi ,
    In my WDA i want to perform data validation for date filed. (i.e. While creating a new record i have to check the Start Date should be always lesser than End Date.)
    If u ll enter the wrong date it should validate the Date and throw an error message.
    Please Reply soon its urgent.
    Thanks,
    Deepika

    Hi,
    First read the two attributes start date and end date.
    Then write the following condition.
    IF item_start_date > item_end_date.
    Error message.
    Endif.
    For pop up error message you need to use Create_window method of the Interface if_wd_window.
    Thanks.

  • Date Fields in CN60 Report

    Hi,
    I need to have the Basic Start and Finish dates fields of the WBS elements in the CN60 Transaction. How to get the the dates fields?
    Regards

    Try using the dates field in the User fields tab. Make these fields mandatory. Any changes done to these fields will reflect in CN60. Alternatively you can discuss with your ABAPer if it is possible to populate these fields with the dates in Basic Start and Basic Finish fields maintianed in the Dates tab. Any changes done here will subsequently get populated in the dates filed in the user fields tab and will reflect in CN60.
    This is just a guess. Give it a try and revert.
    Regards,
    Gokul

  • Since Adobe Connect 9 hosted release missing filter date field in registration report tab

    Prior to the new version we use to do the below steps and get a Filter Reports option.  Now that option is missing.  Is there another way to pull this report?  Is this a bug and can be resolved?  Am I missing something?
    -Event Management
    -Shared Events
    -PREP Master 2011 1.0 (Name of our Main Folder)
    -Click on PREP Master (Cty.) 2011 1.0 (Name of on demand stored in main folder)
    --Reports
    -Filter Reports
    -Change Time, Later Time-One day behind time frame 12:00am start to 12:00am finished (Missing Date Filter)
    (Date should have remained the same from Training report, no need to filter date)
    -By Registrants (Attendance Report)(Missing Option/Replaced by Campaign Report)
    -Download Report Data
    If you go to the By Answers Tab you get the Filter Reports link.  If you go to pull Training reports you get the filter link.  But going to Event Management, locating the event, and then trying to pull a report on Registration does NOT give you filter reports like it use to.  We need this. 

    HI
    add that fileds in the all locations where you need it like
    in internal table declaration , write statement , select statement
    these are the main areas where you have to add that 2 fileds

  • Validation of data fields in the Excel through webdynpro java

    Hi all,
         I have requirement as below:
                  There are data fields in the Excel File which are mandatory.When we are uploading the Excel file through webdynpro java it should validate the  mandatory data fields are filled or not.Can anybody please send the required code or any related links.
    Thanks,
    Prakash.

    Hi Surya,
    As per my info, you need to upload the file first then only web dynpro will be able to check for the mandatory fields.
    Do this, while reading the buffer from the excel, just check the size of desired columns. Hope that will help.
    Best Regards
    Chander Kararia

Maybe you are looking for

  • Help with this div - can I overlap divs?

    Hello there, I used the search function to find an answer to this, but got nothing concrete so thought I should make this thread My problem is shown in the screenshots below. I created a div id for the banner, a div id for the button "home". There is

  • 2008 2.4GHz with WiFi problems

    Can anyone point me to an old discussion for the wifi card on the 2008 2.4GHz MacBookPro or point me in the right direction?  My wifi card keeps loosing connection and freezing my computer (black screen).  All the system preferences are already set t

  • "inspection lot stock" tab grey out

    Dear Gurus, I am facing subject problem while completing UD. In QA32, i have recorded results, then accepted the lot under "partially rejected" option. I want to post some of the stock qty to UR and rest to Blocked. But as all the fields are grey out

  • Can't Print to Trial Acrobat Professional

    I downloaded and installed an Acrobat Professional 30-day Trial version. It starts up but when I try to print to it, either from Word or using the startup icon, I get a message that I must activate it to print to it. But it appears activation require

  • Check value in select-options

    Hello, how can i check, if a certain value is in a select-option range, f.e. check if value '1000' is in s_matnr (s_matnr for mara-matnr) Thanks, TomSd