Val,
OLD RMA Specs: from the code.
; place ORIG SO ORGSON IN BKAR.INV.EXTRA 90,6
; place ORIG INV ORGINV IN BKAR.INV.EXTRA 105,6
; place REORDER YN RORDYN IN BKAR.INV.EXTRA 115,1
; place REASON FOR RMARES IN BKAR.INV.EXTRA 116,35
define ORGSON type a size 6 ; IN BKAR.INV.EXTRA 90,6
define ORGINV type a size 6 ; IN BKAR.INV.EXTRA 105,6
define ORGSONN type n size 6 ; IN BKAR.INV.EXTRA 90,6
define ORGINVN type n size 6 ; IN BKAR.INV.EXTRA 105,6
define REOSO type n size 6 ; ; reoso=mid(bkar.inv.extra,77,6)
define CRMSO type n size 6 ; ; crmso=mid(bkar.inv.extra,84,6)
define RORDYN type a size 1 ; IN BKAR.INV.EXTRA 115,1
define RMARES type a size 35 ; IN BKAR.INV.EXTRA 116,35
RMA files are BKESTQT for the Header, and BKESTQTL for the Line items
That is also the Quote file so to distinguish between and RMA and a quote, BKAR.INV.EXTRA position 83 = "R" for RMA and " " for Quote. Bkar.inv.invcd = 'Y' means it is invoiced and closed, Blank or 'X' means it is still open.
Like I said I did not write it.. I'm just telling you how it works.
Allen