‎2007 Jan 08 12:57 AM
please tell me why is ( ) required around sy-repid? in:
REPORT (SY-REPID)
NO STANDARD PAGE HEADING
LINE-COUNT 65
LINE-SIZE 255
MESSAGE-ID OIUH.
Thanks
Charles
‎2007 Jan 08 1:05 AM
I've actually never seen a REPORT statement that had the report name as a variable, but that is the reason why the parenthsis are required. I didn't know that that actually worked.
You see, usually the report statement is like so.
REPORT ZRICH0001.where ZRICH0001 is simply the static report name, but in your example, SY-REPID is a system variable, and you don't want the report name to be "SY-REPID", you want it to be the value of SY-REPID. That is why you need the parenthesis, this tells the runtime that the variable value is to be used.
Again, I've never seen this done before.
Regards,
Rich Heilman
‎2007 Jan 08 1:04 AM
Because Report Name will be populated <b>at runtime dynamically</b>. so it's mentioned with in (). REPORT (SY-REPID).
Raja T
Message was edited by:
Raja Thangamani
‎2007 Jan 08 1:05 AM
I've actually never seen a REPORT statement that had the report name as a variable, but that is the reason why the parenthsis are required. I didn't know that that actually worked.
You see, usually the report statement is like so.
REPORT ZRICH0001.where ZRICH0001 is simply the static report name, but in your example, SY-REPID is a system variable, and you don't want the report name to be "SY-REPID", you want it to be the value of SY-REPID. That is why you need the parenthesis, this tells the runtime that the variable value is to be used.
Again, I've never seen this done before.
Regards,
Rich Heilman