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

Problem with Change Document Function Block

alpaca
Product and Topic Expert
Product and Topic Expert
0 Likes
386

Hi there!

I use a generated Function Block that tracks changes on 3 internal tables. The tracking on the first table works fine. There is only one line filled with data. The function block is ISU_EWEIGH_WRITE_DOCUMENT.

The tracking on the second and on the third table doesn't work perfectly. Each of the tables has multiple lines which changes shall be tracked. I filled tables with the old and new entries correctly as said in the documentation of import tables of the function block 'CHANGEDOCUMENT_MULTIPLE_CASE':

When I start the tracking of an initial field the tables I handover look like this:

<b>NEW TABLE:</b>

Zeile Mandt Weighingnr Lfdnr Addtara Addtaracount KZ

1 300 000000000069 101 PERS 03 U

The <b>OLD TABLE</b> is empty as proposed in the function block parameters.

<b>

The result that is displayed when I display the changedocuments is an empty entry with only one set field: Change Indicator "I"</b>

When I change the field another time the tracking works perfectly and when I delete an entry it works also as it should. Can anybody tell me why this happens?

Best Regards and Sry for my bad english,

Steffen

1 REPLY 1
Read only

alpaca
Product and Topic Expert
Product and Topic Expert
0 Likes
316

Thanks for anybody who read this thread :).

Now that I described my problem I found a solution. The documentation says it should work the way I did it. But the fields have to be in both tables. The "NEW TABLE" contains the changes and in the "OLD TABLE" have to be the key fields and the other fields have to be CLEARed.

Hope I can help somebody with this post.

Best Regards,

Steffen