SAP BAPI_CMS_AST_GETDETAIL_MULTI Function Module for Get Asset data









BAPI_CMS_AST_GETDETAIL_MULTI is a standard bapi cms ast getdetail multi SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Asset data 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 bapi cms ast getdetail multi FM, simply by entering the name BAPI_CMS_AST_GETDETAIL_MULTI into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_CMS_AST_GETDETAIL_MULTI 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 'BAPI_CMS_AST_GETDETAIL_MULTI'"Get Asset data
EXPORTING
* DATA_REQUESTED = "Data that is required for an Asset fetch
* PROCESSEXTENSION = "Indicator

TABLES
INTERNAL_IDS = "Asset Guid (Asset internal key)
* SUBASSET_CALCULATED_VALUES = "Calculations results of the subassets
* EXTENSIONOUT = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* RETURN = "Return Parameter
* EXTENSIONIN = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* ASSETS = "Asset data
* SUBASSETS = "Sub-asset data
* BUSINESS_PARTNERS = "Business partner data of an Asset
* SYSTEM_STATUS = "Asset system status
* USER_STATUS = "Asset user status
* ASSET_CALCULATED_VALUES = "Consolidated calculations results asset
* MAIN_ASSET_CALCULATED_VALUES = "Calculations results of main asset (header only)
.



IMPORTING Parameters details for BAPI_CMS_AST_GETDETAIL_MULTI

DATA_REQUESTED - Data that is required for an Asset fetch

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

PROCESSEXTENSION - Indicator

Data type: BAPI_CMS_STR_CENTRAL-PROCESSEXTENSION
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_CMS_AST_GETDETAIL_MULTI

INTERNAL_IDS - Asset Guid (Asset internal key)

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

SUBASSET_CALCULATED_VALUES - Calculations results of the subassets

Data type: BAPICMS_STR_SAS_CALC_GET
Optional: Yes
Call by Reference: Yes

EXTENSIONOUT - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

RETURN - Return Parameter

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

EXTENSIONIN - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

ASSETS - Asset data

Data type: BAPICMS_STR_AST_GET
Optional: Yes
Call by Reference: Yes

SUBASSETS - Sub-asset data

Data type: BAPICMS_STR_SAS_GET
Optional: Yes
Call by Reference: Yes

BUSINESS_PARTNERS - Business partner data of an Asset

Data type: BAPICMS_STR_AST_BP_GET
Optional: Yes
Call by Reference: Yes

SYSTEM_STATUS - Asset system status

Data type: BAPICMS_STR_AST_SYS_STAT_GET
Optional: Yes
Call by Reference: Yes

USER_STATUS - Asset user status

Data type: BAPICMS_STR_AST_USR_STAT_GET
Optional: Yes
Call by Reference: Yes

ASSET_CALCULATED_VALUES - Consolidated calculations results asset

Data type: BAPICMS_STR_AST_CALC_GET
Optional: Yes
Call by Reference: Yes

MAIN_ASSET_CALCULATED_VALUES - Calculations results of main asset (header only)

Data type: BAPICMS_STR_AST_MAS_CALC_GET
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_CMS_AST_GETDETAIL_MULTI 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:
lt_internal_ids  TYPE STANDARD TABLE OF BAPICMS_STR_AST_GUID, "   
lv_data_requested  TYPE BAPICMS_STR_AST_REQD_DATA, "   
lt_subasset_calculated_values  TYPE STANDARD TABLE OF BAPICMS_STR_SAS_CALC_GET, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_processextension  TYPE BAPI_CMS_STR_CENTRAL-PROCESSEXTENSION, "   
lt_assets  TYPE STANDARD TABLE OF BAPICMS_STR_AST_GET, "   
lt_subassets  TYPE STANDARD TABLE OF BAPICMS_STR_SAS_GET, "   
lt_business_partners  TYPE STANDARD TABLE OF BAPICMS_STR_AST_BP_GET, "   
lt_system_status  TYPE STANDARD TABLE OF BAPICMS_STR_AST_SYS_STAT_GET, "   
lt_user_status  TYPE STANDARD TABLE OF BAPICMS_STR_AST_USR_STAT_GET, "   
lt_asset_calculated_values  TYPE STANDARD TABLE OF BAPICMS_STR_AST_CALC_GET, "   
lt_main_asset_calculated_values  TYPE STANDARD TABLE OF BAPICMS_STR_AST_MAS_CALC_GET. "   

  CALL FUNCTION 'BAPI_CMS_AST_GETDETAIL_MULTI'  "Get Asset data
    EXPORTING
         DATA_REQUESTED = lv_data_requested
         PROCESSEXTENSION = lv_processextension
    TABLES
         INTERNAL_IDS = lt_internal_ids
         SUBASSET_CALCULATED_VALUES = lt_subasset_calculated_values
         EXTENSIONOUT = lt_extensionout
         RETURN = lt_return
         EXTENSIONIN = lt_extensionin
         ASSETS = lt_assets
         SUBASSETS = lt_subassets
         BUSINESS_PARTNERS = lt_business_partners
         SYSTEM_STATUS = lt_system_status
         USER_STATUS = lt_user_status
         ASSET_CALCULATED_VALUES = lt_asset_calculated_values
         MAIN_ASSET_CALCULATED_VALUES = lt_main_asset_calculated_values
. " BAPI_CMS_AST_GETDETAIL_MULTI




ABAP code using 7.40 inline data declarations to call FM BAPI_CMS_AST_GETDETAIL_MULTI

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 PROCESSEXTENSION FROM BAPI_CMS_STR_CENTRAL INTO @DATA(ld_processextension).
 
 
 
 
 
 
 
 


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!