SAP FI_PSO_DIRECT_POST Function Module for









FI_PSO_DIRECT_POST is a standard fi pso direct post 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 fi pso direct post FM, simply by entering the name FI_PSO_DIRECT_POST into the relevant SAP transaction such as SE37 or SE38.

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



Function FI_PSO_DIRECT_POST 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 'FI_PSO_DIRECT_POST'"
EXPORTING
I_PSOSU_ORIG = "
I_PSOXB = "
I_XDIALOG = "
* I_CHECK_ONLY = ' ' "
I_STEPS = "
I_TAX_MODE = "
I_CALLD = "
I_PSOTM = "
I_PSODT = "
I_PSOSU_PA = "
I_PSOTYP = "
* I_RECURRING = ' ' "
I_ACTIVITY = "
I_WHO_ACTIV = "
I_OKCODE = "
I_LOOP_CURSOR = "
I_XONLYCOM = "

TABLES
T_PSO = "
T_PSO_OLD = "
T_ITEM = "
T_ITEM_OLD = "
T_PSSEC = "
T_PSSEC_OLD = "
T_FIELDMOD = "

EXCEPTIONS
EXIT_ALL = 1
.



IMPORTING Parameters details for FI_PSO_DIRECT_POST

I_PSOSU_ORIG -

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

I_PSOXB -

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

I_XDIALOG -

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

I_CHECK_ONLY -

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

I_STEPS -

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

I_TAX_MODE -

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

I_CALLD -

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

I_PSOTM -

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

I_PSODT -

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

I_PSOSU_PA -

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

I_PSOTYP -

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

I_RECURRING -

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

I_ACTIVITY -

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

I_WHO_ACTIV -

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

I_OKCODE -

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

I_LOOP_CURSOR -

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

I_XONLYCOM -

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

TABLES Parameters details for FI_PSO_DIRECT_POST

T_PSO -

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

T_PSO_OLD -

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

T_ITEM -

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

T_ITEM_OLD -

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

T_PSSEC -

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

T_PSSEC_OLD -

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

T_FIELDMOD -

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

EXCEPTIONS details

EXIT_ALL -

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

Copy and paste ABAP code example for FI_PSO_DIRECT_POST 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_pso  TYPE STANDARD TABLE OF PSO02, "   
lv_exit_all  TYPE PSO02, "   
lv_i_psosu_orig  TYPE FMDY-PSOSU, "   
lv_i_psoxb  TYPE PSO42-PSOXB, "   
lv_i_xdialog  TYPE BOOLE-BOOLE, "   
lv_i_check_only  TYPE BOOLE-BOOLE, "   SPACE
lv_i_steps  TYPE I, "   
lv_i_tax_mode  TYPE C, "   
lv_i_calld  TYPE SY-CALLD, "   
lv_i_psotm  TYPE VBKPF-PSOTM, "   
lv_i_psodt  TYPE VBKPF-PSODT, "   
lt_t_pso_old  TYPE STANDARD TABLE OF PSO02, "   
lv_i_psosu_pa  TYPE FMDY-PSOSU, "   
lt_t_item  TYPE STANDARD TABLE OF PSO02S, "   
lv_i_psotyp  TYPE PSOTY-PSOTYP, "   
lt_t_item_old  TYPE STANDARD TABLE OF PSO02S, "   
lv_i_recurring  TYPE BOOLE-BOOLE, "   SPACE
lt_t_pssec  TYPE STANDARD TABLE OF FIPSO_BSEC_TAB, "   
lv_i_activity  TYPE TACT-ACTVT, "   
lv_i_who_activ  TYPE PSO43, "   
lt_t_pssec_old  TYPE STANDARD TABLE OF FIPSO_BSEC_TAB, "   
lv_i_okcode  TYPE FIPSO_BSEC_TAB, "   
lt_t_fieldmod  TYPE STANDARD TABLE OF FIPSO_T_FIELDMOD, "   
lv_i_loop_cursor  TYPE I, "   
lv_i_xonlycom  TYPE PSO42-PSOXG. "   

  CALL FUNCTION 'FI_PSO_DIRECT_POST'  "
    EXPORTING
         I_PSOSU_ORIG = lv_i_psosu_orig
         I_PSOXB = lv_i_psoxb
         I_XDIALOG = lv_i_xdialog
         I_CHECK_ONLY = lv_i_check_only
         I_STEPS = lv_i_steps
         I_TAX_MODE = lv_i_tax_mode
         I_CALLD = lv_i_calld
         I_PSOTM = lv_i_psotm
         I_PSODT = lv_i_psodt
         I_PSOSU_PA = lv_i_psosu_pa
         I_PSOTYP = lv_i_psotyp
         I_RECURRING = lv_i_recurring
         I_ACTIVITY = lv_i_activity
         I_WHO_ACTIV = lv_i_who_activ
         I_OKCODE = lv_i_okcode
         I_LOOP_CURSOR = lv_i_loop_cursor
         I_XONLYCOM = lv_i_xonlycom
    TABLES
         T_PSO = lt_t_pso
         T_PSO_OLD = lt_t_pso_old
         T_ITEM = lt_t_item
         T_ITEM_OLD = lt_t_item_old
         T_PSSEC = lt_t_pssec
         T_PSSEC_OLD = lt_t_pssec_old
         T_FIELDMOD = lt_t_fieldmod
    EXCEPTIONS
        EXIT_ALL = 1
. " FI_PSO_DIRECT_POST




ABAP code using 7.40 inline data declarations to call FM FI_PSO_DIRECT_POST

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 PSOSU FROM FMDY INTO @DATA(ld_i_psosu_orig).
 
"SELECT single PSOXB FROM PSO42 INTO @DATA(ld_i_psoxb).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xdialog).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_check_only).
DATA(ld_i_check_only) = ' '.
 
 
 
"SELECT single CALLD FROM SY INTO @DATA(ld_i_calld).
 
"SELECT single PSOTM FROM VBKPF INTO @DATA(ld_i_psotm).
 
"SELECT single PSODT FROM VBKPF INTO @DATA(ld_i_psodt).
 
 
"SELECT single PSOSU FROM FMDY INTO @DATA(ld_i_psosu_pa).
 
 
"SELECT single PSOTYP FROM PSOTY INTO @DATA(ld_i_psotyp).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_recurring).
DATA(ld_i_recurring) = ' '.
 
 
"SELECT single ACTVT FROM TACT INTO @DATA(ld_i_activity).
 
 
 
 
 
 
"SELECT single PSOXG FROM PSO42 INTO @DATA(ld_i_xonlycom).
 


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!