‎2010 Apr 09 9:02 AM
hi i am doing remediation in ecc 6 and i got obsolete statement error in SLIN and error statement is like below,
The current ABAP command is obsolete
"ON CHANGE OF" is not supported in the OO context. Use auxiliary fields
The message cannot be hidden using pseudo-comment "#EC .
the code is like below
ON CHANGE OF t_checkreq-vendor_remit .
SELECT lifnr name1
APPENDING TABLE t_payee
FROM lfa1
WHERE lifnr = t_checkreq-vendor_remit .
CLEAR t_checkreq.
ENDON.
‎2010 Apr 09 9:08 AM
Hi
use this code
LOOP AT t_checkreq.
AT NEW vendor_remit .
SELECT lifnr name1
APPENDING TABLE t_payee
FROM lfa1
WHERE lifnr = t_checkreq-vendor_remit .
CLEAR t_checkreq.
ENDAT.
ENDLOOP.
regards
Marco
‎2010 Apr 09 9:05 AM
Try to use
AT NEW t_checkreq-vendor_remit
PS please keep in mind that VENDOR_REMIT field will be the first field in T_CHECKREQ internal table
a®
‎2010 Apr 09 9:08 AM
Hi
use this code
LOOP AT t_checkreq.
AT NEW vendor_remit .
SELECT lifnr name1
APPENDING TABLE t_payee
FROM lfa1
WHERE lifnr = t_checkreq-vendor_remit .
CLEAR t_checkreq.
ENDAT.
ENDLOOP.
regards
Marco