SAP SHARED_BUFFER_READ Function Module for NOTRANSL: Lesen Shared Buffer
SHARED_BUFFER_READ is a standard shared buffer 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: Lesen Shared Buffer 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 shared buffer read FM, simply by entering the name SHARED_BUFFER_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: ATP2
Program Name: SAPLATP2
Main Program: SAPLATP2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SHARED_BUFFER_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 'SHARED_BUFFER_READ'"NOTRANSL: Lesen Shared Buffer.
EXPORTING
G_ATPCF = "ATP Server: Configuration Data
G_ATPBI = "ATP Server: ID for 'Shared Buffer' Table
G_INIT = "Checkbox
IMPORTING
G_RCODE = "ABAP System Field: Return Code of ABAP Statements
TABLES
G_ATPMEX = "ATP Server: Structure for Shared Buffer Data / Expanded
IMPORTING Parameters details for SHARED_BUFFER_READ
G_ATPCF - ATP Server: Configuration Data
Data type: ATPCFOptional: No
Call by Reference: No ( called with pass by value option)
G_ATPBI - ATP Server: ID for 'Shared Buffer' Table
Data type: ATPBIOptional: No
Call by Reference: No ( called with pass by value option)
G_INIT - Checkbox
Data type: ATP00-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SHARED_BUFFER_READ
G_RCODE - ABAP System Field: Return Code of ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SHARED_BUFFER_READ
G_ATPMEX - ATP Server: Structure for Shared Buffer Data / Expanded
Data type: ATPMEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SHARED_BUFFER_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_g_atpcf | TYPE ATPCF, " | |||
| lv_g_rcode | TYPE SY-SUBRC, " | |||
| lt_g_atpmex | TYPE STANDARD TABLE OF ATPME, " | |||
| lv_g_atpbi | TYPE ATPBI, " | |||
| lv_g_init | TYPE ATP00-XFELD. " |
|   CALL FUNCTION 'SHARED_BUFFER_READ' "NOTRANSL: Lesen Shared Buffer |
| EXPORTING | ||
| G_ATPCF | = lv_g_atpcf | |
| G_ATPBI | = lv_g_atpbi | |
| G_INIT | = lv_g_init | |
| IMPORTING | ||
| G_RCODE | = lv_g_rcode | |
| TABLES | ||
| G_ATPMEX | = lt_g_atpmex | |
| . " SHARED_BUFFER_READ | ||
ABAP code using 7.40 inline data declarations to call FM SHARED_BUFFER_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.| "SELECT single SUBRC FROM SY INTO @DATA(ld_g_rcode). | ||||
| "SELECT single XFELD FROM ATP00 INTO @DATA(ld_g_init). | ||||
Search for further information about these or an SAP related objects