WinPE powershell get-date incorrect
Greetings,
We are running the latest MDT, WinPE and CM2012 CU2.
I wanted to track the time it takes to build an OS.
I have a powershell script that does a simple get-date during the WinPE phase and a powershell script that does a get-date at the end of the OSD. The one at the end is fine. The get-date in WinPE is returning a time 18 hours ahead of the current time.
We are GMT+10 and the computer BIOS that we are deploying to has the correct date/time. Is this some weird WinPE powershell default that all datetimes are 18 hours ahead of the real datetime?
Cheers
David Z
It's because the time zone in WinPe is Pacific Standard Time.
You can change the time zone in winpe, here is a guide:
http://adminnexus.blogspot.se/search?q=winpe
Similar Messages
-
Powershell Get-date minus one day...
Here is the delima, I need to get yesterdays day in the format of yymmdd. That's easy if you want todays date:
get-date -uformat %y%m%d
Great! Now how do I get yesterdays date?
(get-date).AddDays(-1)
will get me
Wednesday, June 22, 2011 8:47:51 AM
But, I cant do
(get-date).AddDays(-1) -uFormat %y%m%d
Nor can I do
(get-date -uFormat %y%m%d).AddDays(-1)
Nor is there a .Net date/time format of yymmdd. Any suggestions would be appreciated. Thank you!So if i wanted to get the current date to a format of YYYY.MM.DD, I can get it by
(get-date).ToString("YYYYMMDD") ?? Since i have file names that contain the below i need only to get those with a certain current date embedded.
Update_YYYYMMDDHHMMSSMS.log or Update_2014021802113801.log -
Powershell get-date 1st and 3rd Wednesday
I'm trying to run a script every the 1st and 3rd Wednesday of each month.
Any ideals?
Thanks,
KevinThat means it's not working on a monthly basis. Assuming you don't want it to store a 'last run' somewhere you'd probably have to adjust it to loop through the entire year.
$AllWednesdays = (0..365 | foreach {
([datetime](Get-Date).ToString('01/01/yyyy')).AddDays($_) |
Where {$_.dayofweek -eq 'Wednesday'} } )
$evenWednesdays = @()
for ($counter = 0; $counter -lt $allWednesdays.count; $counter++)
if ($counter % 2 -eq 0)
$evenWednesdays += $AllWednesdays[$counter]
I'm sure there's a much nicer way to do it though. -
Get date from Oracle when local time zone is different from Oracle time zon
Hi!
Local machine time zone= +2
Oracle time zone= +1
I set date to Oracle using java.sql.Date.
From application I save date at 00:30 clock and send e.g. 28.06.2002, but in Oracle date is save as 27.06.2002 01:00 (hour=01 , I suppose that is because java.sql.Date hasn't time the Oracle set it time = time zone=+1) And when I get date from Oracle I get incorrect date. In SQL I don't use date masks. Maybe solution is to use java.sql.Timestamp object (when save date to Oracle) instead of java.sql.Date?
But if I save date at e.g. 01:00 clock and send e.g. 28:06.2002 in Oracle, date is save as 28.06.2002 01:00 and when I read from Oracle I get correct date.
Thank you.Hi!
Local machine time zone= +2
Oracle time zone= +1
I set date to Oracle using java.sql.Date.
From application I save date at 00:30 clock and send
e.g. 28.06.2002, but in Oracle date is save as
27.06.2002 01:00 (hour=01 , I suppose that is because
java.sql.Date hasn't time the Oracle set it time =
time zone=+1) Presumably you are using setTimestamp() to store the value. If you are explicitly using a varchar (string) then you will have to correct the timezone your self.
And when I get date from Oracle I get
incorrect date. In SQL I don't use date masks. Maybe
solution is to use java.sql.Timestamp object (when
save date to Oracle) instead of java.sql.Date?The method setDate/getDate store a 'date' which is not the same as a 'date and time' for which setTimestamp/getTimestamp are used.
But if I save date at e.g. 01:00 clock and send e.g.
28:06.2002 in Oracle, date is save as 28.06.2002
01:00 and when I read from Oracle I get correct date.
Thank you. -
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 -
Get-Date not calculating as expected
I am trying to retrieve all the users in a specific OU of recently terminated users (who are temporarily being stored in a quarantine OU to abide by legal department's requirements to keep the mailboxes for 30 days). Once I retrieve all the users I
want to filter them into 3 buckets: 1) users with termination dates greater than 30 days, 2) users with term dates that are 30 days or less, 3) users with no term date listed. Termination dates are populated into the "ExtentionAttribute7" field
in the AD user object. For some reason the output to a report does not correctly find the users greater than 30 and puts them all in the users less than 30 (we already corrected so that no users have empty fields). Script is below:
#Mail Server Variables
$FromAddress = "[email protected]"
$RelayMailServer = "relay.company.corp"
$ITSupportEmailAddress = "[email protected]"
$AdminNotifyAddress = "[email protected]"
#Connect to Office 365
$password = ConvertTo-SecureString "password" -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList [email protected],$password
$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection
$importresults = Import-PSSession $s
$today = Get-Date -Format d
# Define font and font size
# ` or \ is an escape character in powershell
$font = "<font size=`"3`" face=`"Calibri`">"
#Headings used in the ITSupport Report
$Title="<h1><u>Quarantined Users - Termination Ranges</h1></u><h4>Generated on " + $today + "</h4>"
$Title_TermGreaterThan30="<h3><u>Users Have Termination Date that is 30 days or Older</h3></u>"
$Title_TermLessThan30="<h3><u>Users Have Termination Date Less than 30 days</h3></u>"
$Title_NoTermDate="<h3><u>Users Have No Termination Date Listed</h3></u>"
$UsersList_TermGreaterThan30 = @()
$UserList_TermLessThan30 = @()
$UserList_NoTermDate = @()
$usersUPNTermGreater30 = @()
$usersUPNTermGreat30AD = @()
$termDate = @()
Get-ADUser -filter * -properties * -SearchBase 'ou=employees quarantine,dc=company,dc=corp' |
ForEach {
$termDate += Get-date $_.ExtensionAttribute7 -Format yyyy-MM-dd
IF ($_.ExtensionAttribute7 -eq $null){
#Add to User List
$UserList_NoTermDate += $_.userprincipalname + "<br>"
if (($_.extensionattribute7 -ne $null) -and ($termDate -lt (Get-Date).AddDays(-30)))
#Add to UserLists
$usersUPNTermGreater30 += $_.userprincipalname
$usersUPNTermGreat30AD += $_.samaccountname
$UsersList_TermGreaterThan30 += $_.userprincipalname + " " + "TermDate: " + $_.ExtensionAttribute7 + "</font> <br>"
elseif ($_.extensionattribute7 -ne $null)
#Add it to UserList
$UserList_TermLessThan30 += $_.userprincipalname + " " + "TermDate: " + $_.extensionAttribute7 + "<br>"
if (!$UsersList_TermGreaterThan30) {$UsersList_TermGreaterThan30 = "No Users to Report"}
if (!$UserList_TermLessThan30) {$UserList_TermLessThan30 = "No Users to Report"}
if (!$UserList_NoTermDate){$UserList_NoTermDate = "No Users to Report"}
#Email Report to Admin
$Subject="Quarantined Users Report for " + $today + "."
$AdminReport = $font + $Title + $Title_TermGreaterThan30 + $UsersList_TermGreaterThan30 + $Title_TermLessThan30 + $UserList_TermLessThan30 + $Title_NoTermDate + $UserList_NoTermDate + "</font>"
#Send-MailMessage -smtpServer $RelayMailServer -from $FromAddress -to $AdminEmailAddress -subject $Subject -BodyAsHtml -body $AdminReport
#Send-MailMessage -smtpServer $RelayMailServer -from $FromAddress -to '[email protected]' -subject $Subject -BodyAsHtml -body $AdminReport
Send-MailMessage -smtpServer $RelayMailServer -from $FromAddress -to '[email protected]' -subject $Subject -BodyAsHtml -body $AdminReport
$results = @()
ForEach ($user in $usersUPNTermGreater30){
$results+=get-mailbox -identity $user -resultsize unlimited |`
select UserPrincipalName }
#Disable Litigation Hold
Set-Mailbox -identity $user -LitigationHoldEnabled $false
#Remove Archive Mailbox
Disable-Mailbox -identity $user -Archive -confirm $false
ForEach ($ADuser in $usersUPNTermGreat30AD){
Get-ADUser $aDuser | Move-ADObject -TargetPath "OU=Employees Terminated,DC=company,DC=corp"
If (!$usersUPNTermGreater30) { Write-Host "variable is null" }
If ($usersUPNTermGreater30){$file = "c:\Office365\QuarantineLHDisable1.csv"}
If ($usersUPNTermGreater30){$usersUPNTermGreater30 | Export-csv $file -NoTypeInformation}
If($usersUPNTermGreater30){
$msg = new-object Net.Mail.MailMessage
$att = new-object Net.Mail.Attachment($file)
$smtp = new-object Net.Mail.SmtpClient($RelayMailServer)
$msg.From = "[email protected]"
$msg.To.Add("[email protected]")
#$msg.To.Add("[email protected]")
$msg.Subject = "Quarantined Users Over 30 days - LH Disabled"
$msg.Body = "Attached is the list of users who have been in the 'Employees Quarantine' OU for 30 days, where Litigation Hold and Archiving were disabled, as well as, users being moved to the Terminated OU."
$msg.Attachments.Add($att)
$msg.IsBodyHTML = $true
$smtp.Send($msg)
$att.Dispose()}
Remove-PSSession $s
#Clear all variables
Clear-Variable user* -scope global
Clear-variable term* -scope globalI don't think that's the issue at least not all of it. With that format switch on there...this is the $termdate output (and all the users go into the "less than 30 days" variable regardless of term date):
PS C:\Windows\system32> $termDate
2014-01-25
2014-08-26
2014-09-15
2014-09-08
2014-09-12
2014-09-06
2014-09-05
2014-09-08
2014-08-29
2014-09-19
2014-08-28
2014-08-29
2014-09-19
2014-09-23
2014-09-14
2014-06-23
2014-09-19
2014-09-19
2014-08-29
2014-09-04
2014-08-29
2014-09-09
2014-09-07
2014-09-02
2014-08-26
2014-09-07
2014-09-11
2014-08-27
When I take the format switch off...this is the output (and all the users go into the "greater
than 30 days" variable regardless of term date): for $termdate:
PS C:\Windows\system32> $termDate
Saturday, January 25, 2014 12:00:00 AM
Tuesday, August 26, 2014 12:00:00 AM
Monday, September 15, 2014 12:00:00 AM
Monday, September 08, 2014 12:00:00 AM
Friday, September 12, 2014 12:00:00 AM
Saturday, September 06, 2014 12:00:00 AM
Monday, September 08, 2014 12:00:00 AM
Friday, September 05, 2014 12:00:00 AM
Friday, August 29, 2014 12:00:00 AM
Friday, September 19, 2014 12:00:00 AM
Thursday, August 28, 2014 12:00:00 AM
Friday, August 29, 2014 12:00:00 AM
Friday, September 19, 2014 12:00:00 AM
Tuesday, September 23, 2014 12:00:00 AM
Sunday, September 14, 2014 12:00:00 AM
Monday, June 23, 2014 12:00:00 AM
Friday, September 19, 2014 12:00:00 AM
Friday, September 19, 2014 12:00:00 AM
Friday, August 29, 2014 12:00:00 AM
Thursday, September 04, 2014 12:00:00 AM
Friday, August 29, 2014 12:00:00 AM
Tuesday, September 09, 2014 12:00:00 AM
Sunday, September 07, 2014 12:00:00 AM
Tuesday, September 02, 2014 12:00:00 AM
Tuesday, August 26, 2014 12:00:00 AM
Sunday, September 07, 2014 12:00:00 AM
Thursday, September 11, 2014 12:00:00 AM
Wednesday, August 27, 2014 12:00:00 AM -
Using EWS to work with mail items from a range derived from Get-Date
I am attempting to write a powershell script that uses EWS to move items from the prior month and create a folder named after that month to hold those items.
I am finding that the search filter only likes the format if you use .NET system.DateTime and not Get-Date.
However it's strange, for testing I configured my variable to be the exact same format as the .NET format but it rejects it.
The error i receive is:
Exception calling "FindItems" with "2" argument(s): "The specified value is
invalid for property."
At line:1 char:1
+ $frFolderResult = $InboxFolder.FindItems($sfCollection,$view)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ServiceResponseException
For example, if i set $startdate and $enddate like this $startdate=(([system.DateTime]::Today.AddDays(-60)))
$startdate returns Monday, January 20, 2014 12:00:00 AM, and the search filter works fine.
but if i set $startdate using this: $startdate = (Get-Date).AddMonths(-1).ToString("dddd, MMMM 01, 12:00:00 AM")
It gets rejected event though the output is exactly the same.
i.e. Friday, February 01, 2014 12:00:00 AM
Any help would be appreciated.
Thank You.
#Set the mailbox that this script will run against
$MailboxName = "[email protected]"
# Set up the API dll path, AutoDiscover URL and AD account used to access the mailbox
Import-Module "C:\Program Files\Microsoft\Exchange\Web Services\2.0\Microsoft.Exchange.WebServices.dll"
$service = new-object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::"Exchange2010_SP2")
$windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$sidbind = "LDAP://<SID=" + $windowsIdentity.user.Value.ToString() + ">"
$aceuser = [ADSI]$sidbind
$service.AutodiscoverUrl($aceuser.mail.ToString())
# Determine if the script is running in January in order to set the year used in the search filter
if ((Get-Date).Month -eq 1) {
$searchyear = (Get-Date).Year - 1
Else{
$searchyear = (Get-Date).Year
# Set variables for the search filter to move items from the prior month to a folder
$startdate = (Get-Date).AddMonths(-1).ToString("dddd, MMMM 01,")
$startdatetime= "$startdate $searchyear 12:00:00 AM"
$enddate = [System.DateTime]::DaysInMonth($(Get-date).Year, $(Get-date).Month -1)
$priormonth = (Get-Date).AddMonths(-1).ToString("dddd, MMMM")
$enddatetime = "$priormonth $enddate, $searchyear 11:59:59 PM"
# Set up folder path locations for the search filter
$folderid = new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox,$MailboxName)
$MailboxRoot = new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::MsgFolderRoot,$MailboxName)
$InboxFolder = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service,$folderid)
# Create the search filter
$Sfgt = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+IsGreaterThan([Microsoft.Exchange.WebServices.Data.ItemSchema]::DateTimeReceived, $startdatetime)
$Sflt = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+IsLessThan([Microsoft.Exchange.WebServices.Data.ItemSchema]::DateTimeReceived, $enddatetime)
$sfCollection = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+SearchFilterCollection([Microsoft.Exchange.WebServices.Data.LogicalOperator]::And);
$sfCollection.add($Sfgt)
$sfCollection.add($Sflt)
# Perform the search
$view = new-object Microsoft.Exchange.WebServices.Data.ItemView(5000)
$frFolderResult = $InboxFolder.FindItems($sfCollection,$view)
# define the destination folder name, check if the destination folder exists
$foldermonth = (Get-Date).AddMonths(-1).ToString("MM")
$newFolderName = "$foldermonth$searchear"
$fvFolderView = new-object Microsoft.Exchange.WebServices.Data.FolderView(10)
$SfSearchFilter = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+IsEqualTo([Microsoft.Exchange.WebServices.Data.FolderSchema]::DisplayName,$newFolderName)
$findFolderResults = $service.FindFolders($MailboxRoot,$SfSearchFilter,$fvFolderView)
# Create the destination folder if necessary
if ($findFolderResults.TotalCount -eq 0){
$NewFolder = new-object Microsoft.Exchange.WebServices.Data.Folder($service)
$NewFolder.DisplayName = $newFolderName
$NewFolder.Save($MailboxRoot.Id.UniqueId)
else{
# Folder Already Exists - Do Nothing
# Move the items in to the destination folder
foreach ($miMailItems in $frFolderResult.Items){
"Moving" + $miMailItems.Subject.ToString()
[VOID]$miMailItems.Move($NewFolder.Id.UniqueId)The Managed API is expecting you to pass a Typed Value not a String so if you just use
$startdatetime= [System.DateTime]::Parse("$startdate $searchyear 12:00:00 AM")
That should work okay, the Managed API itself will then covert it to and from UTC and then submit the query eg
<m:Restriction>
<t:IsLessThan>
<t:FieldURI FieldURI="item:DateTimeReceived" />
<t:FieldURIOrConstant>
<t:Constant Value="2014-02-24T03:26:34.889Z" />
</t:FieldURIOrConstant>
</t:IsLessThan>
</m:Restriction>
Which you can see yourself if you enable tracing eg
$service.TraceEnabled = $true
Cheers
Glen -
ALV OOps report- getting data from two tables and adding issue
Hi,
This is sales employee performance report.
I need to select all the fields from two tables based on user input ie VKorg, sales employee .
There is one field callled " Net sales"in both the tables.
Based on sales employee number, i need to add that net sales which i get from two tables.
I need to generate single report.
Can you give some inputs reg. the select query.
My idea is select all the data from both tables using join statement.
ThanksHi,
I have written like this:
select * from S002 as a join S006 as b
into table ME->SS002_RAW[]
where vkorg in me->select_parameters->SO_VKORG[] = vkorg in me->select_parameters->SO_VKORG[]
and ZZSLSEMP01 in me->select_parameters->SO_so_empl[] = ZZSLSEMP02 in me->select_parameters->SO_so_empl[].
when i do like that,
I am getting error
Incorrect structure of FROM clause . . . .
If you give some idea on this
Edited by: Raja on Apr 22, 2009 11:19 AM -
Hello,
what is the APDU command for GET DATA? I'd like to extract card data(tag '66') information using JCOP.
when I using the following command, there is a 6A 86 (Incorrect parameters) error.
cm> /send 80CA006600
Please let me know the correct APDU command.
Thanks,
Julie.Yes, I sent the message to a 2.0.1 card.
I've just checked the 2.0.1 spec and the only difference is the data field, but I sent the datafield as 00.
Why I couldn't retrieve the information?
Julie. -
Getting message "Incorrect access to store record"
Hi, <BR> I am getting message "Incorrect Access to Store Record" and the record is getting rejected. I could see no help on this in technical document. Let me know if anyone know solution for this. <BR><BR>Thanks<BR>Murali
Murali:<BR><BR>You are attempting to load data to an intersection of a database that is a Target intersection of a Replicated Partition.<BR><BR>The following steps will eliminate the error, but beware the fact that the cell(s) you update will be overwritten by the next replication.<BR><BR><OL>1. From Application Manager, edit the partition that causes the error.<BR><BR>2. On the Connect panel, click on settings and check the box that reads: "The target partition can be updated". Once this box is checked and the partition is re-validated and saved to the server, data can be loaded into the Target Partition.</OL> Again, beware the next replication!
-
Hi all,
i am craeating a dimension and i did the mapping also.i get the data in that dimension table.But i am not able to get the data in the Dimesion (i.e When i right click on the dimesion which i have created,there one option is called Data Viewer,from that i am not getting data)
Can any help me about this.Hi,
Just try with the code given below... hope that helps you out....
also write a break-point statement just before the if statement and check in the debugging mode if it i_mseg table has some values or not...
if i_mseg[] is not initial.
select zzlcno zzlcdt
into i_ekpo from ekpo
for all entries in i_mseg
where ebeln = i_mseg-ebeln.
append i_ekpo.
endselect.
endif.
OR
if i_mseg[] is not initial.
select zzlcno zzlcdt
into corresponding fields of i_ekpo from ekpo
for all entries in i_mseg
where ebeln = i_mseg-ebeln.
append i_ekpo.
endselect.
endif.
Regards,
Siddarth -
Can we get data from business views in CR 2008/XI?
Hi All,
Can we get data from business views in CR 2008/XI?
If its possible, pls let us know how to get connect with Business View in both of these versions and what is the tool that we have to use to create Business Views.
Thank you,
Krishna PingaliHi Krishna,
Crystal Reports/BusinessObjects Enterprise ( BOE ) Business Views can only be created using the BV build which comes with BOE and installed using the Work Station installer for BOE. for both XI and 2008.
You cannot mix these two versions on the same PC not can one talk to the other, the BV designer must match the same version as BOE. XI ( version 11.0 ) is no longer available but if you mean XI R2 ( version 11.5 ) then it still is.
It's not completely clear which Business View you are referring to? BOE has a Business View Designer so not sure if this is just a naming problem or not? If you are referring to the BOE Business View Designer then the above is true. If your reference is about some other BV designer or data source then you need to clarify.
Contact our Sales department for pricing and availability.
Thank you
Don -
Can not get data from database
hi all,
there is a problem , when i write like below :
SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
WHERE bukrs = p_bukrs
AND hkont = p_hkont.
p_bukrs , p_hkont are all on the selection screen , and p_bukrs = 1200 another is eq blank. i can not find any data , but with the same condition i can find some data in database , when i debeg i found that p_hkont is initial.
when i write like this :
SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
WHERE bukrs = p_bukrs .
this time i can find the data like the database.
so , does someone know where the problem is , why i can not get data ?
kind regards
kevinhi,
if u r using bukrs and hkont as parameters in selection screen then
SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
WHERE bukrs = p_bukrs
AND hkont = p_hkont.
this will work.
if u r using then as select-option then the above does n't work.
bcoz select-options work as internal table bcoz of that u have use the query like this
SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
WHERE bukrs IN p_bukrs
AND hkont IN p_hkont.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Edited by: Alvaro Tejada Galindo on Aug 15, 2008 5:25 PM -
Getting data in a combobox from database
I have done database connectivity in flex using .net. Now I am getting data in flex in a data grid. Everuthing is working fine if I take data in a data grid.
My problem is that if I try to take that data in any other control, other than data grid, it shows up no data, it only shows "object[object].
for ex:
if I am getting 3 rows from databse and I try to get those in a combo box, den I am getting 3 items in combo box like this:
object[object]
object[object]
object[object]
instead of actual data.
I am stuck in this problem for last 3 days. I have tried lot of things but nuthing is working. Plz anyone help me out soon. Its really urgent.
I am working on a live project and not able to proceed because of this problem.Hi Bhavika,
You need to tell your combobox which value should be displayed in the ComboBox...for display...
You are getting 3 rows from database which are objects since you haven't told your combobox which value to be displayed it is displaying as [Object,Object]...
So you need to tell your ComboBox which values to be displayed ..and you can do this by assigning the labelField property of the ComboBox..
Say in your object you have three properties say..data, value, name...etc;;
Then if you want display name as your ComboBox display label then simply write ....labelField="name" in your ComboBox ...
Thanks,
Bhasker Chari -
Not able to get data in production client in BEX query
Hi Experts,
I have an SD related query which is working fine in development.
in production while i run the query iam not getting data for three fields "ship to party" , "Bill to party" and "sold to party.
I am able to see the data at the cube level but it is not reflecting in the query. Transportation of this query also
did not throw any errors. Please provide a solution.
Regards,
susheeth.
Edited by: Susheeth on Aug 4, 2011 1:26 PMHi,
Check if the characteristics used in query are direct objects from cube or navigation attributes of any other characteristics. In case of navigation attributes you need to have master data maintained.
And as mentioned by Vamsi, check the text data maintained for 0CUSTOMER. And for checking data you can mark Key and Text option.
Regards,
Durgesh.
Maybe you are looking for
-
Hi All, I want to change the standard print put (Script) from T-Code J1IE to a custom (Smart form). for this I copy the driver program and create a smart for , replace the standard program and smartform name with my custom programin NACE (Exact T-Cod
-
I click download free trial, and it asks for permission to open another window, I hit approve. It then pulls up the Creative Cloud window, but nothing happens. Am I doing something wrong or is there another way to download it?
-
Error after service pack upgrade
Hi, Recently I upgraded solution manager system to SP13 from SP10 . After the upgrade I am not able to create message through notif_create transaction . The error message is No, or insufficient, authorization for authorization object "B_NOTIF_IB"
-
Save Export settings as a Preset?
Is there a way to save the Export settings as a Preset? I convert QuickTime files to a variety of different formats that use very specific compression, size, and sound settings. It would be helpful to have user-defined presets so I don't have to manu
-
How to enter SIM PIN on a wiped IPad when you know the PIN?
My daughter somehow changed her PIN on her IPad this morning but has no idea what it is! I tried to restore to factory settings, but it would not let me do this unless I turned off find my IPhone which I could not do because we do not know the passw