on 08-07-2007 9:11 PM
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
oops,
int AmountValue =Integer.parseInt( Amount);
try{
if(AmountValue>0)
{
create record;
}
else throw new Throwable("Records not greater than 0...");
}catch(Throwable t){}
In the if condition, use the variable AmountValue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a UDF with through this psudocode
int i = Integer.parseInt(a);
try{
if(amount>0)
{
create record;
}
else throw new Throwable("Records not greater than 0...");
}catch(Throwable t){}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
venkat,
R u referring to Universal disk format....
Regards
Ravi Raman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.