Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

compare internal tables

Hi All,

i have entries from reguh table in 1 it_table. and corresponding entries from bkpf table.

i have to check if the entries in reguh table exist in bkpf table on the basis of document number, document type 'ZP' and posting date

Please help me with the syntax.

Regards,

Kaustubh

Former Member
Former Member replied

HI

let your internal tables be it_reugh and it_bkpf.

do the following.

if not it_reugh is initial.

loop at it_reugh.

read table it_bkpf with key docnum EQ it_reugh-docnum

doctyp EQ 'ZP'

posting_date EQ sy-date.

if sy-subrc EQ 0.

  • Then the record exists

else.

*it does not exist

endif.

endloop.

endif.

try this..it will work.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question