Hi Soma,
Thanks for calling me and explained the functionality. As per your instruction, I did the following. Now am able to apply cash receipt for that invoice. Please correct me, If I am made anything wrong.
select * from RM20201 where APFRDCNM = 'XXXX'
SELECT * FROM RM30201 where APFRDCNM = 'XXXX'
SELECT * FROM RM20101 WHERE DOCNUMBR IN (select APTODCNM from RM20201 where APFRDCNM = 'XXXX' )
DELETE RM20201 where APFRDCNM = 'XXXX'
UPDATE RM20101 SET CURTRXAM = ORTRXAMT WHERE DOCNUMBR IN (select APTODCNM from RM20201 where APFRDCNM = 'XXXX' )