Rounding when any discount in sales order

hi Gurus,
Please help me for pricing condition when create sales order.
when creating sales order there are some sales order the condition should be:
if there is discount(condition type : ZD23) should be rounding if there is no discount rounding should be off.
in which exit or routine i have to be modified?
Currently i try to add routine by VOFM code.
FORM KOBED_600.
*{   INSERT         TZRK908033                                        1
       sy-subrc = 4.
      check: XWORKF NE '0.00' OR XWORKF NE SPACE.
       check: t001r-reinh ne 0.
       sy-subrc = 0.
*}   INSERT
ENDFORM.
but it's not work because above code just work for no discount condition. or any suggestion for my requirement?
anyone can help me please?

hi Archana Kumari  thanks for reply.
I think my problem is different from the link that you have post.
my problem is
1.sales order 000001
    10. item 001 -> no discount
    20. Item 002 -> no discount.
1.sales order 000002
    10. item 001 -> has discount
    20. Item 002 -> has no discount
the rounding should be happen in sales order 000002 and will not happen in sales order 000001.
in which routine should i define code for activate the rounding.
please help me.

Similar Messages

  • How to update Purchase Request automatically when update qty in sales order

    When we create a sales order, the PR will be automatically generated.
    Now we have a requirement to change the order qty for the sales order. also the PR should be automatically changed.
    With VA02, the process is perfect.
    But by using BAPI_SALESORDER_CHANGE  the SO is partly changed ( order qty is changed but the confirmed qty is not changed) and the PR is not changed.
    So can you advise me how to update the PR by using the BAPI_SALESORDER_CHANGE, which indicator should be defined?
    I've read the BAPI document but no such information.
    Regards,

    Hi Yang,
    Workflow is the best approach for any issue related to business objects.
    Since you want call FM BAPI_SALESORDER_CHANGE, it will change SO. It means everytime any SO is changed there will an event being triggered.
    object type: BUS2032
    event: Changed
    simple solution:
    1. Please create object type (SWO1) and its super type should be BUS2032.
    2. Add your own method and attach your custom FM which actually updates the qty & PR)
    3. Create Task (PFTC_INS)
    in basic data:
    - provide object type which you have created
    - provide method which you have added
    goto triggering events tab
    - Choose Object Category as BOR object type
    - provide object type (better give BUS2032)
    - provide event as CHANGED
    Please have look into very nice video blog which helps you to create your workflow.
    blog: [Creating your first SAP Business Workflow]
    Regards,
    Sukhbold Altanbat.

  • Rounding off value problem in sales order

    Hi All,
    This is related to a rounding off value problem in sales order.
    The problem is described by an example which is as follows -
    Selling Price of Material A = Rs. 176.76
    Excise charged = Rs. 21.80
    Total Price = Rs.176.76 + Rs.21.80 = Rs. 198.56
    On this total Trade Discount (ZDTD) having access sequence,is calculated  at the rate of 4% = Rs. 7.94
    But the condition base value after the discount is showing Rs.198.60 instead of Rs.198.56
    I want the system to reflect the value as Rs.198.56 intact and it should not round up to the nearest value i.e. Rs. 198.60
    Why is this happening? Is it possible to reflect the exact value? If yes what is needed to be done?
    The commercial round off is activated for the DIFF Condition Type.
    Looking forward to some valuable suggestions.
    Thanks & Regards
    Priyanka Mitra

    Hi Ramesh,
    Thanks for your suggestion but the problem has been solved by me.
    Regards
    Priyanka Mitra

  • Discount at sales order leveal

    i want give discount to the first 10 customers of sales orders.
    how we confiquare it

    Hi
    First,You need to check the "<b>Condition Update</b>" field in the customization for that particular condition type.Then, in the condition record, select the condition, go to additional data and there you can enter the number of sales orders (i.e., 10 in your question). So, that system wont give that discount when you process 11th sales order.
    Or else  You can try with Sales Deals as master data <b>VB22 </b>in the system,
    Message was edited by:
            SHESAGIRI.G

  • We are using EBS 12.1.3.  When we input a sales order from a customer we input the sales order and specify the date the customer wants it.  This isn't always the date that we intend on manufacturing it though.  I need to put a customer due date in, but be

    We are using EBS 12.1.3.  When we input a sales order from a customer we input the sales order and specify the date the customer wants it.  This isn't always the date that we intend on manufacturing it though.  I need to put a customer due date in, but be able to put a date in another field that MRP can read in the event we choose to manufacture based on another date.  For example, early.
    Any help would be appreciated.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Error when i reject the sales order

    Hi:
    I´m in Upgrade to 6.0, and when I reject a sales order in SD, the system show me this message "Subsequent function 'Production order/plan order from sales document' not possible: Item 000010 was rejected Message no. V1579".
    In the implementation the products was delivered for the company, but today they work with service orders but the integration SD with PP is until running but they user the order for documentation and to saw the costs.
    I wrote a SAP message and read this notes 964813 and Note 1028464 but both are already aplicated. SAP responce to me but I don´t konw to much of the SD and PP integration. Please, can any one help me?
    SAP responce:
    Info to SAP    
    12.03.2008 - 12:49:44 CET - Reply by SAP     Attachments
    SAP Note 97272  - Rejections of individual order items possible
    SAP Note 356895  - Rejection of third-party items and individual PO items
    SAP Note 549972  - FAQ: rejecting third-party or individual PO items
    SAP Note 1054121  - The SAP Ecosystem in a Nutshell
    Dear Gina,
    I was analyzing the problme in your system.
    If I understand you rigt you are expecting that the link between the
    sales order and the production order is not deleted when you set the
    reason for rejection. When you set the reason for rejection again then anew production order is created.
    The standard behaviour is that the link between sales order and
    production/assembly/service order is deleted. As field vbep-aufnr is
    deleted also no later restructuring is possible.
    In the header table of the order aufk-kdauf there is still the relation
    to the sales order number but there is a deletion flag set for it and
    the link can't be reactivated.
    I am sorry that I could not give you a more positive reply.

    Hi:
    In the table AFKO I don´t have any order document. I searched this, before reject the sales order, and then, when I try to reject the sales order, and in both cases I don´t have the relation about the order and the sales order in this table.
    I looked at the table AUFK and in the field KDAUF I saw the sales order and the relation with the PM order, and this is my problem, I don´t no why the message error tell me something  about PP order,  I didn´t understand.
    I saw the customizing and I Know they works with the "Strategy group" in materials and it was customizing in "Demand Management" and the order was customizing in "Plant Maintenance and Customer Service", (PM) customizing the Order Types. I think when finally they decided that the material was only for services, they changed something, and the customizing is not complete in PP.
    In the old version 4.6C the rejection of sales order works, but in this version 6.0 and with MRP implementacion I don´t know in what step this was change. If you Know where can i find if something of MRP affect the previous integration please let me know, because I think is a PP customizing problem.
    Thanks
    Best Regards
    Gina

  • Cust  for Item number calculation when creating/changing a sales orders

    Hi
      I need to know if the item number when capturing/ modifying  a sales order can be calculated automatically with some route in the customizing,  or do I need to do it with some user exit in the sales order entry?.
    Thanks!
    Regards
    Soraya

    Hi,
    Goto the T.Code "VOV8".
    Select your order type.Details.
    Goto the "Number systems" tab.
    Maintain the value as "10" or "15" like this any number as per your requirement for the field "Item no.increment".
    So that the main item will be incremented by the number you specified here.Suppose you specified the number as "10" the line item numbers would be 10,20,30,.....
    Next is if you maintain the value for the field "Sub-item increment" then the sub items will be incremented by the number you specified here.
    It would be mainly used in the case of BOM.
    To get the numbers from the order,goto the T.Code "SE11/SE16".
    Enter the table name as "VBAP".
    Pass the order number.Execute.
    You will get the all line items with numbers.
    Regards,
    Krishna.

  • How to restrict the user from making any changes in Sales order- item level

    Hi to all
    How to restrict the users from making any changes in sales order at item level if the same sales order is released by senior user through status profile.
    Regards
    Anish Parikh
    Edited by: anish parikh on Jan 24, 2008 5:16 AM

    Hi Anish,
    This can be achieved through the roles and authorization.
    This can be done through the basis team. they can create user profiles and roles.
    For the roles they assign some transaction codes so that they can view the only assigned tr. codes.
    Like that ur requirement can be done.
    Also u can prevent the user to change any fields in the sales order screen (VA02). for that please modify the authorisations.
    Hope i answers.
    Reward points if useful.
    Edited by: kaleeswaran bhoopathy on Jan 24, 2008 9:57 AM

  • When I create Return Sales Order through BDC sales order doesnu2019t create.

    Deal Guru,
    When I create Return Sales Order through BDC sales order doesnu2019t create.
    It shows created sales document number but when I display this document I am getting message Document is not in database.
    After executing my BDC, message received in SAP in box : SAPSQL_ARRAY_INSERT_DUPREC
    I am receiving following message in SAP inbox for following issue.
    But when I create Return Sales Order through VA01, it is working. Please give me some idea.
    Detail Message
    Update was terminated
    System ID....   PRO
    Client.......   900
    User.....   DEVELOPER2
    Transaction..   VA01
    Update key...   4961DBF46A6B09D2E10080020A02281C
    Generated....   05.01.2009, 16:03:40
    Completed....   05.01.2009, 16:03:40
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Regards
    Makarand

    Hi Rory
      Try this link:
       BAPI can't to create SO,But used bapi data with manual can?
    Regards
    Neha

  • What happens in the back ground when you schedule a Sales Order?

    Gurus,
    What happens in the back ground when you schedule a Sales Order?
    Assemble to Order scenario.
    Edited by: 792050 on May 17, 2011 3:24 AM
    Edited by: 792050 on May 17, 2011 3:24 AM

    If I merge libraries and then back the merged libraries up onto an external drive or DVD, do I just back up the libraries themselves, or do I also back up the original files?
    If you're running a Managed Library, then backing up the Library also backs up the original files.
    I ask because my HDD is getting pretty full. I want to reduce the amount of stuff on it, and the iPhoto libraries are the biggest single consumer of space at the moment (Nearly 100GB).
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD
    P.s. If you're running a Managed library, then it's the default setting, and iPhoto copies files into the iPhoto Library when Importing
    If you're running a Referenced Library, then you made a change at iPhoto -> Preferences -> Advanced and iPhoto is NOT copying the files into the iPhoto Library when importing.

  • Message :when i raise the Sales order

    Hai Guru,s
    "Date  4004 cannot be coverted (please correct)"
    The abvoe message  is coming when i raise the sales order.why it is coming
    thank u in advance

    Dear Sree,
    Check link:
    the date 2168 is not convertible (Please correct).
    Hope, this may help you, some extent.
    Best Regards,
    Amit

  • Have to provide a popup when there is a Sales order change(VA02)

    Hello,
    I would like to know how to capture Sales order changes(VA02) through an enhancement. Based upon users changes which can be either a addition or deletion in sales order then I have to provide a popup. I am unable to find out whether Sales order has undergone a change or not. Field r185d-dataloss is alway having 'X' whether data has changed or not. System field SY-DATAR is not capturing any deletion is sales order.
    I am using USEREXIT_SAVE_DOCUMENT_PREPARE but unable to check sales order is changed or not.
    I need to provide popup after user clicks on Save. Tables CDPOS & CDHDR won't have current sales order change.
    Thanks for your replies.
    Edited by: harryibm on Dec 11, 2011 8:07 PM

    I am using USEREXIT_SAVE_DOCUMENT_PREPARE but unable to check sales order is changed or not.
    Donot do any changes and hit save. check if this routine is triggered if you are not changing anything.
    In program MV45AF0B_BELEG_SICHERN there is a condition
    IF R185D-DATALOSS = SPACE       FORCE_UPDATE   = SPACE     AND
           UPD_VBUK IS INITIAL        AND
           UPD_VBUP IS INITIAL.
    The else part will only tirgger if its changed. The routine USEREXIT_SAVE_DOCUMENT_PREPARE is called in the else part.

  • Discount % from Sales Order to Delivery/ AR Inv

    Hi,
    At times when Delivery is created from Sales order the discount % is not reflected and the field is blank. This is happening with random BP. The user ID has 100% discount authorization.
    Any idea for the reason.
    Thanks,

    Dear
    Please check Inventory >Price List >Special Price List
    Here you check any discount allocate to you BP or not.
    This may be a reason.
    Regards
    MANGESH PAGDHARE.

  • Rounding of material qty in sales order to lower  decimal value of 0.001

    Hi
    The issue is with a sles order.When the user creates an order of a material of quantity for ex: 7434.73 kg the ssytem automatically rounds the quantity to 7434.729kg.There is no rounding profile mainatined in the material master and the the unit KG has been define for decimal 3 units (in the SPRO setting).
    One more observation is when the smae material is ordered for quanity 1000.73,2000.73,3000.73 or 4000.73 this rounding does not happen.But when the quantity is 5000.73 this issue occurs.
    Any idea as to what is the probabe cause?
    Any OSS notes on  this issue?
    Thanks,
    Satyajit Mohanty

    Hi Satya,
    First check with Material master -
    >basic data -
    >Additional Data------->check any  AlternativeUnit of measure is maintained
    Second check with Condition Types(V/06)----
    > Scales -
    >check with Scale formulas and unit of measure
    and in "control data2"----
    > check with quantity conversion
    and finally with Condition records(VK12)----
    >for that materials .........how scales are mainatined
    Hope this finding will help you.
    Regards,
    Seegal

  • Condition rounding error in pricing of sales order

    Hi all,
    I have a problem on rounding of condition type MWST in a sales order.
    I have the PR00 condition evaluated with 6,50 euro for 1 piece; on this price should be applied condition type MWST with a percentage of 10%.
    The result should be 0,65 euro but the system shows (and calculates) 0,64 euro for MWST.
    How can I solve this rounding problem?
    Thanks in advance for your helpful answers.
    Alessandra

    Hi,
    Check if you are using VOFM subroutines in your pricing procedure (V/08) or in the condition type (V/06) for rounding rules.
    Check too this notes and related notes in them (surely, they will help you)
    Note 80183 - Rounding
    Note 315792 - Group conditions of the same amount on item
    Note 166952 - Rounding when distributing header conditions
    Note 517829 - Source code f new dstrbtn rule 'roundng diffrnce comparison'
    I hope this helps you
    Regards,
    Eduardo

Maybe you are looking for

  • Trouble Installing Acrobat 9 Professional - Creative Suite 4

    I bought a newer HP laptop months ago and loaded all the other components of Creative Suite 4 Design Premium -- Win 7  64 bit - with no issues. I then tried to install Acrobat 9 Professional and keep getting error messages saying that one or more com

  • Saerch for plist in spotlight

    Hello mac friends! I have a little question concerning spotlight, before the Leopard crush into my iMac i could serch for .PLIST files with it (wiht tiger). But now it´s hopeless, did Apple forgott a little button that allow the os user to decide wha

  • N96 firmware update. . . FINALLY but. ..

    The update just will not start. It get's to the point with 15mins remaining i.e. the start and then asks me to go through with the recovery process. Remove charger/battery etc. Has anyone else experienced this?

  • Different tax codes for a Sales order and Credit memo

    Dear All, We have created a sales order and in the invoice some X Tax code is determined in the Account document. But when we created a Credit memo request with reference to the same Sales order, we are getting different tax code in the Accounting do

  • Want to retrieve multiple XML fragments in CLOBs in a *single query*

    Hi, I am trying to retrieve some well formed XML fragments stored as CLOBs from an 8i DB. For a single fragment at a time this is not a problem using <xsql:include-xml>. However, I am trying to retrieve multiple well formed fragments in a single quer