SAP AM_BUKRS_CHECK Function Module for









AM_BUKRS_CHECK is a standard am bukrs check 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 am bukrs check FM, simply by entering the name AM_BUKRS_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function AM_BUKRS_CHECK 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 'AM_BUKRS_CHECK'"
EXPORTING
* I_ACTION = ' ' "Action message: 'D' delete 'U' upd
I_BUKRS = "Company code
I_PERIVNEW = "last fiscal year variant
I_PERIVOLD = "new fiscal year variant
* I_T093C = ' ' "Transfer T093C only during call fr
* I_UPDATE = ' ' "'X' = Database update

IMPORTING
E_OK = "X: no objections from point of vie

EXCEPTIONS
BUKRS_ACTIVE = 1 PERIV_NOT_ALLOWED = 2 VB_ABORD = 3
.



IMPORTING Parameters details for AM_BUKRS_CHECK

I_ACTION - Action message: 'D' delete 'U' upd

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

I_BUKRS - Company code

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

I_PERIVNEW - last fiscal year variant

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

I_PERIVOLD - new fiscal year variant

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

I_T093C - Transfer T093C only during call fr

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

I_UPDATE - 'X' = Database update

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

EXPORTING Parameters details for AM_BUKRS_CHECK

E_OK - X: no objections from point of vie

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

EXCEPTIONS details

BUKRS_ACTIVE - Company code in AM active, deletio

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

PERIV_NOT_ALLOWED - FI fiscal year variant not compati

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

VB_ABORD - Database update cancelled

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

Copy and paste ABAP code example for AM_BUKRS_CHECK 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_e_ok  TYPE AMFI-OK, "   
lv_i_action  TYPE AMFI-ACTION, "   SPACE
lv_bukrs_active  TYPE AMFI, "   
lv_i_bukrs  TYPE AMFI-BUKRS, "   
lv_periv_not_allowed  TYPE AMFI, "   
lv_vb_abord  TYPE AMFI, "   
lv_i_perivnew  TYPE AMFI-PERIVNEW, "   
lv_i_perivold  TYPE AMFI-PERIVOLD, "   
lv_i_t093c  TYPE AMFI, "   SPACE
lv_i_update  TYPE AMFI-VB. "   SPACE

  CALL FUNCTION 'AM_BUKRS_CHECK'  "
    EXPORTING
         I_ACTION = lv_i_action
         I_BUKRS = lv_i_bukrs
         I_PERIVNEW = lv_i_perivnew
         I_PERIVOLD = lv_i_perivold
         I_T093C = lv_i_t093c
         I_UPDATE = lv_i_update
    IMPORTING
         E_OK = lv_e_ok
    EXCEPTIONS
        BUKRS_ACTIVE = 1
        PERIV_NOT_ALLOWED = 2
        VB_ABORD = 3
. " AM_BUKRS_CHECK




ABAP code using 7.40 inline data declarations to call FM AM_BUKRS_CHECK

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 OK FROM AMFI INTO @DATA(ld_e_ok).
 
"SELECT single ACTION FROM AMFI INTO @DATA(ld_i_action).
DATA(ld_i_action) = ' '.
 
 
"SELECT single BUKRS FROM AMFI INTO @DATA(ld_i_bukrs).
 
 
 
"SELECT single PERIVNEW FROM AMFI INTO @DATA(ld_i_perivnew).
 
"SELECT single PERIVOLD FROM AMFI INTO @DATA(ld_i_perivold).
 
DATA(ld_i_t093c) = ' '.
 
"SELECT single VB FROM AMFI INTO @DATA(ld_i_update).
DATA(ld_i_update) = ' '.
 


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!