SAP RM_AGGR_BACKFLUSH Function Module for NOTRANSL: Aggregierter Sammelbackflush









RM_AGGR_BACKFLUSH is a standard rm aggr backflush SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Aggregierter Sammelbackflush 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 rm aggr backflush FM, simply by entering the name RM_AGGR_BACKFLUSH into the relevant SAP transaction such as SE37 or SE38.

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



Function RM_AGGR_BACKFLUSH 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 'RM_AGGR_BACKFLUSH'"NOTRANSL: Aggregierter Sammelbackflush
EXPORTING
* WAKZD_IMP = ' ' "Indicator: Post Goods Issue
* FLKZD_IMP = ' ' "
* KAPKZD_IMP = ' ' "Indicator: Reduce capacity requirements
* NO_DIALOG_IMP = 'X' "
* EXT_COMMIT_IMP = ' ' "
* COMMIT_WAIT_IMP = 'X' "
* PZPKT_IMP = '2' "

TABLES
MDBPRX = "
* MSGPROT = "Message Table

EXCEPTIONS
INIT_ERROR = 1 GI_ERROR = 2 ACTIVITY_ERROR = 3 CAPA_ERROR = 4 PLANNED_ORDER_ERROR = 5 OT_ERROR = 6
.



IMPORTING Parameters details for RM_AGGR_BACKFLUSH

WAKZD_IMP - Indicator: Post Goods Issue

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

FLKZD_IMP -

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

KAPKZD_IMP - Indicator: Reduce capacity requirements

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

NO_DIALOG_IMP -

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

EXT_COMMIT_IMP -

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

COMMIT_WAIT_IMP -

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

PZPKT_IMP -

Data type: TPARU-PZPKT
Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RM_AGGR_BACKFLUSH

MDBPRX -

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

MSGPROT - Message Table

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

EXCEPTIONS details

INIT_ERROR - Error During Initialization

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

GI_ERROR -

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

ACTIVITY_ERROR -

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

CAPA_ERROR -

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

PLANNED_ORDER_ERROR -

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

OT_ERROR - Other errors

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RM_AGGR_BACKFLUSH 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_mdbprx  TYPE STANDARD TABLE OF MDBPR, "   
lv_wakzd_imp  TYPE RM61A-WAKZD, "   SPACE
lv_init_error  TYPE RM61A, "   
lt_msgprot  TYPE STANDARD TABLE OF CMFMSG, "   
lv_gi_error  TYPE CMFMSG, "   
lv_flkzd_imp  TYPE RM61A-FLKZD, "   SPACE
lv_kapkzd_imp  TYPE RM61A-KAPKZD, "   SPACE
lv_activity_error  TYPE RM61A, "   
lv_capa_error  TYPE RM61A, "   
lv_no_dialog_imp  TYPE RM61F-SELEKT, "   'X'
lv_ext_commit_imp  TYPE RM61F-SELEKT, "   SPACE
lv_planned_order_error  TYPE RM61F, "   
lv_ot_error  TYPE RM61F, "   
lv_commit_wait_imp  TYPE RM61F-SELEKT, "   'X'
lv_pzpkt_imp  TYPE TPARU-PZPKT. "   '2'

  CALL FUNCTION 'RM_AGGR_BACKFLUSH'  "NOTRANSL: Aggregierter Sammelbackflush
    EXPORTING
         WAKZD_IMP = lv_wakzd_imp
         FLKZD_IMP = lv_flkzd_imp
         KAPKZD_IMP = lv_kapkzd_imp
         NO_DIALOG_IMP = lv_no_dialog_imp
         EXT_COMMIT_IMP = lv_ext_commit_imp
         COMMIT_WAIT_IMP = lv_commit_wait_imp
         PZPKT_IMP = lv_pzpkt_imp
    TABLES
         MDBPRX = lt_mdbprx
         MSGPROT = lt_msgprot
    EXCEPTIONS
        INIT_ERROR = 1
        GI_ERROR = 2
        ACTIVITY_ERROR = 3
        CAPA_ERROR = 4
        PLANNED_ORDER_ERROR = 5
        OT_ERROR = 6
. " RM_AGGR_BACKFLUSH




ABAP code using 7.40 inline data declarations to call FM RM_AGGR_BACKFLUSH

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 WAKZD FROM RM61A INTO @DATA(ld_wakzd_imp).
DATA(ld_wakzd_imp) = ' '.
 
 
 
 
"SELECT single FLKZD FROM RM61A INTO @DATA(ld_flkzd_imp).
DATA(ld_flkzd_imp) = ' '.
 
"SELECT single KAPKZD FROM RM61A INTO @DATA(ld_kapkzd_imp).
DATA(ld_kapkzd_imp) = ' '.
 
 
 
"SELECT single SELEKT FROM RM61F INTO @DATA(ld_no_dialog_imp).
DATA(ld_no_dialog_imp) = 'X'.
 
"SELECT single SELEKT FROM RM61F INTO @DATA(ld_ext_commit_imp).
DATA(ld_ext_commit_imp) = ' '.
 
 
 
"SELECT single SELEKT FROM RM61F INTO @DATA(ld_commit_wait_imp).
DATA(ld_commit_wait_imp) = 'X'.
 
"SELECT single PZPKT FROM TPARU INTO @DATA(ld_pzpkt_imp).
DATA(ld_pzpkt_imp) = '2'.
 


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!