on 03-28-2006 3:43 AM
The relevant function must exist in the file sapactab.h
I would like to where does this file locate and where can I get the full list of system functions(with description and functionalities, and how to use it)?
Thanks!
Hi
sapactab.h is the c fn header that stores information about all the C fns in the SAP system .It is stored in the OS.
I think the BASIS team or the forum for BASIS will give you a deeper idea on where exactly you can search for it.
Regards,
Anjali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The file sapactab.h cannot be accessed. It resides on the application server in complied form. Remember all the system functions are written in C / C++ and only their object code is available on the Server. You will not have access to the source code!!
You can write a program to determine all the C-Functions used in your SAP system. But you will not get any documentation about how you could use them.
If this sounds a bit disappointing, I can give you the information about one C-Function -
<i>This is a rather unconventional way to check if a database table contains data.
Normally, wed issue a SELECT SINGLE statement to see if the table has any data. This requires an access to the Database Server. However, theres a flag that will be maintained at the application server level for every database table. This flag can be accessed using a C function.</i>
DATA: DBTABNAME LIKE DD02L-TABNAME,
FLAG.
CALL 'C_DD_CHECK_VAL' ID 'TABNAME' FIELD TABNAME
ID 'EX_FLAG' FIELD FLAG.
CASE SY-SUBRC.
when 2.
" the table doesn't contain data"
when 0.
if flag eq 'X'.
" the table has data"
endif.
when others.
" some serious problem"
ENDCASE.
<i>Please note that the above logic only tells you whether the table has data in any client. Even if one client contains the data, the result is positive. If you'd like to check for existence of data in a specific client, you will still have to use the SELECT statement.</i>
Regards,
Anand Mandalika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.