Special price list items last sale date
Can anyone give me a query which identifies the last sale date of an item for a customer special pricelist item? I want to identify special price list items that are out of date in order to delete special prices which have not been sold in the last year.
What I would like to do is create a list of special price list items that have been sold in the last year. I would them delete all speical price list items and then DTW the active special price list items back into the db.
Customer is running 2005 SP01, PL 42.
Thank you, Jeff
Jeff,
First things first, are those special prices still current? If the price lists update often, I don't think you have options to get your required info by query.
Thanks,
Gordon
Similar Messages
-
Need to create a report of Items sold= last sale date report
Hi Guys,
There is an column of last sale date in OITM but that doesnt gives any data when you run a query. Basicaly client need to generate a report of Items with last sale date, is this possible SAP Business One?
RegardsHi Joe,
you could use the stock posting list report with a suitable date range & select only AR invoices in the 'Expanded' options, then sort by posting date in descending order
This report can then be exported to Excel & all irrelevant transactions can be deleted, keeping only the first & second row for each item (Row 1 = Itemcode, Row 2 = last stock posting from AR invoice showing in the 'Price after discount' column).
Alternatively, you might explore whether an SDK solution may be created that runs the last prices report for all items.
All the best,
Kerstin -
Adding special prices to items query.
Hi, I'm just wondering if anybody can help me work out how to add special prices to items on a volume basis. say if i sold one item there would be no discount but if i sold 10 then i would automatically want a 5% discount to be given, I've had a look around and nothing seems to be popping out at me, i want the discount given to all customers also.
many thanks.Dear RW,
Choose Inventory ->Price Lists ->Special Prices ->Special Prices for Business Partners
To define the special price of an item for a business partner, in the Special Prices for Business Partners window, enter the required business partner and item information
To open the Period Discounts window, in the # column, double-click a row . Enter the required dates, price list, discount, and price and choose the Update button
To save the modified special prices, in the Special Prices for Business Partners window, choose the Update button
If no date-dependent special price has been defined for an item, SAP Business One assumes that the customer-specific special price has been valid since the date on which it was added. The special price with the appropriate valid-from date appears in the first row.
Defining Quantity-Based Special Prices for a Business Partner
Choose Inventory -> Price Lists -> Special Prices -> Special Prices for Business Partners .
The Special Prices for Business Partners window appears.
To open the Period Discounts window, in the # column, double-click a row . Enter the required dates, price list, discount, and price.
In the Period Discounts window, double-click a price-list row to open the Special Prices - Volume Discounts window, and enter the quantity, discount, and special price.
After you enter or change the price, SAP Business One automatically calculates the discount according to the difference between quantity-based and the date-dependent special price.
To confirm your entries, choose the Update button in the Special Prices - Volume Discounts window and the Period Discounts window.
To save the modified special prices, choose Update in the Special Prices for Business Partners window.
To define quantity-based special prices, you do not have to define a date dependency in addition to the SAP Business One default one. You can also define quantity-based special prices directly, based on the special price for the business partner
Regards,
Sarkar R -
Drop down list item to select date
I am using oracle form 6i, i want to use drop down list item to select date
I was able to manipulate my codes to get values for the three drop down list items year, month and day
but at when list change trigger on month to populate day , it populated accordingly but at point if I selected other month, it added the days of the new month selected to
the days of already selected month. And delete list_element command failed to provide solution..
Can any one help me out -- <email address removed by moderator so that you won't get spammed for all Eternity>1976 as year and march as month
declare
last_date date;
nDays number;
cursor days(v_last_date in date,vnDays in number) is
select first_day(v_last_date)+rownum-1 sdate from dual
connect by rownum<vnDays+1;
begin
select last_day(to_date(monthITEM||yearITEM,'MonthYYYY')) from dual;
// the month is in the monthITEM
// the year is in the yearITEM
// last_day will have the last day of that month.
//now you have to find the no. of days.
select to_char(last_Date,'dd') into nDays from dual;
for dates in days
loop
add_list_element(listname,dates.sdate,dates.sdate,1);
end loop;
end; -
Can we create a list item as a data block item?
Hi,
I have changed a text item to list item on the data block.
This list item used to get populated when it was control block item, but after i changed it to data block item, it's not getting populated.
My question is, can we create a list item(poplist) as a data block item?
Any idea?
Thanks in advance
R.GHi
When you use ctl blocks data dose not fetch from Database. But in data blocks it get fetches when you execute query. So you have to make sure table column values are matching with the List Box values you have given.
So please check table values.
Nilaksha. -
How to make a list item field with DATE data type?
I have a column with DATE data type. Using forms 6i I want to generate a poplist list item field with this column while the value of the elements in the list to will be day names like SATURDAY,SUNDAY,MONDAY. if we change the data type from date to char, it will work properly but now with DATE data type behind it, it gives the following error message
"FRM-32082: Invalid value for given item type.
List WEEKREST
Item: WEEKREST
Block: EMPRESTS
Form: MODULE3
FRM-30085: Unable to adjust form for output."
Using forms 6i how to make a list item field with DATE data type which can hold day names?Set your date column as a hidden (non-displayed) field. Create your list item with the varchar2 day names. Create the list item as a non-base-table field that accepts the text values of day names. On that field, create a when-validate-item trigger that translates the text into a real date, which it then uses to set the value of the actual base-table item.
-
List item w/ multiple data items - how to select data items?
I have a list component (myListBox) that is showing the
labels for some data items read in from an XML file. Each item in
the list has an associated name, description, and path (they're mp3
files) and they are named accordingly in the XML tags.
Using myListBox.selectedItem.label gives the correct label
but myListBox.selectedItem.data is undefined. I've tried using the
XML tags after the data selector (e.g.
myListBox.selectedItem.data.path) but those don't work, either. All
of the examples I've found in the docs show only a single data
element associated with each list item.
So, if a list item has multiple data items associated with
it, how do you select them using the listBox.selectedItem property?
TIA,
rgamesQ2. when I type "Oracle" in A long list item box, cursor is going to the initial character "O" , so I can find "Oracle" in A long list item box easily.Maybe , but of course your list gets smaller as you see only the entries starting with a "O" , except if there are entries in the list which all start with the letter "O" so the total number of entries in the list is equivalent to the number of entries start with "O"...!!!!!!!!!
My greetings,
Simon -
Price List and Last Purchase Price.
When a Price List based on the Last Purchase Price is created, we have found that a set of problems arise in companies using u201CGoods Receipt POu201D.
EXAMPLE:
Every article received from their suppliers are enclosed with a GOODS RECEIPT.
After 20 days, the supplier issue an invoice including all the Goods Receipts provided during the corresponding month.
Recall that the company has a List Price based on the Last Purchase price.
But, since the Goods Receipt do not update the Last Purchase Price, all new articles in the database, are kept without a Selling Price, and the old articles are not subject to an updated Selling Price. I enclose a draft to show this behavior.
[http://s2.subirimagenes.com/privadas/previo/thump_1047037compraitem.jpg]
You may note that SAP HELP explains:
1.In addition, two price lists are automatically created and calculated by the system:
- Last purchase price list u2013 the price list is automatically updated when an item enters the stock with its entering price.
- Last evaluated price list u2013 the price list is automatically updated after you run the Inventory Valuation report.
[http://s2.subirimagenes.com/privadas/previo/thump_1047038help-sap-b1-2007a.jpg]
But this does not happen.
Selling Prices are only updated when the corresponding invoice is entered, but this happen too late, since the invoice issued 20 days after by the supplier.
In other words, it does not work properly for the company. The example shows:
1 Goods Receipt PO
2 Item master data with Price calculated alter Goods Receipt processing
3 base Price driven to zero.
If Goods Receipts do not update the last Purchase, is not easy to understand why a Selling Price can be based in the Las Purchase Price.
Our customer and me, think that there is a programming error.
Otherwise, the system behavior has not be properly explained to SAP users.
The described facts happen with SAP 2007A PL 49, and SAP 8 PL 5, both versions properly tested
That we need: That Goods Receipt update the last purchase Price and Price List could be constructed don Item bases cost.Hi Dana,
I'm not sure if this will solve your problem, but, you can create a new price list which is based on the "Last Purchase Price" and set as a factor of 1.65. I'm not sure if the "Last Purchase Price" updates from the Goods Receipt or the PO though?
Does this sound like it might solve your problem? -
How to save LIST_LINE_ID of Price List when create Sales Order Line
I dont know how save the LIST_LINE_ID of the Price List on Sales Order or anywhere when create Sales Order Line.
I create with the following steps:
Step 1: Create Price List for Item A with two line: Line 1 (Unit Price = 10,5, Pricing Attribute with Tax Classification Code = 5%), Line 2 (Unit Price = 11, Pricing Attribute with Tax Classification Code = 10%)
Step 2: I create Sales Order Line with Item A, Tax Classification Code = 5% --> Unit Selling Price = List Price = 10,5 but dont bookorder
Step 3: I update the Unit Price of Line 1 into 11.55.
Step4 : I book this Sales Order. Howerver, I use form personalization to customize Book Event: if the Unit Price of Item on Price List > Unit Selling Price then cant not Book. But I dont konw List Price of Sales Order belong the line of Price List.
Please help me check this issue. Thanks for your supports.
BinhTC
Email: [email protected]Bob's right - except that if you have OM: List Price Override Privilege set to 'Unlimited' (and from your scenario it sounds as if you have) it is possible that the value in unit_list_price will vary from what was originally retrieved from the price list.
In that case, a safer bet is to use :LINE.original_list_price in your personalization as this will always contain what was originally retrieved and will mean you can avoid any repeat lookup via list_line_id.
Regards,
Jon -
Search for list items by Created Date using caml
Hi all,
I'm trying to find list items with specific attributes using caml.
I created a caml query that uses Last_x0020_Modified and File_x0020_Size for searching items.
then i tried adding Created and Created_x0020_Date both either as Lookup or as DateTime to the caml.
But since i added Created/Created_x0020_Date my query fails with 500 Internal Server Error.
Can someone tell me what I'm doing wrong?
here is my complete Entity I'm sending to SharePoint 2013:
{'query' : { '__metadata': { 'type': 'SP.CamlQuery' }, 'ViewXml': '<View Scope="Recursive">
<Query>
<Where>
<And>
<Leq>
<FieldRef Name="Last_x0020_Modified" />
<Value Type="Lookup">2015-02-25T10:10:03</Value>
</Leq>
<Geq>
<FieldRef Name="File_x0020_Size" />
<Value Type="Lookup">1</Value>
</Geq>
<Leq>
<FieldRef Name="Created" />
<Value Type="DateTime">2015-02-25T10:10:03</Value>
</Leq>
<Eq>
<FieldRef Name="FileDirRef" />
<Value Type="Text">/sites/DennisDevSite/alib/Ordner1</Value>
</Eq>
</And>
</Where>
</Query>
</View>' } }
Thx in advance
DennisTry appending "Z" to DateTime. Change
<Value Type="DateTime">2015-02-25T10:10:03</Value>to <Value Type="DateTime">2015-02-25T10:10:03Z</Value>
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field -
Infopath to Sharepoint: Create multiple list items from a date range?
Hi everyone! I have a request from a client to create a SharePoint/InfoPath form that has Start Date and End Date fields. Their request is that when submitted it will make a separate entry for each day in the date range. For example:
John Doe is out from 4/1 - 4/3. When submitted it will make an entry that he was out 4/1, 4/2, and 4/3. this is requested due to them wanting to have a SharePoint list that shows all the day and not use a calendar.
This question was previously posted on another forum by another individual a year ago with no responses so I'm hoping for better results then he got lol.
Any ideas or pointing me in the right direction in terms of how to begin this would be greatly appreciated!
Thanks in advance and I hope everyone is having a great day!I've been asked for things like this in the past too but never found a good solution.
The closest i could think of would be to create a workflow that loops between the two dates and creates an entry for each one (of a different content type) then deletes the inital content entry. I haven't done this so i'm not sure if it's possible without
custom SPD actions. -
The values for list items of other data blocks are not getting displayed when executed.
Hi,
I have a new problem again.
I am doing a new form in which there are around 8 blocks. All the blocks have their tables in the oracle database.
Each block has 18 columns with the same column & column names. But the values in those columns are different & the values do not match.
The problem lies while i execute the form, it populates only the first block data. Other blocks do not display or populate the values.
I cannot create a master relationship because all the column values are different.
How do i display or populate the values of all the tables?
Please help me. Thank You.hi
if your form has truly disassociated tables, then you could simply use a key-exeqry trigger at forms level to travel to each block in turn and perform an execute-query built-in, eventually returning to the starting block.
ie
go_block('..');
execute_query;
go_block('..');
execute_query;
etc
go_item(......);
In this case you would use the block where clause to constrain each table to the appropriate set.
If however, the database has no relationships between the tables but the data content has some corelation, then you could craft a forms relation manually.
cheers
Rod -
Item and uom not on price list and unable to book the order
Hi,
Actually while trying to create a sales order using 'Order Import', facing the below issue and the List Price in the Line Item is NULL.
This is preventing the order from being booked.
ITEM<902986> and UOM<PT> not on US CONSOLIDATED PRICE LIST<Price List>.
The Item is present in the Price list and also the dates are well in past.
Not sure if this a setup issue or issue with the interface program.
Please help me in resolving this issue.
Thanks in Advance.
Regards,
VamseeCheck UOM for this part in pricelist.
-
Special prices leading to rounding on lines of sales documents
Hi
i have a user who is using special prices against items to store custom prices for their customers. They are settting a default sell price on the items under special prices as opposed to a % discount as these are fixed prices that they have agreed. This in turn calculates to percentage discount for each item
This all seemed to work well when piloting the system pre go live. However they have since noticed that in some cases based on the way the system works that the system is rounding differently than expected.
Eg
Item set up at sell price of u20AC191
Special price agreed with BP u20AC132
On a sales invoice sell out 4 items. You would expect that the system calculate 132 * 5 giving a line total u20AC 528 but instead the system is giving me 527.99
This is causing problem for the client. I have logged a message in relation to this but have been informed that this is the way the system works
Has anyone come up against this before and what solutions have you developed?
Thanks in advance
DavidGordon
I have tested as below on the message but they only appear to round the doc total. All transactions are Euro
Regards
David
30.03.2009 11:55 Reply to Reporter by SAP
Dear David,
Thank you for your feedback.
We tested your scenario in the version 2007A SP00 PL47.
Scenario 1:
1., Administration -> System Initialization -> Document Settings ->
General tab. In the Rounding method, select By Currency.
2., Administration -> Setup -> Financials -> Currencies -> Set the
'Rounding' of the currency used to 'Round to One'.
The Total of a sales order entered is correctly rounded to one.
In the Rounding field the rounding difference is showed.
Scenario 2:
1., Administration -> System Initialization -> Document Settings ->
General tab. In the Rounding method, select By Document.
2., Administration -> System Initialization -> Document Settings ->
Per Document tab. Select Sales order and tick 'Automatic Rounding for
Document'.
The Total of a sales order entered is correctly rounded to one.
Please upgrade your database to this patch level and test the scenario.
If the rounding is still not correct please get back to us.
In case you have any doubt or question please do not hesitate to
contact me.
Otherwise please confirm this message at your
earliest convenience.
Thank you in advance,
Best Regards
Andras Suto
Support Consultant
SAP Product Support for SAP Business One
SAP SSC - Ireland Ltd
30.03.2009 16:16 Reply to Support Center by David Kenny
Andras
I have studied your response but I tink we may be discussing two
different points. Your response seems to relate to rounding on the overall
document.
What my client is trying to do is to ensure that each line of the document
shows the correct rounding. If you took my original examples as a two
line sales order with a qty of 4 of each product
Product A - 580.00 * 4 = 2320.01
Product B - 132 * 4 = 527.99
The total on the order would be rounded based on what you have
described above but the individual line totals are rounded incorrectly
based on the price they have agree with their customer.
Is there something that can be set in the database to allow for this?
Regards
David
31.03.2009 09:25 Reply to Reporter by SAP
Dear David,
Thank you for your clarification.
As explained earlier the system supports two types of rounding for
the calculation of the Total of the document but unfortunately
it is not possible to use rounding on line level in a document.
In case your customer would need this, you may consider to use
a user defined field where the rounding is applied as requested.
In case you have any doubt or question please do not hesitate to
contact me.
Otherwise please confirm this message at your
earliest convenience.
Thank you in advance, -
Error on getting as list of Clients with the last sales order 90 days
Hi Dear,
SELECT T0.[CardCode], Max(T0.[DocDate]) as [Last Sales Date], Datediff(D, Max(T0.[DocDate]), GetDate()) as [Days Old], Sum(T0.[DocTotal]) FROM ORDR T0 WHERE Datediff(D, Max(T0.[DocDate]), GetDate())>90 GROUP BY T0.[CardCode]
I am trying to create a list of the clients for whom the last sales order date is greater then 90 day. When I run the above query, I get the following error message:
u201C1). [Microsoft][SQL Native Client][SQL Server]An aggregate may not appear in the WHERE clause unless it is in a subquery contained in a HAVING clause or a select list, and the column being aggregated is an outer reference.
2). [Microsoft][SQL Native Cli u201C
Can somebody tell me what I am doing wrong or is there any other way to get the last sales order date.
Thanks.Hi,
Check this :
SELECT T0.CardCode, Max(T0.DocDate) as 'Last Sales Date', Datediff(D, Max(T0.DocDate),
GetDate()) as [Days OLD], Sum(T0.DocTotal) FROM ORDR T0
GROUP BY T0.CardCode
HAVING Datediff(D, Max(T0.DocDate),GetDate())>90
Kind Regards,
Jitin
SAP Business One Forum Team
Maybe you are looking for
-
had msg from apple saying i go change id then nothing sent on and it says desible account, so i guess someone stole my itunes acount and with all credit of 490 usd on it, and all i got is the rescue account and phone number which is mine and i can pr
-
Performance is too slow on SQL Azure box
Hi, Performance is too slow on SQL Azure box (Located in Europe) Below query returns 500,000 rows in 18 Min. on SQL Azure box (connected via SSMS, located in India) SELECT * FROM TABLE_1 Whereas, on local server it returns 500,000 rows in (30 sec.) S
-
Can anyone tell my how I can print/create a pdf from my printer - I used to be able to & now I can't it doesn't give me the option anymore
-
To view the company code wise cost and profit centers
hi all, how to know the company code wise cost centers and profit centers? and what is the transactin codes for this? Regards, Soma
-
Supplier name is unspecified in Payables Dashboard.
Hi , In Payables Dashboard, in All AP Transactions Report, Supplier Name for most of them is Unspecified. Also wha is the difference between Supplier Name and the Supplier Account Name. Thanks Ashish