cancel
Showing results for 
Search instead for 
Did you mean: 

How to add the update date using SLT?

Former Member
0 Kudos

Hello everyone, I was asked to add the date of creation and update of a Z table using the SLT.

As far as I can investigate, this is done through the LTRS transaction. I added both fields to table settings and in rule assignment I created the field-related type rule with the following code: E_CREATED_DATE = SY-DATUM.

For the case of the update date, I could not do it since the field should initially have the same value as the creation date and then, before an update, only that registry should be modified and not all, so some Form should know which records were updated and using an if statement to load the value.

I found that one way to do this is to create an event-related rule, one of begin of record (BOR) and another end of record (EOR). As an example, the code for BOR: if <wa_s_tcurr> -tcurr = 'USD'. Skip_record. Endif. And the code for EOR: <wa_r_tcurr> -ukurs = 1. This did not work for me since the skip_record statement omits those records in the replica. Probe creating a field-related rule but I did not have success either.

Any idea how to do this? It's possible?

From already thank you very much.

Greetings.

Accepted Solutions (0)

Answers (0)