SAP COOPC_RFC_ITEM_READ Function Module for NOTRANSL: OPC RFC: aktuelle Werte von OPC-Items lesen









COOPC_RFC_ITEM_READ is a standard coopc rfc item read 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: aktuelle Werte von OPC-Items lesen 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 item read FM, simply by entering the name COOPC_RFC_ITEM_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: COOPC_RFC
Program Name: SAPLCOOPC_RFC
Main Program: SAPLCOOPC_RFC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function COOPC_RFC_ITEM_READ 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_ITEM_READ'"NOTRANSL: OPC RFC: aktuelle Werte von OPC-Items lesen
EXPORTING
OPCSERVER = "OPC: ID of the OPC Server
SOURCE = "OPC: Access Type

TABLES
ITEMVALUES = "OPC: Structure for Item Value Read (RFC Interface)

EXCEPTIONS
OPCSERVER_UNKNOWN = 1 FAILED = 2
.



IMPORTING Parameters details for COOPC_RFC_ITEM_READ

OPCSERVER - OPC: ID of the OPC Server

Data type: COOPC_SERVERID
Optional: No
Call by Reference: No ( called with pass by value option)

SOURCE - OPC: Access Type

Data type: COOPC_SOURCE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for COOPC_RFC_ITEM_READ

ITEMVALUES - OPC: Structure for Item Value Read (RFC Interface)

Data type: RCOOPC_ITEMVALUE_READ2
Optional: No
Call by Reference: Yes

EXCEPTIONS details

OPCSERVER_UNKNOWN - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FAILED - Failed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for COOPC_RFC_ITEM_READ 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_itemvalues  TYPE STANDARD TABLE OF RCOOPC_ITEMVALUE_READ2, "   
lv_opcserver_unknown  TYPE RCOOPC_ITEMVALUE_READ2, "   
lv_failed  TYPE RCOOPC_ITEMVALUE_READ2, "   
lv_source  TYPE COOPC_SOURCE. "   

  CALL FUNCTION 'COOPC_RFC_ITEM_READ'  "NOTRANSL: OPC RFC: aktuelle Werte von OPC-Items lesen
    EXPORTING
         OPCSERVER = lv_opcserver
         SOURCE = lv_source
    TABLES
         ITEMVALUES = lt_itemvalues
    EXCEPTIONS
        OPCSERVER_UNKNOWN = 1
        FAILED = 2
. " COOPC_RFC_ITEM_READ




ABAP code using 7.40 inline data declarations to call FM COOPC_RFC_ITEM_READ

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!