‎2008 May 08 11:58 AM
‎2008 May 08 12:14 PM
Try this code:
DATA itab TYPE TABLE OF string WITH HEADER LINE.
READ REPORT sy-repid INTO itab.
LOOP AT itab.
WRITE: /1 itab.
ENDLOOP.
‎2008 May 08 12:14 PM
‎2008 May 08 12:54 PM
hi mehta,
The question does not really test a skill of a programmer, as much as general awareness of tricks to do that. In case you were wondering, a program whose output is its own source code is called a quine, something that might come of use over the next interview. The aforementioned Quine Page lists the following example for C:
charf="charf=%c%s%c;main()
{printf(f,34,f,34,10);}%c";
main(){printf(f,34,f,34,10);}
use abap methodology for the above.try..
if you wont do it,reply me. i will give you the code. but try.ok
thanks
sagar