SAP COOPC_RFC_EVT_QUERY_SOURCECOND Function Module for NOTRANSL: OPC RFC: Abfrage der Conditions einer Eventquelle
COOPC_RFC_EVT_QUERY_SOURCECOND is a standard coopc rfc evt query sourcecond SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: OPC RFC: Abfrage der Conditions einer Eventquelle processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for coopc rfc evt query sourcecond FM, simply by entering the name COOPC_RFC_EVT_QUERY_SOURCECOND into the relevant SAP transaction such as SE37 or SE38.
Function Group: COOPC_RFC
Program Name: SAPLCOOPC_RFC
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function COOPC_RFC_EVT_QUERY_SOURCECOND pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'COOPC_RFC_EVT_QUERY_SOURCECOND'"NOTRANSL: OPC RFC: Abfrage der Conditions einer Eventquelle.
EXPORTING
OPCSERVER = "ID of OPC Server
SOURCEID = "OPC: Fully Qualified Event Source ID
TABLES
CONDITIONS = "OPC: Event Condition
EXCEPTIONS
OPCSERVER_UNKNOWN = 1 SOURCEID_UNKNOWN = 2 FAILED = 3 UNEXPECTED_ERROR = 4
IMPORTING Parameters details for COOPC_RFC_EVT_QUERY_SOURCECOND
OPCSERVER - ID of OPC Server
Data type: COOPC_SERVERIDOptional: No
Call by Reference: No ( called with pass by value option)
SOURCEID - OPC: Fully Qualified Event Source ID
Data type: COOPC_EVTSOURCEIDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for COOPC_RFC_EVT_QUERY_SOURCECOND
CONDITIONS - OPC: Event Condition
Data type: RCOOPC_EVTCONDOptional: No
Call by Reference: Yes
EXCEPTIONS details
OPCSERVER_UNKNOWN - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
SOURCEID_UNKNOWN - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
FAILED - General Error
Data type:Optional: No
Call by Reference: Yes
UNEXPECTED_ERROR - Internal Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for COOPC_RFC_EVT_QUERY_SOURCECOND Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_opcserver | TYPE COOPC_SERVERID, " | |||
| lt_conditions | TYPE STANDARD TABLE OF RCOOPC_EVTCOND, " | |||
| lv_opcserver_unknown | TYPE RCOOPC_EVTCOND, " | |||
| lv_sourceid | TYPE COOPC_EVTSOURCEID, " | |||
| lv_sourceid_unknown | TYPE COOPC_EVTSOURCEID, " | |||
| lv_failed | TYPE COOPC_EVTSOURCEID, " | |||
| lv_unexpected_error | TYPE COOPC_EVTSOURCEID. " |
|   CALL FUNCTION 'COOPC_RFC_EVT_QUERY_SOURCECOND' "NOTRANSL: OPC RFC: Abfrage der Conditions einer Eventquelle |
| EXPORTING | ||
| OPCSERVER | = lv_opcserver | |
| SOURCEID | = lv_sourceid | |
| TABLES | ||
| CONDITIONS | = lt_conditions | |
| EXCEPTIONS | ||
| OPCSERVER_UNKNOWN = 1 | ||
| SOURCEID_UNKNOWN = 2 | ||
| FAILED = 3 | ||
| UNEXPECTED_ERROR = 4 | ||
| . " COOPC_RFC_EVT_QUERY_SOURCECOND | ||
ABAP code using 7.40 inline data declarations to call FM COOPC_RFC_EVT_QUERY_SOURCECOND
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects