AR Invoice Unit price/Discount change
Hi Experts,
I need your help regarding this....
In Sales A/R process of SAP B1 8.82, we first do sales order then copy to AR Invoice to process the invoice.
At some time users do the sales order and then copy to AR invoice and modify either unit price or discount as per the customer's requirement.
I need a query to get all these type of invoices where there is a either unit price change or discount change.
I found that any AR invoice update goes to ADOC and ADO1 table, but this table populates only when the AR invoice is saved once and then opened again and modify. but if the unit price or discount has been changed at first and saved then these table does not populate.
So how can I get this changes log, from which table so that I can frame the query.
Your assistance is highly appreciated.
Rgds
Suman
Hi Gordon,
I have got the solution through this query...
SELECT T0.[DocNum], T0.[CardCode], T0.[CardName], T1.[ItemCode], T3.[PriceBefDi] ordrprice, T3.[DiscPrcnt] ordrdisc,T1.[PriceBefDi] invprice, T1.[DiscPrcnt] invdisc
FROM [dbo].[OINV] T0
INNER JOIN [dbo].[INV1] T1 ON T0.DocEntry = T1.DocEntry
inner join ORDR T2 on t2.docnum=t1.baseref
INNER JOIN RDR1 T3 ON T2.DocEntry = T3.DocEntry and
t1.itemcode=t3.itemcode
WHERE T0.[DocDate] >=[%0]
AND T1.BaseLine=T3.LineNum
and (T1.[Price] <> T3.[Price] or T1.[DiscPrcnt] <> T3.[DiscPrcnt])
Thanks to all
Similar Messages
-
Hello all, based on a condition specified at my SO stage, i would like the user to be able / unable to edit the unit price at the AR Invoice stage.
Basically, once the DO is drawn to AR Invoice, and then based on the condition specified on the SO, the AR Invoice should / should not let the user change the unit price on this invoice.
Please advice on how to go about this ?Hi Gautam,
You can not make a system field as 'Non Editable'.
Instead, on the basis of your condition, you can make Bubble Event = False on Event Beforeclick.
like,
EventBeforeClick
if(Your Condition==True)
bubble Event=true; //it will restrict the user to change the Unit Price
else
bubble Event=false; //it will allow the user to change the Unit Price
Edited by: anuj singh on Jan 23, 2009 10:32 AM -
PO unit price getting changed automatically
Hi Team,
In my case, the PO unit Price is getting changed automatically when pushed from a different system via Interface.
In PO of the 3rd party system, Order unit price & Order Unit are the same, but when pushed from the 3rd party system to SAP only Order Unit price is getting chaged.
When i tried creating a PO via FM in SAP, it gave the right one i.e. both Order Unit & Order Unit price are the same.
PIR looks good with teh required Unit price.
Please give me some tip to find the exact reason for change...
Thanks in advance.
Sravam>
SAPMMSCM wrote:
>
>
> When i tried creating a PO via FM in SAP, it gave the right one i.e. both Order Unit & Order Unit price are the same.
> PIR looks good with teh required Unit price.
>
>
Hi,
If you are able to create the correct PO by executing the BAPI in SE37 and you are not able to do the same from external system, then the issue is the with the parameters only. Can you send the parameters that are being passed to the BAPI?
Just to make sure, send the parameters by using external debugging, not from the source system.
Regards,
Sukumaran.E -
Hello All,
Scenario-1: Log into SRM --> Select Internal Goods/Services --> Select
a G.Code --> Enter the quantity as 15 and Price as 3128.98 per 100 and
then click on Check
Result: The price in the line item changes to 3129.00
Scenario-2: Log into SRM --> Select Internal Goods/Services --> Select
a G.Code --> Enter the quantity as 336 and Price as 415.64 per 100 and
then click on Check
Result: The price in the line item remains as 415.64
what could be reason for this inconsistency.
Regards,
MadhanHi
Can you send a screen of items in the sc with all details of total value net to business mail id for clear understanding?
what is the order unit for this material? are you facing some materials/or every material ?
regards
Muthu -
MM SUS Invoice unit price issue
Hello ,
We are using MM SUS invoice scenario. In MM PO has created for order quantity 2000 EA, and net price is 73.51 USD for 1000 per unit.
During invoice, price information of item is like this:
Price 0.07 USD, Per 1 EA and value is 147.02 USD
But during invoice processing, system calculated net value to 140 USD, and invoice posted for 140 USD only, any advice or suggestion how to handle this in?
System is SRM4.0 and ECC 6.0
Thanks in advances for replay.
SunilHi Virender,
Value in SXMB_MONI in SUS is correct.
<NetUnitPrice>
<Amount currencyCode="USD">73.51</Amount>
<BaseQuantity unitCode="MTK">1000</BaseQuantity>
</NetUnitPrice>
</Price>
but in BBAP_PD (table BBP_PDIGP) entry is :
PRICE 0,07
PRICE_UNIT 1
PRICE_ORIGIN
VALUE 147,02
Normally it should PRICE 73.51 and PRICE_UNIT 1000 ,any guess we are in SRM4.0?
Thanks
Sunil -
Unit Price and Discount % is INACTIVE
Hello Experts,
In A/P Invoice unit price column is inactive rather not allowing to enter value in it. In form settings it is active.
Help Required.
Shazad NazirNazir
I guess full authorization is needed to enter unit price, check in
Sales Reports --> Change Row Amounts --> Full Authorisation
and also have a look at this thread
Authorisation for GRPO
Thanks
Rizz -
Hi,
We have set limited rights to sales user (permission not given for user to "change row amounts") at sales order row level. Is there any way to change Unit Price or discount in sales order through SDK? We have to reset Unit price/discount for free Item.
Can any one done this type of possibilites?
Regards,
ManishHello Manish,
what do you mean "free" items? Discoun of All items can freely changed or there are several items which discounts can be changed/cleared.
Stored procedure is not a good idea, because updating by SQL a field is not allowed by SAP.
>Is there any way to change Unit Price or discount in sales order through SDK? We have to reset Unit price/discount for free Item.
If the user do not have a permission to change the "change row amounts", and cannot clear the Unit Price/Discount via GUI, DI API / Addon using single sign on the client will not change the unit price/discount, because it is running with the same rights as GUI.
I am suggesting the following steps:
1. Grant the correct rights to the user to change the unit price/discount
2. Create a Formatted Search on the Discount field which clears the discount when an item is "free" item
3. Block the changes of discount/Unit Price for non free items via SP Transaction_Notification
in point (2), (3) you the "free" items should be marked somehow (item property, UDF in Item master data, etc).
Regards,
J. -
Dear All,
I'm directly creating an A/R Invoice of a Service Type Item. In the Item Master, Price List is selected- Base Sales Price List. But When Creating A/R Invoice, Unit Price is not coming. How does Unit Price come?Dear Sengupta,
I would like to add that in the item master data you can also choose a different type of item: labour or travel. In that case, you can add a price in the field Unit Price. That means that when you create an ar invoice you will see the unit price.
Please, also note that the labor and travel items are just sales item therefore they cannot be added into a delivery.
Kind Regards,
Marcella Rivi
SAP Business One Forums Team -
Automatic Release of invoice with price differance
Hi
All price differences when matching the PO, GR and invoice ends up in MRBR with price difference block. It works fine for POs with goods. But when a service is entered in the PO we can not get it released automatically.
We create a PO (service)
Service entry sheet of the full amount of the PO
Create invoice with price difference
Change PO to invoice price
Run MRBR....
But it is not released. The price difference is still there even though we have changed the PO.
What have I not thought of?
Sincerely
AndersHi
Standard SAP states:
During the entry of an invoice for a service, the system proposes the value from the service entry sheet but not the purchase order value.Correspondingly, the invoice value is compared with the value of the entry of services during the invoice release and not with the purchase order value, as is the case with another purchase order.
Will I have to change the price in the service entry sheet for the invoice to be released?
Sincerely
Anders -
GL account for Unit Price changes A/R Invoice
Hi,
I need to know where the GL accounts are determined for Item unit price changes. My problem is as below:
I have a delivery created for 2 material items. After creating the delivery, we want to reduce the unit price from 2600 (default) to 2500 per unit. ( this is without going into the discount column) as we wnat to reflect the same in the deliver note printout.
When this is copied to an A/R invoice and then and we try to add this, an error is generated saying "GL accout missing".
Can any one help to tell me which account this is exactly and where this is entered. we are using SAP B1 2005 PL50.
Thanks in Advance !Hi Nirushad.......
Its in Administration> Setup> Financials> GL Account Determination> Inventory Tab--> Price Difference account.
First check the Set GL Method of what
For checking this go to Administration--> System Initialization > General Setting> Inventory Tab and Set GL Method
If its Warehouse wise then go to warehouse where transaction is happening and put the Price Diff. Acct in accounting Tab
If its ItemGroup wise then go to ItemGroup where transaction is happening and put the Price Diff. Acct in accounting Tab
If its Item Level wise then go to Item Master Data where transaction is happening and put the Price Diff. Acct in Inventory Tab
Regards,
Rahul -
Changing unit price after AP invoice has been created
Hi all,
We realized the unit price was incorrect after the PO, GR and AP invoice was already created. Is there a way to update the unit price on the item?
Thanks,
JaneHi,
This is not possible, you have to reverse transaction by AP Credit memo and recreate new transaction. If you have FIFO valuation method then you can change price through Inventory Revaluation but in that case your AP Invoice amount remains unchange.
Regards,
Sachin -
Discount is being updated when changing unit price in SO after upgrade
Hi there,
Customer recently upgraded to version 8.8 from 2005.
They encountered a few transactions where discount is automatically being updated when changing unit price in SO.
Customer created SO by duplicating existing SO. Then change the Unit Price in the new SO.
For one item, the price after discount does not get updated correctly. Instead, system seems to have automatically created the discount.
So far, I can't reproduce this issue yet.
Is this a bug? Please suggest.
Thanks,
YadanaThanks for the replies.
I have checked and there is no discount setup for the Price List or BP.
The Price List has been set to the correct one as well.
Please advise.
Thanks,
Yadana -
Terms user query Changes in unit price in purchase order and a/p invoice
Dear sir
please give me a term user query for , if any changes in unit price in purchase order and a/p invoiceHi,
Try this:
SELECT Distinct ' true'
FROM adoc T2
JOIN ado1 T0 ON T2.docentry = T0.docentry AND T2.Objtype = '22'
JOIN por1 T1 ON T1.docentry = T0.docentry AND T1.Linenum=T0.Linenum
WHERE $[$38.14.number] != T0.Price
Thanks & Regards,
Nagarajan -
Net Unit Price of Invoice Item Not Kept/Deleted
Hello everyone,
Yesterday I had an issue with a supplier invoice uploader I've created --- it uploads consistently which is nice, but for some reason the unit price is disappearing on me. I've got the following lines:
in which 'row.zItemNetUnitPrice' is decimal (currencyCode is always going to be GBP in this case, so I figured I didn't need it) and row.zAmountOrdered is obviously a Quantity type. Now, here's the strange part: when 'newSIItem' is created using siItem, the unit price is deleted --- as in, immediately after creation of newSIItem, the unit price is set to 0.00. But the amount ordered is kept as it was set. So obviously that's weird, and is causing all my invoice items to be created as zero price --- you'll agree that's not very helpful.
What's also strange is that, in order to remedy this I tried to just set the unit price to what I wanted AFTER newSIItem was created, as according to the repository explorer it's not read-only. This worked --- up until I set the account assignment type, at which point it got set BACK to zero as follows:
As you can see in the debugger, it says 'changing invoice price not possible...'. --- but the net unit price field isn't read-only. So my overall question is: what the hell is going on? Any help would be greatly appreciated. Attached is my entire mass-enabled AfterModify script and the XML file I'm using as part of a file input run on the custom business object to which this script belongs. Thanks!
Lewis
EDIT: I tried moving 'newSI.NetUnitPrice.Amount.content = row.zItemNetUnitPrice' to after the account assignment --- it seems it was invalidated by any subsequent command, even to the point that having it directly before setting gross amount to total gross amount would still not work. I also tried setting net amount instead of net unit price --- the debugger specifically told me that net amount is read-only. But the repository explorer says it has write access. Anyone able to shed light on this?I solved this --- I noticed that I had siRoot.DocumentGrossAmountsIndicator set to false but creating the root node (newSI = SupplierInvoice.Create(siRoot)) turned that back to true again for no apparent reason. My guess is that having this set to true, i.e. all values are gross, dynamically sets all net fields to read-only. Once I discovered this it was as simple as setting the indicator back to false post-creation of the root node, and then net price fields were accessible again.
-
Block item unit price from decrease in a A/R Invoice
Dear experts !
How can I prevent a sales user to decrease an item unit price in an A/R Invoice for a customer for which a special price (based on quantities) was defined. The user can increase the item unit price in the A/R Invoice for that customer.
Thanks for your precious help.Hi yves,
try below in transaction notification:
if (@object_type = '13') and (@transaction_type IN ('A', 'U'))
BEGIN
IF exists (SELECT * FROM INV1 T0 INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode and T0.[PriceList]=*2* WHERE isnull(T0.[Price],0) <> isnull(T1.[Price],0) and t0.DocEntry=@list_of_cols_val_tab_del)
Begin
SET @error = 30
SET @error_message =N'Unit Price can`t be different than price defined Price List'
end
END
Change price list number (bold ) in above query to price list number you want.
you can check price list number using query
Select * from OPLN
- listnum column.
Thanks,
Neetu
Maybe you are looking for
-
Creating a Report of Network Discovery
In SCCM 2012 R2 after we have enabled Network Discovery, could someone help with a query to list the devices discovered as a report?
-
Read attachment in the email adapter in PI 7.11
Hello Experts I am working on as scenario where I would be receiving source payload as an attachment in the email, and I need to read the attached payload and map it to the target structure please let me know how can i read the attachment as part of
-
Left and Right-Clic​k Only Working Half The Time
Ok, I have a Pavilion G6, A6Y36UA#ABA The last few days, my mouse (trackpad and buttons on the laptop NOT an external one) works fine but I can't left-click on the desktop, start menu (or apparently Paint?). Everytime I try to left-click, the right-
-
I bought an apple tv some time back and am only now trying to set up the wireless internet connection. I can see my network but when I enter the password with the remote, I don't know how to get the remote to submit the password. Could you please t
-
Re: capturing screen resolution in JSP or servlet
"Mike Tickle" <[email protected]> wrote ... > Is it possible to capture screen resolution in JSP or a Servlet? I can > currently do it in JavaScript and write the result in to a cookie that a > servlet can read, but is t