SAP FTR_MIR_CONDITION_MIRRORING Function Module for Mirror Conditions









FTR_MIR_CONDITION_MIRRORING is a standard ftr mir condition mirroring SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Mirror Conditions 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 ftr mir condition mirroring FM, simply by entering the name FTR_MIR_CONDITION_MIRRORING into the relevant SAP transaction such as SE37 or SE38.

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



Function FTR_MIR_CONDITION_MIRRORING 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 'FTR_MIR_CONDITION_MIRRORING'"Mirror Conditions
EXPORTING
PI_MIRROR_COMPANYCODE = "Company Code
PI_MIRROR_TRANACTION = "Financial Transaction
PI_BASE_COMPANYCODE = "Company Code (Mirror)
PI_BASE_TRANACTION = "Financial Transaction (Mirror)
* PI_COMMIT_WORK = 'X' "Function Module Exectues COMMIT WORK by Default
* PI_TESTRUN = ' ' "Switch to Simulation Mode for Write BAPIs

IMPORTING
PE_TAB_RETURN = "Return Parameter Table

TABLES
* CONDITIONS = "BAPI Structure: Display Condition Details
* FORMULAVARIABLES = "BAPI Structure: Formula Components
* SINGLEDATES = "BAPI Structure: Single Dates
.



IMPORTING Parameters details for FTR_MIR_CONDITION_MIRRORING

PI_MIRROR_COMPANYCODE - Company Code

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

PI_MIRROR_TRANACTION - Financial Transaction

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

PI_BASE_COMPANYCODE - Company Code (Mirror)

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

PI_BASE_TRANACTION - Financial Transaction (Mirror)

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

PI_COMMIT_WORK - Function Module Exectues COMMIT WORK by Default

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

PI_TESTRUN - Switch to Simulation Mode for Write BAPIs

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

EXPORTING Parameters details for FTR_MIR_CONDITION_MIRRORING

PE_TAB_RETURN - Return Parameter Table

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

TABLES Parameters details for FTR_MIR_CONDITION_MIRRORING

CONDITIONS - BAPI Structure: Display Condition Details

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

FORMULAVARIABLES - BAPI Structure: Formula Components

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

SINGLEDATES - BAPI Structure: Single Dates

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

Copy and paste ABAP code example for FTR_MIR_CONDITION_MIRRORING 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_conditions  TYPE STANDARD TABLE OF BAPI_FTR_COND_DETAIL, "   
lv_pe_tab_return  TYPE BAPIRET2_T, "   
lv_pi_mirror_companycode  TYPE BAPI2042-COMPANY_CODE, "   
lt_formulavariables  TYPE STANDARD TABLE OF BAPI_FTR_COND_FV, "   
lv_pi_mirror_tranaction  TYPE BAPI2042-TRANSACTION, "   
lt_singledates  TYPE STANDARD TABLE OF BAPI_FTR_COND_SD, "   
lv_pi_base_companycode  TYPE BAPI2042-COMPANY_CODE, "   
lv_pi_base_tranaction  TYPE BAPI2042-TRANSACTION, "   
lv_pi_commit_work  TYPE BOOLEAN, "   'X'
lv_pi_testrun  TYPE BAPI2042-TESTRUN. "   SPACE

  CALL FUNCTION 'FTR_MIR_CONDITION_MIRRORING'  "Mirror Conditions
    EXPORTING
         PI_MIRROR_COMPANYCODE = lv_pi_mirror_companycode
         PI_MIRROR_TRANACTION = lv_pi_mirror_tranaction
         PI_BASE_COMPANYCODE = lv_pi_base_companycode
         PI_BASE_TRANACTION = lv_pi_base_tranaction
         PI_COMMIT_WORK = lv_pi_commit_work
         PI_TESTRUN = lv_pi_testrun
    IMPORTING
         PE_TAB_RETURN = lv_pe_tab_return
    TABLES
         CONDITIONS = lt_conditions
         FORMULAVARIABLES = lt_formulavariables
         SINGLEDATES = lt_singledates
. " FTR_MIR_CONDITION_MIRRORING




ABAP code using 7.40 inline data declarations to call FM FTR_MIR_CONDITION_MIRRORING

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 COMPANY_CODE FROM BAPI2042 INTO @DATA(ld_pi_mirror_companycode).
 
 
"SELECT single TRANSACTION FROM BAPI2042 INTO @DATA(ld_pi_mirror_tranaction).
 
 
"SELECT single COMPANY_CODE FROM BAPI2042 INTO @DATA(ld_pi_base_companycode).
 
"SELECT single TRANSACTION FROM BAPI2042 INTO @DATA(ld_pi_base_tranaction).
 
DATA(ld_pi_commit_work) = 'X'.
 
"SELECT single TESTRUN FROM BAPI2042 INTO @DATA(ld_pi_testrun).
DATA(ld_pi_testrun) = ' '.
 


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!