Really Simple ALV Report
Jul/16/07 12:17 Filed in: SAP
I've posted about a generic ALV grid report class that I developed, but now I've found something so much better. There's actually a class from SAP that does the same thing, only better. If your SAP installation has class cl_salv_table, you can reduce a report to something as simple as this:
REPORT YALVTEST.
DATA: l_alv TYPE REF TO cl_salv_table,
l_exc TYPE REF TO cx_salv_msg,
lt_bseg type STANDARD TABLE OF bseg.
select * into TABLE lt_bseg up to 100 ROWS from bseg.
TRY.
cl_salv_table=>factory( IMPORTING r_salv_table = l_alv
CHANGING t_table = lt_bseg ).
l_alv->display( ).
CATCH cx_salv_msg INTO l_exc.
MESSAGE l_exc TYPE 'I' DISPLAY LIKE 'E'.
ENDTRY.
The program reads 100 lines from table bseg into an internal table and displays them on the screen in an ALV grid. |
Banned In China
Jul/14/07 16:46
I'm banned in China. Or at least, my website is blocked there. Why? I don't know. Maybe it's the mention of Taipei in my previous post. Maybe it's that Franklin quote at the top. Maybe it's the infrequent mentioning of ABAP.
Whatever it is, there's some powerful mojo going on in my website, and the wise government of the People's Republic fear that the poor, naive Chinese populace won't be able to handle it.
Fear my mojo! I wonder where else I'm banned...
Whatever it is, there's some powerful mojo going on in my website, and the wise government of the People's Republic fear that the poor, naive Chinese populace won't be able to handle it.
Fear my mojo! I wonder where else I'm banned...
Flight Tracking Oops
Jul/07/07 22:42 Filed in: Software
The wife is on a plane from San Francisco to Taipei, and the miracles of modern technology allow me to track where she is along the route. One such site is Flytecomm, but there are others. The reason I mention Flytecomm is that my wife will be crossing the international date line, together with everyone else on the flight, and that seems to go ever so slightly wrong:

Apparently, she'll be flying up the left edge to Alaska, all the way to the far edge of the Aleutians, then go like a bat out of hell due east into oblivion, only to come racing back to Kamchatka Peninsula and continuing on her way to Taipei. At least Flight Explorer avoids the problem by being singlemindedly stupid:

It Depends On Your Point of View, I Guess...
Jul/02/07 23:56
You could put it like this:
Or, alternatively, you could put it like this:Once upon a time, many prominent Republicans believed that perjury was a crime so heinous as to warrant throwing the president out of office.
It depends on how you look at it, and how yo momma raised you, but my gut instinct is to go with the latter.Bush Still a Dickless Piece of Shit