Skip to Content
-3

Question on log-point id and its usage and functionality

Mar 30, 2017 at 03:47 PM

452

avatar image

Hello All,

Can any one please explain the basic functionality of the log-point with the addition ID and its significance and its usage , for example for the below log-point id , where is the qnao_sfws_sc_on defined and how can it control the program flow fron outside the program.

LOG-POINT ID qnao_sfws_sc_on.

I had gone through the basic F1 help and the documentations available in the forums and the portal.

When the program reaches an active logpoint, an entry is created in the log that is also used by the statement ASSERT and the program execution proceeds with the statement after LOG-POINT. During this process, an already existing entry of the same LOG-POINT statement is overwritten by default. Each time an entry is written to, a counter for the entry is increased. The log can be evaluated using transaction SAAB.

No log entry is written for an inactive logpoint and the program execution proceeds with the statement after LOG-POINT.

Addition 1

... ID group

Effect

The addition ID controls the activation of the logpoint from outside the program via a checkpoint group group or an activation variant. For the specification of the checkpoint group, the same rules apply as to the ASSERT statement.The possible operations modes for logpoints are active and logging.

thanks, rg

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Horst Keller
Mar 30, 2017 at 04:35 PM
0

The point is, I would just give a link to the documentation you cited above in order to answer your question. What are you missing? Logpoints simply work as described there.

Look at program DEMO_CHECKPOINTS. It is described here. (I'll check why the source code is not loaded to the documentation). Play with it's checkpoint group in SAAB. No fear, you can't do anything wrong.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Horst,

Thanks for your reply.

LOG-POINT ID qnao_sfws_sc_on.

My question was where is the ID qnao_sfws_sc_on defined is it defined in SE11 or is it an internal variable or the id is defined on the fly like we define for IMPORT and export parameter IDs?

Sorry I dont have access for SAAB transaction and all the stuff on the web explains using SAAB transaction. Just trying to get an idea of how it works.

Thanks , rg

0

qnao_sfws_sc_on is the name of a checkpoint group defined in SAAB.

You need SAAB to create, activate activatable checkpoints and to read the logs.

Behind ID of an assertion, a breakpoint or a logpoint you can only give names of existing checkpoint groups defined in SAAB. In SAAB, you can activate the checkpoint group. If a checkpoint group is active, the corresponding

assertions, breakpoints or logpoints have an effect that also is defined in SAAB. Otherwise (inactive) they don't have any effect.

0
0

Hi Horst,

Thanks for your reply.

LOG-POINT ID qnao_sfws_sc_on.

My question was where is the ID qnao_sfws_sc_on defined is it defined in SE11 or is it an internal variable or the id is defined on the fly like we define for IMPORT and export parameter IDs?

Sorry I dont have access for SAAB transaction and all the stuff on the web explains using SAAB transaction. Just trying to get an idea of how it works.

Also as per theory it is saying as when the program reaches the log point a log is created a log is created , what is that log and where we can see that log and what it contains ( variables and their values) as per the theory the addition id controls the activation of the log-point from outside the program via checkpoint group and the check point group can only be seen in SAAB transaction,

Is this LOG-POINT some kind of IF condition where if used with addition ID the remaining part of the code is executed only if the ID is active in SAAB transaction . kindly let me know if I am incorrect.

Thanks , rg

0

qnao_sfws_sc_on is defined in transaction SAAB !!!!

0
Richard Harper Mar 31, 2017 at 11:15 AM
0

I used the log point to trace a complex process by putting a log point statement at every method entry/exit, IF, CASE, etc etc. This is relatively easy when using the replace functionality in MS Word (yes... word.... the ^p for line breaks comes in very handy). Then you can run your process without getting bogged down in breakpoints or trying to fathom out a run time analysis.

Rich

Show 6 Share
10 |10000 characters needed characters left characters exceeded

Thanks for the reply Harper .

Just want to know if the ID used here in the below statement

LOG-POINT ID ABC so this ABC here acts a group and if this group is active in CHECKPOINT GROUP IN SAAB transaction the remaining code is executed .. Is that Correct ?

Best Regards,

rg

0

For example if we are using LOG-POINT ID ZTEST and we ZTEST is the check point group and if this group is not active in SAAB transaction say and if the log-point is used as below

LOG-POINT ID ZTEST.

write : 'test;'.

will the write statement be executed in the above case.

Sorry I dont have access to SAAB transaction to check the active groups thats the reason I am asking this question. Never mind if its too basic.

0

"will the write statement be executed in the above case"

Yes, since you switch on and off logging only. If you use ASSERT instead of LOG-POINT its different.

0

Log-Point does not cause any program flow change whether the group is active or not.

ps. Harper is my family name, not my given name which is Richard.

0

Hello Richard,

Thanks for the reply and sorry.

Ok the log-point id only makes an impact in making log and does not affect the program logic or execution . Is that correct?

rg

0

That's correct

0