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

Debugging Call 'ThNoGet' statement

Former Member
0 Likes
5,977

Hi All,

Can any please explain me the following command?

  • Nummernvergabe aus Puffer aufrufen

CALL 'ThNoGet' ID 'BNRIV' FIELD BNRIV

ID 'NO' FIELD G_NOIVBUFFER

ID 'QUAN' FIELD P_QUANTITY

ID 'PERCENT' FIELD TNRO-PERCENTAGE

ID 'NONRSWAP' FIELD TNRO-NONRSWAP.

Also, please let me know how to debug this command.

Many thanks in advance.

Best Regards,

Tarun

2 REPLIES 2
Read only

Former Member
0 Likes
2,518

hi tarun gupta,

The one you have got is a system function. Kindly refer below for your reference.

Kernel C System calls are really just for SAP internal use. If SAP wants to allow a customer to use one, they will generally write a released ABAP function module to expose the Kernel Call. One example of this is the function module TH_USER_INFO. The following is from the on-line help for system call:

CALL - Call a System Function

Note

This statement is for internal use only.

Incompatible changes or further developments may occur at any time without warning or notice.

Basic form 8

CALL cfunc.

Addition:

... ID id1 FIELD f1 ... ID idn FIELD fn

Effect

Calls the system function cfunc. The relevant function must exist in the file sapactab.h. If you change or recreate a function, you have to compile and link the SAP kernel again. For this, you need the C source code files.

Normally, external programs should be called by RFC with CALL FUNCTION ... DESTINATION.

Addition

... ID id1 FIELD f1 ... ID idn FIELD fn

Effect

Passes fields to the called program by reference. With "ID id1", you specify the name of a formal parameter, and with "FIELD f1" the relevant field from the ABAP/4 program. If a formal parameter expects an internal table, the latter is passed in the form "FIELD tab[]".

Example

Код:

DATA RESULT(8).

CALL 'MULTIPLY' ID 'P1' FIELD '9999'

ID 'P2' FIELD '9999'

ID 'RES' FIELD RESULT.

Note

With some critical C functions, the system automatically performs an authorization check. If the user does not have the appropriate authorization, a runtime error occurs. You can check the authorization with the function module AUTHORITY_CHECK_C_FUNCTION.

Runtime errors:

CALL_C_FUNCTION_NOT_FOUND: Specified system function unknown.

CALL_C_FUNCTION_NO_AUTHORITY: No authorization to call this C function.

CALL_SYSTEM-DISABLED: The system function SYSTEM is disabled (with CALL 'SYSTEM').

These are the System functions

ABAP_CALLSTACK

ABAP_CRC64

ABAP_PRECOMPILED_HEADER_USAGE

ABSTOR_TEST AB_CALL_LITL_CHECK AB_CALL_STACK_TRACE

AB_CREATE_SAPHFILE

AB_DELETE_ALL_MEM

AB_DELETE_ALL_SHARED

AB_DELETE_MEM AB_DELETE_SHARED

AB_FIELD_CHECKWRITEADDRESS

AB_FIELD_INFO

AB_FRAG_VIEW_TO_ITAB

AB_GET_CALLER AB_GET_COUNTRY

AB_GET_CX_DATA

AB_GET_CX_FOR_CUSTOMIZE

AB_GET_C_PARMS

AB_GET_DIRECTORY_DB

AB_GET_DIRECTORY_MEM

AB_GET_DIRECTORY_SHARED

AB_GET_GLOBAL_FIELDS

AB_GET_KEYS_MEM

AB_GET_KEYS_SHARED

AB_GET_NEXT_LEVEL_SHARED

AB_GET_TEXT_FROM_CLUSTER

AB_GET_VIEW_TO_ITAB AB_IMPORT_DECOMPRESS

AB_PRINT

AB_PROGTEXT

AB_P_A_CALC

AB_READTABLE_TRACE_GET AB_READTABLE_TRACE_ON

AB_READ_TEXTPOOL

AB_RFC_STATISTIC_TID

AB_RFC_X_SCRAMBLE_STRING

AB_RTM_DUMP

AB_RTM_LOAD_FILE

AB_SET_CODEPAGE_IN_CLUSTER

AB_SET_CX_DATA

AB_SET_C_PARMS

ThDisplay

ThGwMon

ThNoCall

ThNoGet -


this is the one you have got...

ThNoRead ThSndDelUser

ThSysInfo

ThTest

ThUsrInfo

ThVBCall

ThVersion

ThWpInfo

TrCall

Read only

Former Member
0 Likes
2,518

Hi,

This statement is a Kernel System call, written in C language. You cannot debug System call.

Regards,

Joy.