‎2008 Jul 29 12:12 PM
hi friends
i hav created a view. it joins 4 tables and i want to display 5 fields.
they are:
mara-matnr
mara-mtart
marc-werks
mard-lgort
makt-maktx.
the prblem is each line item is duplicating in the output.
how i can avoid this?
‎2008 Jul 29 12:29 PM
Hi!
It can be becaue MAKT has a SPRAS field in the key. If it is maintained by more languages, it will have more entries.
The other possible error, if you forget the MANDT field from the JOIN and you have more clients, it could duplicate the entires also.
Regards
Tamá
‎2008 Jul 29 12:26 PM
hello,
here's the code.
Function duplicheck()
Dim dr As DataRow
Dim bugid As String
bugid = Nothing
For Each dr In ds1.Tables("form_data").Rows
If dr.Item("bug_id") = bugid Then
ds1.Tables("form_data").Rows.Remove(dr)
bugid = dr.Item("bug_id")
End If
Next
End Function
Reward if Useful.
Regards
‎2008 Jul 29 12:30 PM
‎2008 Jul 29 12:29 PM
Hi!
It can be becaue MAKT has a SPRAS field in the key. If it is maintained by more languages, it will have more entries.
The other possible error, if you forget the MANDT field from the JOIN and you have more clients, it could duplicate the entires also.
Regards
Tamá
‎2008 Jul 29 12:56 PM