Any function to check the input value is integer?

May I know if there's any function to check the input value is integer in Form 4.5?
Thanks.

just to add :) - (couldn't resist) :
create or replace function is_integer ( p_number in varchar2 ) return boolean is
  v_return boolean := true;
  v_number number;
begin
  v_number := p_number;
  if v_number != trunc(v_number) then
    v_return := false;
  end if;
  return v_return;
exception
  when others then
    v_return := false;
    return v_return;
end;
begin
  if not is_integer(1.1) then
    dbms_output.put_line('is not');
  end if;
  if is_integer(1) then
    dbms_output.put_line('is');
  end if;
  if not is_integer('a') then
    dbms_output.put_line('is not');
  end if;
end;

Similar Messages

  • I am facing error while running Quickpay in Fusion payroll that "The input value Periodicity is missing for element type KGOC_Unpaid_Absence_Amount. Enter a valid input value". Any idea?

    I am facing error while running Quickpay in Fusion payroll that "The input value Periodicity is missing for element type KGOC_Unpaid_Absence_Amount. Enter a valid input value". Any idea?

    This is most probably because the Periodicity input value has been configured as "Required" and no value has been input for it.
    Please enter a value and try to re-run Quick Pay.

  • Is there any function to check whether table exist in the dictionary

    In the program, i want to dynamicly check whether the table exists in the dictionary, and return the result to me.

    hi
    good
    i dont think there is any such function to check the presence of the table.
    bcz you can check it directly in se11 rather than using any function.
    thanks
    mrutyun^

  • How can i pass the Input value to the sql file in the korn shell ??

    Hi,
    How can i pass the Input value to the sql file in the korn shell ??
    I have to pass the 4 different values to the sql file and each time i pass the value it has to generate the txt file for that value like wise it has to generate the 4 files at each run.
    can any one help me out.
    Raja

    Can you please more elaberate., perhaps you should more elaberate.
    sqlplus is a program. you start it from the korn shell. when it's finished, processing control returns to the korn shell. the korn shell and sqlplus do not communicate back and forth.
    so "spool the output from .sql file to some txt file from k shell, while passing the input parameters to the sql file from korn shell" makes no sense.

  • How to check the whole values of a set of map exist in the vector of map?

    Hi Friends!
    I have a set of map; map<int, set<int>>myset;
    and a vector of map; map<int,vector<int>>myvec;
    myset contains;
    1=>11  16  30
    3=>2  11
    6=>2
    7=>9  12  16
    8=>9  13  16
    myvec contains;
    1=>11  15  21
    2=>16
    3=>11  16
    4=>2  13
    5=>11  16  30
    6=>9  5  10
    First, the first value of myset(11  16  30) will be checked with all the values of myvec, if the whole value(11  16  30) available at certain value in the myset, then it gives the key of myvec. So, the output for the first value is 5.
    Next, if you consider the value (2  11) in the myset, there are no matching values that contains whole 2  11 in the particular value in myvec. Therefore, what we do is, delete the last value of the current set, that is 11, and now consider 2 as
    the value and find the matching value from myvec. That is (2  13) and the key is 4.
    Like wise when we find the first possible match, then we print the key of myset immediately, there may be some other possible values available in the values of myset.
    I have written two functions that check the particular whole values of the myset matched with a particular values in myvec.
    bool IsValueInVec(int value, const IntVec& v2)
    IntVec::const_iterator itv=find (v2.begin(), v2.end(), value);
    if (itv!=v2.end())
    return true;
    return false;
    bool AreAllValuesInVec(const IntSet& s1, const IntVec& v2)
    for(set<int>::const_iterator sit=s1.begin();sit!=s1.end();++sit)
    if (!IsValueInVec((*sit), v2))
    return false;
    return true;
    Could anyone help me to solve this?

    You have neither a set of map nor a vector of map.  You have two maps.  Each contains keys of type int.  The mapped values of one are of type set<int>.  The mapped values of the other are of type vector<int>.  If
    you don't understand the types of the objects you are using, you will never be able to use them properly.
    Help you solve what?  Do the two functions you wrote perform as desired?  If not, provide a complete description of how what they do differs from what you want.
    Somewhere in code you have not shown, you need to call AreAllValuesInVec for a particular set and vector.  If this function returns false and if the set contains more than one element, you need to delete the last element of the set and try again. 
    If the set contains only a single element, you need to perform some "failure" processing that you have not described.  When the function returns true, you need to print the key of the map element which contains the vector.  What are you
    having trouble with?

  • How to Check the total value of a field

    Hi,
    I want to check the total value of a field (this total is obtain by using property of that field thru personalization).
    that means , in a table 3 columns are there (col 1, col2 & col3). I personalized the total property as true for col3.
    now i'm getting the total for that field.
    I want to check that total whether it crossed 100 or not.
    How to do this?
    Thanks in advance,
    SAN

    Hi San,
    You can achieve by using OATotalRowBean, search for OATotalRowBean in this forum you should be able to get some sample code.
    public class OATotalRowBean
    extends TotalRowBean
    implements OAWebBean, OAWebBeanConstants
    A special row rendered at the bottom of a table which lets users see totals for columns which are designated for summing.
    Note The total is calculated and displayed only for visible rows.
    When you indicate that you want to total one or more columns, the OA Framework creates an OATotalRowBean and designates it as the columnFooter named child of the OATableBean. If the OATableBean is also configured to insert rows (so it has an "Add Another Row" button), then the total bean becomes an indexed child of the add table row bean (see OAAddTableRowBean), which the OA Framework in turn designates as the table's columnFooter object.
    If you need to access the table's column footer object for any reason, call the OATableBean's getColumnFooter() method. If row insertions are enabled, this method returns an OAAddTableRowBean; otherwise it returns an OATableRowBean.
    For detailed information about creating and working with tables, see OA Framework Developer Guide: Tables.
    With regards,
    Kali.
    OSSi.

  • Function module to validate input value

    Hi all,
    can you please provide me the name of the function module to validate input value.
    I have a case where i have to validate decimal values. sometimes users may enter wrong decimal values by mistake instead of  "0.23" "0..23' and it gives CONVT_NO_NUMBER runtime error so have to come up with some solutions to validate user input.
    Please provide me Function module if anybody knows.
    Thanks,

    Try this one
    data: lv_htype TYPE dd01v-datatype.
        CALL FUNCTION 'NUMERIC_CHECK'
          EXPORTING
            string_in = my_number
          IMPORTING
            htype     = lv_htype.
        IF lv_htype NE 'NUMC'.
           Raise an error here...
        ENDIF.

  • Function to return the Entry Value based on Assignment, Element and Date

    Hi Guys,
    Is there a function that returns the Entry Value for the Assignment Element, based on the Assignment Number, Element Name, Entry Segment and the End of Period date?
    Example:
    ==============
    Input Parameters:
    Employee: Iana
    Assignment Num: 123
    Element: D480
    Element Entry: Fund Name
    Output Parameter:
    Element Entry Value: MLC Super Fund
    Thanks,
    Iana

    For element entry values you can use:
    select petf.element_name, nvl(peevf.screen_entry_value,0) screen_entry_value
    from
    pay_element_entries_f peef, pay_element_types_f petf,
    pay_element_entry_values_f peevf, pay_input_values_f pivf,
    per_all_assignments_f paaf
    where petf.element_type_id = peef.element_type_id
    and :p_date_earned between pivf.effective_start_date and pivf.effective_end_date
    and :p_date_earned between petf.effective_start_date and petf.effective_end_date
    and peevf.input_value_id = pivf.input_value_id
    and paaf.assignment_id = peef.assignment_id
    and petf.business_group_id = :p_business_group_id
    and peevf.element_entry_id = peef.element_entry_id
    and :p_date_earned between peef.effective_start_date and peef.effective_end_date
    and :p_date_earned between peevf.effective_start_date and peevf.effective_end_date
    and :p_date_earned between paaf.effective_start_date and paaf.effective_end_date
    and pivf.name = :p_input_value_name
    and petf.element_name = :p_element_name
    and peef.entry_type = 'E'
    and peevf.effective_start_date = peef.effective_start_date
    and peevf.effective_end_date = peef.effective_end_date
    --and peef.assignment_id = :p_assignment_id
    and paaf.assignment_number = :p_assignment_number;
    For payroll results you can use:
    select sum(prrv.result_value)
    from pay_run_results prr, pay_run_result_values prrv,
    pay_assignment_actions paa, pay_payroll_actions ppa,
    pay_element_types_f petf, pay_input_values_f pivf,
    per_all_assignments_f paaf, per_all_people_f papf
    where
    petf.element_type_id = pivf.element_type_id
    and :p_pay_date between petf.effective_start_date and petf.effective_end_date
    and :p_pay_date between pivf.effective_start_date and pivf.effective_end_date
    and paa.assignment_action_id = prr.assignment_action_id
    and petf.element_type_id = prr.element_type_id
    and ppa.payroll_action_id = paa.payroll_action_id
    and prrv.input_value_id = pivf.input_value_id
    and prr.run_result_id = prrv.run_result_id
    and petf.element_name = :p_element_name
    and pivf.name = :p_input_value_name
    and ppa.date_earned = :p_pay_date
    and papf.person_id = paaf.person_id
    and nvl(prr.start_date,ppa.effective_date) between paaf.effective_start_date and paaf.effective_end_date
    and nvl(prr.start_date,ppa.effective_date) between papf.effective_start_date and papf.effective_end_date
    and paaf.assignment_id = paa.assignment_id
    and papf.employee_number = :p_employee_number;

  • Is there any function module to give absolute value of a number?

    Hi,
    Is there any function module to give absolute value of a number?
    That has similar functionality to the Built in Function ABS.
    Please let me know.
    Thanks,
    cs

    hi,
    why are you looking for any function module.
    You can easily get it by mathematical function ABS .
    Syntax : <Turget Variable> = ABS <Source Variable>
    \[removed by moderator\]
    Anirban Bhattacharjee
    Edited by: Jan Stallkamp on Jun 27, 2008 4:19 PM

  • UDF to check the amount value

    Hi
    I have a scenario where i have to check the amount value sholuld be greater than Zero or not, if it is not greater than zero i have to raise an exception and skip that record ..
    i wanna do that using UDF..How we do that
    venkat

    Hi paul
    I need to Import Any Java packages .
    It s giving Error :
    Source code has syntax error:  /usr/sap/D06/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map08e7dc10452d11dcb4a1e210bc394725/source/com/sap/xi/tf/_MM_ACEAwardInformation_to_TaxBalances_.java:113: operator > cannot be applied to java.lang.String,int if(Amount>0)
    My code
    public String AmountValue(String Amount,Container container){
    int AmountValue =Integer.parseInt( Amount);
    try{
    if(Amount>0)
    create record;
    else throw new Throwable("Records not greater than 0...");
    }catch(Throwable t){}
    venkat

  • How to get the input value as a columns headings of the kye figer

    Dear all,
    the senario is i have keyfiger heading like DESPATCHES MADE ON (0CALDAY) and CUMMULATIVE DESPATCHES FOR (0CALMONTH), the 0CALDAY is the input value of the report. so how to get the value of the 0CALDAY and 0CALMONTH in the heading name of the key figer.
    I really appreciate for any help on this.
    wil assign pts for sure...
    thanks
    regards
    Mohan

    Dear  Venkat Ambati,Sumit Singn,Masi dandavate,
    thanks for reply.....
    ya got u r value able inputs but i don't no how to get the variable value to the column heading, if u guy's having any doc's means plz send me the same, my mail id is <u><i>[email protected]</i></u> or <i><u>[email protected]</u></i>
    thanks n regards
    Mohan

  • How to clear the input values in WD4A

    Hi all,
    Thanks in Advance.
    In my login page i have ID and Password.If Login fails it back to the same login page.But at the same time the entered(In ID and Password)will be cleared.If i write the code in inboundhandler is it correct means how can i write to invalidate the input values???Is there any examples or related links???

    Hi,
    Please have a look at this similar thread:
    how to clear entered values.
    Hope this helps!
    Regards,
    Srilatha

  • T.Code for checking the total value of a material

    Hi Experts,
      Can anybody tel me the T.code for checking the total value of a material which is procured in a specified period?
    Thanks in advance
    Channa

    Refer Tcode ME80FN click on Change Veiw & select Purchase Order History with this you can get PO-GRN-INVOICE Qty & Value details
    Last button on Application tool Bar it is in line of filter, total etc icons
    Also check below reports :
    MC$G - PURCHIS: Material PurchVal Selection
    MC$0 - PURCHIS: PurchGrp PurchVal Selection
    MC$< - PURCHIS: MatGrp PurchVal Selection
    MC$4 - PURCHIS: Vendor PurchVal Selection

  • Is thre any view to check the date & time of switch ovr frm prim to standby

    Hi All,
    Is there any view to check the date and time of switch over from primary to standby.
    Thanks,

    784786 wrote:
    Which parameter of v$database can give us the switchover date and time. Please let me know?
    SQL> desc v$database
    Name                            Null?    Type
    DBID                                  NUMBER
    NAME                                  VARCHAR2(9)
    CREATED                             DATE
    RESETLOGS_CHANGE#                        NUMBER
    RESETLOGS_TIME                         DATE
    PRIOR_RESETLOGS_CHANGE#                   NUMBER
    PRIOR_RESETLOGS_TIME                        DATE
    LOG_MODE                             VARCHAR2(12)
    CHECKPOINT_CHANGE#                        NUMBER
    ARCHIVE_CHANGE#                        NUMBER
    CONTROLFILE_TYPE                        VARCHAR2(7)
    CONTROLFILE_CREATED                        DATE
    CONTROLFILE_SEQUENCE#                        NUMBER
    CONTROLFILE_CHANGE#                        NUMBER
    CONTROLFILE_TIME                        DATE
    OPEN_RESETLOGS                         VARCHAR2(11)
    VERSION_TIME                             DATE
    OPEN_MODE                             VARCHAR2(20)
    PROTECTION_MODE                        VARCHAR2(20)
    PROTECTION_LEVEL                        VARCHAR2(20)
    REMOTE_ARCHIVE                         VARCHAR2(8)
    ACTIVATION#                             NUMBER
    SWITCHOVER#                             NUMBER
    DATABASE_ROLE                             VARCHAR2(16)
    ARCHIVELOG_CHANGE#                        NUMBER
    ARCHIVELOG_COMPRESSION                    VARCHAR2(8)
    SWITCHOVER_STATUS                        VARCHAR2(20)
    DATAGUARD_BROKER                        VARCHAR2(8)
    GUARD_STATUS                             VARCHAR2(7)
    SUPPLEMENTAL_LOG_DATA_MIN                   VARCHAR2(8)
    SUPPLEMENTAL_LOG_DATA_PK                   VARCHAR2(3)
    SUPPLEMENTAL_LOG_DATA_UI                   VARCHAR2(3)
    FORCE_LOGGING                             VARCHAR2(3)
    PLATFORM_ID                             NUMBER
    PLATFORM_NAME                             VARCHAR2(101)
    RECOVERY_TARGET_INCARNATION#                   NUMBER
    LAST_OPEN_INCARNATION#                    NUMBER
    CURRENT_SCN                             NUMBER
    FLASHBACK_ON                             VARCHAR2(18)
    SUPPLEMENTAL_LOG_DATA_FK                   VARCHAR2(3)
    SUPPLEMENTAL_LOG_DATA_ALL                   VARCHAR2(3)
    DB_UNIQUE_NAME                         VARCHAR2(30)
    STANDBY_BECAME_PRIMARY_SCN                   NUMBER
    FS_FAILOVER_STATUS                        VARCHAR2(22)
    FS_FAILOVER_CURRENT_TARGET                   VARCHAR2(30)
    FS_FAILOVER_THRESHOLD                        NUMBER
    FS_FAILOVER_OBSERVER_PRESENT                   VARCHAR2(7)
    FS_FAILOVER_OBSERVER_HOST                   VARCHAR2(512)
    CONTROLFILE_CONVERTED                        VARCHAR2(3)
    PRIMARY_DB_UNIQUE_NAME                    VARCHAR2(30)
    SUPPLEMENTAL_LOG_DATA_PL                   VARCHAR2(3)
    MIN_REQUIRED_CAPTURE_CHANGE#                   NUMBERAre you admitting that after reviewing the content of this VIEW, that you see nothing that might contain the detail you desire?
    The switch over is also logged to alert_SID.log on both Primary & Standby

  • Is there any function to change the width of forms'graphic ?

    Hi All,
    Is there any function to change the width of forms'graphic ?
    May be like set***property.
    Thanks,
    ke xiong

    No. Graphics cannot be handled at runtime.
    Francois

Maybe you are looking for

  • Block SaveAs Panel in Excel 2013

    Hi All, I have used the following script for several years now, but on porting something across to Excel 2013 it no longer works as desired and the SaveAs Panel opens regardless. The script I use is: Private Sub Workbook_BeforeSave(ByVal SaveAsUI As

  • How does everyone manage Email Distribution Lists in E-Business Suite

    We have heaps of email distribution lists stored in Oracle Ebusiness Suite, excel, access ..you name it! I would like to use a standard method for tagging contacts in the CRM Sales and Marketing Online so our employees can run reports to create exter

  • PART# 5047401001/MODEL# CT4

    Hello, I am trying to find out the difference between the CT4740 and the CT4750. I ordered the CT4740 from a vendor who had the part number listed by 50474000. When I received the soundcard, the model I received was the CT4750. He told me that they a

  • The curious case of the missing airplay icon

    Hello everyone, last night I noticed that the airplay icon was missing on my iPad. I didn't show up in videos, music or youtube. When I turned on my iMac I saw that the icon was also missing in iTunes. The only thing I did yesterday was to connect my

  • Why isnt this working urgent please help

    why isnt this working im trying to connect a panel to a scrollpane the panel will contain several dozen text fields the scrollpane shouls be about 350, 450 , but the pane is 350 by 1200 the problem now is that the scorllbar isnt created and even when