IF_EX_ACC_DOCUMENT~CHANGE LOOP AT c_accit ASSIGNING <wa_accit> WHERE rebzg eq 'V'. <wa_accit>-rebzg = ''. ENDLOOP. Then you can see Invoice Ref. in FBL1N is the Document No.