Thursday, March 27, 2008

Typing speed

Wednesday, March 05, 2008

SAP and ABAP random notes

Date Formatting
BEGDA should be TYPE DATS. Strangely enough, if BEGDA is declared as TYPE DATE, the date formatting using WRITE won't work. That had baffled me for 30 long minutes.

BEGDA = '20080303'.



Static Method
How to identify static methods in a class?
1. Use TCODE: SE24, to study the class definition
2. Go to Methods tab, and look at 'Level' column. It should be 'Static'.

Use the following syntax to call a static method:-

Observe that it is '=' instead of the conventional '-'.

classname=>get_pernr( ).


CALL METHOD classname=>get_pernr( ).

How to do class Definition Load?

Before a static method can be accessed, the class it is associated with must be loaded into the stack for the compiler to understand it.

class classname definition load.

How to add the email addresses that should be sent to, in SAPConnect administration, from SAP.

1. SOST - Administration of External Send Processes
2. SCON - SAPConnect : Administration (system status)
3. Double click on the node under INT
4. Click on button for 'Internet'
5. In the 'Address Area', add in the email required or use '*'.

Small portfolio change

KLSE Composite Index is down 32.63 to 1281.39 at the moment. I had just bought my first bluechip stock.

The current yield I'm getting for my cash in FD is slightly above 3% if monthly compounding interest is included in the calculation. I've bought PBBANK @ 9.950. To beat the yield in the form of cash, I'll need it to achieve the target price 10.40 at 5 March 2009 or receive dividends payout of 45 cents during this year long period.

What do you think? I think it's easily achievable.