Call a System Function: CALL 'XXPASS'
Hi All,
I would like to know more about the System Function CALL 'XXPASS' and where does it resides in ABAP any transaction we can have a look into and understand the system functions. Please do suggest me ASAP.
Thank you.
Best Regards, Satya
Hi,
you can check the functions, acessing the kernel file sapactab.h.
best regards,
Pedro Rosa
Similar Messages
-
Tables used in the system function call
Hi expert,
I want to find out which are the tables used to extract data using system function call on SAP 3.1h system.
here is my specification.
I am using "AUTH_FIELD_GET_INFO" function module to get describtion of attribute
say for example
import parameter to this function module
Fieldname : VIEW
langu : E
and return parameters are DATEL,INTTYPE,LNG,RC,TEXT.
where in this function module there is system funcation call which return text for fieldname pass to this function
system function name:<b>C_DD_READ_FIELD</b>
can any one tell me which are tables used in the above system function.
Regards
John.hi,
goto: system-utilities- debug system
A.
Message was edited by: Andreas Mann -
System function call 'TPD_CONTRL'
HI All,
What is the work of System function call 'TPD_CONTRL'. Please suggest me how to get the all the informaion regarding any system function?
Can they dubuged also?
Regards,
Anj jainThere were several discussions before like the one SAP R/3 : System Functions.
Please check... -
Please send me some good links on System Function Calls
Hi,
I want to know more about System Function calls. Please send me some good links on the same.
Eg : CALL 'C_DIR_READ_NEXT'
ID 'TYPE' FIELD file-type
ID 'NAME' FIELD file-name
ID 'LEN' FIELD file-len
ID 'OWNER' FIELD file-owner
ID 'MTIME' FIELD file-mtime
ID 'MODE' FIELD file-mode
ID 'ERRNO' FIELD file-errno
ID 'ERRMSG' FIELD file-errmsg.
Rgds,
Raghavendra.Hi,
<u><b>CALL - Call a System Function:</b></u>
<b>Note</b>
This statement is for internal use only.
It cannot be used in application programs.
As of Release 6.20, you should use Kernel Methods instead of system functions.
<b>Syntax</b>
CALL cfunc.
Addition:
... ID id1 FIELD f1 ... ID idn FIELD fn
<b>Effect</b>
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.
<b>Addition</b>
... ID id1 FIELD f1 ... ID idn FIELD fn
<b>Effect</b>
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.
<b>Note</b>
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.
<b>Exceptions</b>
Non-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,
Bhaskar -
How to call a C function calling a Java Method from another C function ?
Hi everyone,
I'm just starting to learn JNI and my problem is that I don't know if it is possible to call a C function calling a Java Method (or doing anything else with JNI) from another C function.
In fact, after receiving datas in a socket made by a C function, I would like to create a class instance (and I don't know how to do it too ; ) ) and init this instance with the strings I received in the socket.
Is all that possible ?
Thank you very much for your help !Hard to understand the question, but by most interpretations the answer is going to be yes.
You do of course understand that JNI is the "API" that sits between Java and C and that every call between the two must go through that. You can't call it directly. -
Hi Everyone,
How to see all system functions in SAP ??..
For example:
CALL 'RSPOAOSD'
ID 'ID' FIELD IDENT
ID 'TYPE' FIELD TST05-DTYPE
ID 'RECTYP' FIELD 'VYL----'
ID 'RC' FIELD RC
ID 'ERRMSG' FIELD ERRMSG.
Here RSPOAOSD is a system function.I want to find the repository of all such System Functions in SAP.
Regards,
Rajeev.NHello Rajiv,
These are the System functions but i never try these 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
AB_SET_PRINT_PARAMS
AB_STRUC_INFO
AB_STR_GET_REFCOUNT
AB_TEST_CONV_EX
AB_TEST_KRN
AB_TEST_RPERF
AB_VALIDATE_STRREFS
AB_VALIDATE_TABREFS
AB_WORKINGSET
AB_WRITE_TEXTPOOL
ADD_ENTRY_TO_RTM
ALERTS
ANALYSE_USERBUFFER
APPC_HD
ARCHIVE_JOB_DONE
AS400_API
AS4_FREE_STOR
ASIAN_CHAR_WIDTH
ATRA_DECOMPRESS
ATRA_GET_CLOCK_INTERVAL
ATRA_GET_STATE
ATRA_INIT ATRA_INIT_DEFAULT
ATRA_SET_CLOCK
AUDIT_GET_INFO
AUDIT_SET_INFO
AUDIT_WRITE_ENTRY
AUTH_CHECK_TCODE
AUTH_CHECK_USER
AUTH_TRACE
AbGetXtypInfo
BDC_CLOSE_GROUP
BDC_DYNPRO BDC_OPEN_GROUP
BDC_RUNNING
BDC_START_GROUP
BDC_TCODE
BREAK_LINE
BTC_CALL_KERNEL
BUILD_DS_SPEC
BatchDebugging
CAL_BUFSIZE
CAL_CHECK_FOR_HOLIDAY
CAL_CONVERT_DATE_TO_FDATE CAL_CONVERT_FDATE_TO_DATE
CAL_EASTERDATE
CAL_LOAD_NEW
CAL_SYNC
CCMS_MONI_INFRA CCMS_MONI_SYST
CHECKSUM
CHECK_ACCESS_KEY
CHECK_DEVELOPER_KEY
CHECK_LOCALE
CHECK_REFERENCE
CHECK_SECRET_AUTHORITY
CHECK_TADIR_ACCESS_FREE
CHECK_TADIR_ACCESS_KEY
CLOCK CONT_LOC_TIM CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT
COV_GET_DATA
COV_INFO COV_MAINTAIN_TESTKEYS
CREATE_DYNAMIC_TYPE
CUADELETE
CUR_LCL C_CAL_GENERATE C_CAL_GET_TIMESTAMP
C_CHAR_CODE_CONV
C_CVT_HOST_TO_NEUT
C_CVT_NEUT_TO_HOST
C_DB_EXECUTE
C_DB_FUNCTION
C_DD_CHECK_VAL
C_DD_COUNT_VAL
C_DD_HEADER
C_DD_H_ADD_V
C_DD_H_DEL_V
C_DD_H_GET_V
C_DD_H_PUR_V
C_DD_H_PUT_V
C_DD_READ_FIELD
C_DIR_READ_FINISH
C_DIR_READ_NEXT C_DIR_READ_START
C_END_SPOOL_JOB
C_ENQUEUE
C_ENQ_WILDCARD
C_FILE_ATTRIBUTES
C_GETENV C_GET_BUFSIZE
C_GET_CPU_ID
C_GET_FILEPOS
C_GET_FILESET
C_GET_FLUSHLEVEL
C_GET_MOD_TIME
C_GET_PROCESS
C_GET_ROOT
C_GET_SWITCH
C_GET_SYSLOG_POS
C_GET_SYSTEM_NUMBER
C_GET_TABLE C_GET_TASK
C_GET_TIMEZONE
C_GET_TRNA
C_GET_USER
C_GUI_SUPPORT
C_GUI_VERSION
C_LOG_ROOT C_MAKE_TEXT_DELTA
C_MG_MCIDGEN
C_MG_MCIDREM
C_MG_MCOGEN
C_MG_MCOREM
C_MOD_TABLE
C_PRINT_LINE
C_PRINT_NORMAL_LINE
C_PRINT_OBJECT
C_PRINT_OTF
C_PRINT_PAGE_BREAK
C_REMOVE C_RSPO_ASK_FOR_PRIO
C_RSPO_CHECK_TAB_IN_DD
C_RSPO_LAST_ERROR
C_RSPO_PRINTJOB_STATE
C_RSPO_PROCESS_DIALOG
C_RSPO_SPOOL_MESSAGE
C_RSPO_TEST
C_RSTRB_READ_BUFFERED C_RSTRDURA_TO_P6_P6
C_RSTRTIME_TO_P6_P6
C_RSTS_CCC_STAT
C_RSTS_CHECK_TAB_IN_DD
C_RSTS_CLOSE C_RSTS_CREATE_OBJ_FOR_FILE
C_RSTS_INVALID_CCC
C_RSTS_LAST_ERROR
C_RSTS_OBJ_INFO
C_RSTS_OPEN_READ
C_RSTS_OPEN_WRITE
C_RSTS_READ
C_RSTS_REMOVE
C_RSTS_REPAIR_OBJ
C_RSTS_WRITE C_SAPGALLPARAM
C_SAPGDEFPARAM
C_SAPGPARAM
C_SET_FILESET
C_SET_MOD_TIME
C_SET_PROCESS C_SET_SWITCH
C_SET_TASK
C_SET_TRNA
C_SET_USER
C_SIZEOF
C_START_PRINT_JOB
C_START_SPOOL_JOB C_SWITCH_MCID
C_TO_HEX
C_TRADR
C_UINT_TO_P5
C_UPDATE_PRINT_JOB
C_UPDATE_SPOOL_JOB C_USE_FLOPPY
C_USHORT_TO_P5
C_WRITE_PRINT_CONTROL
C_WRITE_SYSLOG_ENTRY
CheckLogFile CleanZombieLog
CreateNewBIProt
DATE_CONV_EXT_TO_INT
DATE_CONV_INT_TO_EXT
DBCUADEL
DBG_DELETE_TAB_DATASET
DB_BMN_TEST
DB_CLUSTER_BUFFER_FLUSH
DB_CUA_RESET
DB_C_GET_EXPLAIN
DB_DUMMY
DB_EXPLAIN_PLAN
DB_GET_REL
DB_MAP_DDTYPE
DB_NTABSTA
DB_OBJ
DB_RD_NTABHDR
DB_RM_NTAB
DB_RSQLSTA
DB_SLCCSTA
DB_SYNC_DISPL
DB_SYNC_SWITCH
DB_SYNC_WRITE
DB_TBL_RESET
DB_TBP_RESET
DB_TBX
DB_WR_NTABHDR
DEBUG_CNTL
DELETE_PXA_OBJECT
DIAG_COMBOBOX_SET_SIGTABLE
DIAG_START_PM
DIAG_XMLBLOB_GET_SENDSTRING
DIAG_XMLBLOB_RECEIVE
DIAG_XMLBLOB_SEND
DIAG_XMLBLOB_STATUS
DYCUAGEN
DYNP_CONTAINER_POSITION
DYNP_DELETE_PROPERTY
DYNP_GET_DSTATE DYNP_GET_FIRSTDYNPROELEMENT
DYNP_GET_INFO
DYNP_GET_LPCN
DYNP_GET_NEXTDYNPROELEMENT DYNP_GET_PROPERTY
DYNP_GET_PROPERTYSUPPORT
DYNP_GET_STATUS
DYNP_GET_SUBSCREEN DYNP_INIT_LOCTIM
DYNP_OKCODE_GET
DYNP_OKCODE_SET
DYNP_SET_CURSOR
DYNP_SET_PROPERTY DYNP_SET_STATUS
DY_CHECK_TRANSACTION
DY_COMPOSITES_GET
DY_DOCKING_SIZE_NOTIFY DY_GET_COMBOBOX_FOR_HELP
DY_GET_CURRENT_TRANSACTION
DY_GET_DYNPRO_EVENT
DY_GET_DYNPRO_INFOS DY_GET_ELEMENTS_TO_TRANSLATE
DY_GET_EXT_VID
DY_GET_FIELD_VID
DY_GET_FOCUS DY_GET_FOCUS_CONTROL
DY_GET_LOCAL_PARAMETER
DY_GET_MODAL_LEVEL
DY_GET_PROPERTY_BAG_STRING
DY_GET_SET_FIELD_VALUE
DY_GET_S_MESSAGE
DY_GET_TC_LOOPSIZE
DY_GET_TX_VARIANT DY_INVISIBLE_SCREEN
DY_MODIFY_SCREEN_TX_VARIANT
DY_OBJ_DIFF
DY_OBJ_GET
DY_OBJ_GETALL DY_OBJ_SET
DY_RESET_COMPRESSION
DY_SET_DISPL_AGAIN
DY_SET_DYNPRO_VARIANT DY_SET_FIELD_ATTRIBUTES
DY_SET_FOCUS_CONTROL
DY_SET_PROPERTY_BAG_STRING
DY_SET_TX_VARIANT EG_MEM_MGT
EMPTY_C_CALL
EmInfo
EsMemMgt
ForceCloseJoblog
GET_ABAPTYPE
GET_ACCESS_INFO GET_ACCESS_KEY
GET_BPABLE_STATEMENTS
GET_CURRENT_MAINSCREEN
GET_DEFAULT_SYSTEM_DEBUGGER_TOOL
GET_DEVELOPER_KEY
GET_DYNP_FIELD_VALUE
GET_ENDOFPAGE_SIZE
GET_KEYWORDS
GET_LAST_RABAX GET_LOG_LINESIZE
GET_MESSAGES
GET_NEXT_PARAMETER
GET_NUM_OF_FSREGS
GET_PARAM_TCOD GET_PATTERN
GET_PREDEF_TYPES
GET_PXA_HASH
GET_RTM_TABLE
GET_SHLIB_VERSION GET_SOURCE_POSITION
GET_STORAGE_COSTS
GET_SWITCH_TXEND
GET_SWITCH_UTASK
GET_TADIR_ACCESS_KEY GET_WINDOW_DATA
GUESS_CODEPAGE
Get1NetData
Get1PerfData
GetNetData
GetPerfData GetRuntimeInfo
HELP_CHECK_FIELD
HELP_GET_FIELD
HELP_GET_FIELDLEN
HELP_GET_FIELDS
HELP_PUT_FIELD
HOLD_UPDATE_TASK_LOCAL
ICF_DISPATCH
ICT_DISPATCH
IMPORT_DYNPRO
IMPORT_PROCLOG
INTERNET_USER_LOGON
IPL_SYSTEM
IS_ABAP_DEBUGGER_ACTIVE
IS_DEBUGGING_POSSIBLE
IXARCHIV IXARCHIV_RECEIVE
IXARCHIV_SEND
IXML_DISPATCH
LCL_FOR_LANG
LISTMGR_CONTROL LOAD_PROGRAM_TO_PXA
LOGIN_FOR_SNC_SERVER
LOGIN_INFO
MOVE_NTABS
MULTI_LOGIN_ALLOWED
NEWCKSUM NLS_BIDI_CONVERT
NLS_BIDI_SAP_TO_MS
NTAB_RESET
O2_CONVERT
OBJMGR_CONTROL
OBJMGR_GET_INFO
OMRT_DISPATCH
OMS_DEVICE_QUERY
OMS_GENERIC
OMS_JOB_CANCEL
OMS_JOB_QUERY
OTF_LAYOUT_RTL OTR_SYNC_BUFFER
OVERWRITE_PXA
PASSWORD
PRINT_COVER_PAGE
PROVIDE_SORT_CHECKS_ENABLED
PR_CHECK PR_DECLIT
PR_RESOL
PXA_TEST
PfCall
QUERY_LIST_TO_MEMORY
QUEUE_CLOSE
QUEUE_DELETE
QUEUE_ERASE QUEUE_GET
QUEUE_OPEN
QUEUE_PUT
READ_ACCESS_KEY
REINIT_LANG_CP_LOC
RESET_PROGRAM_TIMESTAMP
RFCControl
RFCSystemInfo
RMCControl
ROUND_F_TO_15_DECS
RSCPF1
RSCPF4
RSCPICT
RSCP_CCC_STAT
RSCP_COBJ_CREATE
RSCP_COBJ_DESTROY
RSCP_COBJ_USE
RSCP_GENERIC
RSCP_ICONS RSCP_NAME_OF_CODEPAGE
RSCP_TCP0F
RSEC_AB_ACCESS
RSEC_AB_RCHECK
RSEC_GEN_PASSWD
RSEC_GEN_RAND RSPOA1DIR
RSPOA1JDIR
RSPOA1PDIR
RSPOA2DIR
RSPOA2JDIR
RSPOA2PDIR
RSPOA9DIR
RSPOA9JDIR RSPOA9PDIR
RSPOACSD
RSPOADP
RSPOAEPJ
RSPOAIP
RSPOAOSD
RSPOAPCC
RSPOARNS
RSPOARPAB
RSPOARSD RSPOAWSD
RSPOVERSION
RSPO_ABAP_DUMMY
RSPO_CACHE_CONTROL
RSTGTEST
RSTR_FUNC
RTM_GET_DATA RTM_INFO
RaiseEvent
ReadLogDirA
ReadLogPartitionA
Reentrance_Ticket
RemoveLogPartitionA RemoveOldBIProt
ReorgLogFile
RfcImport
RstrDateConv
SAPCORE
SAPTUNE
SAVEONERROR
SAVE_BREAKPOINTS
SC_SYMBSTRAT_INIT
SEL_PAR_UC_CONV_CHECK
SEMSTA SET_ACCESS_KEY SET_DEFAULT_DEBUGGER_TOOL
SET_DYNP_FIELD_VALUE
SET_EXPECTED_RABAX
SET_LIST_SIZE SET_LOG_LINESIZE
SET_MAX_RUDILOCKS
SET_P_A_TYPE
SET_SWAP_ALL
SET_SWITCH_TXEND SET_SWITCH_UTASK_OFF
SET_TRANS_VAR
SET_WINDOW_DATA
SHMINFO
SHM_MODELOCKREF_INFO SNC_ABAP_INFO
SNC_ABAP_SERVICE
SSF_ABAP_SERVICE
STORAGE
STORAGE_SET
SUSR_USER_BUFFER SYNTAX_TRACE
SYSTEM
SYST_LOGOFF
SelectionRectangle
SendSubmitReq
SetNetData
SetPerfData TABLEVIEW_GET_INFO
TABLEVIEW_UPDATE
TEST_LANG_CP_LOC
TOUCH_PXA_OBJECT
TOUCH_REPORT TPD_CNTRL_MISC
TPD_CONTROL
ThCPICCall
ThDisplay
ThGwMon
ThNoCall
ThNoGet
ThNoRead ThSndDelUser
ThSysInfo
ThTest
ThUsrInfo
ThVBCall
ThVersion
ThWpInfo
TrCall
TranslateSource TriggerBtcAction
UMG_CP_FOR_TEXT
UMG_WORD_SEP
UNSET_PARAMETER
VMIT_GET_MEASUREMENT_RESULTS VMIT_START_MEASUREMENT
WriteExtLog
WriteTrace
XRfcConverter
XTC_DISPATCH
XXPASS
XXPASSNET ab_SetVisibleCx -
CALL_FUNCTION_REMOTE_ERROR when calling a remote function call through PI
Hello. Thanks in advance for your perspective on this.
We are developing an interface that runs in an R/3 system and is suppossed to perform a lookup in another R/3 system via a PI 7.0 system.
Here's what we are trying to do, let's call these systems "A", "B", "C" respectively.
R/3 -> PI -> R/3
The R/3 system (A) executes code, which calls this function module like this:
CALL FUNCTION 'Z_CHK_MAT' DESTINATION 'XI_RFCADAPTER'
EXPORTING
iv_region = lv_region
iv_matnr = ls_matnr-matnr
IMPORTING
ev_flg_is_purchased = e_flg_is_purchased.
This code, is set via the "DESTINATION" parameter to use the RFC destination 'XI_RFCADAPTER'. This destination, points to the PI (B) system above.
Anyhow, we're getting a short dump in the R/3 (A) system, which is like this:
CALL_FUNCTION_REMOTE_ERROR
"JCO.Server could not find server function 'Z_CHK_MAT'"
From my analysis, I believe this is because the remote function module Z_CHK_MAT does not exist, in the PI (B) system.
Our developer, believes this should just "pass through" the PI (B) system, and call the function module in the R/3 (C) system.
Any insight on this? In this scenario, does this Function Module need to exist in the PI abap side? Can you give perspective / guidance on this?
Thanks a lot
SteveNo need to exist in PI ABAP side.
Just make sure that:
1. as Michal said, you import it in Integration Repository (and use it in your configurations);
2. the RFC Destination type that points to XI is of type T, not 3;
3. both the RFC Destination & the Sender RFC Adapter (and only them) are using the same Program Id.
Regards,
Henrique. -
Call SQL Server function through the gateway
Hello, Does anyone know if it is possible to call a SQL Server system function such as SERVERPROPERTY through the gateway?
I'd like to call a system function in the same way as a user defined function and not using DBMS_HS_PASSTHROUGH.Maybe I need to be a little bit more precise. It really depends on the data types being returned. When you look at the SERVERPROPERTY function you mentioned earlier and try to select for example the Collation, then SQl Server will return a SQL_VARIANT data type and that will fail - even using passthrough as SQL_VARIANT is not a supported data type.
Let me use the passthrough example as it allows me to demonstrate it easily:
SQL> SQL> declare
2 val varchar2(100);
3 c integer;
4 nr integer;
5 begin
6 c:= dbms_hs_passthrough.open_cursor@DG4MSQL_EMGTW_1123_DB;
7 dbms_hs_passthrough.parse@DG4MSQL_EMGTW_1123_DB (c, 'SELECT SERVERPROPERTY(''Collation'') as Collation');
8 LOOP
9 nr:= DBMS_Hs_Passthrough.fetch_row@DG4MSQL_EMGTW_1123_DB(c);
10 exit when nr=0;
11 dbms_hs_passthrough.get_value@DG4MSQL_EMGTW_1123_DB(c,1,val);
12 dbms_output.put_line(val);
13 end loop;
14 dbms_hs_passthrough.close_cursor@DG4MSQL_EMGTW_1123_DB(c);
15 end;
16 /
declare
ERROR at line 1:
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=emeagtw.de.oracle.com)(PORT=11231)
)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=dg4msql)))
ORA-02063: preceding line from DG4MSQL_EMGTW_1123_DB
ORA-06512: at line 6
Process ID: 16919
Session ID: 148 Serial number: 16721
When I now make sure the return value is a char data type by slightly modifying the select and including a convert it will work:
SQL> declare
2 val varchar2(100);
3 c integer;
4 nr integer;
5 begin
6 c:= dbms_hs_passthrough.open_cursor@DG4MSQL_EMGTW_1123_DB;
7 dbms_hs_passthrough.parse@DG4MSQL_EMGTW_1123_DB (c, 'SELECT convert(char,SERVERPROPERTY(''Collation'')) as Collation');
8 LOOP
9 nr:= DBMS_Hs_Passthrough.fetch_row@DG4MSQL_EMGTW_1123_DB(c);
10 exit when nr=0;
11 dbms_hs_passthrough.get_value@DG4MSQL_EMGTW_1123_DB(c,1,val);
12 dbms_output.put_line(val);
13 end loop;
14 dbms_hs_passthrough.close_cursor@DG4MSQL_EMGTW_1123_DB(c);
15 end;
16 /
SQL_Latin1_General_CP1_CI_AS
PL/SQL procedure successfully completed.
Just in case you have a procedure that returns the correct data type you have to make sure the gateway is configured correctly which means the parameter
HS_FDS_PROC_IS_FUNC needs to be set to TRUE and the function you want to call is listed in the HS_CALL_NAME parameter.
Here for a userdefined function I have to specify:
HS_FDS_PROC_IS_FUNC=TRUE
HS_CALL_NAME = "dbo.fx_SumTwoValues"
and then the udf based select:
SQL> SELECT "dbo"."fx_SumTwoValues"@DG4MSQL_EMGTW_1123_DB('7','8') AS SumOfTwoValues from "dummy"@DG4MSQL_EMGTW_1123_DB;
SUMOFTWOVALUES
15
- Klaus -
Info regarding a system function
Hi all,
Can any one explain me what the system function 'C_RSTS_WRITE' does if it is called like this in the program
call 'C_RSTS_WRITE'
ID 'HANDLE' field field1
ID 'BUFF' field field2
ID 'RC' field field3
ID 'ERRMSG' field field4.
Regards,
AshaCALL - 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.
Note
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'). -
How to call a RFC function from ABAP to external C/C++ system
Hi
Can some one describe me what are the steps that needs to be done to call a RFC function in external C++ system and to handle errors.
Any previous experience,please shareHi,
i think this is the wrong Forum.
Better use the SAP NetWeaver .NET Technologies Forum on this site.
Henning -
Hi,
is there any docu or list from SAP about system functions, and how to call such function?
thx
Mariohi,
use S_A.SYSTEM
Check out this document...
<a href="http://www.auditnet.org/docs/SAP_Security.doc">http://www.auditnet.org/docs/SAP_Security.doc</a>
regs,
jaga -
RFC Function Call - System not available
Hello,
in my own program i´m using an RFC function call to get data out of our BW - System like this:
CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA' DESTINATION i_dest
EXPORTING
i_query = i_query
i_view_id = i_view_id
i_t_parameter = i_t_parameter
IMPORTING
e_axis_data = gt_axis_data
e_cell_data = e_cell_data
EXCEPTIONS
system_failure = 1
communication_failure = 2
OTHERS = 3.
This works fine and fast as long the BW System is up and running. If the BW system is for some reason down my program has very bad performance because this RFC function call is trying for about 10 seconds every time.
Is there a way to avoid this long waiting time? A kind of parameter?
If there is no answer after one or two seconds the programm should continue.
Any ideas for this?
Thanks a lot.
Best regards
Manfredtry the following like look for TTL(time to live) in the doc
http://www.google.co.in/url?sa=t&source=web&cd=5&ved=0CDkQFjAE&url=http%3A%2F%2Fwww.erpgenie.com%2Fsapgenie%2Fdocs%2FSAP%2520Connectors.doc&rct=j&q=ttl%20for%20rfc%20call%20in%20sap%20abap&ei=DShnTv7VGYbWrQeYgPXcCg&usg=AFQjCNGvnINnxj8kYx9IeelUHy0dQPmuMA&cad=rja -
After a function call values in the system sy-msgty,sy-msgit and sy-msgno are getting empty. And the program dumped suddenly with showing a message_type_unknown message.
Here i wanted to know y these values are becoming empty
Pls help me out hereThe first Idoc has two line items and the second idoc has 7 line items. As the split is per 5 line item- the target has 3 Idocs.
Now the problem is that the header value in the target: REF_DOC_NO has to be created as per the number of line items and doesnt come from header record directly. -
How to call operating system(windows) functions like sutdown,refresh,et
Hello,
I am new in Oracle D2k.I want to know that how to call windows XP/7 shell commands(operating system functions) or windows function key(like F5 for system refresh in windows xp/7) in an Oracle Form.
Actually I have to make a trigger which can fire at pressing a particular key and execute appropriate action of Windows7 like shutdown,F5(function key of windows to system refresh).
thank you
regards
aaditya.Just for future reference, regardless if you are posting in the Forms area of the forum or any other, terms like Forms 11g, Oracle 11g, etc are parts of product names. They are not version numbers although they do offer a slight hint. It is very important that when posting you include the complete version number of any products related to the problem or question you have. For example, you said you are using Oracle Forms 11g. Look at how many possible versions "Forms 11g" could possibly be:
11.1.1.1
11.1.1.2
11.1.1.3
11.1.1.4
11.1.1.6
11.1.2.0
11.1.2.1
With each new patch release and major release, a large number of bug fixes are included. In the case of new major releases, in addition to bug fixes, many new features are added. So knowing the version number is important.
Beyond that, it would appear that you have many questions:
1. How to copy and paste
2. How to execute a system shutdown
3. How to force the browser into full screen mode
4. Refresh - this one is unclear. What do you mean by "refresh"?
Let me answer those that I can:
<blockquote>o Functions like cut/copy/paste are available directly from your Forms code. For these I would recommend referring to the Builder's Online Help. Look for CUT_REGION, COPY_REGION, PASTE_REGION. It might also be helpful to understand SELECT_ALL. For example you may want to code a Copy button like this:
GO_ITEM('some_text_field);
SELECT_ALL;
COPY_REGION;o To execute a system shutdown on the client machine, you would first need to WebUtil enable your form. Refer to the Forms Builder Online Help for information about how to use WebUtil. You can also find lots of information in this forum about WebUtil. Once enabled, you can execute a Windows shutdown in various ways. Here one option:
Declare
my_cmd varchar2(255);
Begin
my_cmd := 'cmd /c start "" "' || '"shutdown -s -f -t 1"' || '"';
WEBUTIL_HOST.HOST (my_cmd);
End;Refer to the Microsoft documentation for more information: http://technet.microsoft.com/en-us/library/bb491003.aspx
o I'm not sure what you are attempting to do with the F11. I understand that this function key sets the browser to full screen, but the form will not exactly adjust for this change in browser size. You can adjust the applet size dynamically, but not the form. For that you would need to code the behavior yourself. So, before I can offer something specific, it would be helpful to understand what you expectation is and if what you want is to set the browser to full screen, why not just allow the end user to do it? You could easily have a java script popup displayed before the form starts which might say something like "To maximize your browser, press F11"
o Finally, "refresh". I don't know what you mean here. Refresh what? The Windows desktop, browser, Oracle Forms.....
</blockquote> -
I am using TestStand with niRFSA.dll to call the function niRFSA_ReadPowerSpectrumF64. This function will make the NI RFSA takes a spectrum sweep and return an array of amplitudes, as well as a structure that contains the frequencies information. My teststand sequence file is attached. The sequence editor will execute this function call, and actually retrieve correct data from the RFSA, I can see all the data in the Locals variables. The data are correct. However, the sequence editor also throws out system error, with no further details.
See the error window also attached.
Once in a while, the sequence editor will work just fine, executing the same function call without throwing out error, this is less than 10% of the time.
I am using this on Windows 7.
Let me know if you have any insight.
Attachments:
RFSA Sequence.seq 7 KB
Capture.JPG 33 KBHi Doug:
Yes this is what I suspected also. Since the container type was a TS custom type I created to accept the C struct from the instrument. But when the data come back from the dll is a C struct, and there lays the conflict, I think its the packaging layer semantics have some conflict, even though each of the element in the C struct matches the TS type definitions, as I received all that data correctly in TS.
Thanks,
Juswanto
Maybe you are looking for
-
AV output and non-standard frame sizes
I usually work in non-standard frame size for my FCP projects because my final output will be in a 2:35:1 ratio. I use a Blackmagic Ultrastudio Mini Monitor as an HDMI output to a client monitor. Up until a few months ago the AV output of FCPX would
-
I updated ipad 4.3 to io7 but now when I go to set up it keeps asking me to restore - I have done this from itunes several times but it still gets stuck at this point in set up - help!
-
i want to knw asap tha is nokia x3-02 available in pak ??? if yes then at wat price ???
-
Invoicing Party on Purchase Orders
Hello, I am currently trying to figure out a way to add an Invoicing Party onto the SRM purchase orders so that when the invoice hits our ECC system it will go to a different vendor for payment. We are currently running on SRM 7.0 and ECC 6.0. I ha
-
How do I run a script saved under a diffrent name
Hi I have a well working script that I expand with other features and save it with a different file name.. However this new script seems to fail due to that it somewhere still has a reference to the original script... How do I go around this without