‎2006 Dec 06 5:41 AM
Hi all,
In the function module TH_DELETE_USER.
There is one statement CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE_DELETE_USR
ID 'TID' FIELD TID.
Can any one plaese clarify what the meaning of this statement
Thanks in advance
Ravi
‎2006 Dec 06 5:46 AM
Hi,
I think it's system call.Check syntax in ABAP for system commands(put F1 in call).
‎2006 Dec 06 5:46 AM
Hi,
I think it's system call.Check syntax in ABAP for system commands(put F1 in call).
‎2006 Dec 06 5:51 AM
Hi
It's a Cfunction call.
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.
Exceptions
Catchable Exceptions
Cause: You do not have the authorization to call this C function.
Runtime Error: CALL_C_FUNCTION_NO_AUTHORITY
Cause: The system function specified is unknown.
Runtime Error: CALL_C_FUNCTION_NOT_FOUND
Cause: The system function SYSTEM is deactivated (in CALL 'SYSTEM')
Runtime Error: CALL_SYSTEM_DISABLED
Regards
Surya.
‎2006 Dec 06 5:53 AM
Calls the system function.
It 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[]".