| Home • Tips • Tutorials • Forums • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
What's New?
Contribute?Sample SpecsWhat's Hot? |
Understanding "Checkpoint Group"By Richa Tripathi, Yash Technologies The
checkpoints are the type of statements introduced in the SAP Web Application
Server (SAP WebAS) 6.20 that is totally dedicated to ensuring program
correctness and maintainability. This improves the quality of software written
in ABAP. These checks are transportable and can be transported .The transaction
that takes care of these checkpoints and the place where they are maintained is
SAAB. The
Checkpoints now can be created for break-points and checkpoints and the two
statements for this are
The one
which actually does not checks the errors but is used to log the data that u
want is LOG-POINT. To start
with step by step explanation of the checkpoints we start first with the
Assertions. Assertions syntax as per the SAP Library that is to be used in the coding is as below: ASSERT
[[ID group [SUBKEY subkey]] Assertions
are used as a high quality means of problem determination in the case of code
failure. Assertions are invoked at
run time. They can be made active or inactive. Assertions can be left in code
when promoted to production with no impact to the code. They are only invoked if
the checkpoint group is activated. The
checkpoint groups can be activated through the transaction SAAB and that is
referred by ID in the programs with assert statements. This
is the transaction below SAAB where in the checkpoint group we can create the
group ID.
Clicking
on the create button below the Name we get to the below screen.
Now the
checkgroup activation can be done with three levels
In the
personal level activation that checkgroup will be active for the current user
only and for the User the Checkgroup will be active for that user that has been
defined and same is for the Server. The User
when clicked there you can define the Specific users for it as this…
And
similarly it can be done for specific Servers on clicking on the add Sign as
below:
As for the
screen below:-
The
breakpoints can be made active or inactive. Inactive then that particular
statement will be ignored and if break then in the program wherever the
statement occurs the program gets into debugging. The
Statement as per the SAP Library that goes with this in the Program is as
below… BREAK-POINT
{ [ID groupID] Ex.
BREAK-POINT ID YH_check. Without
the addition ID, the breakpoint is always active. The log text is
the text which you can specify for the system log which is seen in the logs
getting created. During
background processing the program execution is not interrupted. If the program
reaches a breakpoint, the entry "Breakpoint reached" is written to the
system protocol under which the program name and the location of the breakpoint
in the program are recorded. An inactive breakpoint is ignored. Now
taking for the assertions… Following
are the ways the assertion can be used:-
The below two options come with a
pop-up having options as:-
The
below two options come as this...
Assertion
RULES:
Here
is a sample program where the LOG-Points and ASSERTIONS are used. REPORT yh1316_test_checkgrp.. SELECT carrid connid fldate MAX( price ) AS max IF sy-dbcnt < 4. ENDIF. A
variant is created for the Particular Checkgroup created. Variant can be created
as a Local as well as at a user level. Here it is created at the User Level.
|
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG. Graphic Design by Round the Bend Wizards |
||