SAP CREATE_ASSET_FOR_SETTLEMENT Function Module for









CREATE_ASSET_FOR_SETTLEMENT is a standard create asset for settlement 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 create asset for settlement FM, simply by entering the name CREATE_ASSET_FOR_SETTLEMENT into the relevant SAP transaction such as SE37 or SE38.

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



Function CREATE_ASSET_FOR_SETTLEMENT 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 'CREATE_ASSET_FOR_SETTLEMENT'"
EXPORTING
I_OBJNR = "
* I_SUBNO = ' ' "
* I_NASSETS = '001' "Number of similar assets
* I_DARK = ' ' "
* I_BUKRS_FIX = 'X' "
* I_APROF = ' ' "Settlement Profile
* I_IVPRO = "Investment Profile
I_ANLA = "
* I_ANLV = "
* I_ANLZ = "
* I_RANLN1 = ' ' "
* I_RANLN2 = ' ' "
* I_RBUKRS = ' ' "

IMPORTING
E_DATACHANGE = "

EXCEPTIONS
MISSING_COMPANY_CODE = 1 MISSING_ASSET_CLASS = 2 MISSING_ASSET_MAINNUMBER = 3 ADDITIONAL_RULES_NOT_POSSIBLE = 4 MISSING_SETTLEMENT_PROFILE = 5
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLAIST_001 Exchange Number Range
EXIT_SAPLAIST_002 Transfer Data for User Subscreens
EXIT_SAPLAIST_003 Transfer of User-Defined Fields to SAP Master Data Transactions

IMPORTING Parameters details for CREATE_ASSET_FOR_SETTLEMENT

I_OBJNR -

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

I_SUBNO -

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

I_NASSETS - Number of similar assets

Data type: RA02S-NASSETS
Default: '001'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DARK -

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

I_BUKRS_FIX -

Data type: T020-KOART
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APROF - Settlement Profile

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

I_IVPRO - Investment Profile

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

I_ANLA -

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

I_ANLV -

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

I_ANLZ -

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

I_RANLN1 -

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

I_RANLN2 -

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

I_RBUKRS -

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

EXPORTING Parameters details for CREATE_ASSET_FOR_SETTLEMENT

E_DATACHANGE -

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

EXCEPTIONS details

MISSING_COMPANY_CODE -

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

MISSING_ASSET_CLASS -

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

MISSING_ASSET_MAINNUMBER -

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

ADDITIONAL_RULES_NOT_POSSIBLE -

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

MISSING_SETTLEMENT_PROFILE -

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

Copy and paste ABAP code example for CREATE_ASSET_FOR_SETTLEMENT 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_objnr  TYPE COBRA-OBJNR, "   
lv_e_datachange  TYPE ANLA-XLOEV, "   
lv_missing_company_code  TYPE ANLA, "   
lv_i_subno  TYPE T020-KOART, "   SPACE
lv_i_nassets  TYPE RA02S-NASSETS, "   '001'
lv_i_dark  TYPE T020-KOART, "   SPACE
lv_i_bukrs_fix  TYPE T020-KOART, "   'X'
lv_i_aprof  TYPE TKB1A-APROF, "   SPACE
lv_missing_asset_class  TYPE TKB1A, "   
lv_i_ivpro  TYPE TAPRF-IVPRO, "   
lv_missing_asset_mainnumber  TYPE TAPRF, "   
lv_i_anla  TYPE ANLA, "   
lv_additional_rules_not_possible  TYPE ANLA, "   
lv_i_anlv  TYPE ANLV, "   
lv_missing_settlement_profile  TYPE ANLV, "   
lv_i_anlz  TYPE ANLZ, "   
lv_i_ranln1  TYPE RA02S-RANL1, "   SPACE
lv_i_ranln2  TYPE RA02S-RANL2, "   SPACE
lv_i_rbukrs  TYPE RA02S-RBUKR. "   SPACE

  CALL FUNCTION 'CREATE_ASSET_FOR_SETTLEMENT'  "
    EXPORTING
         I_OBJNR = lv_i_objnr
         I_SUBNO = lv_i_subno
         I_NASSETS = lv_i_nassets
         I_DARK = lv_i_dark
         I_BUKRS_FIX = lv_i_bukrs_fix
         I_APROF = lv_i_aprof
         I_IVPRO = lv_i_ivpro
         I_ANLA = lv_i_anla
         I_ANLV = lv_i_anlv
         I_ANLZ = lv_i_anlz
         I_RANLN1 = lv_i_ranln1
         I_RANLN2 = lv_i_ranln2
         I_RBUKRS = lv_i_rbukrs
    IMPORTING
         E_DATACHANGE = lv_e_datachange
    EXCEPTIONS
        MISSING_COMPANY_CODE = 1
        MISSING_ASSET_CLASS = 2
        MISSING_ASSET_MAINNUMBER = 3
        ADDITIONAL_RULES_NOT_POSSIBLE = 4
        MISSING_SETTLEMENT_PROFILE = 5
. " CREATE_ASSET_FOR_SETTLEMENT




ABAP code using 7.40 inline data declarations to call FM CREATE_ASSET_FOR_SETTLEMENT

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 OBJNR FROM COBRA INTO @DATA(ld_i_objnr).
 
"SELECT single XLOEV FROM ANLA INTO @DATA(ld_e_datachange).
 
 
"SELECT single KOART FROM T020 INTO @DATA(ld_i_subno).
DATA(ld_i_subno) = ' '.
 
"SELECT single NASSETS FROM RA02S INTO @DATA(ld_i_nassets).
DATA(ld_i_nassets) = '001'.
 
"SELECT single KOART FROM T020 INTO @DATA(ld_i_dark).
DATA(ld_i_dark) = ' '.
 
"SELECT single KOART FROM T020 INTO @DATA(ld_i_bukrs_fix).
DATA(ld_i_bukrs_fix) = 'X'.
 
"SELECT single APROF FROM TKB1A INTO @DATA(ld_i_aprof).
DATA(ld_i_aprof) = ' '.
 
 
"SELECT single IVPRO FROM TAPRF INTO @DATA(ld_i_ivpro).
 
 
 
 
 
 
 
"SELECT single RANL1 FROM RA02S INTO @DATA(ld_i_ranln1).
DATA(ld_i_ranln1) = ' '.
 
"SELECT single RANL2 FROM RA02S INTO @DATA(ld_i_ranln2).
DATA(ld_i_ranln2) = ' '.
 
"SELECT single RBUKR FROM RA02S INTO @DATA(ld_i_rbukrs).
DATA(ld_i_rbukrs) = ' '.
 


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!