SAP AMDB_DATA_GET_FROM_BUFFER Function Module for NOTRANSL: Liefert Daten vom globalen Puffer alle oder anlagenspezifisch
AMDB_DATA_GET_FROM_BUFFER is a standard amdb data get from buffer 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: Liefert Daten vom globalen Puffer alle oder anlagenspezifisch 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 amdb data get from buffer FM, simply by entering the name AMDB_DATA_GET_FROM_BUFFER into the relevant SAP transaction such as SE37 or SE38.
Function Group: AMDB
Program Name: SAPLAMDB
Main Program:
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AMDB_DATA_GET_FROM_BUFFER 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 'AMDB_DATA_GET_FROM_BUFFER'"NOTRANSL: Liefert Daten vom globalen Puffer alle oder anlagenspezifisch.
EXPORTING
* ID_BUKRS = "
* ID_ANLN1 = "
* ID_ANLN2 = "
TABLES
* ET_RLAMBU = "Help structure for asset line item
* ET_ANEPI = "Interface Structure for Posting to Assets
* ET_ANLB = "Depreciation Terms
* ET_ANEK = "Document Header Asset Posting
* ET_ANEP = "Asset Line Items
* ET_ANEA = "Asset Line Items for Proportional Values
IMPORTING Parameters details for AMDB_DATA_GET_FROM_BUFFER
ID_BUKRS -
Data type: ANBZ-BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
ID_ANLN1 -
Data type: ANBZ-ANLN1Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_ANLN2 -
Data type: ANBZ-ANLN2Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AMDB_DATA_GET_FROM_BUFFER
ET_RLAMBU - Help structure for asset line item
Data type: RLAMBUOptional: Yes
Call by Reference: Yes
ET_ANEPI - Interface Structure for Posting to Assets
Data type: ANEPIOptional: Yes
Call by Reference: Yes
ET_ANLB - Depreciation Terms
Data type: ANLBOptional: Yes
Call by Reference: Yes
ET_ANEK - Document Header Asset Posting
Data type: ANEKOptional: Yes
Call by Reference: Yes
ET_ANEP - Asset Line Items
Data type: ANEPOptional: Yes
Call by Reference: Yes
ET_ANEA - Asset Line Items for Proportional Values
Data type: ANEAOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for AMDB_DATA_GET_FROM_BUFFER 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_id_bukrs | TYPE ANBZ-BUKRS, " | |||
| lt_et_rlambu | TYPE STANDARD TABLE OF RLAMBU, " | |||
| lt_et_anepi | TYPE STANDARD TABLE OF ANEPI, " | |||
| lv_id_anln1 | TYPE ANBZ-ANLN1, " | |||
| lt_et_anlb | TYPE STANDARD TABLE OF ANLB, " | |||
| lv_id_anln2 | TYPE ANBZ-ANLN2, " | |||
| lt_et_anek | TYPE STANDARD TABLE OF ANEK, " | |||
| lt_et_anep | TYPE STANDARD TABLE OF ANEP, " | |||
| lt_et_anea | TYPE STANDARD TABLE OF ANEA. " |
|   CALL FUNCTION 'AMDB_DATA_GET_FROM_BUFFER' "NOTRANSL: Liefert Daten vom globalen Puffer alle oder anlagenspezifisch |
| EXPORTING | ||
| ID_BUKRS | = lv_id_bukrs | |
| ID_ANLN1 | = lv_id_anln1 | |
| ID_ANLN2 | = lv_id_anln2 | |
| TABLES | ||
| ET_RLAMBU | = lt_et_rlambu | |
| ET_ANEPI | = lt_et_anepi | |
| ET_ANLB | = lt_et_anlb | |
| ET_ANEK | = lt_et_anek | |
| ET_ANEP | = lt_et_anep | |
| ET_ANEA | = lt_et_anea | |
| . " AMDB_DATA_GET_FROM_BUFFER | ||
ABAP code using 7.40 inline data declarations to call FM AMDB_DATA_GET_FROM_BUFFER
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 BUKRS FROM ANBZ INTO @DATA(ld_id_bukrs). | ||||
| "SELECT single ANLN1 FROM ANBZ INTO @DATA(ld_id_anln1). | ||||
| "SELECT single ANLN2 FROM ANBZ INTO @DATA(ld_id_anln2). | ||||
Search for further information about these or an SAP related objects