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.



Former Member
Former Member replied


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


*it does not exist




try will work.

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