SAP RECF_POSTING_RULE Function Module for









RECF_POSTING_RULE is a standard recf posting rule 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 recf posting rule FM, simply by entering the name RECF_POSTING_RULE into the relevant SAP transaction such as SE37 or SE38.

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



Function RECF_POSTING_RULE 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 'RECF_POSTING_RULE'"
EXPORTING
* I_RECNTYPE = "
* I_EIGR3 = "
* I_EIGR4 = "
* I_KUNNR = "
* I_LIFNR = "
* I_TYP_SUBST = ' ' "
* I_ANWND = "
* I_SVORG = "
* I_INTRENO = "
* I_IMKEY = "
* I_BUKRS = "
* I_KTOPL = "
I_EIGR1 = "
* I_EIGR2 = "

IMPORTING
E_BSSKOFI = "

EXCEPTIONS
KOFI_PREPARE = 1 KOFI_PHASE1 = 2 KOFI_PHASE2 = 3 KOFI_CHECK = 4
.



IMPORTING Parameters details for RECF_POSTING_RULE

I_RECNTYPE -

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

I_EIGR3 -

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

I_EIGR4 -

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

I_KUNNR -

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

I_LIFNR -

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

I_TYP_SUBST -

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

I_ANWND -

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

I_SVORG -

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

I_INTRENO -

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

I_IMKEY -

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

I_BUKRS -

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

I_KTOPL -

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

I_EIGR1 -

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

I_EIGR2 -

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

EXPORTING Parameters details for RECF_POSTING_RULE

E_BSSKOFI -

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

EXCEPTIONS details

KOFI_PREPARE -

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

KOFI_PHASE1 -

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

KOFI_PHASE2 -

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

KOFI_CHECK -

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

Copy and paste ABAP code example for RECF_POSTING_RULE 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_bsskofi  TYPE BSSKOFI, "   
lv_i_recntype  TYPE VICN01-RECNTYPE, "   
lv_kofi_prepare  TYPE VICN01, "   
lv_i_eigr3  TYPE BSSKOFI-EIGR3, "   
lv_i_eigr4  TYPE BSSKOFI-EIGR4, "   
lv_i_kunnr  TYPE BSEG-KUNNR, "   
lv_i_lifnr  TYPE BSEG-LIFNR, "   
lv_i_typ_subst  TYPE C, "   ' '
lv_i_anwnd  TYPE T033A-ANWND, "   
lv_kofi_phase1  TYPE T033A, "   
lv_i_svorg  TYPE VISLID-SVORG, "   
lv_kofi_phase2  TYPE VISLID, "   
lv_i_intreno  TYPE VIZNRN-INTRENO, "   
lv_kofi_check  TYPE VIZNRN, "   
lv_i_imkey  TYPE VIZNRN-IMKEY, "   
lv_i_bukrs  TYPE T001-BUKRS, "   
lv_i_ktopl  TYPE T001-KTOPL, "   
lv_i_eigr1  TYPE BSSKOFI-EIGR1, "   
lv_i_eigr2  TYPE BSSKOFI-EIGR2. "   

  CALL FUNCTION 'RECF_POSTING_RULE'  "
    EXPORTING
         I_RECNTYPE = lv_i_recntype
         I_EIGR3 = lv_i_eigr3
         I_EIGR4 = lv_i_eigr4
         I_KUNNR = lv_i_kunnr
         I_LIFNR = lv_i_lifnr
         I_TYP_SUBST = lv_i_typ_subst
         I_ANWND = lv_i_anwnd
         I_SVORG = lv_i_svorg
         I_INTRENO = lv_i_intreno
         I_IMKEY = lv_i_imkey
         I_BUKRS = lv_i_bukrs
         I_KTOPL = lv_i_ktopl
         I_EIGR1 = lv_i_eigr1
         I_EIGR2 = lv_i_eigr2
    IMPORTING
         E_BSSKOFI = lv_e_bsskofi
    EXCEPTIONS
        KOFI_PREPARE = 1
        KOFI_PHASE1 = 2
        KOFI_PHASE2 = 3
        KOFI_CHECK = 4
. " RECF_POSTING_RULE




ABAP code using 7.40 inline data declarations to call FM RECF_POSTING_RULE

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 RECNTYPE FROM VICN01 INTO @DATA(ld_i_recntype).
 
 
"SELECT single EIGR3 FROM BSSKOFI INTO @DATA(ld_i_eigr3).
 
"SELECT single EIGR4 FROM BSSKOFI INTO @DATA(ld_i_eigr4).
 
"SELECT single KUNNR FROM BSEG INTO @DATA(ld_i_kunnr).
 
"SELECT single LIFNR FROM BSEG INTO @DATA(ld_i_lifnr).
 
DATA(ld_i_typ_subst) = ' '.
 
"SELECT single ANWND FROM T033A INTO @DATA(ld_i_anwnd).
 
 
"SELECT single SVORG FROM VISLID INTO @DATA(ld_i_svorg).
 
 
"SELECT single INTRENO FROM VIZNRN INTO @DATA(ld_i_intreno).
 
 
"SELECT single IMKEY FROM VIZNRN INTO @DATA(ld_i_imkey).
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs).
 
"SELECT single KTOPL FROM T001 INTO @DATA(ld_i_ktopl).
 
"SELECT single EIGR1 FROM BSSKOFI INTO @DATA(ld_i_eigr1).
 
"SELECT single EIGR2 FROM BSSKOFI INTO @DATA(ld_i_eigr2).
 


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!