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

Change Document output

Former Member
0 Likes
603

Dear Experts,

Am using the Change Document FM 'CHANGEDOCUMENT_READ' to fetch the changed fields in my application.

The table is of structure CDRED and has F_OLD and F_NEW.

I have to output only fields where the new value has changed from the Old value.

Since both are of CHAR 254, for example, the amount field value is stored as 0.00 in the F_OLD and there is no value

in the F_NEW generated by the FM.

when i compare IF F_OLD ne F_NEW, still the record ouputs because F_OLD has 0.00 and F_NEW spaces.

Also this is the issue with date values.

MAJOR concern is the FM is outputting all record fields whose contents have not changed.

I request if anyone can throw some light on this.

Regards,

Sampath

Edited by: SampathKumarPilla on Nov 26, 2009 5:46 PM

4 REPLIES 4
Read only

Former Member
0 Likes
551

before comparing F_OLD and F_NEW, check if F_OLD is initial.

hope you understand it.

Read only

0 Likes
551

Thanks Harsh,

The F_OLD is of CHAR 254 and has 0.00 sometimes and 0.0000 sometimes and 00/00/0000 sometimes.

So being a Character, it has filled values, even if i check as Initial, it woudnt be.

Read only

0 Likes
551

Then check for all these possible values.

Read only

Former Member
0 Likes
551

Halo Sampath,

They why dont you check if F_NEW is initial .

This might be a problem if the user changes the value to None I suppose