From b4a607a28038b07ca1f1ad23306716d257ef086b Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 9 Dec 2012 19:03:29 +0400 Subject: [PATCH] add forgotten abap demo to index --- .gitignore | 3 ++- demo/kitchen-sink/docs/abap.abap | 36 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 demo/kitchen-sink/docs/abap.abap diff --git a/.gitignore b/.gitignore index 04f175ff..76832436 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,8 @@ # A handy place to put stuff that git should ignore: /ignore/ node_modules/ -tool/node_modules/ +jam/ +* * .git-ref npm-debug.log diff --git a/demo/kitchen-sink/docs/abap.abap b/demo/kitchen-sink/docs/abap.abap new file mode 100644 index 00000000..f66bfdfa --- /dev/null +++ b/demo/kitchen-sink/docs/abap.abap @@ -0,0 +1,36 @@ +*************************************** +** Program: EXAMPLE ** +** Author: Joe Byte, 07-Jul-2007 ** +*************************************** + +REPORT BOOKINGS. + +* Read flight bookings from the database +SELECT * FROM FLIGHTINFO + WHERE CLASS = 'Y' "Y = economy + OR CLASS = 'C'. "C = business +(...) + +REPORT TEST. +WRITE 'Hello World'. + +USERPROMPT = 'Please double-click on a line in the output list ' & + 'to see the complete details of the transaction.'. + + +DATA LAST_EOM TYPE D. "last end-of-month date + +* Start from today's date + LAST_EOM = SY-DATUM. +* Set characters 6 and 7 (0-relative) of the YYYYMMDD string to "01", +* giving the first day of the current month + LAST_EOM+6(2) = '01'. +* Subtract one day + LAST_EOM = LAST_EOM - 1. + + WRITE: 'Last day of previous month was', LAST_EOM. + +DATA : BEGIN OF I_VBRK OCCURS 0, + VBELN LIKE VBRK-VBELN, + ZUONR LIKE VBRK-ZUONR, + END OF I_VBRK. \ No newline at end of file