Python: installing sqlparse module

The process was a little involved and required the installation of a few sub modules.  Here’s what I needed to get done to complete the entire process: URL: https://github.com/andialbrecht/sqlparse Download package & extract package Open command prompt Navigate to the packag
Continue Reading →

SAP ABAP: referencing caller program’s variables within a CALL’ed FM

When executing a CALL command there is a way to access the variables of a caller program – see sample code below. REPORT zcustom_caller. DATA: gv_a TYPE i, gv_b TYPE i, gv_c TYPE i. gv_a = 1. gv_b = 2. gv_c = 3. CALL FUNCTION 'z_custom_called' EXPORTING i_a = gv_a IMPO
Continue Reading →

SAP ABAP: reading payload via IF_HTTP_EXTENSION class

The process of creating a RESTful handler in SAP is a relatively simple process.  Simply create a new class extending an interface IF_HTTP_EXTENSION and implement the HANDLE_REQUEST method. As part of the implementation you will get access to the SERVER parameter: server TYPE REF TO i
Continue Reading →

SAP: ALV grid Field Catalog [ref_table] SAPLSKBH & [source code of program ” “] error

I’ve came across a strange error that occurred while building an SAP ALV grid.  After calling the create_dynamic_table method of the CL_ALV_TABLE_CREATE object the program throws a hard error complaining about a blank program call in SAPLSKBH . After spending some time debugging
Continue Reading →

FLEX: reflective programming

  flash.utils.describeType Produces an XML object that describes the ActionScript object named as the parameter of the method. This method implements the programming concept of reflection for the ActionScript language. var lo_xml:XML = describeType(myClass); lo_xml.@name; // retu
Continue Reading →

MXML: “true && true” error

Stumbled across this strange error while doing some development.  I’ve needed to determine the enable function of a button based on two boolean conditions and as a result created the following bit of code: <com:Component enabled="{booleanA &amp;&amp; booleanB}&qu
Continue Reading →

SAP: ABAP: Subroutine does not exist – bug

Scenario: you’re editing your code and when you try to double click on a previously defined subroutine you get a popup stating that it doesn’t exist. You check and confirm that the subroutine is included, the report compiles and runs properly. Resolution: to fix the proble
Continue Reading →

Adobe Flex: smooth out the images – scaleContent

When you’re dealing with a situation that requires the use of the following image settings: width="100%" height="100%" scaleContent="true" maintainAspectRatio="true" You can find your self in a situation where the loaded content will resul
Continue Reading →

FLEX: convert HTML format to RichText

If you are working with rich text editors you will run in to a situation where you have to format an HTML string to RichText value. Following code can accomplish this: gc_ta_bio.textFlow = TextConverter.importToFlow( "<h1>Your String</h1>", TextConverter.TEXT_FIE
Continue Reading →

SAP: ABAP: ALV grid color scheme

Here’s a list of colors that you can use to color your ALV grid. To actually use create a field of 4 characters and use ‘CX00’ where X is the number specified above.
Continue Reading →