I was wondering in ABAP editor se38.
See the below screen shots,
From the above screen shots the program name’s are different while checking it is not throwing any syntax error.
As well As i didn’t pass any report name like below screen shots, but it did not throw any syntax error.
I gave the following report name which i already created ZRTEST_REP_KEY1 then i want find the program using the where used list it throws the below error screen shot.
Using SUBMIT key i submitted that report into my report. Then i clicked the where used list it does display like the below screen shot.
And also i created one subroutine which met all the above first three screen shots behavior.
As well as i created one more include program it is also met the same.
What ever it may be the ABAP editor will not consider any thing on report first it will search the program has the key word report or program if not it will leave the syntax error otherwise it will read the program from the repository through the program attributes.