Problem in Routine after rounding off the condition value

Dear all,
      I have attached the routine for rounding off value for condition value for T.Code va02. Routine is working fine but the problem is after the execution of routine it goes in some standard program LV61AA55 where again the rounded value gets changed . Maximum points will be allocated ..
Thanks anr Regards

FORM FRM_KONDI_WERT_925.
*{   INSERT         D01K911062                                        2
data : wa_xkomv like xkomv,
        v_kwert like xkomv-kwert,
       W_INDEX  TYPE SY-TABIX.
read table xkomv into wa_xkomv with key kschl = 'JIN6'.
W_INDEX = SY-TABIX.
v_kwert = 1 * wa_xkomv-kwert / 100.
  V_KWERT = WA_XKOMV-KWERT.
read table xkomv with key kschl = 'JHSC'.
CALL FUNCTION 'J_1I6_ROUND_TO_NEAREST_AMT'
   EXPORTING
     I_AMOUNT                 = v_kwert
   I_AMOUNT1                =
   I_AMOUNT2                =
   I_AMOUNT3                =
   I_AMOUNT4                =
   I_AMOUNT5                =
   I_EXADDTAX1_AMOUNT       =
   I_EXADDTAX2_AMOUNT       =
   I_EXADDTAX3_AMOUNT       =
  IMPORTING
    E_AMOUNT                 = v_kwert
   E_AMOUNT1                =
   E_AMOUNT2                =
   E_AMOUNT3                =
   E_AMOUNT4                =
   E_AMOUNT5                =
   E_EXADDTAX1_AMOUNT       =
   E_EXADDTAX2_AMOUNT       =
   E_EXADDTAX3_AMOUNT       =
xkomv-kwert = v_kwert.
xkwert = v_kwert.
modify xkomv INDEX W_INDEX transporting kwert.
*}   INSERT
ENDFORM.

Similar Messages

  • Rounding off net weight value.

    Hi experts,
    I want to round off the quantity value to the next integer value.
    I am using the FM 'J_1I6_ROUND_TO_NEAREST_AMT' as follows...
    call function 'J_1I6_ROUND_TO_NEAREST_AMT'
    exporting
       i_amount = gross_weight
       i_amount1 = net_weight
    importing
       e_amount = gross_weight
       e_amount1 = net_weight.
    i want to round off the gross weight and net weight values.
    In Global definitions, these are given as of type VEKP-BRGEW. The field BRGEW is of datatype QUAN (length - 15 and decimal -3 )
    But when i tried executing i am getting dump .... saying
    "The function module interface allows you to specify only
    fields of a particular type under "I_AMOUNT".
    The field "GROSS_WEIGHT" specified here is a different field type"
    Please help me solve this and please let me know how to round off these fields.
    Regards
    Ammu

    Hi,
    the both fm parameters you fill have a currency data element of length 13, while you pass a quantity data element of length 15.
    You can't use this fm for your fields.
    Regards,
    Klaus

  • My bookmarks are lost after turning off the computer unexpectedly (power problem),how can it recovers?

    My bookmarks are lost after turning off the computer unexpectedly (power problem),how can it recovers? Thanks a lot !!!!
    我的书签在电脑突然被断电之后全部丢失了,我该怎么办呢??谢谢啦!!~~~~

    This can also be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
    * http://kb.mozillazine.org/Lost_bookmarks

  • Regarding round off the value in adf table

    HI All,
    My Requirement:
    i have to round off the value after decimal in adf column before saving to data base.
    Excample : 1234.67 = 1235
    34567.89=34568
    34567.34= 34567
    i am using jdeveloper 11.1.1.3.0
    Please can you give code using converter or any other strategy.
    Thanks & Regards,
    Madhu

    1. First of all you asked for rounding off, taking the integer part is not rounding off.
    2. As per the documentation
    integerOnly      boolean      Yes      Flag specifying whether only the integer part of the value will be formatted and parsed. Default value is false.if i can understand correctly pertains to formatting only.
    3. You can create a custom faces converter and add it to faces config.xml http://docs.oracle.com/javaee/1.4/tutorial/doc/JSFDevelop4.html . So that you do not have to write it in code.
    4. If only integer is to be allowed why don't you change the data type to long or int instead of number

  • HT5642 After turning off the notification switches of some apps in notificaton center, there are still notifications. I'm confused. Why?

    After turning off the notification switches of some apps in notificaton center, there are still notifications. I'm confused. Why?

    Just guessing, but I would think, as I look at mine, that it might have to do with when the apps were added to the device. To be honest, identifying this as a bug might not be correct. You are the first person I have seen post something like this, so it must not bother others. You can leave feedback for Apple on the feedback page. Go to http://www.apple.com/feedback and then click on the appropriate link.

  • MSI GE60 2OE - Nvidia card not recognized after shutting off the laptop

    So I received my laptop from RMA some days ago. It was just coz the plastic hinge of the screen, broke.
    When I received it, I had some Windows problems.So I reinstalled  it 3 times, the last one from a different ISO (all were official 8.1 windows isos). The last time seemed to work fine, until I noticed I had a problem. Everytime I turn off the laptop, and turn it on, the nvidia card (765M GTX) isnt recognized. It doesnt appear in device manager at all, or it appears as unknown 3D device.I have to uninstall intel gfx drivers, nvidia drivers, and run Display Driver Uninstaller , so the drivers recognize the card again. But if I shutdown the laptop, then I have to repeat this process again...
    I tried different drivers, updated other component drivers from http://www.station-drivers.com/ , I have the latest BIOS, etc..
    When the card is being recognized, it works fine, no overheating nor artifacts in games.
    What can it be?

    have you done OS restore to factory default?
    or a new fresh OS installation?
    Or when you turn it off,
    then boot to DOS and see if nvflash will see the card
    this will help to isolate if its Win OS issue or something else hardware related

  • Limit a float value to single decimal place after round off

    41.231445 is float value . How can I limit this to a single decimal place after round off?
    ie; 41.2
    Any help in this regard will be well appreciated with dukes.
    Regards,
    Anees

    Also read this: [http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html]

  • My mac mini loses connection with my receiver after turning off the receiver then back on

    My Mac Mini loses connection with my Onkyo receiver NR-609 after turning off the receiver then back on.  The only way to reistablish the connection is to unplug then replug the HDMI cable to the Mac Mini.  There's no effect if I unplug then replug the HDMI to the receiver.  Any help or suggestions would be appreciated.  I've searched a lot but haven't found much of anything so if this is covered elsewhere I would greatly appreciate a link.
    Thanks in advance

    Hi and thanks.  I don't know about the audio prefs.  When it happens I am not able to see or hear anything from the computer until I un/re-plug the HDMI to the Mini.  I'm not sure it's changing to something else because there's nothing else connected for it to change to.  I could see that perhaps the audio will change to the Mac Mini's internal speaker. 
    I found out last night that if, after I lose the signal,  I use my ipad to play a video on the Mac Mini using the Remote app and home sharing the signal gets righted and I can see/hear the computer again.  It's quite an inconvenient fix though and I wish and hope someone here can help me.

  • Problem changing the Condition Value in Po using BAPI_PO_CHANGE

    Hi Experts,
    My issue is BAPI_PO_CHANGE is not changing the Condition value. and giving message in bapi return as 'cannot be processed manually'.
    Can anybody please help me on this.
    Thanks & Regards,
    Sudheer

    Check this link http://forums.sdn.sap.com/thread.jspa?threadID=652278
    Regards,

  • Which table stores the condition values of a purchase order line item?

    Hi,
    Please let me know the table that stores the condition values of purchase order line items(when we click on conditions tab after selecting an item then we can see the condition types and there is a corresponding condition value for that condition type.
    My requirement is to get the actual price for a purchase order line item(it can be seen in the last line and it is calculated after considering all the condition types) and display this value in a custom report.
    Thanks,
    Ravindra

    Hi Ravindra
    You can find the conditions data for PO in TAble KONV.
    KONV-KSCH is the condition type
    KONV-KWERT is  the cond value
    KONV-KNUMH is the condition doc no. which is there in EKKO field KNUMH.
    So u have to make a link between KONV-KNUMH and EKKO-KNUMH.
    Thanks
    Vijeta

  • How to query the condition value in VPRS

    Hello all,
    we provide the sales price to customers based on the condition value in "VPRS" ,because I have thousands of goods need the price,so I 'd like to make a query to extract the condition value in "VPRS".
    which table is refer to this?
    https://mnlylq.bay.livefilestore.com/y1mXNdIiY7VgiU1v3ymS71pxZluGxj4YNp4IFsyQEr1zkoxjm1VCsxpOgbBQ1-ucxiRtA9tC7O_3ZPaQa7qWKGbdnHNX8UzazWTlettENIO7iujggSx7vHjc2bvuIqhYFYb2DEgIjuNaJ5foKU_xF7wvA/%E5%9B%BE%E5%85%AD.jpg?psid
    Thanks,
    helai

    hi,
    For your Item category, if you check DETERMINE COST
    Determine cost
    Indicates whether, during pricing, the system determines the cost (stock value) of a sales document item.
    Use
    The system checks the cost determination indicator as a requirement before applying the condition type that calculates the cost (condition type VPRS in the standard version of R/3 1.1)
    Mainatin VPRS as D then it will automatically pull the price from Material master if maintained
    IF VPRS is getting determined, then in your pricing procedure, you can add markup (multiplier)

  • Fm to change the condition value in sales order pricing

    Hi Friends,
    I need a FM to change the Pricing value that is auto calculated in the sales order. It needs to be overwritten. BAPI_SALESORDER_CHANGE I don't think will do it. It can be used only to update the condition type and the condition amount but not the condition value.
    Can someone please help me. I've been stuck with this for quite sometime.
    Thanks,
    Dikshitha G

    Try these BAPI's
    BAPI_LISTING_CONDITIONS,
    BAPI_AGREEMENTS
    Regards,
    Rajasekhar Reddy.

  • The Condition value formula is not found in CRM ???

    Hello Al
    l
    We are working on CRM 7.0 , I canu2019t find the Condition Value Formula, Condition Base Formula and Condition u201Crequirementsu201D in the pricing procedures downloaded from the ECC also in the pricing procedures that are standard in the CRM
    I donu2019t know what is the reason for that
    Regards
    Jacopo Françoise

    the IPC should work to make them available

  • Pricing procedure  change the condition value

    Hi,
    My pricing procedure determines the Tax in %basis.Now i have a rewuirement wherein i should be able to enter the amount in AMOUNT COLOUMN in condition tab. This value should be the condition Value for the condition type.
    Now my pricing procedure doesnt allow me to make any changes and the condition type is greyed out. how can i calulate the tax in amount instead of % and be able to enter the value manually?
    Thanks,
    Challa

    Hi Challa,
    Price can be maintained either on percentage basis or on amount basis.
    So you have to make changes in condition type to convert it from percentage to amount.
    Go to IMG u2013 sales and distribution u2013 master data u2013 basic function u2013 pricing u2013 pricing control u2013 define condition type.
    Select maintain condition type from the options.
    Now select your condition type and click on detail.
    Change the calculation type from A (percentage) to B (Fixed amount) and save it.
    Now go to VK11 and maintain the new condition record for that condition type.
    Now create the sales order and go to condition tab and check out the pricing it will be amount.
    Please do this method if you find any difficulty then tell us.
    Regards
    Raj.

  • Changing the Condition value in Quatation only and not in Order

    Hi Gurus,
    We have a Requirement from Client in which the Client should be Able to change the condition Value PR00 in the Quotation and not in Sales order......can someone please let me know how's that possible?
    Because if we try to make Changes in Condition Type in V/06 it will also allow changes in Sales Order....

    Hi
    You can use user-exit USEREXIT_PRICING_PREPARE_TKOMP in the include MV45AFZZ.
    IF VBAK-AUART = (Your quotation type)
    LOOP AT XKOMV.
    IF XKOMV-KSCHL = 'PR00'.
    SELECT * FROM T685A INTO TABLE I_T685A WHERE KSCHL = 'PR00'.
    READ TABLE I_T685A WITH KEY KSCHL = XKOMV-KSCHL.
    I_T685A-KMANU = 'C'.
    MODIFY I_T685A INDEX SY-TABIX.
    MODIFY T685A FROM TABLE I_T685A.
    REFRESH I_T685A.
    ENDIF.
    ENDLOOP.
    like this discuss with your abapper and build the logic
    regards
    Prashanth

Maybe you are looking for

  • URGENT -------- PLEASE HELP GURU's

    hi all could any one tell me what is wrong in this code because when i do it does not go the next string displayed on the screen it goes to the first string only. PLEASE HELP while (st.hasMoreTokens())           String accession = st.nextToken();    

  • Time out connection issues

    Help, I am struggling to connect to Itunes, have turned off firewall, antivirus software, uninstalled and reinstalled Itunes (with apple technician), latest version of Itunes installed. Itunes will detect Iphone, Ipad and I pod, but can't sync. Netwo

  • Getting Rolling Date for a request in scheduled request set

    Hi All, I have a request set and autoinvoice runs as a part of this request set , autoinvoice has parameter default Date and when I schedule this request set , I have to fill this parameter (eg:07/07/2006) as this is mandatory parameter. However when

  • Latest version of iPhoto

    Have iPhoto8.1.2, incompatible with OSX10.10.3, need to access iPhoto for some photos

  • Using the iBook with the cover closed

    Can you hook up external monitor, keyboard, mouse, etc and use the iBook with the cover closed? I know that usually closing the cover puts it to sleep.