‎2008 Jun 06 12:51 PM
Greetings Abapers
Im trying to loop at a table for certain criteria. My code is:
Loop at the relationships table and get dates for each salescode BP
loop at lt_hrp1001 where lt_/ccdev01/a2scode-partner EQ lt_hrp1001-sobid
and lt_hrp1001-sclas EQ 'BP'.
I get the following error though:
"No component exists with the name lt_/ccdev01/a2scode-partner"
-partner is a field in my local table and all tables have been declared. Please help.
‎2008 Jun 06 12:53 PM
Don't put the table name in the loop where clause
loop at lt_hrp1001
where sobid = lt_/ccdev01/a2scode-partner
and sclas EQ 'BP'.
‎2008 Jun 06 2:54 PM
loop at lt_hrp1001 where sobid = lt_/ccdev01/a2scode-partner
and sclas = 'BP'.
endloop.