Regarding calculation--very strange

Hi,
I am trying to process a Sales order.I am facing an issue with respect to the fuel surcharge calculation. there are two variables using which i am calculating the third one. the following are the variable declarations.
v_kbetr type konp-kbetr,
v_kwerti like komv-kwert,
v_kwertnet like komv-kwert.
the formula is :
v_kwerti = ( v_kwertnet / 100 ) * ( v_kbetr / 10 ) .
v_kwertnet gets in a value of 20925.00 and v_kbetr gets in a value of 50.00. so as per the aboce calculation i should get a value of 1046.25 but i am getting 104625.00. i tried changing the declaration of the third variable as the other two also. moreover the same program is working fine with the same variables,values and formula in our testing server. can anyone suggest something reg this?
thanks & regards,
bala.

Dear Balavenkatesh,
             when you are writing your code in routines the value kwert behaves in a different manner. I also faced the same problem while I was inserting data into routines in my past Implementations I faced the same.
the way I have done is calculate the complete value and pass it to temporary variable.
  t_variable  = ( v_kwertnet / 100 ) * ( v_kbetr / 10 ) .
  v_kwerti   =  t_variable / 100.
  this is the way I used and its working properly now. dont try it in debuging and get confused you should get desired result now.
  Hope this should help.Do reward points if it really helps you.
   go a head.
Cheers,
Suresh.
Message was edited by: Suresh Deshpande
Message was edited by: Suresh Deshpande

Similar Messages

  • Address Book entries have very strange appearance

    Since updating to Leopard, my Address Book entries have a very strange appearance. When I copy and paste them the info is correct, but in the Address Book right-hand window the name (first and last) appears like gobbledigook, as if it was a strange font that is almost like mathematical equations
    With my utmost thanks in advance (as ever) if anyone has the answer to this weird problem
    Kind Regards
    Bernard

    Thanks a million for taking the trouble to respond Ashka.
    I was only reminded of the problem when I opened a web page and saw a similar effect on a couple of lines as I had in my Address Book and having discovered your response, I followed your instructions and on scanning through my fonts, I also turned off "Helvetica Fractions" (as the gobbledigook looked as if it might be fractions). One of these actions seems to have done the trick.
    Whilst looking for a particular font a while back, I ended up downloading absolutely hundreds, but it wasn't until I foolishly installed them all that I realised what a mistake I had made, as Word wouldn't even open, as it couldn't cope with the number of fonts. So I had to keep deleting fonts until Word was happy and even now, I still have far too many fonts. I kid myself that I like having so much to choose from, but truth is I am never going to use 90 per cent of them. Moreover, having discovered this problem, I wonder if there are any others in there that are going to cause me problems in the future?
    Again, can't thank you enough for your trouble
    Best Regards
    Bernard

  • A very strange phenomenon in my N81.

    Hi everybody,
    Iam confronting a very strange phenomenon
    in my N81.
    Messages in my Inbox, My folders and Drafts
    are regularly, every few days, disappearing.
    Is there any settings that causes such SMS
    deletion. Does anybody ran across such phenomena.
    Thanks in anticipation for your comments.
    Fattan

    m8,
    Indeed very strange, there is no option in any model for auto clearing for such items. Check the sticky post regarding reset codes, to put it to factory, hard reset or format it.
    Knowledge not shared is knowledge wasted!
    If you find it helpfull, it's not hard to click the STAR..

  • Very strange error in text properties - AI CS6

    Hello Everyone,
    This morning I found very very STRANGE error in Adobe CS6 about text properties. Here you go.
    In the picture one text 'ei and mosterd' was bold.
    But after copy to new string the bold characters are changed to 'ig and mosterdz'.
    This is very strange error I have seen ever.
    Do you guys have any reason why CS6 act like this?
    also do you  have any option to fix this issue?
    For your information:
    I just done copy past. Nothing else.
    All the properties are same for both.
    No difference except the text string size
    I tried the same file in different machines for check. But I still see the same error in all the machines.
    System properties:
    Mac os x: 10.8.5
    Processor 2,8 Ghz Intel Core i5
    Memory: 8 GB
    Software: Adobe CS6
    Regards,
    FroQ

    Wow, this is absolutely incredible... you try to parse an empty String to an int and it throws an exception... I'd never have thought.

  • Smartforms: SFSY-FORMPAGES = star very strange

    Hi,
    I have a very strange problem:
    In a smartform i use as usually &SFSY-PAGE&/&SFSY-FORMPAGES& for numer of pages/total pages.
    If the spool has less than ten pages all is right, if it has greater than ten pages (in the example 14) i get that:
    1/*
    2/*
    3/*
    4/*
    5/*
    6/*
    7/*
    8/*
    9/*
    10/14
    11/14
    12/14
    13/14
    14/14
    I don't understand why.
    I tried to increase the space for window but nothing changes.
    Please, help me.
    Matteo Vernile.

    Use &SFSY-PAGE& of &SFSY-FORMPAGES(4ZC)&  instead of the &SFSY-PAGE&/&SFSY-FORMPAGES&.
    This will not print astrik upto 9999 pages.
    REgards,
    Naimesh Patel

  • Populate List from Database (Very Strange Behaviour)

    Dear Fellows,
    I have developed a from which has two lists One for Major (say) and Other for Minor (say), thesr minors are based on the value of Major.
    Now I have developed this system on Windows XP Professional, Developer/2000 6i and Oracle 8i (release 8.1.7).
    Major list is populated from database and it shows all major values now using 'when_list_change' trigger the minor list is populated from the database based on the value of major list. Interestingly enough it is working fine without any problem.
    Now I have deployed the software to Windows 2000 Professional/Server (tried on both), Developer/2000 6i and Oracle 8.0.5, but strangly the lists are not working now. First list (major) is still working but the other dependent lists are not working.
    Another strange thing is that it populate the second list for one particular value (only at times).
    The logic is that I have used a program unit to which i am passing 'list element' and 'query' and call it for each list in the when-list-change trigge.
    Now its a very strange behaviour, I don't know what to do?
    Your cooperation will be highly appreciated.
    regards.

    rolrollerx wrote:
    Hi,
    I have Nokia N8 (a great phone, btw) with Symbian Anna. I wanted to download the maps. But the PC Ovi Suite is just busy forever, without downloading anything (I used Performance Monitor to find out it was doing nothing for hours).
    As I have unlimited data plan from my phone, I decided to try updating directly from the phone instead. It successfully downloaded the list of maps, but when I selected one of them
    "No Wi-Fi network available. Please configure a WiFi access point in the phone Internet destination settings."
    Why should I do that? I have a working connection on that phone (as evidenced by the successful download of the list of maps). So now, I am stuck. How can I download the maps?
    Well, the suggestion is there. Use a router.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Very strange behaviour master-detail-detail please help

    Very strange behaviour master-detail-detail please help
    Hello,
    I have a parent-child-grandchild report which show's some really strange behaviour.
    The data template has 3 queries Q1, Q2 and Q3.
    Q2 is bound to Q1 using a bind variable
    Q3 is bound to Q2 using another bind variable
    For a certain record in Q1 the output should be
    2 records in Q2
    and 1 record in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q2 record B
    Q3 record BC
    The results conforms to the expected output.
    For another record in Q1 the output should be
    2 records in Q2
    and 2 records in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    In stead of the expected output, the result shows
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record AB
    For another record in Q1 the output should be
    5 records in Q2
    and 2 records in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    Q2 record C
    Q3 record CE
    Q3 record CF
    Q2 record D
    Q3 record DG
    Q3 record DH
    Q2 record E
    Q3 record EI
    Q3 record EJ
    In stead of the expected output, the result shows
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    Q2 record C
    Q3 record CE
    Q3 record CF
    Q2 record D
    Q3 record DG
    Q3 record DH
    Q2 record E
    Q3 record DH
    So for the last record of Q2 I don't get the appropriate records from Q3 when there are multiple records to be shown, but only the last record which belongs to the previous Q2
    What is going on?
    Please help me out...
    Kind regards,
    Jan-Marcel

    Hi Tim,
    Thanks for your reply. Below you will find the datatemplate on the scott/tiger schema.
    Please help me out.
    Kind regards,
    Jan-Marcel
    <dataTemplate name="scott" description="Template scott" dataSourceRef="otcy001" version="1.1">
      <parameters>
        <parameter name="p_deptno" dataType="number"/>
      </parameters>
      <dataQuery>
        <sqlStatement name="Q1">
          <![CDATA[
            select empno            mgr_empno
                 , ename            mgr_name
                 , job              mgr_job
                 , hiredate         mgr_hiredate
                 , sal              mgr_sal
                 , comm             mgr_comm
              from emp
             where deptno = nvl(:p_deptno, deptno)
               and mgr is null
          ]]>
        </sqlStatement>
        <sqlStatement name="Q2">
          <![CDATA[
            select empno            mgr2_empno
                 , ename            mgr2_name
                 , job              mgr2_job
                 , hiredate         mgr2_hiredate
                 , sal              mgr2_sal
                 , comm             mgr2_comm
                 , mgr              mgr2_mgr
              from emp
             where mgr = :mgr_empno
          ]]>
        </sqlStatement>
        <sqlStatement name="Q3">
          <![CDATA[
            select empno            emp_no
                 , ename            emp_name
                 , job              emp_job
                 , hiredate         emp_hiredate
                 , sal              emp_sal
                 , comm             emp_comm
                 , mgr              emp_mgr
              from emp
             where mgr = :mgr2_empno
          ]]>
        </sqlStatement>
      </dataQuery>
      <dataStructure>
        <group name="G_mgr1" source="Q1">
          <element name="q1_mgr_empno"    value="mgr_empno"/>
          <element name="q1_mgr_name"     value="mgr_name"/>
          <element name="q1_mgr_job"      value="mgr_job"/>
          <element name="q1_mgr_hiredate" value="mgr_hiredate"/>
          <element name="q1_mgr_sal"      value="mgr_sal"/>
          <element name="q1_mgr_comm"     value="mgr_comm"/>
          <group name="G_mgr2" source="Q2">
            <element name="q2_mgr_empno"    value="mgr2_empno"/>
            <element name="q2_mgr_name"     value="mgr2_name"/>
            <element name="q2_mgr_job"      value="mgr2_job"/>
            <element name="q2_mgr_hiredate" value="mgr2_hiredate"/>
            <element name="q2_mgr_sal"      value="mgr2_sal"/>
            <element name="q2_mgr_comm"     value="mgr2_comm"/>
            <element name="q2_mgr2_mgr"     value="mgr2_mgr"/>
            <group name="G_emp" source="Q3">
              <element name="q3_emp_empno"    value="emp_empno"/>
              <element name="q3_emp_name"     value="emp_name"/>
              <element name="q3_emp_job"      value="emp_job"/>
              <element name="q3_emp_hiredate" value="emp_hiredate"/>
              <element name="q3_emp_sal"      value="emp_sal"/>
              <element name="q3_emp_comm"     value="emp_comm"/>
              <element name="q3_emp_mgr"      value="emp_mgr"/>
            </group>
          </group>
        </group>
      </dataStructure>
    </dataTemplate>

  • FOR i IN (statement) LOOP - very strange behaviour

    Hello, I'm experiencing very strange behaviour in my 9i Development Environment:
    If I run this select from SQL Plus a I get six month with number of days:
    select to_char(add_months(trunc(sysdate,'month'),rownum-1),'Month-YYYY') tmp_date, add_months(trunc(sysdate,'month'),rownum)-add_months(trunc(sysdate,'month'),rownum-1) colspan from dual a connect by level <=6
    But if I try to cycle through it in PL/SQL I only get the first row.
    FOR i in (
    select to_char(add_months(trunc(sysdate,'month'),rownum-1),'Month-YYYY') tmp_date, add_months(trunc(sysdate,'month'),rownum)-add_months(trunc(sysdate,'month'),rownum-1) colspan
    from dual a
    connect by level <=6 )
    loop
    -- print something out
    end loop;
    Any ideas why does this happen this way? If I use a query that does not contain CONNECT BY it works ok.

    Hi
    Just change as given below:
    FOR i in (
    select * from (select to_char(add_months(trunc(sysdate,'month'),rownum-1),'Month-YYYY') tmp_date, add_months(trunc(sysdate,'month'),rownum)-add_months(trunc(sysdate,'month'),rownum-1) colspan
    from dual a
    connect by level <=6 ))
    loop
    -- print something out
    end loop;
    Regards
    RK

  • Oracle Forms 6i - very strange problem.

    Dear, good afternoon!
    First, excuse me for bad English writing. I'm still learning, I'm Brazilian ...
    This is my first post, I started working with Oracle Forms and I recently came across a very strange issue, Forms do not know if it works differently than other technologies, but this error left me somewhat surprised.
    Well, see the following situation:
    System / BD Production (Access through VPN)
    System / BD Test (access through VPN)
    System Development (Location) / Test Bank (VPN).
    Access to the environment TEST = OK. As
    - I put the shortcut Oracle 6i forms to the address of *. FMX server through VPN.
    Access to the Production environment = NOT OK. As
    - I put the shortcut Oracle 6i forms to the address of *. FMX server through VPN.
    Note: The application opens, all right. But when choosing a menu form, this form is not loaded on the screen. As the link it was disabled.
    It can be kind of access? NO. For tested with the login of a user that is in place (no access through vpn) and the failure persists. I went to this user my login, and can access it normally.
    Can be connected through VPN? I think NOT, because if the TEST environment would not work.
    In short: When you access the TEST environment, everything works. I can open any form of the system through the menus, but in production, the forms do not open, as if he had called the forms.
    Recalling that the people who are local access normally. As with my login on with it.
    Would anyone answer me what might be happening?
    Thank you in advance!
    Regards,
    Bruno Ambrozio
    Skype: b.ambrozio
    MSN: [email protected]
    GTalk/Mailto: [email protected]

    It can be kind of access? NO. For tested with the login of a user that is in place (no access through vpn) and the failure persists. I went to this user my login, and can access it normally.
    Can be connected through VPN? I think NOT, because if the TEST environment would not work.Test your network with tnsping80 and/or sqlplus first.

  • ALV Grid - Very Strange Problem

    I am facing a very strange problem in ALV Grid. Our’s is a ECC5 system on SAP_APPL SAPKH50011 and SAP_BASIS SAPKB64016.
    I have implemented the ALV grid in a screen using classes. This grid by default appears in display mode however it can be switched to change mode and back to display mode using a custom button on the ALV toolbar. When the user clicks the change button the grid appears in editable mode. During the back and forth switching of the ALV between Change/Display modes the ALV grid control is not destroyed however the toolbar, fieldcatalog and ALV contents are refreshed.
    The data which is entered in an editable cell is validated using the data_changed event which has been implemented locally. If the validation fails an error message is raised using the message statement which is being issued correctly. Now when I correct the data and then click on another cell in the ALV grid the program is being aborted. Any clue why this is happening??

    Please check this code
    In the PBO of the screen set the field catalog and layout , i think this will help not to refresh the field catalog every time swtich between display and change mode
        set titlebar sy-dynnr with p_netwk.
        call method g_grid->set_frontend_fieldcatalog
          exporting
            it_fieldcatalog = gt_fieldcat[].
        call method g_grid->set_frontend_layout
          exporting
            is_layout = gs_layout.
        call method g_grid->refresh_table_display.
    2. Regarding program abort, please paste the first page of system dump

  • Very strange playlist limit (751 songs)

    Hi! As far as I know the maximum number of songs for each playlist ist at about 10.000 or something like that. For me this would be a number I probaly never would reach.However I'm afraid Spotify have a bug concerning the limit. My playlist can only have 751 songs (what is a very strange and odd number). When I want to add a new song, there is no error message or something similiar - it seems to work fine. Only when I look into the playlist I see there aren't new songs added. As you might understand this is pretty annoying, beaucse there's no way to recover the songsy beyond this strange limit.I hope you guys fix this soonand someone can reproduce this. Best regards! system:OS X 10.10.4Spotify 1.0.9.133.gcedaee38

    Hi there and welcome to the community,
    That's weird...
    Could you try doing a full reinstallation of the app, including removing your local cache/data files.

  • Missing InputField values on RadioButton Action (very strange) !!

    Hi SDN,
    I'm facing a very strange error!
    When I select an option of a RadioButtonGroupByKey (it calls a method), the value of an InputField disappears!! Or if I have changed the value of the InputField before selecting the Radio, the old value appears instead of the new!
    And the worst problem is that it happens sometimes, and sometimes doesn't.
    Some points:
    1: Even with an empty method it happens!!
    2: Wthout calling a methos it doesn't happen!!
    3: If I click on a button, calling the same method, the problem doesn't happen (only with the Radio)!!
    I've tried everything, like pulling the value from the InputField element and forcing it in the context (before, during and after the method), but nothing has solved the problem! Because the value already comes empty (or old) from the InputField!!
    Please, has anybody already faced this problem??
    Kind regards!
    Fabio

    Hi Maksim,
    InputField:
    value: V_NomeObj (type: com.sap.cadastrosolicitacaolista.model.types.Zznome_Obj)
    RadioButtonGroupByKey:
    selectedKey: RadioCompraCentFixo (type: String)
    onSelect: Teste (this Action calls an empty method, just for test)
    On wdDoInit I'm filling values in the "RadioCompraCentFixo" attribute.
    =================================
    ISimpleTypeModifiable myType1 = wdThis.wdGetAPI().getContext().getModifiableTypeOf("RadioCompraCent");
    IModifiableSimpleValueSet values1 = myType1.getSVServices().getModifiableSimpleValueSet();
    values1.put("S","Sempre");
    values1.put("N","Nunca");
    values1.put("C","Condicional");
    wdContext.currentContextElement().setRadioCompraCent("S");
    =================================
    Is it sufficient?
    Thanks a lot!

  • Applet problem very strange must read

    Hi
    all of u.
    I have very strange problem in applet.
    i created a news ticker in java applet that is running successfully . i kept in the site also that is working .when i created two same applet in my one page it will get out side after 2 hours .out side that means on the top of window. if i use only one then its ok. i don't know what happen.if any one know the solution plz tell me what is the issue.
    rakesh.

    Hi Rohit,
    It was nice to hear that your problem is solved. Thanks for sharing the solution with all of us .
    Regards
    Vineeth

  • Very strange screen problem (previous app leaves mark)

    I'm Danielle, i'm from the Netherlands and i'm having a very strange problem with my iPad mini (bought It August 2013).
    never had problems with my iPad, but since a few weeks i have à strange problem with my screen.
    when i open an app, for example messages, and i use it for a while, and then return to the home screen or go to another app,the messages app leaves a mark o'n the screen at the left side of my screen (an area of 2 cm from the Side). my english is not very good but im trying to describe it.
    I cant make a print screen of iT because its a problem with the screen So you dont see iT on a print screen.
    so:
    - i see a mark of THE previous screen(app) on my screen
    - first i throught iT was: in dutch we call it doorgebrand, translated in english: burn through (dont know if i translated it right). Like a old computer when you are working at a screen for to long so letters and text are printed, permanently, on the Screen (Thats why you have screen savers).
    - but: it disapears in a few minutes or if i open a black screen.
    - It's not very clear to see (The longer i used the app, The clearer the Mark) and iT has horizontal stripes
    i hope someone has experience with this problem or knows what i have to do.
    i never heard of this problem before and i cant Find iT on Google.
    kind regards,
    danielle from the netherlands

    A workaround is to turn the brightness down, it may reduce the 'burn in' less & makes it less noticeable.
    You should get in contact with Apple ASAP if you consider it bad enough to need repair, it should have a 1 year warranty. I suspect it is considered just to be how it behaves.

  • Very Strange Mailbox problem

    ./imsimta version
    Sun Java(tm) System Messaging Server 6.1 (built Apr 28 2004)
    libimta.so 6.1 (built 12:38:06, Apr 28 2004)
    SunOS mail.abc.com 5.9 Generic_112234-03 i86pc i386 i86pc
    I faced very strange problem last week regarding the mailbox. I have doubt that must be bug in that release. Previously we were using a single box for multiple domain hosted on it so mailboxes were created like user/[email protected]/INBOX expect the mail boxes for user domain matched with hostname domain. Then we separated one of our domain and mail server was created with hostname like mail.abc.com. All application and services was installed successfully and schema 2 was created at LDAP, as I was migration the users so user�s mail boxes must be migrated as well. Default user mailboxes was created on new box as user/uid/INBOX as domain part was missing so I put all the old mailboxes on the same partition where the default one was created and I manually copy over the contents from old one to new one and run ./reconstruct -m command so users wre eable to see all of their pervious mail and folders. Every thing went fine and well later I issue the ./mboxutil �o to get the orphan mailboxes; output gave me all mail boxes which have @domain part. So I create the file from that list and issue the command ./mboxutil �d �f filename. Oh no! Then seriuos problem occurs as the default mailboxes /usr/uid/INBOX deleted as well and technically they should not be because they were not present in the list. Then I create the mailboxes manually or some was created on reception of mail and I notice the user/[email protected]/INBOX is created as well associated to each user.
    So real question is if user/[email protected]/INBOX is linked with default usr/uid/INBOX then why ./mboxutil �o is giving these mailboxes as orphan in the list, if they are not link or associated then why they are created automatically while the new mail boxes created manually or reception of mail.
    I will appreciate if any body can help me with these question based on scenario presented above.

    Youve found a bug with mboxutil -o
    I would have suggested following a different path to achieve your goal.
    I would have suggested using imsbackup to capture the existing mailboxes you wanted to move, and imsrestore to populate the new server.
    the two mailboxes are NOT linked, other than mboxutil is confused.
    by running reconstruct -m, you entered them both into the database. I think this was a bad idea.
    If you were going to manually manipulate mailbox files, I would have removed the old uid@domain mailboxes before running the reconstruct -m
    I would have also run reconstruct -r afterwards. If you had done these, you would not have seen the problem at all.

Maybe you are looking for

  • How do I Streamcast what's happening on my screen?

    I found LiveStream tonite, and an artist was drawing in Photoshop LIVE and boadcasting the art session to the world!  I was immed. HOOKED.  I want to do the same thing while drawing in real time in Flash. The artist suggested I use Flash ME, so I D/L

  • PO Output Msg Error

    Hi All, I have a PO (2 Line Items) with output condition of printing. Now suppose i delete one of the line item then change msg will get trigger and then it wil only print PO with 2nd Line Item. Now i again open PO in change mode and delete 2nd Line

  • Task Bar Mahem - Changing Icons on M$ task bar

    Hi, In Windows XP (Windows NT), when you open multiple windows of a program, the programs become inconisized and grouped together under one menu icon with a name. For instance, opening Windows Explorer multiple times creates a menu on the task bar th

  • HT4914 vinyl recordings in my i tunes library what happens

    vinyl recordings in my i tunes library what happens

  • Error : Summary String length exceeds maximum

    I just got an error while trying to Update a User on my IDM instance. com.waveset.util.InternalError  :  Summary String length (3003) exceeds maximum (2048) I already checked this forum for similar issues, and I found a couple of threads. However, fo