The piece of code presented in this article is just a short demonstration of how you can access class attributes dynamically – when the attribute name is stored in a variable which value is determined during run time. Continue reading
ABAP – Class based exceptions
There are several ways how to handle errors or warnings in ABAP and in this article I’ll try to present exceptions. Specifically – global class based exceptions in ABAP Continue reading
How to revert SAP Released transport task to Unreleased status
If you released a task of a transport by mistake and you want to re-open it back you can achieve this if you follow steps described in this short article Continue reading
Best programmer replies when something is wrong
- That’s weird…
- It’s never done that before.
- It worked yesterday.
- How is that possible?
- It must be a hardware problem.
- What did you type in wrong to get it crash?
- There is something funky in your data
- I haven’t touched that part in weeks!
- You must have the wrong version
- It’s just some unlucky coincidence
- I can’t test everything!
- THIS can’t be the source of THAT
- It works, but is hasn’t been tested
- Someone must have changed my code
- Did you check for a virus on your system?
- Even though it doesn’t work, how does it feel?
- You can’t use that version on your system
- Why do you want to do it that way?
- Where were you when the program blew up?
And the Number One reply by programmer when their programs don’t work:
- It works on my machine
ABAP – Change Documents example with Z-table
In this example I’ll follow on the theory of Change Documents presented in previous article (ABAP – Change Documents (theory)) and I’ll show how to create(or update an existing) Z-table where each modification will be logged into CDHRD and CDPOS tables Continue reading
CSS – capitalize all letters with first one bigger
Are you wondering how to turn all the text in an HTML element into uppercase AND make the first letter of each word a few % larger than the rest of the text? Continue reading
How to Add Swap on Ubuntu
Linux RAM is composed of chunks of memory called pages. To free up pages of RAM, a “linux swap” can occur and a page of memory is copied from the RAM to preconfigured space on the hard disk. Linux swaps allow a system to harness more memory than was originally physically available.
However, swapping does have disadvantages. Because hard disks have a much slower memory than RAM, virtual private server performance may slow down considerably. Additionally, swap thrashing can begin to take place if the system gets swamped from too many files being swapped in and out. Continue reading
Algorithms – puzzle called Knapsack
Today I’d like to share with you a puzzle I managed to solve in past few weeks using a technique called branch&bound – Knapsack.
Interested what is 0-1 Knapsack puzzle about? Continue reading
ABAP – Change Documents (theory)
Data manipulation in SAP is done using standard documents such as Sales Orders, Purchase Orders, Vendor Invoices etc. Sometimes it’s necessary to make a change a document after it has been saved and created for the first time. From security point of view it is required/imperative that all such changes must be recorded by the system. For this purpose there is a standard functionality implemented in SAP system called “Change Documents” Continue reading
Algorithms: In-place algorithm to rearrange elements of an array
In a given array of elements like
[a1, a2, ..., an, b1, b2, ..., bn, <X>1,<X>2, ..., <X>n]
without taking a extra memory swap elements in the array so the outcome will be like
[a1, b1, … <X>1, a2, b2, … <X>2, …, an, bn, …, <X>n] Continue reading