If the Amount, XXX column on each line is higher than zero, you must enter the Pay Item and delete each line. Click the trash bin icon in the Doc column on each line. When the lines you want to delete are removed at item level, the trash bin icon will be available on the Payment (PAY) document. Click the trash bin icon in the Itm column on the Payment (PAY) document. After this, press F12 to open the action menu and choose the Discard Payment (ST=D) option to discard the Payment (PAY).