UDF Code Required

Hi Experts,
       i have the following requirement i had done this using graphical any way i am trying to write the UDF for the same.I am unable to complete this.Can anybody guide me to complete this.
Reuirement is as :- I have two inputs as a and b and need to implement the logic as X = (((a)/((b/a)100)+100)((b/a)*100))
Thanks in Advance
Abhijit
Edited by: ABHIJIT DAPTARY on Mar 18, 2008 5:48 PM

HI,
The expression X = (((a)/((b/a)100)+100)((b/a)*100))
can be split-up as two expressions
A = ((aa)/(b100))+100
B=(b/a)*100
Please find here with you the UDF code
You need to convert the a and b to float type.
float c,d;
c= Float.parseFloat(a);
d= Float.parseFloat(b);
float A, B;
A = ((cc)/(d100))+100;
B=(d/c)*100;
return(String.valueOf(A*B));
Thanks
Swarup
Edited by: Swarup Sawant on Mar 18, 2008 1:29 PM
Edited by: Swarup Sawant on Mar 18, 2008 1:51 PM
Edited by: Swarup Sawant on Mar 18, 2008 1:54 PM

Similar Messages

  • Need UDF code

    Hi All,
    Source File
    Eno     ename
    10     AA
    20     BB
    10     AA
    30     CC
    My requirement is need to identify the duplicate records at the mapping level.
    Condition as below.
    If eno and ename > 2 then status = "X"
    else
    Status = " "
    Please provide me the JAVA UDF code for this.
    Thanks,
    Sagar.

    Try something like this:
    public void TEST(HashMap<int,String> INPUTTABLE,ResultList result,Container container){
    HashMap<String,int> frequencymap = new HashMap<String,int>();
    foreach(String a in INPUTTABLE) {
      if(frequencymap.containsKey(a)) {
        frequencymap.put(a, frequencymap.get(a)+1);
        result.addValue("1");
        break;
      else{ frequencymap.put(a, 1); }

  • Downloading apps it asks for apple ID Pass then it says "verification required". Then says Security Code required. Doesn't accept code. itunes doesn't accept code from visa card either?Please Help

    Downloading apps it asks for apple ID Pass then it says "verification required". Then says Security Code required. Doesn't accept code. itunes doesn't accept code from visa card either?Please Help

    If it is trying to verify your payment info, I would be willing to guess that it is looking for the security code for your credit card. Did you credit card just get replaced lately or the expiration date change? When is the last time that you updated your payment information in iTunes?

  • Witholding tax code requires you to enter a base amount

    Dear Friends,
    The user is getting the error " Witholding tax code requires you to enter a base amount"
    I checked the invoice and found that there is withholding tax code and there is no withholding tax amount.
    How to reslove the issue? Please guide.
    Regards
    Sridhar

    Resloved the issue.
    The user should enter the withholding tax amount

  • Connecting to WiFi when there is no access code required

    I have a Samsung Galaxy Nexus with ICS. I'm still learning how to use it and have run into a problem with connecting to some wifi locations. When I connect to a wifi that requires an access code, I have no problem, but when I try to connect to a public wifi that does NOT require a code, I can't seem to make that work. How do I tell it that there is no code required?
    Regards,
    srevi

    if its an unlocked wifi it might not have data connected to it

  • Activation code required

    hi - I've just got a 6300 and am trying to get teh music player to work. I have uploaded songs onto the devices memory using teh nokia music manager software. However when I try to play a track I get the error message "activation code required". I'm a bit confused and would like to know what this means? At first I thought it might be a DRM type lock but even when I load the songs directly from the original CD I get the same error massage. Can someone please explain what is going on?
    Thanks Pete.

    May we know what version of Nokia PCSuites & Windows(XP/Vista) you are using? Don't use the PCsuite Music manager this time in ripping;try to rip the audio CD by XP/Vista WMP first to mp3 then transfer it to phone & check if you'll get the same message(Deleting first the previous ones).
    When you copy an original audio cd by PC/Laptop program you'll be notified that your are copying a copyrighted product.
    Message Edited by android on 23-Jan-2008 10:38 AM
    Knowledge not shared is knowledge wasted!
    If you find it helpfull, it's not hard to click the STAR..

  • Pass code required

    I keep getting a pass code required message on my iPad?? Is this a bug or is there a way to fix?

    It is not a bug.  You or someone else set up a passcode on the iPad.  If it's forgotten, here's how to recover:
    http://support.apple.com/kb/HT1212

  • Where can I find the coupon code required for registration?

    Where can I find the coupon code required for registration? I purchased the design standard at Officeworks in Australia and given the box a thorough check, but unless there is a number not labelled 'coupon code', it's definitely not there. I am using this product personally and not for business so I have no IT dept to assist.

    Find a serial number
    For anything else contact support directly or work things out with your reseller.
    Mylenium

  • HT5622 Where do I find the code required for the registration of accounts in I store?

    Where do I find code required for registration of account on Istore

    What code are you referring to ? When creating an account there is an optional field for entering an iTunes gift card code - is that what you mean ? If you do then that field can be left blank, and as iTunes gift cards aren't available in all countries (and they are country-specific) then you might not be able to fill it anyway.

  • New Tax Code required

    Dear Expert,
       Our user has a requirement for creating a new tax code
    requirement is -BED_5%, ECS_2%, SECS_1%, VAT_D_3% (Input)
    I have done- in FTXP i have created a new tax code i.e. BT then i hv assign with co.code, what will be next step in FV11 can U tell me ???
    Thanks in Advance !

    Hi,
    As per your new tax code the condition types used in the calculation procedure for the TAX code you have to maintain condition record in FV11.
    Like for BED you have usen suppose JMIP condition type then go to FV11 and give JMIP condition type there and select country and Tax code condition table and maintain the percentage rate for your tax code.
    Same like for the rest of the condition type as per the respective percentage.
    Regards
    Arun

  • Printing error: in waiting stand (identification code required)

    I have a printer (HP) connected with USB cable to my intel iMac. From my macbook I want to print something. On the macbook I select the printer that is connected to the iMac. (The macbook has no problem finding this printer.) When I print i get the following error message (sorry it's in dutch)
    In wachtstand (identiteitscontrole vereist) -> translated: in waiting stand (identification code required)
    Further nothing happens....
    This method worked for years but since I moved to a new internet provider I changed some settings connecting the time capsule to the new internet modem and since then it does not work anymore...

    Login with an admin account and try http://127.0.0.1:631/ in your browser on the affected machine. See if there's something there that's different from the other machines.

  • Tax code required on freight charges

    Hello,
    I upgraded to 8.8.1 pl09 last weekend.
    Yesterday when we invoice our daily orders we began receiving the following error:
    "Tax code required for freight charges [A/R Invoice - Freight - Rows - Tax Code][line: 2]  [Message 439-114]"
    This is new.  Didn't happen last week, so I'm pretty sure it's due to a new setting in the upgrade.
    Can anyone please tell me how to fix this?
    If this was a requirement in the past, it was always automated.  I need it to be that way again.
    The tax code does exist, the field is just not populating as it did in the past.
    Thanks,
    jim
    Edited by: Jmonteith on Dec 13, 2011 2:21 PM

    Hi,
    I checked in DEMO, the error is displayed if the freight tax code is not defined on the row level.
    I also checked with a tax code which was marked as 'Freight'. The checkbox was marked in the tax code set up.
    When I created a new delivery, the tax code was populated for the Items as well as the freight.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Code require

    I have HP Pavallion dv4 for which it is asking for some admin password which I am not aware off.
    after trying multiple things and it gives me system disable message.
    key  50968986
    Kindly help... 

    See your ealier post on the link below.
    http://h30434.www3.hp.com/t5/Notebook-Hardware/code-require/m-p/4103032
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Does applicaton code requires recompile on changing a jar file

    Hi
    Does the application code requires a recompile if a jar used by it undergoes change(but its interface remains same)
    Or same ? in different way jar file are statically or dynamically
    Bye
    gene

    Does the application code requires a recompile if a
    jar used by it undergoes change(but its interface
    e remains same) No.

  • UDF code getting right aligned- PI 7.1

    Hi All,
    I using PI 7.1, when I do right the UDF suddenly the total code is getting right aligned and even when I see the UDF in Funtion Libraries all the remaining UDF's are getting right aligned. It very difficult to debug the code, any can help how to the pretty print the code.
    Regards
    Shankar

    Hi,
              in my Project, i am having UDF's as separate and Project specific udf's also in the drop down of the Functions in Message mapping editor.
    I am able to open the UDF, but not able to open the Project specific udf, there is no edit option for that, directly we need to use in the mappings.
    But my requirement is i need to use the same udf in other message mapping,
    Please let me know the answer  or solution asap.
    Regards,
    Amruth

Maybe you are looking for

  • Please help me before I go nuts! iPhone 4 wont sync..

    My laptop broke for a while, so I used another laptop to sync music, it made me delete all my music first on the new laptop so I could download any new music, anyways now Im back on my laptop, I downloaded a new itunes first (I had trouble with jailb

  • IWeb photo galleries cause Internet Explorer to crash

    Please help! I am a novice as far as web design goes and have spent a long time getting my site up and going. It works perfectly on Firefox, Chrome, Safari etc but when using Internet explorer the photo galleries cause the browser to crash/freeze. If

  • Information Broadcasting: Monthly Reporting with variable dates

    Dear all, we have created a lot of reports with RD and have pubished the reports in the portal. Our reports have a lot of selection screens. Now we would like to use information broadcasting. We have already created information broadcasting settings.

  • How to make a satellite

    What I need for making a satellite (satellite for web filter in college) i.e. I want to safe college students from harmful website on internet as adult website what I need for making web filter satellite? and how many days I want for make?

  • Protecting and Tracking iPhone from Thieves

    Hi, I just lost/got my iphone stolen from me. Before I sadly spend money on another one I'd like to know if there is any way to track an iphone by hardware? This question is for a new iphone I get, not to find my stolen one. My main problem is not ha