Skip to Content
0
Former Member
Jul 19, 2008 at 06:11 PM

Seek: Neat[er] logic for a task.

47 Views

I have an itab with fields

{ tabname like dd03l-tabname,

language like sy-langu,

fieldname like dd03l-fieldname,

ddtext like dd04t-ddtext,

v_def type string}

Out of above:: tabname, language and fieldname define a complete key set. Rest 2 are texts sourced from legacy system.

Certain bad data entered the system whereby we are having same ddtext eventhough 'fieldname' is different.

All we want to do is, if there are 2 rows [different fieldnames, other keys same] with same ddtext, append a '*' to one of the row's ddtext.

If there are 3 rows as above, append one '' to one row and append '*' to a second row keeping the 3rd unchanged.

And so on ..

I am wondering if there is a short, general implementation for this. I personally am not very competent with field-symbols, so have found some 'so-so ' approaches which are fairly long.

Thanks.

Sasanka