Application Development 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: 

Access to number of DSEG entries from ABAP

Former Member
0 Kudos

Hi Folks,

does anyone know a possibility to access the number of DSEG entries from ABAP?

You can see the DSEG count while debbuging via System -> System Area -> enter "DSEG"

The idea is to check the DSEG count in a large transaction (every dialog step) to inform the user to save and restart the transaction.

Thanks in Advance

Dominik

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Solution:

CALL 'AB_TEST_KRN'

ID 'OpCode' FIELD 11.

  • SY-SUBRC < 0: function is not available

  • SY-SUBRC > 0: SY-SUBRC = # segment entries

This function comes with Kernel Patch 2202 (46D)

3 REPLIES 3

Former Member
0 Kudos

Solution:

CALL 'AB_TEST_KRN'

ID 'OpCode' FIELD 11.

  • SY-SUBRC < 0: function is not available

  • SY-SUBRC > 0: SY-SUBRC = # segment entries

This function comes with Kernel Patch 2202 (46D)

0 Kudos

I have the same problem but I have SAP version 4.6c and the function you say don't work, do you know another solution to know number of dseg entries??

0 Kudos

Do we have give any specific value in Opcode..

---

CALL 'AB_TEST_KRN'

ID 'OpCode' FIELD 11.

  • SY-SUBRC < 0: function is not available

  • SY-SUBRC > 0: SY-SUBRC = # segment entries

-


Tried with 4.6c with Kernel patch as mentioned in OSS Note 925592

he access function is contained in 46D kernel patch 2202 (patch text:

Access to current count of DSEG entries").

It is giving -1 in 4.6c

and it is giving -2 in ECC 6.0

Thanks

Raghuraman S