Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Transaction SAAB: ECC 5.0 / How does Assert ID works?

Former Member
0 Likes
937

Hello,

Please advice what is difference between BREAK, LOG and ABORT in assertion activation tab?

Thanks,

Anand

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
794

This is how the system will behave when reaching ASSERTION point.

If the condtion is not fulfiled (in ASSERT)

BREAK - will stop at this point, switching to Debugging mode

LOG - will create a log entry with an error and proceed with next statement in the program

ABORT - the executed program reaches runtime error ASSERTION_FAILED, causing dump of a program.

5 REPLIES 5
Read only

MarcinPciak
Active Contributor
0 Likes
795

This is how the system will behave when reaching ASSERTION point.

If the condtion is not fulfiled (in ASSERT)

BREAK - will stop at this point, switching to Debugging mode

LOG - will create a log entry with an error and proceed with next statement in the program

ABORT - the executed program reaches runtime error ASSERTION_FAILED, causing dump of a program.

Read only

0 Likes
794

Hi,

Even if I set to Break or LOG mode, it is still giving me a short dump. So I thought of asking this question.

Thanks and rgds,

Anand

Read only

0 Likes
794

Hi Anand,

Make sure you have activated your checkpoint. You can do this in SAAB t-code or in directly in Debugger.

Regards

Marcin

Read only

Former Member
0 Likes
794

Please read the SAP online documentation from SAAB transaction itself.

There is well defined documentation is there.Just run the tcode and click on BLUE i button.in SAP manual there is all link available for all functionality.

Read only

hassan_nia
Explorer
0 Likes
794

REPORT zhan_test_log_point1 .
TABLES: vbak.
DATA: gi_vbak TYPE TABLE OF vbak.
DATA: wa_vbak TYPE vbak.
*
SELECT-OPTIONS s_vbeln FOR vbak-vbeln OBLIGATORY.
START-OF-SELECTION.
  SELECT * FROM vbak INTO TABLE gi_vbak WHERE vbeln IN s_vbeln.
*
WRITE: / 'Here is the Start step'.
*                                            Log hole table:
*  LOG-POINT ID zhan_log2 FIELDS gi_vbak.
  LOOP AT gi_vbak INTO wa_vbak.
*                                            Log structure:
*    LOG-POINT ID zhan_log2  SUBKEY wa_vbak-vbeln FIELDS wa_vbak.
*                                            Log field:
    LOG-POINT ID zhan_log2  FIELDS wa_vbak-auart wa_vbak-ernam wa_vbak-erdat.
* You can't check Sy-subrc here
    WRITE:/ wa_vbak-vbeln.
  ENDLOOP.
  WRITE: / 'Here is the end of Log.'.

*---------------------------------------------------*

*Here is e.g. for an assert:

  ASSERT id zhan_assert1 CONDITION sy-subrc IS not INITIAL. " Dump if SY-SUBRC is NOT initial.

* Here is e.g. for a break-point.

BREAK-POINT ID zhan_break1.