ABAP Programming Tips and Techniques #1

1. Where is the statement "message e123 raising condition" used?

In a function.

2. In what case would you typically use NUMC field?

Where only numbers are allowed and there is no need for arithmetic operations

3. What has happened if an authorization fails with sy-subrc = 4?

The user does not have the required authorization

4. What is the effect of not Typing Formal Parameters in a Form?

Forms are more flexible but prone to a short dump if conversion does not work

5. Processing blocks of abap program.

Dialog Module, Event.

6. Which update request run asynchronously?

V2

7. What transaction is used to handle termination updates?

SM13

8. Which statement would conclude a SAP LUW?

COMMIT WORK, ROLLBACK WORK

9. What happened when Perform On Commit?

Multiple calls to a FORM result in single execution of the FORM

10. Synchronous Update Techniques.

COMMIT WORK AND WAIT, Update table.. ..

11. Asynchronous Update Techniques

CALL FUNCTION .. ... IN UPDATE TASK.

12. When are the V2 updates processed?

After all V1's are complete

13. How would you define a lock object?

Create it as an object in the dictionary

14. What take place after each dialog step?

System passes a Database commit to the database system.

15. A SET UPDATE TASK LOCAL is issued in a dialog program. What effect does this have on updating?

  • Update requests do not use the VBLOG table
  • Update requests use shared memory
16. A well-known fact that the efficient way of retrieving data from the database tables is by using secondary indexes. Many database vendors provide the optimizer hints for the same. From SAP v4.5, optimizer hints can be provided by the %_HINTS parameter.

e.g. TABLES: spfli.
DATA : t_spfli LIKE spfli OCCURS 0 WITH HEADER LINE.
SELECT * FROM spfli
  INTO TABLE t_spfli
  %_HINTS ORACLE 'INDEX("SPFLI" "SPFLI~001")'.
   LOOP AT t_spfli.
    WRITE :/ t_spfli.
   ENDLOOP.

ABAP Tips

Read Also

Get help for your ABAP problems
Do you have a ABAP Question?

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

More ABAP Tips

Main Index
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.