Return product id when all variant active flags = 'N'
Hi,
I have a product table and a product_variant table. active_flag exists on product_variant table, with values 'N', 'Y'.
How can I get products with all variants active_flag = 'N'? each product has multiple entries in variant table.
Thanks,
Hi,
Well, your original post made me (and others) assume you'd also be querying your product table.
Given your testcase, you could also use DISTINCT.
MHO%xe> select * from pv;
PRODUCT_ID PRODUCT_VARIANT_ID INVENTORY_LEVEL A
1 1 20 Y
1 2 20 N
2 3 20 N
2 4 20 N
3 5 20 Y
3 6 20 Y
6 rijen zijn geselecteerd.
Verstreken: 00:00:00.01
MHO%xe> select distinct product_id from pv where active_flag = 'N' order by product_id;
PRODUCT_ID
1
2
Similar Messages
-
How to restrict the GR for Production Order when Goods Issue is not done
Hi Gurus
How to restrict the GR for Production Order when all the required components for production order are not issued with all required quantity. Even for partial issue system should not allow GR with 101. The user status with RMWA, RMWF & CGFB is not working.
Pls suggest best solution.
Abhijit.Hi,
You can club together the GI nad GR at the time of confirmation..
I.e Backflush for the components and auto GR for the Product.
So that you can stream line the Process.
The best Option would be to use the User Exit:
Enhancement - MBCF0002
Functional Module - EXIT_SAPMM07M_001
Include - ZXMBCU02
Refer below link for further details..
How to stop the goods receipt before issueing the goods for production orde
Regards,
Siva -
Installed iTunes on Win 7. Everything is there except when I hook up my phone the mene has all the active buttons, but there's no lettering on the screen to see what they are
(Apologies for butting in wiclee.)
The effect is usually caused by trouble with the Segoe UI fonts on your system. Unfortunately it's a bit trickier to deal with on Windows 7 systems than Vista or XP. (The "Vortical" instructions which can fix it for almost all folks on Vista and XP aren't applicable to Windows 7.)
Try having a look through the following (unfortunately very long) topic. It contains a lot of information on the Windows 7 variants of this, and possible methods for fixing the various Segoe UI-related issues that might be in play:
iTunes 10.1 Missing Text -
I purchased a lightroom 4 on disc several years ago. In 2013 I purchased an upgrade to lightroom 5 via a download. I have all the activation codes. I uninstalled lightroom from my old laptop and now want to download it to my new laptop using windows 8.1.
Where do I go to download already purchased and paid for copies of lightroom 5. I can put the verification codes when payment is requewsted. HELP!!!Lightroom - all versions
Windows
http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
Mac
http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh -
When I first activated iCloud keychain on my stuff (MacBook Pro, iPod and 2 iPads) it was working great and the all logged in to a wifi network that I had only used the password for on the MacBook. But yesterday the others all started asking for the password again (which I unfortunately don't remember and the friend who had it has recentlly had a stroke and also cannot remember it). I've tried turning iCloud keychain off and then back on again, but to no avail. Any thoughts would be appreciated.
What probally currputed is the battery, all type of devices do this when the battery gose out. and when it only lights up when pulged in that a sign of a bad battery. click here for support on a replacment battery. Hey dose maybe this page or this page will help.
-
I have a problem with Adobe Creative Cluod. Basically after installing the application when I open it I do not charge adobe products but remains all white screen. I tried to uninstall it and install it several times but it does not work.
What should I do?Hi Anto2211,
Please follow the thread: Black screen CC where this issue is already discussed and resolved.
Let me know for any further query.
Thanks,
Ratandeep Arora -
How to get iMessage to work when all it says is waiting for activation
How to get iMessage to work when all it says is waiting for activation
Hi Howell,
Welcome to Apple Support Communities.
This article on troubleshooting FaceTime activation has some steps you can try:
iOS: Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/ts4268
Have a great day,
Jeremy -
My iphone has a problem, it simply does not work, the screen is all black with a few colorful scribbles and images blend, I used it only took 6 days and returned to service when operated only 7 more days and it happened again the same thing, what do I do?
Reset the PRAM
Reinstall the operating system from the dvd (you will not loose your data) -
How to exclude STOs from GATP, when we need to ship the "Customer return" products from branch to Central DC?
We have to set up a scenario for sending "Customer returned" products from branches to Central DC through STO. But we do not want GATP check for these STOs, as they are Customer Returns, which need to analyze at CDC for further actions. We are using SCM 7.0 and ECC 6.0
Thanks in advance,
RaviHi,
You can exclude the "customer returned" category from the scope of check from that particular Check control -
How to findout for which product category extended classic is activated?
Dear experts,
How to find out for which product category extended classic is activated? I am working in a test system. In spro settings, Cross aplication basic settings -> activate extended classic is unticked.
I see, the system allows me to create a Extended classic PO against a product category 001.
The product category has same ECC backend system as target and source system.
Is there any BADI implementation?
regards,
RanjanHi
ECS - flag activated - means Extended classic scenario.
target determine badi - helps to create a PO in desired place.
source system and tatget system logical entry sjhown means
PRODUCT CATEGORY - created in Backend system and follow on docuemnts also created in ECC system - so it could be Classic .
as jay said determine log system badi used for DECOUPLE scenario ( Classic as well as ECS) .
some times unless we study the system in depth, hart to findout what is exact techniacl scenario.
or you can find out what type of POs are in BBP_PD for all PO means ECS.
This SRM tools can be used for many purposes.
some customers uses for Supplier registration only,
some one is using for only Bid invitation and Bid and selecting the vendor only
some one use for all non stock procurment only.
some one use for only free text - ....
taste vary in all business.
you must give more details like what are the Business docuement s are created in SRM
Muthu -
How do I deactivate all the activations of my PocketBook device from my digital ID
I have a reader PocketBook IQ701. When I started to move borrowed books tro the device, I moved the ACSM file to the device directly and then opened the file on the device. I was asked to enter ID, and authorization was OK, but the book was not readable. I had to reboot the device, to start over. I did this or similare a couple of times before I got the message "E_ACT_TOO_MANY_ACTIVATIONS". Then I found out to start (the right way) from the PC with digital editions, but when I tried to authorize the device, I again got the message "E_ACT_TOO_MANY_ACTIVATIONS ...". How do I deactivate all the activations of my PocketBook device from my ID.
I have used another email-adress to create a new Digital ID, and used this to make it work, but I would rather use my own email adress, which I also use with my smartphone and the Bluefire reader.Digital Editions help people are supposed to be able to reset your
counters. However, you have to be persistent - this is NOT a problem that
will be resolved if you buy HELP time because the product is free. And
most of the tech's I've talked to won't do anything because they've been
set up to do product support for those Adobe products that you pay money
for.
Be persistent.....
=============== -
How to 'fail-over' CSS11503-AC when ALL 5 Reals Servers (Services) die
Hi all,
Could anyone out there possibly provide an idea/config, of how it is possible to'fail-over' a CSS11503 set-up in Active/Standby mode with "ASR" enabled when:-
- ALL your real servers(Services) for a particular VIP 'die'/OR nic is faulty.
- So NOT just 1 of the real servers, but when ALL 5 are not reachable, I need to 'failover'
My initial thought are to use the "critical reporter" or "critical service" to report back to the 'active' CSS.
Anyone who has done this scenario before , please advise..
thanksThanks very much Syed fo rthis.I was thiking that no-one could answer this query.
After a little tsting, I set the following config in the lab and it works but is different to yours. I cannot seem to configure the servive as "type local". When I input 'type ?; I get options such as nci-direct-return, nci-info-only, proxy-cache, redirect etc...etc..NO 'local'...!!
Please advise..Thanks in advance
************************* INTERFACE ************************* interface 1/1 bridge vlan 800 phy 1Gbits-FD-no-pause
nterface 1/2
phy 1Gbits-FD-no-pause
bridge vlan 20
nterface Ethernet-Mgmt
description "Management Interface"
nterface 2/1
description "1st ASR Link"
isc-port-one
nterface 2/3
description "2nd ASR Link"
isc-port-two
************************** CIRCUIT ************************** circuit VLAN800
description "FE_CORE"
ip address 192.168.83.249 255.255.255.0
ip virtual-router 1 priority 110
ip redundant-vip 1 192.168.83.148
ip redundant-vip 1 192.168.83.158
ip critical-service 1 DTSFE01
ip critical-service 1 DTSFE02
ip critical-service 1 DTSFE03
ip critical-service 1 DTSFE04
ip critical-service 1 DTSFE05
ip critical-reporter 1 Physical_if_DWN
ip critical-reporter 1 r1
ircuit VLAN20
description "LBAL"
ip address 192.168.20.1 255.255.255.0
ip virtual-router 2 priority 110
ip redundant-interface 2 192.168.20.3
ip critical-service 2 DTSFE01
ip critical-service 2 DTSFE02
ip critical-service 2 DTSFE03
ip critical-service 2 DTSFE04
ip critical-service 2 DTSFE05
ip critical-reporter 2 Physical_if_DWN
ip critical-reporter 2 r1
************************** REPORTER **************************
reporter Physical_if_DWN
type critical-phy-all-up
phy 1/1
phy 1/2
active
reporter r1
type vrid-peering
vrid 192.168.83.249 1
vrid 192.168.20.1 2
active
************************** SERVICE **************************
service FE01
ip address 192.168.20.183
keepalive frequency 2
keepalive retryperiod 2
keepalive maxfailure 2
redundant-index 4
service FE02
ip address 192.168.20.184
keepalive frequency 2
keepalive retryperiod 2
keepalive maxfailure 2
redundant-index 5
service FE03
ip address 192.168.20.185
keepalive frequency 2
keepalive retryperiod 2
keepalive maxfailure 2
redundant-index 6
service FE04
ip address 192.168.20.186
keepalive frequency 2
keepalive retryperiod 2
keepalive maxfailure 2
redundant-index 7
service NWFE02
ip address 192.168.20.204
keepalive frequency 2
keepalive retryperiod 2
keepalive maxfailure 2
redundant-index 10
active
!*************************** OWNER *************************** owner SERVICES
content DTS_192.168.83.148_443
add service DTSFE01
add service DTSFE02
add service DTSFE03
add service DTSFE04
add service DTSFE05
vip address 192.168.83.148
port 443
protocol tcp
advanced-balance sticky-srcip
redundant-index 1
sticky-inact-timeout 5
owner NW_SERVICES
content NWCS_192.168.83.158_443
add service NWCSFE01
add service NWCSFE02
vip address 192.168.83.158
protocol tcp
port 443
sticky-inact-timeout 5
redundant-index 2
advanced-balance sticky-srcip
active -
Service Requests remain In Progress when all Activities are Completed
Hello Experts, we're periodically finding Service Requests remain In Progress, when all Activities within the SR are Completed.
Specifically this is happening when a RB Activity within the SR template has generated an Incident and attached it to the SR, and all of the Activities within the SR are Completed prior to the Incident being Closed.
Has anyone run into this situation?
Even if we had means to easily find this scenario in our system that would ease our pain -- is it possible to use PowerShell to return all Service Request's which are In Progress but have all child Activities marked as Completed?
Thanks!I've run into a couple of Service Request status issues. I'm convinced the SR status workflows are not as well designed as the other out of the box work item workflows. I've recently run into a problem with Service Requests failing to start (i.e. stuck forever
in New status) depending on how they were created, and Here's a similar script i used to address the SR's jumping to completed bug from early in 2012.
import-module smlets
#Variable Setups
$SRCompleted = Get-SCSMEnumeration ServiceRequestStatusEnum.Completed$
$SRCompletedID = $SRCompleted.id
$SRInProgress = Get-SCSMEnumeration ServiceRequestStatusEnum.InProgress
$ACCompleted = Get-SCSMEnumeration ActivityStatusEnum.Completed$
$ACSkipped = Get-SCSMEnumeration ActivityStatusEnum.Skipped$
$SRClass = Get-ScsmClass System.WorkItem.ServiceRequest$
$ContainsActivity = get-scsmrelationshipclass System.WorkItemContainsActivity$
$SRReset = $False
#Get SR in question (from workflow params)
$SR = get-scsmobject -class $SRClass -filter "id -eq $ID"
#Get all children relations.
$ChildREls = Get-SCSMRelationshipObject -BySource $SR | ? {$_.relationshipid -eq $ContainsActivity.id -and $_.IsDeleted -eq $False}
#if there are children (don't reset SRs that don't have activities)
if ($ChildRELs) {
foreach ($childREL in $ChildRELs ){
#Get Activity from child relation.
$ChildAC = (get-scsmobject -Id $childREL.TargetObject.id)
if (!($ChildAC.Status -eq $ACCompleted -or $ChildAC.Status -eq $ACSkipped -or $ChildAC.Skip -eq $True)) {
$SRReset = $True
if ($SRReset) { Set-SCSMObject $sr -Property Status -Value $SRInProgress }
the important part of that script is the bit where i'm walking each child and checking it's status. you could adapt this to your situation with some framing adjustments. -
Batch for production order when released
Hello Guru,
I have a question, we on created production order, when change (CO02) to be released (green flag) new batch will be created upon saving this change for the order Change Batch display will prompt, displaying the batch number for the FG material on the order, with its Production Date (set as the date of start of order) and the Shelf Life expiration (depend on the SLED date in master data for material) this to date was automatically proposed by SAP. We would like this two date of the batch of the production order to be blocked on all modification possible, is there any set-up way we can do in order to block those date for future modifcation by some user? please help and guide us to do this.
ThanksHello R>brahmankar,
AM interested on this An OPKP there is setting for create batch while releasing assign this profile to material master -
i already check OPKP for our plant, in the batch management portion BATCH CLASSIFICATION was set to 1 (classification was carried out in background-all batches) and the AUTOMATIC BATCH CREATION IN THE ORDER was set to 2 (auto batch creation at order release). EXTENDED CLASSIFICATION and ALWAYS BATCH SPLIT was not tick, please how can we do this in OPKP and assign for the material master profile? please guide.
Any help
Edited by: Ryan on Mar 12, 2009 6:35 AM -
MDX Query not retuern any data on my production server when i check service it is running
Hi All,
MDX Query not return any data on my production server when i check service it is running. when i restart my service i can able to run MDX Query and get data in my production server.Hi Mnishcal,
According to your description, there is no data returned before restart Analysis Services, right?
We haven't experiencing such issue before. And we cannot reproduce this issue. In your scenario, can you reproduce this issue? Here is a post which explains why you might not see the data you expect when browsing a SQL Server Analysis Services cube that
processed successfully. Please refer to the link below.
http://social.technet.microsoft.com/wiki/contents/articles/19744.ssas-troubleshooting-data-is-not-visible-when-browsing-a-cube.aspx
Besides, are there any error on the log file? The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
Regards,
Charlie Liao
TechNet Community Support
Maybe you are looking for
-
How to put loop in select query..?
Hi All, I am setting select query which CRecordSet is going to execute. Existing query is, Select branchNumber,Count(*) from branches where branchNumber = %d and dowloadType >%d; Here %d is getting filled every time with new value. Now this query i
-
IPhoto-creating albums and sub-albums
is it possible to create an album with sub albums? For example, i travel to Italy and would like an album of italy but would like to organize specific tours into sub-albums.
-
How to store Sent msgs on my Mac
I've created Sent folders under "on my Mac" in Mail, but when I click on Use this Mailbox for, all the options are grayed out. My sent msgs are currently being stored on the server, but I will run out of room there over the long haul and want to keep
-
How to know about OID port after infrastructure installion
Hi all, I have installed AS infrastructure and it configure OID automatically. Now during installation of Business Intelligence it ask about OID port which i dont know. Anybody know how can i find that OID port and give to installer to continue my AS
-
Why won't an FLV file created by Premier Pro open and Play?
As the title states...I exported a sequence as a flv file and my computer won't play it... It is strange that the amount of Gigabytes used by Adobe ( I have the Master Version) won't open an FLV it created. Yes, I have Quicktime installed BTW. Is the