Skip to Content

How come the discount % in document line is always set to 100%?

Hi All,

When I create an SO via DI, I found the discount% is always set to 100% which causes the incorrect doc total amount. I didn't have problem in other company DB, this is a new company setup recently. Even I hard code the discount % to zero in my source code, but still same thing. Any idea?

Thanks,

Lan

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Apr 24, 2012 at 03:54 PM

    BTW, I have checked the BP master and I noticed that there was a field called total discount% in payment terms tab which shows empty there. And if I create a SO in SAP B1 client software, then seems no problem at all.The discount% for each document line is set to 0% automatically. In my DI source code, I assign below value for each document line:

    1. ItemCode

    2. ItemDescription

    3. Currency

    4. Price

    5. Quanty

    6. DiscountPercent (hard coded to zero always)

    7. TaxCode

    8. WarehouseCode

    9. BaseEntry (the docentry of a quote)

    10. BaseLine (the document line of quote)

    11. BaseType(hard coded to 23 which is quote)

    Lan

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Lan,

      When you draw a document, you do not need to determine all these parameters. The drawing process will do all that for you automatically.

      You only need to assign the identifying properties. Just CardCode on the header level and on the row level BaseEntry, BaseLine, BaseType and TaxCode.

      Any other properties you should only assign if testing shows that the field is not copied correctly, or if you want to override the value from the source document.

      You are probably getting the 100% discount by setting the currency, and/or price, and/or DiscountPercent properties.

      Regards,

      Johan

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.