Application Development 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: 

ENDDA and BEGDA adjustment in table maintenance generator

0 Kudos

I have to make the table maintenance for the interest tables where the rate is defined on the date ranges

from BEGDA to ENDA like

4%     10.10.2013 - 31.10.2013

5%      01.11.2013 - 31.12.9999

Now if a new entry needs to be maintained in this table maintenance like from 01.12.2013

It should automatically adjust itself like this

4%     10.10.2013 - 31.10.2013

5%     01.11.2013 - 31.11.2013   " Adjusted as soon as the user enters

6%     01.12.2013 - 31.12.9999

9 REPLIES 9

former_member188827
Active Contributor
0 Kudos

Please make endda your primary key and begda should not be the key field in your table. Your requirement will be fulfilled by this as delimit option will automatically be activated.

Regards

0 Kudos

what are these delimit options.

0 Kudos

Hi Nikhil,

Delimit option refers to vaidity of a particular record.

0 Kudos

When you insert new record, the validity of last active record would automatically be changed which is what you require.

Regards

0 Kudos

Hi All,

Thanks nikhil for posting this question. Even i have got the same issue.

Can you please be more descriptive and explain the process of doing it. Suppose i have got 3 fields BEGDA ENDDA(Primary Key) and INTEREST_RATE. How do i suppose to delimit the ENDDA??

Regards

Former Member
0 Kudos

Hi,

You can handle this in events in TMG.

You can add custom logic to update the existing records, whenever a new entry is created,

Do a check on the dates of the new entry and modify existing entries accordingly.

Regrads,

MB

SuhaSaha
Advisor
Advisor
0 Kudos

There is no need to write any code in the TMG events for this...

Since you have defined the table fields as BEGDA & ENDDA; i think it'll be easier for you to define a Time-Dependent table/view. SAP will do the rest to "delimit" the data for you.

You can search for available content for further details

0 Kudos

Hi

Not able to achieve the desired result. Can someone elaborate more with the example to achieve the desired result as required in the original main post.

Regards

Nikhil Jain

raymond_giuseppi
Active Contributor
0 Kudos

Some questions :

Then if the standard solution does not fulfil you requirement, you may have to build your own program for maintenance or manage it by using Extended Table Maintenance Events.

Regards,

Raymond