Vbscript / asp and DATEs in recordset query
I've been using dreamweaver for about 5 years now, and its all be mostly vbscript - classic asp based stuff.... mostly small scale stuff using MS Access db as backend datasource.
i've always had issues with using the recordset building dialogue window/box under server behaviors in terms of building a query using the 'advanced' tab/option and having a date field from my database (formatted like mm/dd/yyyy) used in the filtering of records... the text based queries are all a cinch and very easy to do, but for dates I always run into issues.
right now im simply trying to make sure all the returned records are AFTER the 'current date' - date() ...
and dw cs5 has this line added for the default value: RS_Events_cmd.Parameters.Append RS_Events_cmd.CreateParameter("param3", 135, 1, 1, RS_Events__MMColParam3) ' adDBTimeStamp
in my query im asking And EventDate > ? ---- basically, where the date of the record in the database is GREATER than or AFTER the current date or a user-defined variable for the date... the default is the current date though.
something tells me the problem is probably related to the 135,1,1 area of that string, but i dont know what to try... i've tried changing the last 1 to -1 and 0 but still same error "Application uses a value of the wrong type for the current operation." and it cites that same line of code i just mentioned.
i might add the database has the date field formatted correctly and im able to use hand-written code to query it just fine, but i know there has to be a way for dw to handle it so my code isnt 'tacked' on and making a mess of the dw routines.
anyone familiar with any of these issues as relates specifically to vbscript / asp and the use of date() in dw recordset queries?
Hi,
<i>I need to use a date to calculate a key figure.</i>
Here you will use the formula variable with replacement path.
<i> Can I filter these null values at the query level.</i>
Yes, it is possible in query level.
For example, in the formula :
(0calday = '')* (do what ever you wan to do in case date is null) + (NOT (0calday = ''))* (do what ever you wan to do in case date is not null)
With rgds,
Anil Kumar Sharma .P
Similar Messages
-
Trying to simply connect to Oracle with VBscript/ASP - and I cannot.
This is rather embarrassing. I am pretty fluent with ASP and VBscript, and I have written many a web application connecting to Microsoft SQL Server. Now I have a need to connect to an Oracle database, and I'm beating my head against the wall.
1) Web server is Windows Server 2003 SP1
2) Using ASP (not ASP.NET) & VBscript
3) I have installed the Oracle drivers on the server - it is version 10g
4) The administrator of the Oracle database to which I want to connect has created a username and password for me to use from within my code
5) Here is the code I am trying to run:
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Provider=MSDAORA;Data Source=XXXXXXX;User Id=YYYYYYY;Password=ZZZZZZZ;"
That's it. 2 lines of code just trying to establish a connection. Using the user name and password provided to me by the administrator, and for Data Source I am using the IP address of the Oracle server (like I have done in the past when connecting to SQL Server). I receive the following error message when viewing this in a browser:
Microsoft OLE DB Provider for Oracle error '80004005'
ORA-12154: TNS:could not resolve the connect identifier specified
Evidently, the Data Source I am using is not correct, but I was provided no other information from the admin. This is the first time any of us have tried to connect to Oracle using ASP/VBScript, so the administrator isn't sure what I need to do ... any help would be so appreciated.Hello,
I got mine to work by setting up an ODBC System DSN and connecting to it. I think this bypasses the Microsoft driver, which might be what's causing the problem.
Set Db = Server.CreateObject("ADODB.Connection")
Db.Open "DSN=TEST;User ID=userid;Password=password;"
Good luck, I've found it requires a lot of persistence...
Al
Springfield, MO -
InputDate and Data parameter from query
Hello,
I'm expiriencing some problems with my Web project,
I have Model and View.
I created ViewObject from query with parameter:
SELECT r.room_id FROM rooms r WHERE (r.from_date>=:from_date);Parameter :from_date has type 'Date'.
In ApplicationModule everythin works fine, but on jspx no (I've created ADF Parameter Form from ExecuteWithParameters operation)
<af:inputDate value="#{bindings.from_date.inputValue}"
label="#{bindings.from_date.hints.label}"
required="#{bindings.from_date.hints.mandatory}"
shortDesc="#{bindings.from_date.hints.tooltip}"
binding="#{backing_request.inputDate1}"
id="inputDate1">
<f:validator binding="#{bindings.from_date.validator}"/>
<af:convertDateTime pattern="#{bindings.from_date.format}"/>
</af:inputDate>In JSPX parameter don't work, maybe it is still default?
I tried using convertDateTime and modyfing DateFormat in View Object but without effect :(
Could you please provide me some hint where I could look for my mistake?After few hours in fight I finally got working form. I don't know if I'm right, I suppose that it wasn't my bad but SQLDevelopers' ;)
Originally I added new rows into table with SQLDeveloper, yesterday I created input form on JSPX page and add new row with Submit button, suddenly my 'ExecuteWithParameter' JSPX page has worked.
Does SQLDeveloper could be the reason? -
Need MDX query to find something like date diff and Date Range for last 10 days
Hi ,
I need two Query .First Query for below;
I have below data in table like.
Cat StartDate EndDate
A 2000-01-01 2000-01-15
B 2000-01-02 2000-01-30
C 2000-01-01 2000-01-31
D 2000-02-01 2000-02-28
A 2000-01-10 2000-01-31
I need if Startdate and Date completes whole one month then set status =1 else 0 using MDX query.
like this ;
Cat StartDate EndDate Status
A 2000-01-01 2000-01-15 1
B 2000-01-02 2000-01-30 0
C 2000-01-01 2000-01-31 1
D 2000-02-01 2000-02-28 1
A 2000-01-10 2000-01-31 1
In second query I need last 10 days from current days like;
Now = 8/20/2014
output will be ;
8/20/2014
8/19/2014
8/18/2014
8/17/2014
8/16/2014
8/15/2014
8/14/2014
8/13/2014
8/12/2014
8/11/2014
8/10/2014
Please help me .
ThanksHi Prajapati,
In your scenario, you can use Properties and Datediff function to achieve your requirement. Since not know the structure of your cube, we cannot give you the esact query.
I have tested it on the AdventureWorks cube, the query below is for you reference.
WITH MEMBER [Measures].[StartDate]
AS
[Employee].[Employee Department].CURRENTMEMBER.PROPERTIES('Start Date')
MEMBER [Measures].[WorkYear]
AS
DATEDIFF('yyyy',[Measures].[StartDate],NOW())
MEMBER [Measures].[Status]
AS
IIF(DATEDIFF('yyyy',[Measures].[StartDate],NOW())>10,1,0)
SELECT {[Measures].[StartDate],[Measures].[WorkYear],[Measures].[Status]} ON 0,
[Employee].[Employee Department].[Employee].MEMBERS ON 1
FROM [Adventure Works]
Results
Reference
http://msdn.microsoft.com/en-us/library/ms144821.aspx
Regards,
Charlie Liao
TechNet Community Support -
Confusing result between 'to_date' and 'long to date' in oracle query
I have a table called "subscription" as below.
desc subscription;
Name Null Type
SUBSCRIPTION_ID NOT NULL NUMBER(38)
EXPIRATIONDATE DATE
And output of a query as below.
select subscription_id,expirationdate from subscription where subscription_id = 41919;
SUBSCRIPTION_ID EXPIRATIONDATE
41919 18-JAN-14 13:45:56
And I am trying to execute following query in different ways.
1st Query:
select s.subscription_id from subscription$active s where s.expirationdate - (116/24) between TO_DATE('13-JAN-14 11:38:22', 'dd/mm/yyyy hh24:mi:ss') and TO_DATE('13-JAN-14 18:30:00', 'dd/mm/yyyy hh24:mi:ss') and s.subscription_id=41919
Output:
SUBSCRIPTION_ID
41919
2nd Query:
select s.subscription_id from subscription$active s where s.expirationdate - (116/24) between (trunc(1389613102220 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy') and (trunc(1389637800000 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy') and s.subscription_id=41919
Output:
SUBSCRIPTION_ID
Here both the above where clause are same. 1st one is trying to use "to_date" and 2nd one converts "long to date". But when I see the out put, the first one returns a row and 2nd doesnot return any result. I couldn't find out what is difference the 'long to date' conversion makes here.
The conversion between long to date is also correct.
select (trunc(1389613102220 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy') from dual
Output:
(TRUNC(1389613102220/(1000),0)/(24*60*60))+TO_DATE('01/01/1970','MM/DD/YYYY') -------------------------
13-JAN-14 11:38:22
And
select (trunc(1389637800000 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy') from dual
Output:
(TRUNC(1389637800000/(1000),0)/(24*60*60))+TO_DATE('01/01/1970','MM/DD/YYYY') -------------------------
13-JAN-14 18:30:00
Can someone help me to understand the difference between the 1st and 2nd query ?Hi,
Not sure what exactly you asking for. What is the requirement?
Just formatted for better readability:
-->-- Query 1
SELECT
s.subscription_id
FROM subscription$active s
WHERE
s.expirationdate - (116/24) BETWEEN
to_date('13-JAN-14 11:38:22', 'dd/mm/yyyy hh24:mi:ss')
AND
to_date('13-JAN-14 18:30:00', 'dd/mm/yyyy hh24:mi:ss')
AND s.subscription_id=41919;
-->-- Query 2
SELECT
s.subscription_id
FROM subscription$active s
WHERE
s.expirationdate - (116/24) BETWEEN
(trunc(1389613102220 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy')
AND
(trunc(1389637800000 / (1000), 0) / (24 * 60 * 60)) + to_date('01/01/1970','mm/dd/yyyy')
AND s.subscription_id=41919; -
How to query in SCCM 2012 to know how many active and inactive clients in a specific time and date
Dear Everyone,
Good morning. I need to perform a query to know how many clients PCs are active or inactive during the a specific time and date (let say, today 9pm). In my query, I want to know:
1. How many client PCs is active at that time and date?
2. How many client PCs is not inactive at that time and date?
Any assistance is greatly appreciated. Thanks.Thank you Gerry for pointing out that it doesn't show real time date. I do agree with that. However, I am look at the (at least in this) report which supposed to [description] shows a list of computers not reporting any power activity for a specified date
and time. Since I can only key in date in my selection (time option not given), I am expecting the report to show me whether there any client PCs that doesn't any power activity for the specified date. A list was generated, and a number of them shows HardwareInventoryScan,
LastHeartBeatScan and LastPolicyRequest on the same date itself. I would like to know why these appears, so that I can learn from it.
Due to the selection option given, I can't expect my original goal, but at least (hopefully) I can get to know (past event) how many and which client PCs is not powered on a particular date based on the date and collection selected.
At least by getting explainations, I hope to learn something from this (how to read this report). Thanks in advance. -
When I try to publish my Muse site I get "Query failed" appear in the "Publish to" and "Data Centre"
What can I do to solve that? It's stopping me from publishing updates.
Yes, I am publishing it to BC. It happened the other day too but had
never happened in the previous 9 months that I have been using Muse (and
BC). Have I really hit two maintenance periods in such a short time?
Seems quite unlikely but let's hope so.
Jonathan Phillips
Head of Marketing
PACT Educational Trust
m: 07517 610209
e: [email protected]
visit www.pactschools.org.uk
Open Days ***
OLIVER HOUSE SCHOOL: THURSDAY 20TH MARCH 10AM-12PM
oliverhouse.org.uk
visit the websites for more details ***
On 03-04-2014 17:18, Brad Lawryk wrote:
RE: WHEN I TRY TO PUBLISH MY MUSE SITE I GET "QUERY FAILED" APPEAR IN THE "PUBLISH TO" AND "DATA CENTRE"
created by Brad Lawryk in Help with using Adobe Muse CC - View the full discussion -
Query on Vocie and Data VLan on same Swithc port
Hi All,
This is query regarding allowing both Vocie and data Vlans on a single switch port. I knew tehre are different ways to configure and acheive this, but not sure how techncially they are different from each other>
Way 1:
interface FastEthernet1/5
description *** IP Phone/Data Port ***
switchport trunk native vlan 10
switchport mode trunk
switchport voice vlan 16
no logging event link-status
no snmp trap link-status
mls qos trust cos
spanning-tree portfast
sh int trunk
Port Mode Encapsulation Status Native vlan
Fa1/5 on 802.1q trunking 10
Fa1/7 on 802.1q trunking 10
Fa1/12 on 802.1q trunking 10
Fa1/13 on 802.1q trunking 10
Fa1/14 on 802.1q trunking 10
Port Vlans allowed on trunk
Fa1/5 1-1005
Fa1/7 1-1005
Fa1/12 1-1005
Fa1/13 1-1005
Fa1/14 1-1005
Port Vlans allowed and active in management domain
Fa1/5 1,10,16
Fa1/7 1,10,16
Fa1/12 1,10,16
Fa1/13 1,10,16
Fa1/14 1,10,16
Port Vlans in spanning tree forwarding state and not pruned
Port Vlans in spanning tree forwarding state and not pruned
Fa1/5 1,10,16
Fa1/7 1,10,16
Fa1/12 1,10,16
Fa1/13 1,10,16
Fa1/14 1,10,16
sh vlan-switch
VLAN Name Status Ports
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/6, Fa1/8, Fa1/9
Fa1/10, Fa1/11, Fa1/15
10 DVLAN active
16 VVLAN active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/6, Fa1/8, Fa1/9
Fa1/10, Fa1/11, Fa1/15
In the above config, the port Fa 1/5 which is currnetly up and running( this port is ocnencted with IP phoen and a PC) is not shown in sh vlan-switch output as assigned to vlan 10 or vlan 16. Not sure it is becuase the output was taken from ISR rotuer with NM 16-ESW module .
sh int fa 1/5 switchp
Name: Fa1/5
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Disabled
Access Mode VLAN: 0 ((Inactive))
Trunking Native Mode VLAN: 10 (DVLAN)
Trunking VLANs Enabled: ALL
Trunking VLANs Active: 1,10,16
Priority for untagged frames: 0
Override vlan tag priority: FALSE
Voice VLAN: 16
Appliance trust: none
In above ocnfig, the port is configured as trunk and hence it can carry multiple vlan traffic on swithcport. As IP phones will have inbuilt switch which runs DTP by default and CDP to reciognize the conencted devcies. I am not sure how this config works as even it's configured as trunk the DTP negotiation is disabled and how phone switch can differentiate the voice frames and data frames. Please explain in loigcal as it's known that as we have confgiured vlan 10 as native and vocie vlan 16 as trunk it carries the voice traffic.
Way 2:
interface FastEthernet1/2
description *** IP Phone/Data Port ***
switchport access vlan 10
switchport mode access
switchport voice vlan 16
no logging event link-status
no snmp trap link-status
mls qos trust cos
spanning-tree portfast
In the above config, even the port is access it's carrying multiple vlan traffic despite of being trunk port. Not sure how the trunk will be formed even DTP neogotiation is off. Isi t because of voice vlan command and if so what it deos exactly. Please can anyone elaborate in detail. Sorry, if my post is big and confusing
sh int fa 1/2 switchport
Name: Fa1/2
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: OffSwitch - Phone - PC
1. First question:
# int f0/1
# switchport mode access
# spanning-tree portfast
# switchport access vlan 50
# switchport voice vlan 10
This is the ideal way to configure and in all latest IOS Switches and in latest ISR routers, we do this as the command "switch port voice vlan" command says to switch port that it carries the voice traffic as tagged and PC as untagged.
As we all know the default switch port of a switch will be either Dynamic auto or Dynamic Desirable which means DTP is on and in turn it means negotiation of trunking is ON. This is as per my understanding.
The Sub-Questions for 1st Question are below:
1 Does the trunk negotiation happen between Access Switch switch port and Mini 3 Port Switch within the IP Phone. If mini switch in IP PHone negotiates to form trunk based on DTP then what’s the default switch port mode of mini switch in the IP Phone.
2. As in above config we are no where mentioning the port to be trunk. But it’s still allowing multiple vlan’s traffic to carry on access port. The switchport mode is access when you do “ sh int fa 0/1 swithcport.”. Is it the swithcport voice vlan command does the magic?
2. Second Question:
# int f0/1
# switchport trunk encapsulation dot1q
# switchport trunk native vlan 10 (data VLAN)
# switchport mode trunk
# swichport voice vlan 15
The Sub-Questions for 2nd Question are below:
When do we use this configuration.? In my set-up the above config is seen on 2811 ISR routers with NM-16ESW modules. Can’t we configure the data vlan a switch port access vlan 10 , instead of trunk native vlan. -
Hi
I am trying to wright a SQL query that will return the date the timesheet was submitted and date/time it was approved, can anyone guide me on this?
I basically need person name who submitted, date - time it was submitted for approval, then the person who approved it and the date - time that it was approved
Thanks
RubyRuby,
you can start with HXC_TIMECARD_SUMMARY table for submitter detail. But for approver details, i think you need WF tables to get the data for item type HXCEMP. -
Need query to list columns and data
Hi all,
I am having a requirement that to compare two identical rows based on empno and list the columns and data which columns are varied.
SQL> select * from emp1 where empno=7369;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 2000 20
7369 SMITH PRO 7788 17-DEC-1980 2100 20if we see above data - columns mgr,sal and job have different data but same having same employee number
Now i want to display the columns which are having different values for a given perticular employee having identical rows with employee number
Note : in my original table i have 300 columns around. above explained is sample example for understanding
thanks
krishna.Hi,
If you want a variable number of columns, depending on the data found, then you'll have to use dynamic SQL.
I suggest you don't do that. I recommend String Aggregation , that is, concatenating the variable number of items into one big string column, formatted so that ir looks like differenct columns. That is, you might get output like this:
EMPNO MISMATCHED_DATA
JOB MGR SAL
7369 CLERK 7902 2000
7369 PRO 7788 2100Notice that the output consists of 3 rows and 2 columns.
The 1st row displayed serves as a header. (The actual header has the actual, generic column name, mismatched_data.)
Here's one way to get output like that:
VARIABLE data_width NUMBER
EXEC :data_width := 10;
WITH unpivoted_data AS
SELECT e.empno
, DENSE_RANK () OVER ( PARTITION BY e.empno
ORDER BY e.ROWID
) AS r_num
, c.column_name
, c.column_id
, RPAD ( COALESCE ( CASE c.column_name
WHEN 'ENAME' THEN e.ename
WHEN 'JOB' THEN e.job
WHEN 'MGR' THEN TO_CHAR (e.mgr)
WHEN 'HIREDATE' THEN TO_CHAR (e.hiredate, 'DD/MM/YYYY HH:MI:SS AM')
-- ... more columns in your real problem
END
, CASE c.column_name
WHEN 'SAL' THEN TO_CHAR (e.sal)
WHEN 'COMM' THEN TO_CHAR (e.comm)
WHEN 'DEPTNO' THEN TO_CHAR (e.deptno)
END
, :data_width -- maximum column width
) AS d
FROM emp1 e
JOIN user_tab_columns c ON c.table_name = 'EMP1'
WHERE e.empno IN (7369) -- any 1 or more empnos
, got_val_cnt AS
SELECT u.*
, COUNT (DISTINCT d) OVER ( PARTITION BY empno
, column_name
) AS val_cnt
FROM unpivoted_data u
, discrepancies AS
SELECT v.*
FROM got_val_cnt v
WHERE val_cnt > 1
, relevant_columns AS
SELECT DISTINCT column_name
, DENSE_RANK () OVER ( ORDER BY column_id) AS c_num
FROM discrepancies
SELECT d.empno
, REPLACE ( SYS_CONNECT_BY_PATH ( NVL ( d
, RPAD (' ', :data_width)
, '~'
, '~'
) AS mismatched_data
FROM discrepancies d PARTITION BY ( d.empno
, d.r_num
RIGHT OUTER JOIN relevant_columns r ON r.column_name = d.column_name
WHERE CONNECT_BY_ISLEAF = 1
START WITH r.c_num = 1
CONNECT BY r.c_num = PRIOR r.c_num + 1
AND d.empno = PRIOR d.empno
AND d.r_num = PRIOR d.r_num
UNION ALL
SELECT NULL AS empno
, REPLACE ( SYS_CONNECT_BY_PATH ( RPAD (column_name, :data_width)
, '~'
, '~'
) AS mismatched_data
FROM relevant_columns
WHERE CONNECT_BY_ISLEAF = 1
START WITH c_num = 1
CONNECT BY c_num = PRIOR c_num + 1
ORDER BY empno NULLS FIRST
;You can specify any number of empnos to be included in the report.
You really want a CASE expression that has a WHEN clause for every column in your table, but CASE expressions have a maximum of (I believe) 128 WHEN clauses. If you really have 300 rows, you'll have to break that down into smaller groups. In the query above, I used 2 CASE expressions in a COALESCE function, where each of the CASE expressions had no more than 4 WHEN clauses. You may have to use 3 CASE expressions, each with 100 WHEN clauses.
This solution does not assume there are exactly 2 rows per empno; there can be any number.
If all the rows for an empno are completely identical, that empno will not be included in the output. This includes the situation where a given empno is unique.
Again, you can get separate columns for each mismatched item, using dynamic SQL, but it's even more convoluted than the query above. -
How do I take data from a query sample record and query another block with it?
I have a master/detail form (6i) that contains a master block (staff), and a detail block (phone). I would like to be able
to query by phone number, but when I execute the query, I would like a 'search results' box to pop up that contains the
phone number I queried for, as well as some other staff info. There might be multiple records that match my query,
and I'd like them all to be listed (or list 10 or so, with a scrollbar). I'd like a push button next to each record that will take
me back to the master/detail window with that record displayed. So, I created a third block that is based on a joined
view of the staff and phone tables. It is a multi-record block, with 10 recs displayed and a scrollbar. It is in a separate
window. I don't want the user to have to navigate to that block, however, to perform their query. I would like them to be
able to enter the query in the phone number block, then somehow grab the phone number they've entered and use it to
query my 'search' block. This is the part I'm having trouble with. Can someone please help? THANKS!Where do I put that line of code? I see that it goes at the Script part near the top, but how can I use that, I am pretty new to this language. I am not familiar with this line, where does it bind the value from the datagrid to the variable?
fullXML[myDataGrid.selectedIndex].FIELD_NAME;
myDataGrid would be the id from the grid I am guessing?
and selected index would be the channel.description part?
and FIELD_NAME; is the variable name?
does this go into a funtion or is it placed at the top where the variables are declared? -
i get this error whenever i open pages created in CS4. ive tried deleting the cache file... deleting the entire configuration folder and letting DW re build it.. nothing... error still there. how can i turn it off? i also cant seem to find the "edit server behaviors" button.. double click? well DW freaks out with that aswell... yes i know i have some insanely hand edited code.. basically use DW as notepad replacement.. with extra features like having the option of "add recordset" then going and editing it to my liking.
the error
[quote]
The server behavior panel cannot determine whether "command" or "recordset (Query)" is applied to your page. Please select edit Server Behaviors and change one of the two behaviors to ensure that each is uniquely identifiable.
[/quote]
this is a total show stopper for me.. im going to have to go back to a previous version cant click "ok" every time i open a page.. and every time i follow a include file.
development ASP
Dreamweaver CS5
Question.. how to disable the error message from popping up? i'll take my chances with hand editing the recordset / command by hand if i need it changed.this is bleh... having to resort back to CS4..
is there any way to legaly go back to cs4 dreamweaver but still use the other cs5 applications? -
Suddenly getting this goofball message in DW5.5 on Win7:
"The Server Behavior panel cannot determine whether "Command" or "Recordset (Query)" is applied to your page. Please select Edit Server Behaviors and change one of the two behaviors to ensure that each is uniquely identifiable."
Crazy thing is, it only happens on my workstation.
DW5.5 on my laptop opens the same .asp pages without this crazy message popping up.
Anybody know what the issue is?I'd suggest that no answer means no answer yet. The person who can help may not have been on the forum the day the post was made.
That said, I'm starting to suspect that the cause must be an extension. Both boxes have the same version of DW and the same OS but both don't have the exact same extensions installed. Will play around and see what happens. -
Hi
I have created a TEM query in SQ02, based on infoset \SAPQUERY\HR_TEM_E (logical database PCH), in which I am outputting object name and date (P1000), and org unit (P8004).
The output on the org unit name corresponds to the most current version of the org unit, but my requirement is for it to match to the date that the course object exists, i.e. historical.
Would anyone know a way to code this field, or whether there is a functional solution to this?
Please do let me know.
Anyone?
Edited by: minttea on Aug 10, 2010 3:52 PMHi..
Pls check below code to fetch the tesxt of historical org unit. hope it will help.
*//Internal table declaration.
DATA : lt_00 TYPE STANDARD TABLE OF pa0000,
lt_psn TYPE STANDARD TABLE OF zhrpositions,
lt_ret TYPE STANDARD TABLE OF bapiret2,
lt_01 TYPE STANDARD TABLE OF pa0001,
lw_01 TYPE pa0001,
lw_psn TYPE zhrpositions,
lt_comps LIKE zstr_hr_comps,
lt_return LIKE bapiret2.
Thanks,
kl
Edited by: Narayana on Aug 10, 2010 10:50 AM -
Status of data in Bex query shows wrong date
Dear Experts,
The Bex qurey after sucessful execution, show the Status of data as old date i.e. feb 2012. but we observed that the data uplaod happens regularly and sucessful.
we tried executing the same query using RSRT/Bex Analyzer/Portal. the results are same i.e. showing incorrect status of data.
Note: The Bex query is built on BI Infoset which sources from DSOs and Master Data infoobjects, and BI version is 7.0.
Kindly please help for resolving the issue.
Best Regards,
Mannu.Hi Vijay,
The data upload has happend today also and it is sucessful, the reporing status is available for requests from respective infoproviders.
'Status of data' is not a filed. if it an information to tell the status of data in query result.
Please find the following steps to find the 'status of data'
go to RSRT->give the query name and execute-> now after query results-> go to last page-> you can find the 'status of data'.
Best Regards,
Mannu
Maybe you are looking for
-
G3 B&W with G4 processor from Pci Graphics
Hi, I've recently acquired a G4 processor from a pci graphics model to use with my G3. Everything works fine except I'm not seeing gains in performance in comparsion of my last G3 processor. Is there something else that I should do to make it run in
-
How to set bootclasspath in environment var.
we use the following command to specify the bootclasspath on the fly java -Xbootclasspath:"<< .jar file>> <<File_name>> But what i want is rather than giving bootclasspath to each and every java execution, is there a way to specify it as env. variabl
-
Hello gentlemen, I have a problem in my topology, one at a time about if there is no traffic on the vlan, router R2 fails to ping the ip of the remote end svi, issu cause disorders seen everything so normalizes after I ping from (Vlan10)-R1 to ip i
-
SQL*Loader runs fine when I am running using my login. However when I use a different login I get Memory fault error. Please share any thoughts if had experience this problem or any insights into what might be causing this problem Thanks, Pedapuli
-
XI 3.0 How can I disable scheduling in favourites folder
I am trying to disable scheduling for the majority of our users (all except administrators) for ALL reports, including ones in their favourites folder. How can I do this for the favourites folder without having to go into each one and explicitly remo