on 12-06-2016 7:01 PM
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.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.