Discount Percent on IGN1
Hi Experts,
Anyone knows why there is a value in field discprcnt on table IGN1?
That value makes the calculation for actual product cost, after Receipt from production is different from my manual calculation.
Any idea?
Regards,
David
Hi All,
see the solution part of this following sap note:
1701172 - Column Discount % in Issue for Production
Version 1 Validity: 27.03.2012 - active
Language English
Content: Summary | Header Data | Validity
Symptom
When changing quantity of FIFO item in manual Issue for Production, system might calculate a discount in column 'Discount %' on the row.
Reproducing the issue
Scenario:
1. Create new item A with valuation method FIFO
2. Create Goods Receipt for item A with 2 rows: 1st row quantity 100 and price 0.01, 2nd row quantity 300 and price 2.00
3. Create Production Order with the FIFO item A as component with planned quantity 272, and set its issue method as Manual.
4. Release the Production Order and then select the option Issue Components.
5. In the Issue for Production window change the Quantity of the item A from 272 to 150 and create the document.
Result:
The discount of 90.57% appears in column 'Discount %' of the Issue for Production.
Cause
Functionality Description
Solution
FIFO item is issued from layers with different item cost, therefore if quantity gets changed the expected Item Cost can change as well in regard to the respective FIFO layers involved.
Other terms
SAP Business One, Production, Info Price, stock, inventory,
Header Data
Released On
27.03.2012 13:47:54
Release Status
Released for Customer
Component
SBO-PP-ISS Issue for Production
Priority
Recommendations/additional info
Category
FAQ
Validity
Software Component
Version
SAP BUSINESS ONE
8.81
8.82
JM
Similar Messages
-
In A/P Service Invoice, a discount percent amount is automatically entered
Hi all,
I am stumped. On a random basis (about 25% of time) a discount percent is appearing (not entered) in the field of a multi-line A/P Service invoice. The percent amount appears to be random as well. The discount percent field is not visible and inactive in form settings. What could be causing this?
Thanks, BillHi,
Please check the following scenario :
One scenario is caused when the Total amount changed after system calculate it according to Unit Price.
Check the following steps to reproduce this scenario,
- open ap invoice and choose Services
- choose an account and type Unit price, Total amount will be
calculated automatillcay
- change the total amount.
- System will calculate the difference and leave it in Discount field.
Not change the Price field.
Kind Regards,
Jitin
SAP Business One Forum Team -
How to populate the field Discount Percent (DIS) in the outbound S1ORDEXC?
Hello all,
I am working with the Spec2000 to send out the IDOC S1ORDEXC.
Does anyone know how to populate the field Discount Percent (DIS)?
This field length of Discount Percent is 2 characters, but our customer discount in the Princing Conditions (Sales Order) is longer than 2 characters (ex: 7.500-%)
Thank youHello Thuan
I guess you are working with IS- ADEC and SPEC 2000. I am not an expert on this but leave you some hints from OSS notes I came across.
It appears like Discount Percent - DIS and Procurement Discount Percent -PDP are complementary and mutually exclusive. If one exists, the other need not.
Looks like DIS is computed as (100-PDP)/100 and it is just a 2- integer data (as in 20 Percent). It is a kind of multiplier (Factor), example if PDP discount is 10 percent, then DIS (Factor) is 0.9 and so final (net) price after discount = Price*0.9.
" If the discount comes in the S1BOOKED inbound into SD in the field DIS, then the discount has to be sent back in the DIS field .. if it came in the PDP field then it has to be sent back in the PDP field. If there was no discount in the incoming IDoc, then the discount has to be filled in the PDP if there was a change in the discount".
KDATE in SPEC 2000 file maps to DIS and KPERC to PDP.
PDP has 4 characters and per OSS note 440380, the point is ignored meaning you can work with 1225 instead of 12.25.
So may be you can work with PDP?
OSS notes: Apply to older releases but may still be applicable conceptually speaking.
456153 - S1ORDEXC does not send out Discount
440380 - PDP has only 4 characters in the SPEC IDoc instead of 5
596042 - Discount percent DIS not considered e processing S1ORDEXC
698668 - Incorrect calculation of unit price for PO item by S1ORDEXC
Let me know you final findings. -
Adding Discount percent in Goods receipt PO
Hello Friends,
I am Trying to add an Goods Receipt PO document line
using oPurchaseDeliveryNotes object . It is taking all values of line except discount percent.
I want to ask is there any method to asign the discount through oPurchaseDeliveryNotes object.
I did in following way
GrPODoc.Lines.DiscountPercent=RS.Fields.Item("U_Disc").Value
Thanks & Regards,
Mithun.Hi Gabriela,
This is my Code where RS is my recordset from which I am reading the values and putting it in Object
it takes all values except the Discount Percent.
GrPODoc = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
GrPODoc.CardCode = GrVendorcode
GrPODoc.DocDate = Now
GrPODoc.DocDueDate = Now
GrPODoc.TaxDate = Now
GrPODoc.Lines.ItemCode = RS.Fields.Item("U_ItemCode").Value
GrPODoc.Lines.DiscountPercent = RS.Fields.Item("U_Disc").Value
GrPODoc.Lines.AccountCode = RS.Fields.Item("U_GLAccNo").Value
GrPODoc.Lines.WarehouseCode = RS.Fields.Item("U_SubWhrs").Value
GrPODoc.Lines.Quantity = (Struct_GRCHRGITM1(j).ReqQtyfor_OnePiece * GRMatQty)
GrPODoc.Lines.Price = RS.Fields.Item("U_UnitPrc").Value
GrPODoc.Lines.TaxCode = RS.Fields.Item("U_TaxCode").Value
Dim ErrCode As Long
Dim ErrMsg As String
Dim val As Int32 = GrPODoc.Add
If val <> 0 Then
ocompany.GetLastError(ErrCode, ErrMsg)
SBOApplication.MessageBox(ErrCode & "," & ErrMsg)
End If -
Discount percent in Sales Invoice. DI
Hi Experts,
I am trying to add Sales Invoice using the DI API, the problem is that When i am adding Discount % in the lines its not getting reflected. The invoice is adding But the discount col is empty.
oSalesInvoice.Lines.DiscountPercent = 10.0
Even if i hard code the value as above the result is the same. I am using SAP B1 8.8 PL 10.
Anybody faced the same issue, is this a PL issue or what?
Thanks in Advance,
Vasu Natari.If you want to set the DiscountPercent you need to set the UnitPrice property and not the Price property.
Hope this helps -
Goods receipt PO Discount field not Updating
Hi Experts,
I am with a problem,My problem defines.I have 1 Records in the Database Table..In My SDKCode,Based on the PurchaseDeliveryNotes Object I am adding the database tables values to the Goods receipt po LinesItems (itemcode,itemdescription,Taxcode,Quantity,Unitprice and Discountpercent).When I am Updating to the Goods Receipt..except Discountpercent field all other fields are getting updated. Is it possible to update discount percent in Goods Receipt
Regards
PradeepHi,
See this links,
Adding Discount percent in Goods receipt PO
Regards,
Siva -
UI - Forbidding manual discount change in sales order footer
Hello,
I would like to share with you some of my recent experience with UI API ...
I was trying to forbid the user to modify the discount (both in % or in amount) in a sales order footer.
I first thought that it would be a difficult task to do as those are system fields that appeared on the form. I reported to the UI 2004 help file and start seeking restrictions:
What is mentionned is:
- "You cannot set the item's Editable property to Yes." (Item object)
- "You cannot set this property to True for items of system forms. In addition, if the item is in fucus, you cannot set it to False" (Enabled property for Item object)
Please note that I did not want in anyway to alter the system logic related to the calculation of the discount.
On the form type 139, discount percent is item 24 (databound to field ORDR.DiscPrcnt) and value is item 42. Both are enabled and visible so I thought it was ok (how lucky to be safe from sys forms restrictions )
Thus I tried the following piece of code:
Public Shared Sub ChangeSysItems(ByRef oForm As Form)
'Deactivating the field for discount percentage on the footer of the document
If Module1.oInit.bAllowDiscountChange = False Then
oForm.Items.Item("24").Enabled = False
oForm.Items.Item("42").Enabled = False
ElseIf Module1.oInit.bAllowDiscountChange = True Then
oForm.Items.Item("24").Enabled = True
oForm.Items.Item("42").Enabled = True
End If
End Sub
But this is not working (of course I tripple check that they were not on focus). I try on another sys field (the field Remarks):
oForm.Items.Item("16").Enabled = False
and this works well.
Funny enough you can hide those fields:
oForm.Items.Item("24").Visible = False
oForm.Items.Item("42").Visible = False
But why cannot you disable them?
Any idea?
PS I am working with SAP Business One 2004 A, patch 23.Hi Cyril,
I tried your code, it works. It will disable those two items. Please refer to my code below. BTW, what I did is to catch combo box selecting event, when you select a combo box value, it will diable the two items.
Private Sub m_oApplication_ItemEvent(ByVal FormUid As String, pVal As SAPbouiCOM.ItemEvent, BubbleEvent As Boolean)
Select Case pVal.EventType
Case et_COMBO_SELECT
Dim oForm As SAPbouiCOM.Form
If pVal.FormType = 139 Then
'Set oForm = m_oApplication.Forms.Item(FormUid)
Set oForm = m_oApplication.Forms.GetForm("139", 1)
oForm.Items.Item("24").Enabled = False
oForm.Items.Item("42").Enabled = False
End If
End Select
End Sub
Best Regards,
Nick He -
Vendor Invoice - Outgoing Payment -How to apply cash discount automatically
Hi Folks,
My Vendor is 400000 - whose payment terms is : 0002
I posted a vendor invoice using FB60 :
where i checked the payment terms is 0002 3% Cash Discount within 14 days
2% Cash discount within 30 days
Net within 45 dats
Default for Baseline date : Posting Date.
My Document Date and Posting date are both same: Invoice Document and posting date : 07/31/2008
I tried to make a payment using F-53, where the Cash Discount is not applying automatically. It is asking me to manually enter the cah discount @ 3%.
What should i do to make cash discount apply automatically.
Thanks and Help will be surely rewarded.
MatthewHello I just checked in my system it is automatically picking even if I am not taking the discount....check the payment terms....
ex : I have invoice for 500 with payment terms 1% discount
When I pay 500 in F-53 the system is showing me the net amount 495.
When I pay 495 the system is also showing me the net amount of 495
You might want to have a look at the payment terms.......
Make sure when you enter the amount in F-53 and press "Process Open Items", you have the discount percent populated automatically in the CashD% field.
Thanks
Harish
Edited by: Harish R on Aug 1, 2008 3:19 PM -
Cash Discount in pricing Sales Order SKTV
Hi gurus,
I need help to understand condition SKTV (Cash discount) in sales order. Requeriment is a cash discount for customer. Where do I put value to this condition for every customer? There isn't access sequence.
I will reward points to anybody help me with steps to configure OK this condition.
Thank you!!!Gaurav,
Thanks for the reply.
But it looks like your suggestion is not relevant to my issue.
My requirement is to automatically populate the "discount percent" condition type in pricing tab of PO.
Also discount percent relevant for the payment terms should get derived in that condition type.
I could able to manually add that condition type in pricing tab and have to manually enter the discount %. But I would like to get that automatically.
In SAP R/3, it is happening automatically with SKTO condition type. Discount % available for the payment terms is getting derived automatically for the SKTO condition type.
PLease advise.
Thanks,
SS -
Multiple Discount in Invoice PLD
Hi Members,
I have designed a PLD In which there are fields to display discount percentage and discount amount at the report footer.
I should display the discount percentage and discount amt if the item details has uniform discount given.
Say for e.g if there are 3 items and alll 3 items is having uniform 5% discount, so i should display Discount 5% and discount amt.
But if the items has multiple discount say one item has 2% and others has 5% discount given. I should not display the discount percent in report footer.I should only display Discount and its Disc amt.Also if there is no discount in Item details the discount and discount amount should not be displayed.
Kindly suggest an solution to solve this issue.
Regards,
Venkatesh.RHi Venkatesh,
You could show line discount in PLD (Field_XX1) and use a hidden formula field (Field_XX2) with ReportSum ("Field_XX1").
Then add another hidden formula field (Field_XX3) to divide Field_XX by the last Linenum().
Then the third field (Field_XX4) with (Field_XX1)==(Field_XX3)
Finally link (Field_XX4) to your discount fields.
Thanks,
Gordon -
There is a feature that allows the copy of Volume discounts to all other Items displayed in the Volume Discount window.
I make the required change to the DIscount Percent or Dicount Price, and the Click the Update button. I select the radial button to update all Items in the Window. There are between 20 and 30 items only 1 price list, but it takes maybe and hour to update.
Is this normal to tak so long? I could manually update the Items in just a few minutes .
Did I possibly do something incorectly? The Items did update correctly but I would have expected it to take less than a minute
Any Ideas?
Thanks in advance
DanaGordon
I selected a Price List in the Period and Volume Discounts, then used the filtering to only display the 30 items that where to have the price changed. These Items where diplayed in there own grid. When I clicked the Update button on the bottom of the Grid with the 30 items, I guess it checked All the Items in the Price List grid, but updates only the 30 items in the grid.
I guess this would explain why it took so long to update the items. Am I missing something when I select the price list? Is there a way to select only part of a price list in th einitial grid?
Thanks for you help!!
Dana -
Calculating total discount at the row level
Hi,
I want to determine the total discount amount for all of the invoice row levels by summing the row totals that have the same discount % and then multiplying that total by the row discount percent.
Example:
Lets say there is an invoice with 3 line items
Qty ItemCode Price Discount%
2 A $30 10
2 B $20 10
2 C $15 5
I want to figure the total for the first 2 lines (because they have the same discount amount) by multiplying the quantity (230)+(220)=100 and then calculating the discount from this total. (100) * (.10) = $10 and then calculating the discount for the third line item ((215).05)=1.5. This brings the total discount amount to $11.50.
Below is what I have drafted for a query so far.
Select
//For each grouping of items with the same discount %
(SUM ((T0.Quantity * T0.PriceBefDi)) * DiscPrcnt)
FROM INV1 T0 WHERE T0.DocEntry=$[OINV.DocEntry]
Any ideas?
Thanks,
LukeGordon,
I was thinking that I would have to use a group by (grouping on the discount %) statement or possible a sub-query to accomplish this. The group by statement would replace the commented section. "//For each grouping of items with the same discount %"
I will work on this query some more and post my results if I figure out a way to accomplish this.
Thanks,
Luke -
Item Discount Promotion being applying to CommerceItem and SubSkuCommerceItem
Hello folks,
I'm working on modifying promotion's pricing adjustments, we want to avoid subSKU items of some SKU's to be discounted/adjusted for Item Discount Percent Off promotions. Based on the requirement we can not modify the existing promotions/coupons which are already live each one manually so we are trying to achieve this functionality from backend.
Thanks,
RajHave you seen item discounts getting applied to SubSkuCommerceItems? That would be very surprising because the Oracele Commerce promotions engine never looks at subitems. The promotions engine looks only at top level commerce items. In other words, the system already has the behavior you want.
-
Calculate Discount Percentage from Discount Amount and Vice Versa
Hi Experts,
I have one scenario in Marketing Documents.At the Item Matrix i have two fields, one is Discount%(System Field) and another one is DiscountAmount(UDF).
Whenever i choose discount%, it will calculate Discount Amount.I done these thing on my customization. But Customer wants these scenario as vice versa which means
Discount% <--- Calculation Happen ---> Discount Amount
If i do these scenario on my customization system will get hanged.
Please provide some needfull solution for the above.
Regards,
G.SureshHI,
It is seems to be difficult but it is easy at least if you have the IDEA:
One way is ok:
Whenever i choose discount%, it will calculate Discount Amount.I done these thing on my customization.
Backward:
Calculate the discount percent : Discount Amount / Unit Price and write it back into the dicount% field !
You can use a global variable boolean, which blocks the Itemevent or when you write back the percent.
here is a code for itemevent handler and order form, where m_BlockEventHandler is public variable at the begining of the class
and U_DISC is amount type user defined field at row level of marketing documents.
> Dim m_BlockEventHandler As Boolean
If m_BlockEventHandler = True Then Exit Sub
If pVal.FormTypeEx = "139" Then
If pVal.ItemUID = "38" And pVal.ColUID = "U_DISC" And pVal.EventType = BoEventTypes.et_VALIDATE Then
If pVal.BeforeAction = True Or pVal.ItemChanged = False Or pVal.InnerEvent = True Then Exit Sub
Dim oMatrix As SAPbouiCOM.Matrix = sbo_application.Forms.ActiveForm.Items.Item("38").Specific
Dim DiscountAmount As Double = 0.0
Dim Price As Double = 0.0
Try
DiscountAmount = Convert.ToDouble(oMatrix.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific.string)
Dim s() As String = oMatrix.Columns.Item("14").Cells.Item(pVal.Row).Specific.string.Split(" ")
Price = Convert.ToDouble(s(0))
Dim newDiscount As Double = 100 * (DiscountAmount) / Price
m_BlockEventHandler = True
oMatrix.Columns.Item("15").Cells.Item(pVal.Row).Specific.string = newDiscount
Catch ex As Exception
sbo_application.StatusBar.SetText(ex.Message)
Finally
m_BlockEventHandler = False
End Try
End If
End If
it is working me fine !
Regards,
J.
Edited by: Janos Nagy on Jul 31, 2008 4:12 PM -
DI API: Wrong PriceAfterVAT value in credit note based on A/R invoice
Hi all,
I have serious problem with creating Credit Note based on existing A/R Invoice in Sales module.
I use SBO 2004A patch level 32. With SDK I've created A/R Invoice with 2 items. First item has discount percent 0% and price after VAT 1. Second item has 100% discount, this means, doctotal is 1. Document VAT is 7,6% and VAT is calculated correctly in invoice. Then I've created credit note only with 1 item and this row is bounded with 1 row in invoice. After calling oCreditNote.Add, in Business One this credit note has all prices (price, price after VAT, row total) with the same value -> there is no vat calculated although in invoice the vat calculated is.
Is it bug in DI API or do I something wrong?
I use the standard ways to create new invoice and credit note through DI API.
Many thanks for your answers.
Best regards
Libor.Hi Libor,
To create a Credit note for a Invoice you should use the Invoice as the base document for the Credit note. Here is an example of how I create a GRPO from a draft GRPO. Try this (for your Invoice - Credit Note) and see if it does not work for you (SAP suggests this way of doing it).
(Draft will be your invoice - GRPO will be your credit note)
Dim oDraft As SAPbobsCOM.Documents
Dim oGRPO As SAPbobsCOM.Documents
If oDraft.GetByKey(YourInvoiceNumber) Then
'Build the GRPO (new GRPO Obj for each GRPO Doc)
oGRPO = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
oGRPO.DocDate = oDraft.DocDate
oGRPO.DocDueDate = oDraft.DocDueDate
oGRPO.DiscountPercent = oDraft.DiscountPercent
oGRPO.CardCode = oDraft.CardCode
For i = 0 To oDraft.Lines.Count - 1
oDraft.Lines.SetCurrentLine(i)
oGRPO.Lines.BaseType = oDraft.Lines.BaseType
oGRPO.Lines.BaseEntry = oDraft.Lines.BaseEntry
oGRPO.Lines.BaseLine = oDraft.Lines.BaseLine
If i < oDraft.Lines.Count - 1 Then
oGRPO.Lines.Add()
End If
Next i
'Add the GRPO
iRetCode = oGRPO.Add
If iRetCode <> 0 Then
oComp.GetLastError(iRetCode, sErrMsg)
Log.WriteLog("Error Adding GRPO : " & sErrMsg, EventLogEntryType.Warning)
Return False
End If
End If
Maybe you are looking for
-
Lightroom - Lens Correction - Lens Manufactuer unknown
I have a Canon Rebel XTi and shoot in Raw. I have 3 Tamron lenses - a 10-24, 17-50 and 18-270. I thought I'd try out the lens correction profile for my 10-24 for a few pics, but when invoking the option, it was unable to determine the len manufacture
-
Encountering error in simple file 2 file scenario
Hi, Working on a very simple file 2 file scenario , where input contains 1 header record identified with a key field and detail record conntains more than 1 records identified with key field. Used very specific FCC. But it was unable to generate the
-
Which model number is my ibook?
hi, i need to know the 'M....." number of my machine. it's a G4, 14.1" model, 1.07ghz, 32mb vram, 2x usb, one x firewire, internal modem... can someone help please? Message was edited by: ash89
-
Hi, I'm just a beginner in MDME 5.5, and i have some problems in the install process. This is the steps that i take: 1 - Install the Oracle Server 3 - Create the database with character set WE8MSWIN1252 2 - Install the Oracle client (in the same serv
-
Hi Guys, Anybody please explain what will be the steps for creating an user with default tablespace along with quota? Thanks Gopal - DBA