Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Time Dependent Table

Former Member
0 Likes
426

Hi all,

I have one requirement in which I want non overlapping periods as BEGDA and ENDDA.

In time dependent table I am not able to achieve it

Like

Customer XYZ in Company code ABCD having some periodicity for materials to take. He can take only one material.

Maintainance like given below:

ABCD     XYZ     01.01.2014     01.02.2014

ABCD     XYZ     02.02.2014     01.03.2014

is OK

ABCD     XYZ     01.01.2014     01.02.2014

ABCD     XYZ     05.01.2014     01.03.2014

is Not OK

I am trying to use events in TMG

Can this be obtained through some standard functionality as there can be many cases related to Employee in HR module.

Regards

Nikhil Jain

1 REPLY 1
Read only

Former Member
0 Likes
349

Hi,

If you are using TMG events then you try this coding.

Fetch the latest record for the customer and company code i.e which has highest ENDDA(you can use MAX aggregate). Now check the BEGDA of the record that you are trying to insert with ENDDA. If it is less than or equal to that then it means it is overlapping.

Regards,

Aswath.