SAP PFM_POSTING_INTERFACE_CLEARING Function Module for









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

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



Function PFM_POSTING_INTERFACE_CLEARING 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 'PFM_POSTING_INTERFACE_CLEARING'"
EXPORTING
I_AUGLV = "
I_TCODE = "
* I_SGFUNCT = ' ' "
* I_NO_AUTH = ' ' "

IMPORTING
E_MSGID = "
E_MSGNO = "
E_MSGTY = "
E_MSGV1 = "
E_MSGV2 = "
E_MSGV3 = "
E_MSGV4 = "
E_SUBRC = "

TABLES
T_BLNTAB = "
T_FTCLEAR = "
T_FTPOST = "
T_FTTAX = "

EXCEPTIONS
CLEARING_PROCEDURE_INVALID = 1 CLEARING_PROCEDURE_MISSING = 2 TABLE_T041A_EMPTY = 3 TRANSACTION_CODE_INVALID = 4 AMOUNT_FORMAT_ERROR = 5 TOO_MANY_LINE_ITEMS = 6 COMPANY_CODE_INVALID = 7 SCREEN_NOT_FOUND = 8 NO_AUTHORIZATION = 9
.



IMPORTING Parameters details for PFM_POSTING_INTERFACE_CLEARING

I_AUGLV -

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

I_TCODE -

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

I_SGFUNCT -

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

I_NO_AUTH -

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

EXPORTING Parameters details for PFM_POSTING_INTERFACE_CLEARING

E_MSGID -

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

E_MSGNO -

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

E_MSGTY -

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

E_MSGV1 -

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

E_MSGV2 -

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

E_MSGV3 -

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

E_MSGV4 -

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

E_SUBRC -

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

TABLES Parameters details for PFM_POSTING_INTERFACE_CLEARING

T_BLNTAB -

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

T_FTCLEAR -

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

T_FTPOST -

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

T_FTTAX -

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

EXCEPTIONS details

CLEARING_PROCEDURE_INVALID -

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

CLEARING_PROCEDURE_MISSING -

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

TABLE_T041A_EMPTY -

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

TRANSACTION_CODE_INVALID -

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

AMOUNT_FORMAT_ERROR -

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

TOO_MANY_LINE_ITEMS -

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

COMPANY_CODE_INVALID -

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

SCREEN_NOT_FOUND -

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

NO_AUTHORIZATION -

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

Copy and paste ABAP code example for PFM_POSTING_INTERFACE_CLEARING 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_msgid  TYPE SY-MSGID, "   
lv_i_auglv  TYPE T041A-AUGLV, "   
lt_t_blntab  TYPE STANDARD TABLE OF BLNTAB, "   
lv_clearing_procedure_invalid  TYPE BLNTAB, "   
lv_e_msgno  TYPE SY-MSGNO, "   
lv_i_tcode  TYPE SY-TCODE, "   
lt_t_ftclear  TYPE STANDARD TABLE OF FTCLEAR, "   
lv_clearing_procedure_missing  TYPE FTCLEAR, "   
lv_e_msgty  TYPE SY-MSGTY, "   
lt_t_ftpost  TYPE STANDARD TABLE OF FTPOST, "   
lv_i_sgfunct  TYPE RFIPI-SGFUNCT, "   SPACE
lv_table_t041a_empty  TYPE RFIPI, "   
lv_e_msgv1  TYPE SY-MSGV1, "   
lt_t_fttax  TYPE STANDARD TABLE OF FTTAX, "   
lv_i_no_auth  TYPE FTTAX, "   SPACE
lv_transaction_code_invalid  TYPE FTTAX, "   
lv_e_msgv2  TYPE SY-MSGV2, "   
lv_amount_format_error  TYPE SY, "   
lv_e_msgv3  TYPE SY-MSGV3, "   
lv_too_many_line_items  TYPE SY, "   
lv_e_msgv4  TYPE SY-MSGV4, "   
lv_company_code_invalid  TYPE SY, "   
lv_e_subrc  TYPE SY-SUBRC, "   
lv_screen_not_found  TYPE SY, "   
lv_no_authorization  TYPE SY. "   

  CALL FUNCTION 'PFM_POSTING_INTERFACE_CLEARING'  "
    EXPORTING
         I_AUGLV = lv_i_auglv
         I_TCODE = lv_i_tcode
         I_SGFUNCT = lv_i_sgfunct
         I_NO_AUTH = lv_i_no_auth
    IMPORTING
         E_MSGID = lv_e_msgid
         E_MSGNO = lv_e_msgno
         E_MSGTY = lv_e_msgty
         E_MSGV1 = lv_e_msgv1
         E_MSGV2 = lv_e_msgv2
         E_MSGV3 = lv_e_msgv3
         E_MSGV4 = lv_e_msgv4
         E_SUBRC = lv_e_subrc
    TABLES
         T_BLNTAB = lt_t_blntab
         T_FTCLEAR = lt_t_ftclear
         T_FTPOST = lt_t_ftpost
         T_FTTAX = lt_t_fttax
    EXCEPTIONS
        CLEARING_PROCEDURE_INVALID = 1
        CLEARING_PROCEDURE_MISSING = 2
        TABLE_T041A_EMPTY = 3
        TRANSACTION_CODE_INVALID = 4
        AMOUNT_FORMAT_ERROR = 5
        TOO_MANY_LINE_ITEMS = 6
        COMPANY_CODE_INVALID = 7
        SCREEN_NOT_FOUND = 8
        NO_AUTHORIZATION = 9
. " PFM_POSTING_INTERFACE_CLEARING




ABAP code using 7.40 inline data declarations to call FM PFM_POSTING_INTERFACE_CLEARING

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 MSGID FROM SY INTO @DATA(ld_e_msgid).
 
"SELECT single AUGLV FROM T041A INTO @DATA(ld_i_auglv).
 
 
 
"SELECT single MSGNO FROM SY INTO @DATA(ld_e_msgno).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_i_tcode).
 
 
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_e_msgty).
 
 
"SELECT single SGFUNCT FROM RFIPI INTO @DATA(ld_i_sgfunct).
DATA(ld_i_sgfunct) = ' '.
 
 
"SELECT single MSGV1 FROM SY INTO @DATA(ld_e_msgv1).
 
 
DATA(ld_i_no_auth) = ' '.
 
 
"SELECT single MSGV2 FROM SY INTO @DATA(ld_e_msgv2).
 
 
"SELECT single MSGV3 FROM SY INTO @DATA(ld_e_msgv3).
 
 
"SELECT single MSGV4 FROM SY INTO @DATA(ld_e_msgv4).
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
 
 


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!