Job Change Date
Hi ,
Can someone help me writing a query to get employee's recent job change date????
Thansk in advance
You can try this query
select papf.employee_number,max(oldpaaf.effective_end_date +1) "Job Change Date"
from per_all_people_f papf,
per_all_assignments_f oldpaaf,
per_all_assignments_f newpaaf
where papf.person_id = oldpaaf.person_id
and papf.person_id = newpaaf.person_id
and oldpaaf.job_id != newpaaf.job_id
and oldpaaf.effective_end_date < newpaaf.effective_start_date
and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
and trunc(sysdate) between newpaaf.effective_start_date and newpaaf.effective_end_date
group by papf.employee_numberPlease test it before using this.
Edited by: Subhasish on Aug 1, 2010 11:27 PM
Similar Messages
-
Hello experts,
Pls advise which table / report can check background job changesd. For example, who has changed job variant. Tks.
ps. I tried some tables, like TBTCO / TBTCP, but failed.Hi Cat L,
Check TBTCO Table you can find the field Last Job Change Date(LASTCHDATE),Time( LASTCHTIME) and user name(LASTCHNAME).
Pass your job name in this table you can find the field last change date is only changed when a change made in job.
Check once and revert .
Regards,
Pavan -
Job Publication doesnt get changed data in Job Posting through workflow.
Job Publication is not picking up the changed data in the Job Posting/Requisition through workflow.
When I am changing the data in Job Posting and release it manually the changed data gets reflected in Job Publication but if I am releasing the Job Posting trough WF(automatically) then the Publication doesnt pick up the data.The workflows are working fine in the system still the problem exists.
Thanks in advance for the reply.1-Log in portal with user id and pwd.
2-Create a requisition initially.
3-Create and release the Job posting(manually)
4-Create and release the Job Publication(manually).
5.Try editing the previous Job Posting and save it bu dont release the Job Posting manually.Now come to the personal page,when we again enter the same Job Posting ,the status of the Job Posting is set to "released" automatically by a Workflow.
6.Now if we proceed for the Job Publication and try Displaying it,the edited changes in the Job POsting is not displayed.
But if we have "released" the job posting manually then the changes are reflected in the Publication.
The user wants to use the Workflow scenario and also wants the edited changes to be taken up by the Publication.
Hope the following description helps out !
thanks in advance. -
Change Data Capture How to Tell which you are running Sync or Asyn
Hi ,
I am taking over a new system that has change data capture running, but Im really confused how this is running. Most of the CDC is set up using Sync(triggers), but I have about 5 tables that DO NOT have system generated triggers on them. I know Streams is NOT running/configured. I know Capture is not running/configured (because nothing in DBA_CAPTURE table). I can tell that these 5 tables are still getting updated in the change table schema. I can not figure out how the 5 tables that DO NOT have triggers on them are updating the change data set tables.
I had thought the the 5 tables, must be configured with HOTLOG, but when I look at the CHANGE_SETS table they all (including these 5 tables) are set to CHANGE SOURCE NAME = SYNC SOUCE. I would expected that to be HOTLOG_SOURCE. So I "assume" they aren't set up using Asnc. hot log mode. So maybe the other Async modes are used, but not pushed to another database? Is that possible?
Any other ideas on how to figure out how the CDC is set up for these 5 tables?
thanks for your help.Thanks for the reply, but I think I must have not stated the problem clearly. I dont WANT to set the source I want to figure out how this CDC is working. I see ALL the sources are currently set to SYNC_SOURCE. Almost all of the tables are set up with system triggers on them, but 5 dont have system triggers, yet the source says SYNC_SOURCE. I did validate that the change tables are getting updated for these tables. my question is how are they getting updated? I "assume" since they dont have system triggers ont eh table they aren't synchoronus cdc (like the other tables are). yet the source says SYNC_SOURCE. What am I missing? How can I tell if the redo log is populating those changes tables? Im pretty sure it is (Becuase there aren't triggers or jobs running), but Im curious if there is a way to tell for sure.
Thanks, -
Error While enahling CDC(Change data capture) on Table.
I am enabling Change data capture (CDC) on SQL server 2012 Enterprise edition(11.0.2100.60)
. I am able to enable it on Database level with below SQL, but failed to enable on Table level.
Use DatabaseName
GO
Exec sys.sp_cdc_enable_db
GO
EXEC sys.sp_cdc_enable_table @source_schema = N'dbo',
@source_name = N'TableName', @role_name = NULL
GO
Got Error like,
'msg 22832, Level 16, State 1, Procedure sp_cdc_enable_table_internal, Line 623
Could not update the metadata that indicates table [dbo].[TableName] is enabled for Change Data Capture.
The failure occurred when executing the command '[sys].[sp_cdc_add_job] @job_type = N'capture''.
The error returned was 22836: 'Could not update the metadata for database DatabaseName to indicate that a Change Data Capture job has been added.
The failure occurred when executing the command 'sp_add_jobstep_internal'.
The error returned was 14234: 'The specified '@server' is invalid (valid values are returned by sp_helpserver).'.
Use the action and error to determine the cause of the failure and resubmit the request.'.
Use the action and error to determine the cause of the failure and resubmit the request.'
Would anyone help me to out of this?
Thanks in advance..!!Related thread:
http://social.technet.microsoft.com/Forums/sqlserver/en-US/fa0c2a52-63b5-4a39-9f35-fe6f0eb21d1d/change-data-capture-on-table?forum=sqldatawarehousing
Make sure SQL Server Agent is running.
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Is there exist report to check the job start date restriction calendar ID?
Hi There,
In SM37, there are many jobs list there. If we choose one job of them, and click Jobchange, then we access in the screen for change the job status. Then click button Start condition, and there is a dialog which name is Stat time will pup up. And click button Date/Time, there will be a new button appears in the bottom. Click Restrictions, You will see a new dialog box which name is Star Date Restrictions. There is a field which name is Calendar ID in selection portion Factory calendar.
Is there exist one report to check all the jobs calendar ID instead of to check one by one?
Thanks!Hi,
please have a look into table TBTCO, restricting by field CALENDARID.
I hope this helps. Kind regards,
Alvaro -
How to change data element of IDOC segment
HI Experts,
I have copied a segment E1ISU_MEASUREMENT_MEA to ZE1ISU_MEASUREMENT_MEA.
Now i want to change data element of one of the field of the segment.
Please guide me how i can do it?
is there any disadvantages of doing this?
can we do it easily?
please give me step by step instructions if possible .
thanks in advance
AnitHi,
When you want to modify the segment details of a particular IDoc, you could do the same by editing the segment details via t-code, WE19. Once you edit, click on, Outbound or Standard Inbound if your IDoc is Outbound or Inbound respectively. A new IDoc will get generated. The generated IDoc will be in "yellow" status, ready to be picked up by a batch job if there exists one. Else you need to manually process the IDoc via the respective program.
~ Bineah -
Using Change Data Capture in SSIS - how to handle schema changes
I was asked to consider change data capture for a database recently. I can see that from the database perspective, its quite nice. When I considered how I'd do this in SSIS, it seemed pretty obvious that I might have a problem, but I wanted to
confirm here.
The database in question changes the schema about once per month in production. We have a lot of controls in our environment, so everytime a tables schema is changed, I'd have to do a formal change request to deal with a change to my code
base, in this case my SSIS package; it can be a lot of work. If I wanted to track the data changes for inserts, update and deletes using an SSIS package to send the data changes to the destination tables, would I have to change my SSIS package
with every schema change, or is there a way to keep the exact same SSIS package with CDC without having to change it every month?
Thanks,
KeithHi Keith,
What is your exact requirement?
If you want to capture the object_created, object_deleted or object_altered informations, you can try using
Extended events .
As mentioned in your OP:
"If I wanted to track the data changes for inserts, update and deletes using an SSIS package to send the data changes to the destination tables, would I have to change my SSIS package with
every schema change, or is there a way to keep the exact same SSIS package with CDC without having to change it every month?"
If you want the databases in two different environments to be in sync, then take periodic
backup and apply(restore) on the another destination DB.
(or)
you can also try with
SQL Server replication if it is really needed.
As I understand from your description, if you want the table data & schema to be in sync in two different database:
then create job [script that will drop the destination DB table & create the copy of source DB table ] as per your requirement:
--CREATE DATABASE db1
--CREATE DATABASE db2
USE db1
GO
CREATE TABLE tbl(Id INT)
USE db2
GO
IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE name = 'tb1' and TYPE = 'u')
DROP TABLE dbo.tb1
SELECT * INTO db2.dbo.tb1 FROM db1.dbo.tbl
SELECT * FROM dbo.tb1
--DROP DATABASE db1,db2
sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **. -
PCL PNP HR Change data retrieval
Dear Friends,
I need to develop a report which retrieves all changed data for the specific period specified by the user.
1) I am not very sure if I need to use PCL4 or any other clustertable, or I can still go with PNP and do query RP_PROVIDE <OLD DATE> <OLDDATE1>!!!
2) If I need to use cluster table could any of you please provide me sample code snippet thus I can go a head?
Thanks and Regards,
Joy
Below are the entries and different infotypes for which the changed data list needs to be displayed.
PA0002 Forename VORNA
PA0002 Name at birth NAME2
PA0002 Last Name NACHN
PA0002 Middle Name MIDNM
PA0002 Known As RUFNM
PA0001 Company Code BUKRS
PA0002 Birth Date GBDAT
PA0077 Ethnic Origin RACKY
PA0002 Gender GESCH
PA0002 Marital Status FAMST
PA0002 Name Suffix TITL2
PA0105 Email Address USRID_LONG
PA0002 Title TITEL
PA0006 Fax NUMXX
PA0006 Mobile NUMXX
PA0002 Nationality NATIO
PA0006 Domicile LAND1
PA0002 Religion KONFE
PA0702 Passport TBD
PA0702 Place of issue TBD
PA0702 Issue date TBD
PA0702 Valid till TBD
PA0041 Date of Hire DATXX
PA0000 Action Reason MASSG
PA0001
HRP1001
PA0002 Reporting to ORGEH
OBJID/SOBID
CNAME
PA0041 Date of exit interview DATXX
PA0041 Leave Date DATXX
PA0000 Leaving Reason MASSG
PA0006 Street STRAS
PA0006 Address Line2 LOCAT
PA0006 City ORT01
PA0006 District ORT02
PA0006 Region STATE
PA0006 Country LAND1
PA0006 Postal Code PSTLZ
PA0006 Communication Number NUMXX
PA0002 Personal ID PERID
PA0041 Date Of Last Hire
DATXX
PA0001 Location BTRTL
PA0007 Part time flag
TEILK
PA0001 Job
STELL
PA0001 Payroll area
ABKRS
HRP1000 OrgLvl1 OBJID
PA0001 OrgLvl2
HRP1000 OrgLvl3 OBJID
HRP1000 OrgLvl4 OBJID
PA0000 Personnel Number PERNR
PA0041 Date of seniority DATXX
EEBankName
PA0009 Bank account no BANKN
PA0009 Bank account type BNKSA
PA0002 PERIDHi,
Go through this link.
change document for HR data
Regards
Sudheer -
Change Data Capture,Change Tables
Hi,
We installed Change Data Capture in our DB (10gR2),however there is a problem with change tables.Change tables are being cleaned somehow.According to text quoted below,the job which is cleaning change tables is cdc$_default_purge_job.However
select log_date
+, job_name+
+, status+
from dba_scheduler_job_log
where job_name='CDC$_DEFAULT_PURGE_JOB';
results no data. Also this morning i came across that data cleansing again, and run the query below.And again no result.
select job_name
+, session_id+
+, running_instance+
+, elapsed_time+
+, cpu_used+
from dba_scheduler_running_jobs;
/*We didn't even use DBMS_SCHEDULER.SET_ATTRIBUTE procedure so far*/
What is cleaning change tables and how can i control it?
Tnx in advance
Quotation:
Change Data Capture creates a purge job using the
DBMS_SCHEDULER package (which runs under the account of the publisher who created the first change table). This purge job calls the
DBMS_CDC_PUBLISH.PURGE procedure to remove data that subscribers are no longer using from the change tables. This job has the name
cdc$_default_purge_job. By default, this job runs every 24 hours. You can change the schedule of this job using
DBMS_SCHEDULER.SET_ATTRIBUTE and set the
repeat_interval attribute. You can verify or modify any other attributes with the
DBMS_SCHEDULER package.Setting up CDC is a fairly complex process with different options. Setting just the filter in OWB is only a very small part.
There is a blog post below on how to use code templates to do CDC which gives some insight;
http://www.rittmanmead.com/2009/10/changed-data-capture-and-owb11gr2/
Plus and older one illustrating how to use Oracle logs;
http://www.rittmanmead.com/2006/04/asynchronous-hotlog-distributed-change-data-capture-and-owb-paris/
Cheers
David -
Sending change date of BP to external using bapi CRMXIF_partner
Hi,
I am using bapi crmxif_partner_save_m01 to send create and change of BP to external system as Idoc. I also need to send change date and user id, if changes are made to bp. but i could't find appropriate fields in bapi. Is there anything with bdoc to send or how is it works.
Other issue that i have when we receive an idoc from external system we need to send acknowledge to them as a batch job at night thru same interface. how it gona works. Here we are sending idocs and receiving idocs but external sys is non sap ESB.
one more, when we save BP it should generate idoc thru bdoc and send to external sys using CRMXIF_PATNER_SAVE_M. External sys assign a number for our each bp number and send them back to us thru same interface. I assume same bapi automatically updates IDOC data into bdoc and populates into sap tables. Please correct me if i am wrong.
Please suggest me.Guy,i don't regard here is anybody wanna read so much code .For more constructive answers, you would distill core question from your program.
-
Scheduling an automatic Jobs in Data Services
Dear Experts,
could you please explain how to schedule an automatic job in Data Services?
I would like to be able to schedule a daily, weekly or monthly job.
Any Document which explain the steps?
Thanks
PatI would not suggest doing anything on your production data. Make change in the job as given below. Add Map operation tranform just before where you are writing to the target table. Inside map operation transform select all to discard....make sure you have selected discard for every operation codes. In order to see what data your job is tring to write to target table. Create a template table and then join that table to tranform which is just before map operation...i...suppose you have query transform at the end and then you write to target table. Then add this query transform to map operation transform as well as to template table.
You can now get what data your job is going to write to target without writing anything to target.
Test this in dev first before trying in Production.
REMEMBER: PRODUCTION IS S SACRED SPACE AND WE DON"T WRITE UNNECESARY DATA OR DO ANY MANUPULATION IN PROD TABLES.
Thanks, -
Hello all,
I am trying to set up distributed Hotlog Change Data Capture (CDC) with both source and staging databases on 10.2.0.3. I have managed to set up everything alright until I try to great my first change table on the staging database.
We tried runnning this:
begin
dbms_cdc_publish.create_change_table(
owner => 'CDC_STG9_PUB',
change_table_name => 'ed_test_1_CT',
change_set_name => 'CR_FN9_SET',
source_schema => 'CIS',
source_table => 'ed_cdc_test_1',
column_type_list => 'col1 number, col2 varchar2(20)',
capture_values => 'both',
rs_id => 'y',
row_id => 'n',
user_id => 'n',
timestamp => 'n',
object_id => 'n',
source_colmap => 'n',
target_colmap => 'y',
options_string => null) ;
end ;
I sometimes get this:
begin
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 611
ORA-06512: at line 2
Re-running the create change set seems to solve this.
However, when I try to run enable the change source, I get this:
begin
ERROR at line 1:
ORA-31532: cannot enable change source CR_FN9_SRC
ORA-06512: at "SYS.DBMS_CDC_IPUBLISH", line 151
ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 497
ORA-06512: at line 2
Any ideas would be very well appreciated.The alert log file reads:
Errors in file /oracle/DXCE/lvol11/background/dxce_j000_24285.trc:
ORA-12012: error on auto execute of job 10
ORA-06550: line 1, column 96:
PLS-00201: identifier 'SYS.DBMS_CDC_PUBLISH' must be declared
ORA-06550: line 1, column 96:
PL/SQL: Statement ignored
Fri Mar 9 11:50:51 2007
Streams APPLY A002 started with pid=23, OS id=24304
Streams Apply Reader started P000 with pid=24 OS id=24306
Streams Apply Server started P001 with pid=25 OS id=24308
dxce_j000_24285.trc reads:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /oraxcd/10.2.0.3
System name: SunOS
Node name: stwu01
Release: 5.10
Version: Generic_118833-24
Machine: sun4v
Instance name: DXCE
Redo thread mounted by this instance: 1
Oracle process number: 29
Unix process pid: 24285, image: oracle@stwu01 (J000)
*** ACTION NAME:() 2007-03-08 14:57:15.007
*** MODULE NAME:() 2007-03-08 14:57:15.007
*** SERVICE NAME:(SYS$USERS) 2007-03-08 14:57:15.007
*** CLIENT ID:() 2007-03-08 14:57:15.007
*** SESSION ID:(541.1371) 2007-03-08 14:57:15.007
*** 2007-03-08 14:57:15.007
ORA-12012: error on auto execute of job 10
ORA-06550: line 1, column 96:
PLS-00201: identifier 'SYS.DBMS_CDC_PUBLISH' must be declared
ORA-06550: line 1, column 96:
PL/SQL: Statement ignored
Regards,
Edosa -
Hi,
I need to understand the concept of WIp Job Start date. Also i am interested in when the start date for the job got Grey out (Not allowed to Change.)
Please help.
Thanks,
KaustubhaAlso to add to the avinash reply the WIP job start date can be altered manually till the job is not closed. Its default today date when you are creating job manully. Based on the date start date giving and the routing assigned the end date for the job is calculated.
-
How to get changed data in ALV in Web Dynpro for ABAP
METHOD on_data_check .
DATA:
node_spfli TYPE REF TO if_wd_context_node,
node_sflight TYPE REF TO if_wd_context_node,
itab_sflight2 TYPE if_display_view=>elements_sflight.
node_spfli = wd_context->get_child_node( name = if_display_view=>wdctx_spfli ).
node_sflight = node_spfli->get_child_node( name = if_display_view=>wdctx_sflight ).
CALL METHOD node_sflight->get_static_attributes_table
IMPORTING
table = itab_sflight2.
this code is ..get all data(changed and not changed)
but i want get changed data only, not all data.
how to get changed data?
Edited by: Ki-Joon Seo on Dec 27, 2007 6:04 AMHi,
To get only the changed data in the ALV grid of a WD, you need to capture the "ON_DATA_CHECK" of the ALV grid.
To this please do the following in the ALV initialization of the ALV table settings :
lr_table_settings->set_data_check(
IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT ).
You may also do this:
lr_table_settings->set_data_check( IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CHECK_EVENT)
The above two ways would depend on when do you need to check for the changed data. If you want to check the data as soon as it is entered, then use the first method. Else, use the second method.
You need to register an EVENT HANDLER for this event.(You may do this in your VIEW or Component Controller).
In this Event handler, you would find an importing parameter R_PARAM which is a ref type of IF_SALV_WD_TABLE_DATA_CHECK.
The attribute T_MODIFIED_CELLS of this interface IF_SALV_WD_TABLE_DATA_CHECK will contain the modified cells of the ALV with the old & new values.
Maybe you are looking for
-
Channels not monitorable in the Communication Channel Monitor / RWB
Hi, Back on XI after a long break ☺ I am facing an issue with our in-house JCA adapter used in XI scenarios. When trying to monitor the channels using our adapter from the Communication Channel Monitor in RWB, I have the following: Status: NA
-
Aperture 3.0.2 and Printing Presets
I have updated to 3.0.2 and have 10.6.3. I trashed my Aperture plist and re-created a printing preset. However, the presets do NOT save. The printer always reverts to my default black/white laser printer, even though I selected an Epson R2880 and the
-
Nead Eax so I can get 5.1 out of my speake
I just purcahsed a 5. Li've! soundcard off ebay and cannot get 5. sound out of my speakers because it didn't come with the eax control panel. I can't find a download for it anywhere. Anybody have any ideas. I am also told that I need creative mediace
-
ITunes block unmount on MBP with lion
Hello, I have some trouble with my MBP using Lion and itunes. Since 5 weeks I can not shut down my MBP when I run itunes with my mediathek. To get a better piction of the problem, I tried to isolate the issue. - I have tested the mediathek using my a
-
Where is the PPPoE password stored?
I connect direct to the internet using PPPoE. Works great. Today, I purchased a wireless router so I can "share" that internet connection with my wife's laptop, etc. So, I need to transfer the PPPoE details from my Mac's Network Preferences to the ro