Monday, March 28, 2011
By reference or by value?
Searching ABAP codes for this word
Sunday, March 27, 2011
Creating a Non class-based exception
Non class-based exception can be used in functions and methods. Below I will show you how.
Thursday, March 24, 2011
Blueprinting - Gathering requirements in SAP
Wednesday, March 23, 2011
Headache gone with SAP ICM (Incentives and Commission Management)
Monday, March 21, 2011
ABAP Exceptions
Trade-off in SE30 Runtime Analysis Evaluation Result
Sunday, March 20, 2011
OOP ALV toolbar button exclusion
Thursday, March 17, 2011
Cluster Table reading
1. It's better to read cluster table like BSEG without FOR ALL ENTRIES addition for better performance.
2. Put necessary static filters
3. As much as possible, compare all primary key or at least include the foreign keys
Wednesday, March 16, 2011
Optimization - Avoid DB access inside LOOP
When dealing with large volume of records or involving several db tables, the best practice is to free your loop statement with db access. As much as possible, work with your internal tables or abap read table statement.
Watch out for my next blog.
Tuesday, March 15, 2011
ABAP FOR ALL Entries much better!
I noticed that including FOR ALL ENTRIES statement resulted in a deletion of a duplicate records. Also, take note that if the internal table is blank, all entries will be considered in your table being selected.
RECOMMENDATIONs:
1. The primary key fields of the driver table should all be included to avoid duplicate of records.
2. Use all keys of driver table against the db table.
2. Sort the driver table by its keys.
EX. If you want to get the hkont field in EKKN table, always include the ebeln and ebelp key fields.
SORT at_it_ekpo by ebeln. "
SELECT
ebeln
ebelp
hkont
INTO at_it_ekkn FROM ekkn
FOR ALL ENTRIES OF at_it_ekpo
WHERE ebeln = at_it_ekpo-ebeln.
FOR ALL ENTRIES is like a join statement in open sql. This is a good alternative to minimize DB resources in your program.
Sunday, March 13, 2011
Internal Table control level processing
PREREQUISITE: Sort your internal table by the fields used in the control command
This is very useful when dealing reports!
ALV Splitter Screen Create Header
DYNAMIC Open SQL statement
Saturday, March 12, 2011
ABAP Parameters
Friday, March 11, 2011
OOP ALV splitter screen
ABAP creating audit trail by change document table CDPOS CDHDR
Thursday, March 10, 2011
OOP ALV events
To learn more about this events, please download the guide here from SAP AG itself. To give you an idea about this reference, it contains and lists the basic guidelines in using cl_gui_alv_grid. Some of the codes that for example to capture event DATA_CHANGED is not being explained here.
To trigger the data changed event, you may insert the code below and you can set the action you may want your event be triggered:
"activate data_changed
CALL METHOD g_alv_grid_ref->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_enter
"trigger event after ENTER is pressed
* i_event_id = cl_gui_alv_grid=>MC_EVT_MODIFIED
"or trigger once you go to next cell after modification
(without pressing ENTER)
EXCEPTIONS
error = 1
OTHERS = 2.
Thank you!
ALV Object Model (OM)
Wednesday, March 09, 2011
Internal Table Facts
- With header line, the internal table has a header structure that works as a work area and a body that contains the details or the data itself.
Tuesday, March 08, 2011
Connecting MM, PS, & FI/CO modules
Finding SAP tables
Debugging a dialog in SAP
Adding an Image in a dialog
Reporting using ALV in OOP
In this topic I will show you how to generate a report using ALV in OOP.
OOP ABAP
Hi,
I will give you some basic idea regarding creating programs/applications in ABAP using OOP.
Friday, March 04, 2011
Debugging - sapscript
Field symbols - the advantage
Good day to all, this is my first blog ever. Hope you will find this useful as I will start from this topic -> abap field-symbols.
Subscribe to:
Posts (Atom)