compare internal tables
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.
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 this..it will work.