Change Discount in orderlines trough DIAPI

Hy,
I'm trying to change the discount percentage in an orderline through an addon.
I use the B1DE and catch the OnBeforeFormDataAdd event. The AddOn fills the discount correctly but at the end, when the addon releases the code (and standard SBO takes over again) the Order fails with the following error-message;
There is a difference between the document total and its components.
Can anyone help me with this?
Thanks,
Joeri

Hello Joeri,
Funny isn't it
Maybe you remember this??: /thread/195887 [original link is broken]
If I search on the forum I get serveral messages with an old bug in sbo.
Maybe this bug is back?? We should try it this week at the office in another patchlevel...
See you soon....
Greetings Teun

Similar Messages

  • Changing discount account from revenue

    Hi,
    referring to metalink document number 240123.1, which state that changing discount acount to account other than revenue account was unavailable and "may" be handled by future releases.
    Is this feature available now in R12? how can subledger accounting handles this?
    Thanks,
    Gerry

    it should ask you if you want to delete the content or keep it on the iPhone when you delete the icloud account from the phone

  • Change Discount Base in Invoice

    Dear Gurus,
    There is a posted invoice created using reference and as the Discount Base was not changed new documents got posted with the wrong Discount Base.
    How can I change the Discount Base, I tried using FB02, but it does not allow me to make any changes in that field.
    Please let me know the steps ASAP.
    Thanks in advance for your time and reply.
    regards,
    Raj

    Hi,
    Check whether field is allowed for change in configuration. The path is as under:
    <b>IMG> Financial Accounting > Financial Accounting Global Settings > Document > Line Item > Document Change Rules,line item.</b>
    If that field is not there, you can add it - make the required changes and revert the changes in configuration if you don't need it on an ongoing basis.
    Thanks
    Murali.

  • About changing the background color trough javascript in table/chart WAD

    Hi guys,
    my problem is this one:
    i got a Web template with a table and its chart, i need change the background color of the result of my table and chart trough javascript code, for example:
    <STYLE>
    .SAPBEXexcGood1:{ BACKGROUND-COLOR: #CDDEE9};
    </STYLE>
    Here i m switching the color of the exception of GOOD1 (it's green) to light Blue.
    In the table the background color of the total has changed to light blue, but in the chart is still the color green of the exception, i need represent the light blue for both,
    help me , i'll really appreciate it.

    You can change teh clour of Line/Bar in web template parameters itself.
    In Edit Chart Properties, Select the particular Series :
    In Its properties  you see,Chart type,Axis,Color etc...
    Change the Color to Light Blue ( you will see the options for all colours)
    I think for Light Blue,You can try with @11
    Hope it helps
    Thanks
    Sriman

  • Change discount base in F-53 for payment difference

    Dear All,
      Our user have created a  vendor invoice of Rs110000., with W/H tax of Rs11000. Now, during F-53, the customer is only paying Rs49000. Now, the system  should be picking up the payment difference value  of Rs50000 (99000-49000) in the disccount base  automatically. But  in our case  the proportionate value of W/H tax on payment difference is loaded on the payment difference and populated on the disc base field, that is -Rs50000+Rs5555.56(Rs11000/99000=0.1111*50000=5555.56)=Rs55555.56.
      Can you plaese suggest me is there any way out to change the disc base value to the payment diff value , as the system is automatically picking it, and is coming in display mode.

    Hi,
    Thanks for your reply. I have checked OBY6 setting and Disc base is net value only. Please let me know if there is any other solution.

  • Can I change the Jar contents trough Java code ?

    It may seems a little bit wierd, but it could solve a lot of acessibility problms....
    Can I change/set the jar contents using java code ?
    My real problem: I'm creating a EDI Client and using a XML file as configuration file. It's running well but this XML is much exposed to unauthorized users....
    Can I set a value in this XML file if it is inside a jar file ??

    you can look at class JarOutputStream . You could also use class RunTime to just create a new jar with the proper files via the normal jar command.

  • Employee Discount and Loyalty Plan

    Back in June of this year I contacted customer service to change my plan. I was told about the new Loyalty Plan. My concern was whether or not my employee discount would still apply. The customer service rep checked into it and told me yes. So I made my decision to take the new plan, and commit to a new contract, based on the idea that the plan would be $60 per phone minus the discount which would make each phone $48. This has been the case for months. Even last month, November, Verizon sent me a document to verify I was still eligible for the employee discount. I filled it out and sent it in and got confirmation that I was still qualified. Then the December bill came in and it was $25 higher. When I checked into it I was told that the customer service rep made a mistake and I should have never got the discount. When I checked this forum I found out that a lot of people were told the same thing and made their decision based on still getting their employee discount. This seems like to me that Verizon changed their mind after starting the program and now the consumers are getting a bad deal. This is a breach of contract since I took on the new commitment based on the employee discount still being in effect. My wife and I have been with Verizon for over 13 years. I feel that we have been lied to and that Verizon is refusing to honor their contract with us. They are going to lose our business and we will move our money somewhere else if they don't fix this. They should at least honor what we agreed to until the end of our two year contract. Then they can change the amount legally. This also means that having a contract with Verizon means nothing to them and they have no honor or integrity. So starting today I will start looking for a new carrier because as far as I am concerned my contract with them is null and void the minute they raised my bill and eliminated my employee discount. If they agree to fix the problem, then I will keep their service.

        DaleGolds,
    We appreciate your loyalty and I’m glad we were able to locate a plan which will help you save. I regret to learn you’ve had this type of experience with a Loyalty plan. We definitely don’t want that to be the case, as these are special plans, especially designed to help our long-time customers. I certainly want to address all your concerns and apologize for the misinformation that may have been provided.
    Our goal is to ensure you are billed correctly, and if the plan mentioned is not the best fit for your needs, we are happy to bring you back to the old one. The Loyalty plan you mentioned is designed for single-line users and it is correct the employee discount offered by your company does not apply.  It’s always our intention to be honest with you and though this change (discount not applying) is not a breach in contract, it is stated in the agreement the change of eligibility can chance at anytime. This is the case of why the discount would not apply.
    AdaS_VZW
    Follow us on Twitter at @VZWSupport
    I definitely don’t want to lose you as a customer and I’m prepared to do everything I can to help. Please let us know if you would like to change back to your old plan, so we can confirm it is eligible to receive your discount.

  • Discount on AR Invoices

    Hi all,
    Is there any way to change discount on AR invoices?  We need to process AR invoices and we would like to try without discount, but the system wonu2019t let us take the discount off?
    Any advice please?
    Edited by: Matthew Brigley on Oct 29, 2009 12:34 PM

    Hi....
    When he speaks off, to discount concerns? discount level of detail (per line) or discount for the document?
    The online discount can be modified whenever we have the authorization to do so and that the field is parameterized as an asset, while the total level of discount to understand that it can always be amended.
    Best regards,

  • Capture GrossPrice Change

    Hello Experts
    I would like to capture the gross unit price changing for any reason - i.e. item changed, discount changed, price list changed etc etc in sales documents.
    However, I want to emulate the User-Defined Values option of "Display Saved User-Defined Values" - i.e. I do not want the event to have any effect if it is saved document opening up, or a document being copied from an earlier document in the document chain.
    Any ideas how to best achieve this?
    Thank you.

    Hello Marc,
    it is possible
    create a udf on row level to store the gross price
    logic:
    when gross price is changes, you may check the udf value empty or not, if empty, you copy the value from gross price to udf, otherwise you leave it.
    So sql syntax which can be used for this (you may replace the values with the fields of SAP B1
    SELECT case isnull($[$38.U_IHBGRVal.NUMBER],0)
    when 0 then (select $[$38.288.NUMBER])
    else (select $[$38.U_IHBGRVal.NUMBER])
    end
    Regards
    János

  • It is possible to change CardCode with DI

    Hi All,
    The title resume my request.
    I'm trying to change the cardCode of a Bp via DI but i have this error :
    "'This entry already exist - 2035"
    So can i change the cardcode with the DIAPI.
    Thanks.
    Michael

    Hi Petr,
    I agree with you if the BP has some link document like Adress, Contact ...
    But i succeed to change the CardCode with DI if the BP has no adress, no contact ....
    So the only solution for me is to change the CardCode manually in SAP B1 if the BP has some data link. Exactly ?
    Thanks.
    Regards
    Michael

  • Configuration documentation for idoc type PEXR2001 & idoc type FIDCCH01

    Is there any documentation for SAP configuration that needs to be done to get an outgoing PEXR2001 Idoc created?  This is the payment file Idoc.  We are trying to send this IDoc to a 3rd party, and I don't know how to get it created from the payment run.
    Also, the FIDCCH01 is an incoming IDoc that would change discount dates and amounts on posted financial documents (vendor invoices).  Is there any documentation regarding this IDoc and what incoming RFC is used to actually post the changes?

    resolved the problem/question ourselves

  • Call transaction vf01

    Hi guys,
    I'm working in a report that it updates the price and quantity of various materials in a especific sales order using a call transaction. ( The tcode that it simulates is VF01)
    My problem is the following, if this sales order has more than 20 positions the process is blocked in the 20th pos, because the update is in a standard ALV.
    Somebody know a solution for this case?
    TYIA!!

    Hi MxG,
    the report is a select option when I get Vbeln, using bapi's I get all the positions of this sales order and I show it in an ALV, in this Alv the user can change the quantity and the price of this sales order. I create a BDCDATA with these news changes (discounts in the original sales price or the client likes a minor quantity of products) and I proceed with the call transaction in the Vf01.
    All this process it's right till the changes must be done in other tranx (Va02 I think) in the original sales order because it does it in a standard alv and I only can change 20 files....
    I hope I explain corretly the problem...
    Thanx

  • How to know when the PRICE AFTER DISCOUNT changed and get the value

    Hi,
    Everything I do to see if a value changed in the grid works except for PRICE AFTER DISCOUNT
    which seems to be inaccessible.
    Any idea how to know when exactly this value changed and do actions accordinly ?
    Also I always get 0.00 if I try to get the value of it
    This works to get in the condition of a vlaue changing but I always get 0.00 as the value of the column
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_DISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_DISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
        catch (Exception ex)
            SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    And this do not even get into the condition even tought I SEE the column PRICE AFTER DISCOUNT:
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_PRICEAFTERDISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_PRICEAFTERDISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Price after discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
         catch (Exception ex)
             SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");

    just idea, maybe it will works
    Create one udf in row level and set there FS based on changes on price after discount and fill value what is in price after discount. Then the validation make on this field instead of standard SAP field.

  • SBO2007A can no longer change the Price after Discount on marketing docs

    In SBO2005A (subjecting to Document Settings), you could change the Price after Discount.  Thisis no longer available in SBO2007A (unless you upgrade from SBO2005A with the appropiate settings.
    I have not found a customer who thinks this is good idea.
    Good to reinstate the functionality.
    Regards
    Jeff

    Hi,
    The field "Price after discount" can become editable if you unmark the checkbox "Calculate the row Total using the Unit Price" (Document Settings->General Tab). As default this checkbox is disabled for new installations.
    Also, please check the following link as well :
    Re: Net price calculation
    Regards,
    Jitin
    SAP Business One Forum Team

  • Assigning a range to manually change the discount

    hi gurus
    i have a question regarding changing the discount % manually .. i would like to set a default discount % as 2% for a material .. and during the order i would like to make it flexible so that it can be choosen from 1.8% to 2.4% .could some one please help me with this configuration idea.
    thankyou very much
    bj

    Maintain a condition record with 2% for that condition type. In the condition record mainatain the upper limit as 2.4% and lower limit as 1.8%. Ofcourse condition type configuration should allow manual change i.e. maintain no limitations or manual changes has priority in the condition type.
    Regards,
    GSL.

Maybe you are looking for

  • Production and Development in Different Networks.

    Hi Experts,        I have installed SAP ECC 6.0 DEV with EHP5 and Solution Manager in one Network Landscape i.e under one live ip.  PRD is not yet installed. My SAP Router is running on Solution manager. Now i have a situation here. The client now wa

  • Song NEARLY imports, then have to force quit.

    Hello all, had some great advice here before with success, but this time I fear it may be a dead end. A little background info then in point form may be in order this time: 1. Have recently upgraded to iTunes 7.1 and 7.1.1 2. Successfully imported 10

  • AS3 loading external swf files with buttons from inside a movieclip

    In my main .swf I have labels on the timeline, navs for those btns are on the first frame of the AS layer and each button sends the playhead to a different frame. On one frame called fr1 there is an mc called mc_1 that appears on stage when the playh

  • Shared Services Application Groups

    Hi, We have the following application groups which I assume are default APS Servers Business Rules Default Application Group Essbase Studio Server Essbase Server File System Foundation Planning Reporting and Analysis I was playing with creating my ow

  • 2010 1099 Reporting

    Hello, Does anyone know when SAP is going to provide an updated form for 2010 1099 Reporting? Thanks, Ben