ABAP Tips and Tricks #2: Generic Hints
- Initialization Event:
This event is executed before the output of the selection screen. The INITIALIZATION section is only performed when the ABAP is started directly, and is not executed if the ABAP is called or executed by another ABAP. This event is also ignored in a batch environment. It is frequently used to calculate special defaults for the selection screen. - Table Loop:
Whenever looping on a table, always CLEAR the table header or fill it with a generic key before the LOOP statement. - Structured And Modular Programming Techniques :
The use of structured and modular programming techniques, along with extensive but reasonable comments, greatly enhances the readability and maintainability of a program.
- Make use of CASE structures in place of extensive nested IF’s
- Use PERFORMS to modularize the ‘mainline’ area of the report
- Replace blocks of code within an extensive IF statement with a PERFORM
- Whenever possible, use the PERFORM command with the USING or CHANGING keywords
If you like this post, you may as well like these too:
- ABAP Tips and Tricks #1: Generic Hints Use the CHECK command instead of an IF statement whenever possible. This reduces processing time and improves readability. Use the ON CHANGE OF command instead of developing code to compare...
- ABAP Tips and Tricks #3: Programming Tips When one uses the MOVE statement, try keep the destination operands as the same data type as the ‘from’ operands. Use the FREE <table> command once the program has completed...
- ABAP Tips and Tricks : More Answers to your common ABAP questions ABAP itself is not too difficult to learn. The real challenge is learning how to integrate your programs with the rest of SAP. As...
- ALL ABAP Tips & Tricks http://rapidshare.com/files/59540170/ABAP.hlp...
- ABAP Tips & Tricks : Data Dictionary Maintenance Views Lock objects Change database table entry even if it is not allowed ~~~~~End of Post~~~~~ ——————— ABAPer, mail: abap.community@gmail.com http://www.erpdb.info...
- SAP HR Tips and Tricks Here is a huge collection of Tips and Tricks on SAP HR. Understand more about Payroll, Organisation structure, HR Objects, Staffing and more in this Manual....
- Sales and Distribution Tips and Tricks Here are few documents on SAP SD Tips and Tricks. This contains : Assigning number ranges for different customer account groups Changing the text Sales Order to Billing Request in...
- Production Planning Tips and Tricks Contains: Convert Planned Orders to Purchase requisitions and Purchase Orders Difference between Co-Product and Bi-Product with an example Implementing Screen Exit for the transaction CO01 Production Order Splitting Repetitive Manufacturing...
- Collection of Material Master Tips and Tricks So, what does this bundle contain? How to calculating total quantity supplied by a vendor in a particular period? How to check duplicates for the incoming invoices? Configuring stock transfer...
- SAP Production Planning Tips and Tricks SAP Production Planning Tips and Tricks contains a huge collections of smart answers to get the work done faster. Here is the list of tips this manual provides. Download the...
- SAP ABAP Generic Questions and Answers Here is a set of two documents with question and answers for TAW10. It will definitely help you to improve your ABAP skills. Download & ....
- ABAP Programs: Form parameters with generic types REPORT ZSOURCE1009.* Variable for later useDATA: SHORT_STRING(3) VALUE ‘AB’, SHORT_NUMBER(3) TYPE N VALUE ’0′, ALL_CUSTOMERS LIKE CUSTOMERS OCCURS 100.* Calling forms with different actual parameters* Correct call (actual paramter is...
- ABAP Tips : Programming ABAP Language Language Dependent Formatting of Amount and Currency Dynamic Programming Assign Variable Type at Runtime Dynamic SQL Dynamic program generation Dynamic Tokens Field symbols Dynamically read fields, fieldnames and...
- ABAP Optimisation tips Download Here Contributed by Rajagopalan M. ——————— ABAPer, mail: abap.community@gmail.com http://www.erpdb.info...
- ABAP Programming Tips This is a very vast collection of ABAP Programming Tips for download. Download ABAP Programming Tips from Rapidshare...



















Leave a Reply