Qry:How to get different price for each price list (variable area) in order
1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
2- I add a location store from a table in line item and I want to see this area in order,.
I 'm created 2 field location(item line and order), 1 table location
I tried this for exemple : select $ [userfieldlocation.OITW]
Thanks Suda for your answer,
the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,
I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
read carefully and imagine how (Management warehouse locations)
I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data line and an ather user field 'U_Location' in sales order
I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
or
create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
I think we will use all these tables
@LOCATION
PDN1
OITM
OITW
OWHS
RDR1
Juste a another question : where you found this and What is: ' 38.1.0 '
Is it in document (System information):Item=38 Pane=1 ??
Thanks,
Ouchen
Similar Messages
-
How to Get Missing Dates for Each Support Ticket In My Query?
Hello -
I'm really baffled as to how to get missing dates for each support ticket in my query. I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
in a table. Let me explain a bit further here -
I have a query which has a list of support tickets for the month of January. Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
updated. So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07. Each time the ticket is updated a new row is inserted into the table. I need a query which will return the missing dates per
each support ticket.
I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all. My team has tried and they won't give 'em. So proposing a function or storable solution will not work. I'm stuck with doing everything
in a query.
I'll try and provide some sample data as an example -
CREATE TABLE #Tickets
TicketNo VARCHAR(4)
,DateUpdated DATE
INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th. A set-based solution would be best.
I'm sure this is easier than i'm making it. However, after playing around for a couple of hours my head hurts and I need sleep. If anyone can help, you'd be a job-saver :)
Thanks!!CREATE TABLE #Tickets (
TicketNo VARCHAR(4)
,DateUpdated DATETIME
GO
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-01'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-05'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-07'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-03'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-09'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-11'
GO
GO
SELECT *
FROM #Tickets
GO
GO
CREATE TABLE #tempDist (
NRow INT
,TicketNo VARCHAR(4)
,MinDate DATETIME
,MaxDate DATETIME
GO
CREATE TABLE #tempUnUserdDate (
TicketNo VARCHAR(4)
,MissDate DATETIME
GO
INSERT INTO #tempDist
SELECT Row_Number() OVER (
ORDER BY TicketNo
) AS NROw
,TicketNo
,Min(DateUpdated) AS MinDate
,MAx(DateUpdated) AS MaxDate
FROM #Tickets
GROUP BY TicketNo
SELECT *
FROM #tempDist
GO
-- Get the number of rows in the looping table
DECLARE @RowCount INT
SET @RowCount = (
SELECT COUNT(TicketNo)
FROM #tempDist
-- Declare an iterator
DECLARE @I INT
-- Initialize the iterator
SET @I = 1
-- Loop through the rows of a table @myTable
WHILE (@I <= @RowCount)
BEGIN
-- Declare variables to hold the data which we get after looping each record
DECLARE @MyDate DATETIME
DECLARE @TicketNo VARCHAR(50)
,@MinDate DATETIME
,@MaxDate DATETIME
-- Get the data from table and set to variables
SELECT @TicketNo = TicketNo
,@MinDate = MinDate
,@MaxDate = MaxDate
FROM #tempDist
WHERE NRow = @I
SET @MyDate = @MinDate
WHILE @MaxDate > @MyDate
BEGIN
IF NOT EXISTS (
SELECT *
FROM #Tickets
WHERE TicketNo = @TicketNo
AND DateUpdated = @MyDate
BEGIN
INSERT INTO #tempUnUserdDate
VALUES (
@TicketNo
,@MyDate
END
SET @MyDate = dateadd(d, 1, @MyDate)
END
SET @I = @I + 1
END
GO
SELECT *
FROM #tempUnUserdDate
GO
GO
DROP TABLE #tickets
GO
DROP TABLE #tempDist
GO
DROP TABLE #tempUnUserdDate
Thanks,
Shridhar J Joshi
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to configure different listener for each database in 11gR2 RAC
Hi Friends,
Current Prod Setup :
11gR2 (11.2..0.2) RAC on RHEL 5.5 with 3 SCAN Listeners on default 1521 port.
Having 4 databases which are using SCAN-IP and listening on default port only.
As per policy, we have to create separate listeners (on different port) for each database.
like,
DB1 - 1522
DB2 - 1523
DB3 - 1524
DB4 - 1525
Even If I configure 4 listeners using NETCA, how my failover & load balancing will happen using SCAN & Newly Created Listeners ???
Thanks in advance..
Regards,
ManishHi,
I tried on 11gR2 TEST RAC Server to have different listener with different port (1529) for SCAN & Node Listener & tested failover, load-balancing which was successful.
[oracle@ravish5 admin]$ cat listener.ora
LISTENER_A=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_A=ON # line added by Agent
[oracle@ravish5 admin]$ ps -ef | grep lsnr
oracle 1985 1 0 00:46 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER -inherit
oracle 1988 1 0 00:46 ? 00:00:00 /11g_database/11.2.0.2/product/home_1/bin/tnslsnr LISTENER_A -inherit
oracle 2928 1 0 01:00 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER_SCAN1 -inherit
[oracle@ravish5 admin]$ lsnrctl status LISTENER_A
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 02-MAY-2012 03:19:35
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))
STATUS of the LISTENER
Alias LISTENER_A
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 02-MAY-2012 00:46:42
Uptime 0 days 2 hr. 32 min. 54 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /11g_database/11.2.0.2/product/home_1/network/admin/listener.ora
Listener Log File /11g_database/11.2.0.2/diag/tnslsnr/ravish5/listener_a/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_A)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.5)(PORT=1529)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.16)(PORT=1529)))
Services Summary...
Service "TEST" has 1 instance(s).
Instance "TEST2", status READY, has 1 handler(s) for this service...
Service "TESTXDB" has 1 instance(s).
Instance "TEST2", status READY, has 1 handler(s) for this service...
Service "srvc_test.clover.com" has 1 instance(s).
Instance "TEST2", status READY, has 1 handler(s) for this service...
The command completed successfully
SQL> show parameter listen
NAME TYPE VALUE
listener_networks string
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=192.
168.3.16)(PORT=1529))))
remote_listener string ravish-scan:1529
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@ravish5 admin]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521,1529
[oracle@ravish5 admin]$ srvctl config scan
SCAN name: ravish-scan, Network: 1/192.168.3.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /ravish-scan.clover.com/192.168.3.22
[oracle@ravish5 admin]$ srvctl config listener
Name: LISTENER
Network: 1, Owner: oracle
Home: <CRS home>
End points: TCP:1521
Name: LISTENER_A
Network: 1, Owner: oracle
Home: /11g_database/11.2.0.2/product/home_1
End points: TCP:1529
[oracle@ravish5 admin]$ srvctl config service -d TEST -s srvc_test.clover.com
Service name: srvc_test.clover.com
Service is enabled
Server pool: TEST_srvc_test.clover.com
Cardinality: 2
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: true
Failover type: SELECT
Failover method: BASIC
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: TEST1,TEST2
Available instances:
TEST_NEW =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ravish-scan.clover.com)(PORT = 1529))
(LOAD_BALANCE = yes)
(FAILOVER = ON)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = srvc_test.clover.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
Actually different ports for different databases are required to have separation of duties. Once Firewall enabled betwen Client & DB Server only privileged users would have access to particular database.
Regards,
Manish -
How to get the texts for each line item for Sales order in a smartform
I'm createing a smart form in which i need to display certain texts for each line item of a sales order. How can i get those??
I'm trying with the table STXH and FM read_text... but i'm not clear how and what i'm getting... can anybody pls help me.....Hi There,
But then i will be getting only the value. i want to link that against the particular material of the Purchase Order.
Like for ex:
PO No. Material Code Line Item Basic Excise Tax Inv Value
0000001 5000251 010 100 16 4.64 120.64
0000001 5000252 020 200 32 9.28 241.28
Can u help me on this?
Regards,
Jitesh -
GarageBand - How to set different BPM for each track?
Hi, for the last couple of years, I've been using Sony Acid on my PC to mix multiple tracks to make blends and remixes of songs. I've just switched of the a MacBook, and am trying to get Garage Band to do the same. I'm curious whether or not I can set the BPM of each track individually so they will all play at the same BPM when mixed. I'm only able to find the master BPM that changes the entire BPM. Any help would be great. Thanks in advance.
Well, as far as I can see you don't really want different BPMs on each track, but you want all tracks to have the same tempo - only you want to make the tracks fit that tempo.
You could do that in GB by first bringing each of the tracks to the desired tempo, then export it and re-import it. (There's some other ways to do it, but they all involve some fiddling around and maybe some math.*)
Logic offers a nice feature where you can shorten and lengthen a region just by dragging it out. That could be used for the purpose you're trying to achieve.
*For example: Determine the BPM of each of the tracks. Set the project's tempo to the BPM of track A. Import track A, turn it purple so it follows the tempo. Then set the project to project B's tempo, import it, etc. You will end up with all tracks in the same tempo, and you can still make the whole project go faster or slower. -
How to get committed date for each component after availability check
Hi,
When I use CO02 to check material availability, I can see committed date in missing part list and missing part overview for each component in production order. I save it and use CO03 to read missing part list again. The committed date is blank?! How to get the committed date for each missing part in production order?
Another question, committed date can be displayed in CO24(missing parts info system)? Thanks in advance!!Rita,
Please check that the PP avail. check has replensh lead time turned on. If RLT is turned off & there is no sufficient stock of material, then system can only committ date of 12/31/9999.
Once you turn on RLT, it will give you some date based on your configured avail check ( that looks at stock or purchase order or production order). That way if there is no sufficient stock of material to satisfy your order system will committ the worst case date which is the RLT.
On CO24 unfortunately there is no field for Committ date. Hence is it not possible to view commit date. You can only view Committ quantity.
i am sure this will help you. Else please come back.
thanks,
Ram -
How to get first emp for each dept?
Hi,
I need to do a query to pick up one employee (the first one based on ename or empno)from each department, but I don't want to use min function (for some reason it didn't work on my real date), rather I like to use something like this: The problem is I can only pick one instead of one for each dept.
select ee.* from
(select * from emp
order by ename
) ee,
emp e
where rownum <2
and e.deptno=ee.deptno
ThanksHow about this (if I understood your question correctly)?
select * from
(select distinct deptno from emp) depts,
(select deptno, min(ename) from emp group by deptno) ees
where ees.deptno = depts.deptno;
Test:
14:10:26 ==> create table emp (deptno number, ename varchar2(50));
Table created.
14:10:27 ==> insert into emp values (10, 'Joe');
1 row created.
14:10:27 ==> insert into emp values (10, 'Mary');
1 row created.
14:10:27 ==> insert into emp values (10, 'Ethel');
1 row created.
14:10:27 ==> insert into emp values (20, 'Luke');
1 row created.
14:10:27 ==> insert into emp values (10, 'Sue');
1 row created.
14:10:27 ==> insert into emp values (20, 'Bob');
1 row created.
14:10:27 ==> insert into emp values (30, 'Randy');
1 row created.
14:10:28 ==> select * from
14:10:35 2 (select distinct deptno from emp) depts,
14:10:35 3 (select deptno, min(ename) from emp group by deptno) ees
14:10:35 4 where ees.deptno = depts.deptno;
DEPTNO DEPTNO MIN(ENAME)
10 10 Ethel
20 20 Bob
30 30 Randy -
How to get attendies count for a calendar list in sharepoint 2013?
Hi everybody,
I am using calendar list in SharePoint 2013 for my project.
Could please tell me how to get the count of attendees using SP Designer or OOTB calculated field.
Because I want to display the fields like
TOTAL SEATS =20
Attendees= Need count
Avail seats= total - Attendees count.
In that way I want to show information about availability seats for training session.
Regards,
DhayanandHi Dhaya
Please refer the links.Hope it helps :-)
http://social.msdn.microsoft.com/Forums/en-US/b8677dc5-3eb1-4bdc-92f2-f57201bfabb1/field-that-counts-attendees?forum=sharepointcustomizationprevious
http://sharepoint.stackexchange.com/questions/54253/use-count-related-column-value-as-int-in-a-sp-designer-workflow -
How to get row count(*) for each table that matches a pattern
I have the following query that returns all tables that match a pattern (tablename_ and then 4 digits). I also want to return the row counts for these tables.
Currently a single column is returned: tablename. I want to add the column RowCount.
DECLARE @SQLCommand nvarchar(4000)
DECLARE @TableName varchar(128)
SET @TableName = 'ods_TTstat_master' --<<<<<< change this to a table name
SET @SQLCommand = 'SELECT [name] as zhistTables FROM dbo.sysobjects WHERE name like ''%' + @TableName + '%'' and objectproperty(id,N''IsUserTable'')=1 ORDER BY name DESC'
EXEC sp_executesql @SQLCommandThe like operator requires a string operand.
http://msdn.microsoft.com/en-us/library/ms179859.aspx
Example:
DECLARE @Like varchar(50) = '%frame%';
SELECT * FROM Production.Product WHERE Name like @Like;
-- (79 row(s) affected)
For variable use, apply dynamic SQL:
http://www.sqlusa.com/bestpractices/datetimeconversion/
Rows count all tables:
http://www.sqlusa.com/bestpractices2005/alltablesrowcount/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
This just started. I sync my iphone with my mac pro. Then i delete the photo's after they have been transferred. What has just happened is on my iphone it duplicated all my events and put 1 -5 pics in a folder under the same name causing me to now have 50 folders for one event On the iphoto side it is all good. just on the iphone.
Make sure you have the latest version of iPhoto. Run Software Update.
Regards
TD -
Is it possible to have different headers for each page for the Pages app?
I just purchased the Pages app for my ipad and it happens to be one of the best apps i've ever bought. However, I'm having trouble figuring out how to have different headers for each page of the same document. Is this possible to do?
Tommy,
One of the limitations of Pages for iOS on your iPad is that Pages can't create sections per se. The best you can do is insert page breaks and then assign different columns to that page. The problem comes with the headers and footers - in iOS Pages, the headers and footers apply to the whole document, not the individual sections as you would find in Pages '09 on OSX.
The workaround is to create your document on OSX, insert the needed sections and headers, save, then transfer the Pages document to your iPad either as a working "blank" or as a new document. The headers and footers will reflect the sections you created in OS X, but you won't be able to add any new ones or new sections on your iPad. -
I have 3 iphones, an ipod touch and an Ipad on the same itunes account. should I have a different account for each device? If so how do I get all my purchases, like music on all the devices?
You can sync as many devices as you want to the same iTunes account, there is no limit. You can have the same content on each device or different content, the choice is yours. iTunes will keep everything straight, by device, including separate backups. I'd suggest giving each device a unique name, to make things easier.
-
In Cover Flow, a compilation album shows different covers for each song. How do I make it show one cover for the whole album?
Also in the first page of Get Info for all tracks set the Album Artist to be Various Artists.
If you select all the tracks and right click to get info then you can do all the tracks in one go -
I have multiple emails, how do I add different signatures for each email address
I have multiple emails for different companies I work for, how do I add a different signature for each one, it seems like I have to use the same one for all of them
Thanks. I think I'm on the right track. I added the email address to my contacts and double clicked the image icon to change it, but it only lets me snap a new picture or select an image from another location. What is the folder location of the stock icons that come with Mac OSX?
-
How to use the different class for each screen as well as function.
Hi Experts,
How to use the different class for each screen as well as function.
With BestRegards,
M.Thippa Reddy.Hi ThippaReddy,
see this sample code
Public Class ClsMenInBlack
#Region "Declarations"
'Class objects
'UI and Di objects
Dim objForm As SAPbouiCOM.Form
'Variables
Dim strQuery As String
#End Region
#Region "Methods"
Private Function GeRate() As Double
Return Double
End Function
#End Region
Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
If pVal.BeforeAction = True Then
If pVal.MenuUID = "ENV_Menu_MIB" Then
End If
Else ' Before Action False
End If
End Sub
#End Region
End Class
End Class
Rgds
Micheal
Vasu Anna Regional Feeling a???? Just Kidding
Edited by: micheal willis on Jul 27, 2009 5:49 PM
Edited by: micheal willis on Jul 27, 2009 5:50 PM
Maybe you are looking for
-
Versistand version is 2013 sp1. I am using CSV stimulus expressions in my real-time sequence, and would like a channel to retain its current (last) value until a certain time step is reached. Is there a way to do this? Example CSV stimulus file: time
-
Whenever I start iphoto on my macbook pro, its start connecting to facebook and uploading my photos, which i donot want to upload. Please advise, how to stop iphoto to connecting from facebook.
-
Click "Media Browser" and Keynote crashes
I can't seem to use the Media browser at all. Every time I click to open it, it opens and then I get a crash message: "An unexpected error has occurred. Please quit and reopen Keynote." I quit and reopen and the same thing happens. I've only just ins
-
Calling functions from a synchronize method
=can we call a synchronize method or a simple method from a sysnchronize method. @lam
-
When i start flash program, It doesn't work. well i use Adobe Creative Suite 5 design premium. I have been using the flash CS5 program trial version. but when I got a serial number. this error started. like this. it stop.