SAP ASSET_FIELD_STATUS_GET_SINGLE Function Module for









ASSET_FIELD_STATUS_GET_SINGLE is a standard asset field status get single SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 asset field status get single FM, simply by entering the name ASSET_FIELD_STATUS_GET_SINGLE into the relevant SAP transaction such as SE37 or SE38.

Function Group: AISBAUFBAU
Program Name: SAPLAISBAUFBAU
Main Program: SAPLAISBAUFBAU
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ASSET_FIELD_STATUS_GET_SINGLE 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 'ASSET_FIELD_STATUS_GET_SINGLE'"
EXPORTING
I_FIELD = "
* I_XPOSTCAP = ' ' "
* I_ZUGDT = ' ' "
* I_MEINS = ' ' "
* I_XCLVA = ' ' "Asset is a collective LVA
I_FELEI = "Screen layout rule
* I_VIEW = '1' "Asset View
* I_XOLDDATA = ' ' "
* I_XCLASS = ' ' "
* I_XSUBNO = ' ' "
* I_XINVM = ' ' "
* I_BUKRS = ' ' "Company Code
* I_GSBER = ' ' "

IMPORTING
ES_FRULES = "

EXCEPTIONS
FELEI_NOT_FOUND = 1 BUKRS_NOT_FOUND = 2 CLASS_AND_SUBNO_SIMULTANEOUS = 3 INCONSISTENT_CUSTOMIZING = 4 FIELD_NOT_FOUND = 5 VIEW_DATA_NOT_FOUND = 6
.



IMPORTING Parameters details for ASSET_FIELD_STATUS_GET_SINGLE

I_FIELD -

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

I_XPOSTCAP -

Data type: RAIST05-XSUBNO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ZUGDT -

Data type: ANLA-ZUGDT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MEINS -

Data type: ANLA-MEINS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XCLVA - Asset is a collective LVA

Data type: RAIST05-XSUBNO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FELEI - Screen layout rule

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

I_VIEW - Asset View

Data type: RA02S-SICHT
Default: '1'
Optional: No
Call by Reference: No ( called with pass by value option)

I_XOLDDATA -

Data type: RAIST03-FLG_ALTD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XCLASS -

Data type: RAIST05-XSUBNO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XSUBNO -

Data type: RAIST05-XSUBNO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XINVM -

Data type: ANLA-XINVM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BUKRS - Company Code

Data type: T001-BUKRS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GSBER -

Data type: ANLZ-GSBER
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ASSET_FIELD_STATUS_GET_SINGLE

ES_FRULES -

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

EXCEPTIONS details

FELEI_NOT_FOUND -

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

BUKRS_NOT_FOUND -

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

CLASS_AND_SUBNO_SIMULTANEOUS -

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

INCONSISTENT_CUSTOMIZING -

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

FIELD_NOT_FOUND -

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

VIEW_DATA_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ASSET_FIELD_STATUS_GET_SINGLE 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_i_field  TYPE RAISTBAB-FLDNM, "   
lv_es_frules  TYPE RAISTBAB, "   
lv_felei_not_found  TYPE RAISTBAB, "   
lv_i_xpostcap  TYPE RAIST05-XSUBNO, "   SPACE
lv_i_zugdt  TYPE ANLA-ZUGDT, "   SPACE
lv_i_meins  TYPE ANLA-MEINS, "   SPACE
lv_i_xclva  TYPE RAIST05-XSUBNO, "   SPACE
lv_i_felei  TYPE T082A-FELEI, "   
lv_bukrs_not_found  TYPE T082A, "   
lv_i_view  TYPE RA02S-SICHT, "   '1'
lv_class_and_subno_simultaneous  TYPE RA02S, "   
lv_i_xolddata  TYPE RAIST03-FLG_ALTD, "   SPACE
lv_inconsistent_customizing  TYPE RAIST03, "   
lv_i_xclass  TYPE RAIST05-XSUBNO, "   SPACE
lv_field_not_found  TYPE RAIST05, "   
lv_i_xsubno  TYPE RAIST05-XSUBNO, "   SPACE
lv_view_data_not_found  TYPE RAIST05, "   
lv_i_xinvm  TYPE ANLA-XINVM, "   SPACE
lv_i_bukrs  TYPE T001-BUKRS, "   SPACE
lv_i_gsber  TYPE ANLZ-GSBER. "   SPACE

  CALL FUNCTION 'ASSET_FIELD_STATUS_GET_SINGLE'  "
    EXPORTING
         I_FIELD = lv_i_field
         I_XPOSTCAP = lv_i_xpostcap
         I_ZUGDT = lv_i_zugdt
         I_MEINS = lv_i_meins
         I_XCLVA = lv_i_xclva
         I_FELEI = lv_i_felei
         I_VIEW = lv_i_view
         I_XOLDDATA = lv_i_xolddata
         I_XCLASS = lv_i_xclass
         I_XSUBNO = lv_i_xsubno
         I_XINVM = lv_i_xinvm
         I_BUKRS = lv_i_bukrs
         I_GSBER = lv_i_gsber
    IMPORTING
         ES_FRULES = lv_es_frules
    EXCEPTIONS
        FELEI_NOT_FOUND = 1
        BUKRS_NOT_FOUND = 2
        CLASS_AND_SUBNO_SIMULTANEOUS = 3
        INCONSISTENT_CUSTOMIZING = 4
        FIELD_NOT_FOUND = 5
        VIEW_DATA_NOT_FOUND = 6
. " ASSET_FIELD_STATUS_GET_SINGLE




ABAP code using 7.40 inline data declarations to call FM ASSET_FIELD_STATUS_GET_SINGLE

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 FLDNM FROM RAISTBAB INTO @DATA(ld_i_field).
 
 
 
"SELECT single XSUBNO FROM RAIST05 INTO @DATA(ld_i_xpostcap).
DATA(ld_i_xpostcap) = ' '.
 
"SELECT single ZUGDT FROM ANLA INTO @DATA(ld_i_zugdt).
DATA(ld_i_zugdt) = ' '.
 
"SELECT single MEINS FROM ANLA INTO @DATA(ld_i_meins).
DATA(ld_i_meins) = ' '.
 
"SELECT single XSUBNO FROM RAIST05 INTO @DATA(ld_i_xclva).
DATA(ld_i_xclva) = ' '.
 
"SELECT single FELEI FROM T082A INTO @DATA(ld_i_felei).
 
 
"SELECT single SICHT FROM RA02S INTO @DATA(ld_i_view).
DATA(ld_i_view) = '1'.
 
 
"SELECT single FLG_ALTD FROM RAIST03 INTO @DATA(ld_i_xolddata).
DATA(ld_i_xolddata) = ' '.
 
 
"SELECT single XSUBNO FROM RAIST05 INTO @DATA(ld_i_xclass).
DATA(ld_i_xclass) = ' '.
 
 
"SELECT single XSUBNO FROM RAIST05 INTO @DATA(ld_i_xsubno).
DATA(ld_i_xsubno) = ' '.
 
 
"SELECT single XINVM FROM ANLA INTO @DATA(ld_i_xinvm).
DATA(ld_i_xinvm) = ' '.
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs).
DATA(ld_i_bukrs) = ' '.
 
"SELECT single GSBER FROM ANLZ INTO @DATA(ld_i_gsber).
DATA(ld_i_gsber) = ' '.
 


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!