Install-ADDSDomain is not recognized as the name of cmdlet
Hi
I have issue with Install-ADDSDomain even if I try Import-Module ADDSDeployment they are not recognized. I updated the powershell to 3.0 version but in vain
The complexity resides in the simplicity Follow me at: http://smartssolutions.blogspot.com
Hi,
What version of WS are you running? Install-ADDSDomain requires a minimum of WS2012.
http://technet.microsoft.com/en-us/library/hh974722.aspx
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing)
Similar Messages
-
Powershell Script Error, its saying The term is not recognized as the name of cmdlet
Hi,
When i am running following script into powershell, getting this error. i was not able to find out what could be the cause?Please
help me out.
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
functionCreate-SPFoldersBulk
Param
[parameter(Mandatory=$true)][string]$SiteUrl,
[parameter(Mandatory=$true)][string]$LibraryName,
[parameter(Mandatory=$true)][string]$CSVPath
# Import CSV
[array]$FolderList
= Import-Csv
$CSVPath
# Script Variables
$spWeb
= Get-SPWeb
$SiteUrl
$spList
= $spWeb.Lists[$LibraryName]
Foreach
($folderGroup
in
$FolderList) {
# Create Parent Folder
$parentFolder
= $spList.Folders.Add("",[Microsoft.SharePoint.SPFileSystemObjectType]::Folder,$folderGroup.Root)
$parentFolder.Update()
Write-Host "The Parent folder" $folderGroup.Root "was
successfully created" -foregroundcolor Green
# Loop variables
$i = 1
$col = "S"
$colID = $col + $i
While ($folderGroup.$colID -ne $null)
$newSubfolder = $splist.Folders.Add($parentFolder.Folder.ServerRelativeUrl,
[Microsoft.SharePoint.SPFileSystemObjectType]::Folder,$folderGroup.$colID)
$newSubfolder.Update()
Write-Host "The subfolder" $folderGroup.$ColID
"was successfully created"
-foregroundcolor
Cyan
$i++
$colID
= $col
+ $i
$spWeb.Dispose()Well assuming that is the entirety of your Create-SPFoldersBulk.ps1 script then the first issue is that it does currently do anything. Your script defines a function but then doesn't call it.
You're then running the script correctly as :
.\Create-SPFoldersBulk.ps1
and then I'm guessing you're trying to run the function, but that won't work from a command line. That's why you're getting the error, PowerShell doesn't know about the function outside of the code execution, and won't run the script instead since you haven't
added .\ before it.
If you really want it to be using a function then you'll need code later in the script to call that function, eg add the function call you entered at the prompt into the script at the bottom, and then run the script like you did initially, or if you're looking
to be able to run the script and be able to pass those parameters to it from the prompt then you probably want to adjust the script to :
Param (
[parameter(Mandatory=$true)][string]$SiteUrl,
[parameter(Mandatory=$true)][string]$LibraryName,
[parameter(Mandatory=$true)][string]$CSVPath
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
# Import CSV
[array]$FolderList = Import-Csv $CSVPath
# Script Variables
$spWeb = Get-SPWeb $SiteUrl
$spList = $spWeb.Lists[$LibraryName]
Foreach ($folderGroup in $FolderList) {
# Create Parent Folder
$parentFolder = $spList.Folders.Add("",[Microsoft.SharePoint.SPFileSystemObjectType]::Folder,$folderGroup.Root)
$parentFolder.Update()
Write-Host "The Parent folder" $folderGroup.Root "was successfully created" -foregroundcolor Green
# Loop variables
$i = 1
$col = "S"
$colID = $col + $i
While ($folderGroup.$colID -ne $null)
$newSubfolder = $splist.Folders.Add($parentFolder.Folder.ServerRelativeUrl, [Microsoft.SharePoint.SPFileSystemObjectType]::Folder,$folderGroup.$colID)
$newSubfolder.Update()
Write-Host "The subfolder" $folderGroup.$ColID "was successfully created" -foregroundcolor Cyan
$i++
$colID = $col + $i
$spWeb.Dispose()
and then call the script from the prompt as :
.\Create-SPFoldersBulk.ps1 -SiteUrl "https://spdev.baordbooks.com/legal/DAP/" -LibraryName "DAP Documents" -CSVPath "C:\Script_Files\folderList.csv" -
I have developed a batch harness whereby all scheduled tasks (W2012) invoke a common powershell script that acts as a wrapper to all our housekeeping jobs.
The first step in the wrapper is to create a Transcript file using following code
if ($Host.name -ne "Windows PowerShell ISE Host") # Transcript does not work within ISE
$timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
$path = "c:\corp\$timestamp" + "_$pid.txt"
Start-Transcript -path $path -append
As expected the folder contains files with timestamp & pid in name
08/08/2013 11:00 AM 14,388 2013-08-08-11-00-01.158_1620.txt
08/08/2013 11:00 AM 12,506 2013-08-08-11-00-01.485_936.txt
08/08/2013 11:00 AM 12,994 2013-08-08-11-00-01.735_9328.txt
08/08/2013 11:00 AM 12,024 2013-08-08-11-00-01.766_8624.txt
08/08/2013 11:00 AM 13,902 2013-08-08-11-00-01.860_1756.txt
08/08/2013 11:01 AM 15,142 2013-08-08-11-01-31.392_10120.txt
08/08/2013 05:00 AM 14,982 _1692.txt
However note the last file, it has a zero length date time value in the name
The error recorded by PowerShell is
get-date : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Corp\Powershell\DMPRun-ScheduledTask.ps1:171 char:18
+ $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-date:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IE get-date has failed and returned a zero length field as the timestamp
Can anyone think of a good reason why get-date would fail intermittently?
Do I have to code defensively for base Powershell functions?I implemented David's suggestion and now I intermittently get
import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
At D:\temp\loop_jc2_2013_11_25_08_55_02.ps1:15 char:1
+ import-module Microsoft.Powershell.Utility
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], UnauthorizedA
ccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
erShell.Commands.ImportModuleCommand
I added a trap chain (My Powershell skills do not yet include recursive trap coding, any suggestions welcome)
trap {
trap {
"Trap1"
"Exception: " + $_
"Error: " + $Error[0]
"Message: " + $_.Exception.Message
"InnerException: " + $_.Exception.InnerException
"StackTrace: " + $_.Exception.StackTrace
"FailedItem: " + $_.Exception.ItemName
import-module Microsoft.Powershell.Management
import-module Microsoft.Powershell.Security
import-module Microsoft.Powershell.Utility
"Trap2"
"Exception: " + $_
"Error: " + $Error[0]
"Message: " + $_.Exception.Message
"InnerException: " + $_.Exception.InnerException
"StackTrace: " + $_.Exception.StackTrace
"FailedItem: " + $_.Exception.ItemName
import-module Microsoft.Powershell.Management
import-module Microsoft.Powershell.Security
import-module Microsoft.Powershell.Utility
import-module Microsoft.Powershell.Management
import-module Microsoft.Powershell.Security
import-module Microsoft.Powershell.Utility
trap {
"Trap3"
"Exception: " + $_
"Error: " + $Error[0]
"Message: " + $_.Exception.Message
"InnerException: " + $_.Exception.InnerException
"StackTrace: " + $_.Exception.StackTrace
"FailedItem: " + $_.Exception.ItemName
exit 1
get-date
Now I intermittently get ..
Trap2
Exception: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
Error: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
Message: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
InnerException:
StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew, MutexSecurity mutexSecurity)
at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew)
at System.Management.Automation.AnalysisCache.CacheExportedCommands(PSModuleInfo module, Boolean force, ExecutionContext context)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(PSModuleInfo parentModule, Boolean found, IEnumerable`1 modulePath, String name, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags,
PSModuleInfo& module)
at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions importModuleOptions, String name)
at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
FailedItem:
import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
At D:\temp\loop_jc2_2013_11_25_09_19_52.ps1:26 char:1
+ import-module Microsoft.Powershell.Security
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], UnauthorizedA
ccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
erShell.Commands.ImportModuleCommand -
I have restored successfully an exchange 2013 mailbox database from backup to the recovery database, but when i try to recover a user's mailbox I receive the following error
New-MaiboxRestoreRequest -SourceDatabase RDB1 -SourceStoreMailbox "testuser" -TargetMailbox [email protected]
The term 'New-MaiboxRestoreRequest' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I already have the "mailbox import export" management role assigned to the logged in administrator.
Anand_Nsilly me i spelt the command wrong
Anand_N -
Powershell error: 'Get-AzureRole' is not recognized as the name of a cmdlet
I am trying to
get PIP information on all instances of a role using Windows PowerShell
as per the document - "https://msdn.microsoft.com/library/azure/dn690118.aspx"
When I execute the command in the doc in the powershell:
Get-AzureRole -ServiceName FTPInAzure -Slot Production -InstanceDetails
The following error msg pops up:
'Get-AzureRole' is not recognized as the name of a cmdlet.
what's wrong?
Thanks
Thank you MorrisHi,
Thanks for posting !
I am currently researching to gather more information which might take some time and hence will get back to you shortly.
Appreciate your time and patience.
Regards,
Sowmya -
The term 'Add-SPDistributedCacheServiceInstance' is not recognized as the name
Hi,
I have setup Sharepoint 2013 standalone on Windows 2012 server. I am developing an app that will make use of social apis of sharepoint 2013. Out of the box installation didnt have Distributed Cache Service running and I am not sure if its needed to be run
in order to make social apis working on the server. Anyhow, since distributed cache service was showing up as Stopped and I could not restart it, I have deleted the distributed cache service and when I retry to re-add it by entering Add-SPDistributedCacheServiceInstance
command on powershell, I get the following error,
Add-SPDistributedCacheServiceInstance : The term 'Add-SPDistributedCacheServiceInstance' is not recognized as the name
of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ Add-SPDistributedCacheServiceInstance
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Add-SPDistributedCacheServiceInstance:String) [], CommandNotFoundExcept
ion
+ FullyQualifiedErrorId : CommandNotFoundException
I am at total loss here. Any help/pointers to get around this error and setup social api working on this server will be helpful.
Regards,
UsmanThe issue is because your PowerShell console has not loaded the appropriate SharePoint DLL
in order to call the API. To resolve this, you can open the SharePoint 2010 Management Shell to execute the script or add the assembly manually before running the script.
--Cheers -
I have a script that runs well the vast majority of the time. On occasion I get an exception. I would appreciate any insight as to why it fails on occasion. I can't understand why the new-object cmdlet wouldn't be recognized:
Message: The term 'new-object' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Source: System.Management.Automation
StackTrace: at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)
at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName, CommandOrigin commandOrigin, Nullable`1 useLocalScope)
at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)
at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[] redirections, ExecutionContext context)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Here is the script I am running:
param([string]$endpoint)
$ErrorActionPreference = "Stop";
try
[System.Reflection.Assembly]::LoadFile("D:\dotNET_Apps\dotNETCOExBatch\DotNETCOExBatch\bin\DotNETCOExBatch.dll")
$schedule = new-object DotNETCOExBatch.CallService
$reply = $schedule.CallWebService($endpoint)
if ($reply)
$host.setshouldexit(0)
else
$host.setshouldexit(8)
Catch
$nl = [Environment]::NewLine
$evt=new-object System.Diagnostics.EventLog("Application")
$evt.Source="BatchPowerShell"
$infoevent=[System.Diagnostics.EventLogEntryType]::Error
$batchException = $_.Exception
$logMessage = " "
while ($batchException)
$exMessage = $batchException.Message
$exStackTrace = $batchException.StackTrace
$exSource = $batchException.Source
$logMessage += "$nl $nl Message: $exMessage $nl $nl Source: $exSource $nl $nl StackTrace: $exStackTrace"
$batchException = $batchException.InnerException
$evt.WriteEntry(" Error starting or process cancellation of $endpoint $logMessage",$infoevent)
$host.setshouldexit(15)Hi,
Please close your current powershell console, and start a new Window, and then check the result.
Like David replied, this is a strange issue, hard to find the cuase, but I will report the issue, hope
someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Regards,
Yan Li
TechNet Subscriber Support
If you are
TechNet Subscription
user and have any feedback on our support quality, please send your feedback
here.
Cataleya Li
TechNet Community Support -
I am trying to run the following Powershell in orchestrator to move a new user into a specific OU based on the Department field specified by the creator.
$dept = {Department from "Initialize Data"}
if ($dept -contains 'IT') {$NewContainer = OU=IT,DC=test,DC=net}
When I run the Powershell it is returning the following
The term 'IT' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
How can I get it to not try and pass 'IT' as a cmdlet?I think I may have actually found the solution I was missing { } around the command
I encapsulated the powershell in { }
$dept = {Department from "Initialize Data"}
if ($dept -contains 'IT') {$NewContainer = OU=IT,DC=test,DC=net} -
Hello,
I'm have create a simple runbook using Orch 2012 R2 and I'm experiencing the above error message. Below is the runbook Powershell
$clusterdr=Get-SCVMHostCluster-Name"cluster-dr.samuel.com"
Start-SCComplianceScan
-VMMHostCluster$clusterdr-RunAsynchronously
Thank you
LoyanHi,
the "Run .Net Script" Actitity from Orchestrator executes PowerShell in version 2.0 (and 32bit-mode).
Try:
PowerShell = {
$clusterdr=Get-SCVMHostCluster-Name"cluster-dr.samuel.com"
Start-SCComplianceScan -VMMHostCluster$clusterdr-RunAsynchronously }
or
http://www.sc-orchestrator.eu/index.php/scoblog/128-run-the-powershell-version-of-windows-executing-the-orchestrator-runbook-service-in-run-net-script-activity
Regards,
Stefan
www.sc-orchestrator.eu ,
Blog sc-orchestrator.eu -
SQL Svr 2012 / SharePoint 2013 "Install-SPRSService is not recognized..."
Greetings --
I'm having a heck of a time trying to get Reporting Services integrated with SharePoint 2013. The end result is that no matter what I try, I keep getting the "The term 'Install-SPRSService' is not recognized as the name of a cmdlet" error
which thereby prevents me from finalizing the integration with SP 2013.
Following is a description of my lab + the steps I've followed to try to resolve:
In a virtual environment with 3 machines, I have one set as the Domain Controller, one with SQL Server 2012 installed (no reporting services), one with SharePoint Server 2013.
The domain is working fine... no problems there. SQL Server 2012 is working fine... I can connect to it locally and remotely, execute commands, etc.
On the SharePoint 2013 machine, I have tried two ways... 1) install SharePoint 2013 first, then install SQL Server requirements... 2) install SQL Server requirements first, then SharePoint 2013.
In both methods, I am installing both "Reporting Services - SharePoint" and "Reporting Services Add-in for SharePoint Products" on the same machine as SharePoint Server 2013.
My understanding was that when SP is installed first, the SQL Server installation should auto-register the necessary components (meaning running Install-SPRSService and ServiceProxy are not required). However, in this scenario, this doesn't appear to
have happened. The service does not appear at all within SharePoint. Attempting to run "Install-SPRSService" fails with the "not recognized" error.
In the second scenario (Installing SQL Server components first, then SharePoint second), it is my understanding that the "Install-SPRSService and Install-SPRSServiceProxy" must be run manually. With both SQL Server components and SharePoint 2013
successfully installed, running "Install-SPRSService" fails with the "not recognized" error.
I would also like to point out that I am executing the Install command from the "SharePoint 2013 Mangement Shell" (right clicking and running as Administrator).
Any suggestions or nuggets-of-wisdom would be GREATLY appreciated!Hi,
I had the same issue when installing SSRS in SharePoint integrated mode. I had SharePoint management Shell opened, installed SQL binaries and then tried to run command Install-SPRSService
and Install-SPRSServiceProxy. I got the same errors.
But then I thought, if assemblies for SharePoint are loaded when Management Shell is opened, the assemblies were not
there when I opened PowerShell. So I just closed Management Shell, opened it again and everything worked as expected.
Hope it helps
Robi MCT Kompas Xnet d.o.o. Ljubljana | blog: http://xblogs.kompas-xnet.si | website: http://www.kompas-xnet.si
Slovenia
Please vote if you find reply useful or mark it as answer.
Thank you -
In CloverETL the Text Enrichment component not recognizing Indian Person Names
Im using OEID Integrator ETL3.1.1.
The component Text Enrichment is not recognizing Indian Person Names. Is there any lib files which needed to be added in Lexalytics?
Please suggest.Holy S H ! T, I thought this was only me!
SEVEN Months, and Apple has NOT addressed your issue.
I was gonna say "I miss Steve", then I remembered he didn't answer user concerns either... -
When I try to send an email with photo attachment on my iPad a screen appears which states " the sender is not recognized by the server" . What do I have to change so I can always send emails fr om my iPad with or without attachments. I am a novice!!!!!!
If you purchased about 2 years ago new I am sure it is a Intel iMac. To find out what type of iMac you have just click on the Apple menu item in the finder and select about this Mac. I would check the ISP mail site and get the correct outgoing mail server info.
-
Hard drive and dvd are not recognized in the setup menu, what could be wrong?
The hard drive and dvd drive are not recognized on the setup menu for my Pavilion a4316f desktop computer. Could it be a failure of the controller? Can a PCI controller be used to replace the mother board controller?
This question was solved.
View Solution.The Recovery process would erase you hard drive, and attempt to install a fresh OS. Decidely a bad choice if you wanted to save your data files. The Recovery sets are "tattoo" with the BIOS hardwafre configuration. It will not, IMHO, recognize the PCI Sata card.
You mentioned the Recovery program on the hard drive actually requested the installer of the controller (PCI card). Try running from that.
I am a volunteer. I am not an HP employee.
To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
(2) HP DV7t i7 3160QM 2.3Ghz 8GB
HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
Both Customs use Rosewill Blackhawk case.
Printer -- HP OfficeJet Pro 8600 Plus -
Tried loading my raw files shot w my new Sony a7 and its sd card into lightroom4. Got a message: "The files are not recognized by the raw format in lightroom"
Does Lightroom 4 not work with the Sony A7?
Thanks,Lightroom 4 cannot read the RAW photos from a Sony A7
You would have to download and install the FREE Adobe DNG Converter version 8.5 and then convert your RAW to DNG, and then import the DNGs into Lightroom 4
You could also purchase Lightroom 5.5, which will have the capability to read the RAWs directly. -
Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update
Hello Experts,
I am getting the below warning while I am installing the business content for Purchasing Cube 0PUR_C04 update Rules
"Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update rules"
And the business content activation is terminated.
Can you please let me know how i could resolve.
Thanks
PadmaHi Amrit,
Nice to know Toons suggestions have helped you to resolve your issue.
There is one bug waiting to explode soon although.
Check this out after your last insert
INSERT INTO mth_equipment_shifts_d(equipment_fk_key,availability_date,shift_workday_fk_key,from_date,To_Date,line_num,availability_flag,entity_type,creation_date,last_update_date,creation_system_id,
last_update_system_id) (
SELECT b.entity_pk_key entity_pk_key,a.shift_date shift_date,a.shift_workday_pk_key shift_workday_fk_key,Trunc(a.shift_date) from_date,Trunc(a.shift_date) To_Date,1 line_num,'Y',
b.entity_type entity_type,SYSDATE,SYSDATE,-1,-99999
--INTO l_site_id,l_entity_pk_key,l_entity_name,l_entity_type,l_production_entity,
--l_shift_workday_pk_key,l1_shift_date,l_from_date,l_to_date
FROM mth_workday_shifts_d a ,
SELECT plant_fk_key site_id, entity_pk_key, entity_name, entity_type, production_entity production_entity
FROM mth.mth_equip_entities_mst
UNION ALL
SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, 'Site', production_site production_entity
FROM mth.mth_plants_d
UNION ALL
SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, resource_name entity_name, 'Resource', production_resource production_entity
FROM mth.mth_resources_d
UNION ALL
SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, 'Equipment', production_equipment production_entity
FROM mth.mth_equipments_d
)b
WHERE b.site_id = a.plant_fk_key
AND a.plant_fk_key=l_plant_fk_key
AND shift_date>=l_start_date
AND shift_date<=l_end_date
AND UPPER(a.shift_type)='BOTH'
AND a.FROM_DATE IS NULL
AND a .To_Date IS NULL
--AND a.line_num=NULL
AND a.shift_num IS NULL
There is no COMMIT
You may want to check that out.
Cheers!!!
Bhushan
Maybe you are looking for
-
J1IIN TAX CODE A7 INVALID IN TAXINN
Hi, While saving excise invoice in J1IIN Error message TAX CODE A7 IN PROCEDURE TAXINN is invalid is coming Pl suggest
-
I am trying to create a black background title screen (with white titles). Suggestions on this board have indicated that I could drag the title bar before the clip begins and that the default color would be black (i.e., solving my problem). I have no
-
Please help computer extremely slow and need to update?
my comp is so slow it can take up to 25 minutes to sign on, then to make matters worse after, I go through this process frequently, I get the error message that it is in offline mode, and have to shut down and start the process over again. Also I am
-
Hi all, How many Tcodes are there in Abap? What are they? How they are useful? Thanks & Regards jyothi.
-
Hello, I have been trying to send DreamWeaver files by e-mail (attached documents) and when other people try to open the files, the pages can't be displayed. Do you have any solutions?