SAP PRELIMINARY_POSTING_FB01 Function Module for
PRELIMINARY_POSTING_FB01 is a standard preliminary posting fb01 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 preliminary posting fb01 FM, simply by entering the name PRELIMINARY_POSTING_FB01 into the relevant SAP transaction such as SE37 or SE38.
Function Group: F040
Program Name: SAPLF040
Main Program: SAPLF040
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function PRELIMINARY_POSTING_FB01 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 'PRELIMINARY_POSTING_FB01'".
EXPORTING
* TEXT_UPDATE = ' ' "
* TEXT_ITEM_UPDATE = ' ' "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* I_UF05A = "
* I_XCMPL = ' ' "Checkbox
* FS006_FB01 = "
* I_TCODE = 'FB01' "ABAP Program, Current Transaction Code
* I_PARGB = "Business Partner's Business Area
* I_TCODE_INT = "Transaction Code
IMPORTING
XEPBBP = "Checkbox
TABLES
T_BKPF = "
* T_MANDATE = "
T_BSEG = "
T_BSEC = "
T_BSET = "
T_BSEZ = "
* T_BKORM = "Accounting correspondence requests
* T_THEAD = "SAPscript: Text Header
* T_SPLTTAB = "Carrier for Split Information re: Current Account Line Items
* T_SPLTWT = "Auxiliary structure for table WITH_ITEM
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLF040_001 WF: Amount Release by Person with Release Authorization
EXIT_SAPLF040_002 WF: Account Assignment Approval by Person with Release Authorization
EXIT_SAPLF040_003 WF: Operater after Refusal of Release
EXIT_SAPLF040_004 User Exit: Payment Release by Person with Release Authorization
IMPORTING Parameters details for PRELIMINARY_POSTING_FB01
TEXT_UPDATE -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_ITEM_UPDATE - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_UF05A -
Data type: UF05AOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XCMPL - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FS006_FB01 -
Data type: FS006Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TCODE - ABAP Program, Current Transaction Code
Data type: T020-TCODEDefault: 'FB01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PARGB - Business Partner's Business Area
Data type: RF05A-PARGBOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TCODE_INT - Transaction Code
Data type: TCODEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for PRELIMINARY_POSTING_FB01
XEPBBP - Checkbox
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PRELIMINARY_POSTING_FB01
T_BKPF -
Data type: BKPFOptional: No
Call by Reference: No ( called with pass by value option)
T_MANDATE -
Data type: SEPA_MANDATEOptional: Yes
Call by Reference: Yes
T_BSEG -
Data type: BSEGOptional: No
Call by Reference: No ( called with pass by value option)
T_BSEC -
Data type: BSECOptional: No
Call by Reference: No ( called with pass by value option)
T_BSET -
Data type: BSETOptional: No
Call by Reference: No ( called with pass by value option)
T_BSEZ -
Data type: BSEZOptional: No
Call by Reference: No ( called with pass by value option)
T_BKORM - Accounting correspondence requests
Data type: BKORMOptional: Yes
Call by Reference: No ( called with pass by value option)
T_THEAD - SAPscript: Text Header
Data type: THEADOptional: Yes
Call by Reference: No ( called with pass by value option)
T_SPLTTAB - Carrier for Split Information re: Current Account Line Items
Data type: ACSPLTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_SPLTWT - Auxiliary structure for table WITH_ITEM
Data type: WITH_ITEMXOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PRELIMINARY_POSTING_FB01 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_t_bkpf | TYPE STANDARD TABLE OF BKPF, " | |||
lv_xepbbp | TYPE XFELD, " | |||
lv_text_update | TYPE BOOLE-BOOLE, " SPACE | |||
lt_t_mandate | TYPE STANDARD TABLE OF SEPA_MANDATE, " | |||
lt_t_bseg | TYPE STANDARD TABLE OF BSEG, " | |||
lv_text_item_update | TYPE BOOLE-BOOLE, " SPACE | |||
lt_t_bsec | TYPE STANDARD TABLE OF BSEC, " | |||
lv_i_uf05a | TYPE UF05A, " | |||
lt_t_bset | TYPE STANDARD TABLE OF BSET, " | |||
lv_i_xcmpl | TYPE XFELD, " SPACE | |||
lt_t_bsez | TYPE STANDARD TABLE OF BSEZ, " | |||
lv_fs006_fb01 | TYPE FS006, " | |||
lv_i_tcode | TYPE T020-TCODE, " 'FB01' | |||
lt_t_bkorm | TYPE STANDARD TABLE OF BKORM, " | |||
lv_i_pargb | TYPE RF05A-PARGB, " | |||
lt_t_thead | TYPE STANDARD TABLE OF THEAD, " | |||
lt_t_splttab | TYPE STANDARD TABLE OF ACSPLT, " | |||
lv_i_tcode_int | TYPE TCODE, " | |||
lt_t_spltwt | TYPE STANDARD TABLE OF WITH_ITEMX. " |
  CALL FUNCTION 'PRELIMINARY_POSTING_FB01' " |
EXPORTING | ||
TEXT_UPDATE | = lv_text_update | |
TEXT_ITEM_UPDATE | = lv_text_item_update | |
I_UF05A | = lv_i_uf05a | |
I_XCMPL | = lv_i_xcmpl | |
FS006_FB01 | = lv_fs006_fb01 | |
I_TCODE | = lv_i_tcode | |
I_PARGB | = lv_i_pargb | |
I_TCODE_INT | = lv_i_tcode_int | |
IMPORTING | ||
XEPBBP | = lv_xepbbp | |
TABLES | ||
T_BKPF | = lt_t_bkpf | |
T_MANDATE | = lt_t_mandate | |
T_BSEG | = lt_t_bseg | |
T_BSEC | = lt_t_bsec | |
T_BSET | = lt_t_bset | |
T_BSEZ | = lt_t_bsez | |
T_BKORM | = lt_t_bkorm | |
T_THEAD | = lt_t_thead | |
T_SPLTTAB | = lt_t_splttab | |
T_SPLTWT | = lt_t_spltwt | |
. " PRELIMINARY_POSTING_FB01 |
ABAP code using 7.40 inline data declarations to call FM PRELIMINARY_POSTING_FB01
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 BOOLE FROM BOOLE INTO @DATA(ld_text_update). | ||||
DATA(ld_text_update) | = ' '. | |||
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_text_item_update). | ||||
DATA(ld_text_item_update) | = ' '. | |||
DATA(ld_i_xcmpl) | = ' '. | |||
"SELECT single TCODE FROM T020 INTO @DATA(ld_i_tcode). | ||||
DATA(ld_i_tcode) | = 'FB01'. | |||
"SELECT single PARGB FROM RF05A INTO @DATA(ld_i_pargb). | ||||
Search for further information about these or an SAP related objects