Skip to Content

SLT ABAP to ABAP - How to add and manage timestamp field

Dears

I have anSLT system with DMIS 2011_1_731 Sp13 and a configuration to replicate tables from ABAP to ABAP.

I need to add and populate a timestamp field on the target table every time the field is inserted/updated.

We create beforehand on the target Abap system the tables to be replicated adding Z in the name, so AUSP will become ZAUSP on the target system.

But on ZAUSP I need to add a field for the timestamp and to maintain it accordingly.

In this configuration you cannot add the timestamp field on the SLT system, there is no the tab 'table structure' in Advanced COnfiguration -> Table Settings.

So I cannot add the timestamp field on the slt side, I must add it directly on the target system into the ZAUSP table.

I expect to write an event-rule but I do not know how to refer the ZAUSP-TIMESTAMP field added on the target system.

The SLT system is not aware of this field , If I try to refer it with this LINE-OF-CODE for example

E_TIMESTAMP = 'xxxxxxxxxxxxxxxxxxxxxxx'.

I recive the error 'field unknow'.

Any idea ?

regards

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 14 at 10:24 AM

    The possibilities to add a new field is indeed not available, while in case of replication ABAP to ABAP the table on target side must be already exist. Add new fields is possible when SLT creates a new table on target.

    But I have just repeated you case in our test system and it work perfect with Field-Related rule. Just add table under "Rule Assignment" in LTRS and then create a new rule and try F4-help to search your new timestamp field (you will get the whole list of fields from target table). Then I have added in field "Line of Code" statement:

    GET TIME STAMP FIELD e_zts.

    , where e_ZTS is output parameter for form routine (my field name is ZTS). Afterward you can check syntax correctness ...

    Regenerate migration object and you will get the rule in runtime object.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 15 at 10:51 AM

    Perfect, it works

    many thanks and best regards

    Add comment
    10|10000 characters needed characters exceeded