2008 Jul 28 7:05 PM
Hi,
I am creating a maintenance view for a custom table which has begin and end dates as part of the key fields. I want to activate the Delimit functionality on SM31 so we can have a history of the changes. Do you know how to activate this option? Please help!
Thanks, Chuong
2008 Jul 28 7:49 PM
Sorry, I misunderstood your question.
> so we can have a history of the changes. Do you know how to activate this option?
Chuong
Please try this way
SE11 >Utilities> Table maintenance generator --> Environment -->Generate time dependent
I think End date should be primary key .
a®
2008 Jul 28 7:15 PM
Tru to use Table maintenace generator events, for updating the change documents (CDHDR & CDPOS)
a®
2008 Jul 28 7:34 PM
Hi A@S,
It is not the history in the change pointer tables that I am interested in. It is the Delimit button on the GUI status in SM31 when you maintain a custome table. If I delimit the end date of a person, it will change the end date of the existing person to system date and create a new entry for the same person with a different start date.
Example:
PERSON1, 2008-01-01, 9999-12-31
After delimiting,
PERSON1, 2008-01-01, 2008-07-28
PERSON1, 2008-07-29, 9999-12-31
Thanks, Chuong
2008 Jul 28 7:49 PM
Sorry, I misunderstood your question.
> so we can have a history of the changes. Do you know how to activate this option?
Chuong
Please try this way
SE11 >Utilities> Table maintenance generator --> Environment -->Generate time dependent
I think End date should be primary key .
a®
2008 Jul 28 8:13 PM
I tried to Generate time dependent, but it still does not work.
Chuong
2008 Jul 28 8:14 PM
I think your End date should be primary key and start date not be primary key in the table.
I am not 100% sure about this.
a®
2008 Jul 28 8:35 PM
It works if one of the two dates is key. However, it just updated the dates of the existing record, but did not create a new entry with a new date range. Do you know why?
Chuong
2008 Jul 28 8:31 PM
It is not possible via SE11 . in SAP HR you define u201Ctime constrain u201C in table u201CV_T582Au201D for all ITs . If I want to do something like this , I will probably look at module pool logic of any IT .
Thanks,
Saquib Khan
FYI
Time Constraint
A time constraint indicates whether more than one infotype record may be available at one time. The following time constraint indicators are permissible:
o 1: An infotype record must be available at all times. This record may have no time gaps. You may not delete the record last stored on the database because all records of this infotype would otherwise be deleted.
o 2: Only one record may be available at one time, but time gaps are permitted.
o 3: Any number of records may be valid at one time, and time gaps are permitted.
Other possible time constraint indicators are as follows:
o A: Only one record may ever exist for this infotype. It is valid from 01/01/1800 to 12/31/9999. Splitting is not permissible.
View V_T582B Infotypes Which are Created Automically controls whether the system automatically creates the infotype record for an employee hiring or an applicant data entry action.
Infotypes with time constraint A may not be deleted.
o B: Only one record may ever exist for this infotype. It is valid from 01/01/1800 to 12/31/9999. Splitting is not permissible.
Infotypes with time constraint B may be deleted.
o T: The time constraint varies depending on the subtype.
o Z: Refers to time management infotypes. The time constraint for these infotypes depends on the time constraint class defined in view V_T554S_I Absence: General Control. Collision checks are defined in view V_T554Y Time Constraint Reaction.
.
2008 Jul 28 9:10 PM
2009 May 04 7:52 AM
I´m facing the same Problem!
Did you solve it? If so: HOW??
I´m gettting mad searching the web for answers...
2010 Nov 23 6:27 AM
2010 Nov 24 9:19 AM
Hi
I found solution for this bug .Its the probelm generating Table maintanance .
Regenarate the Table maintainance with time dependent .and Make sure ENDDA is key feild and Go to funtion group of Table .
Funtion gruop->Screens -> PBO
PBO
LOOP AT EXTRACT WITH CONTROL
TCTRL_<Cutom table > CURSOR NEXTLINE.
MODULE LISTE_SHOW_LISTE.
MODULE LISTE_DEACTIVATE. " check this module is present or not if not maually paste it .
ENDLOOP.
PAI
Make sure below code in PAI.
CHAIN.
FIELD <Custom table>-ENDDA .
FIELD <Custom table>-_FD-BEGDA .
MODULE TEMP_DELIMITATION ON CHAIN-REQUEST. " " check this module is present or not if not maually paste it .
ENDCHAIN.
FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
2011 Feb 08 9:57 AM
2013 Jan 03 6:47 AM
Hi,
Can any one tell me how to achieve this. I have a similar requirement.
Thanks.
2013 Jan 03 7:10 AM
The SAP online help give information on Time-Dependent Table/View prerequisites.
Structure
The table/view must contain two fields for the start and end dates. One of these fields must be in the key, the other must be the first non-key field in the table/view.
The following data elements must be assigned to the fields:
- for the start date Field name BEGDA or Data element BEGDATUM or Data element VIM_BEGDA or Data element BEGDA
- for the end date Field name ENDDA or Data element ENDATUM or Data element VIM_ENDDA or Data element ENDDA.
All four data elements are in the domain DATUM.
Regards,
Raymond