Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to correct error

Former Member
0 Likes
506

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
426

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

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
426

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®

Read only

Former Member
0 Likes
427

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