SAP PS05_INIT_TRANSACTION Function Module for NOTRANSL: Initialisierung für Projekteinzelposten









PS05_INIT_TRANSACTION is a standard ps05 init transaction 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: Initialisierung für Projekteinzelposten 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 ps05 init transaction FM, simply by entering the name PS05_INIT_TRANSACTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: PS05
Program Name: SAPLPS05
Main Program: SAPLPS05
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function PS05_INIT_TRANSACTION 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 'PS05_INIT_TRANSACTION'"NOTRANSL: Initialisierung für Projekteinzelposten
EXPORTING
I_TCODE = "
I_REPID = "
* I_RRI_FLAG = ' ' "

IMPORTING
E_KOKRS = "Controlling Area
E_TKA00 = "
E_TKA01 = "
E_UPDATE = "
ET_WRTTP = "
ET_DEFAULT_FIELDCAT = "Field Catalog
E_PRIM_DBTAB = "
E_SEK_DBTAB = "
ES_SEL_VIEW = "Selection View

CHANGING
C_DISPLAY_VARIANT = "
.



IMPORTING Parameters details for PS05_INIT_TRANSACTION

I_TCODE -

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

I_REPID -

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

I_RRI_FLAG -

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

EXPORTING Parameters details for PS05_INIT_TRANSACTION

E_KOKRS - Controlling Area

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

E_TKA00 -

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

E_TKA01 -

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

E_UPDATE -

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

ET_WRTTP -

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

ET_DEFAULT_FIELDCAT - Field Catalog

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

E_PRIM_DBTAB -

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

E_SEK_DBTAB -

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

ES_SEL_VIEW - Selection View

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

CHANGING Parameters details for PS05_INIT_TRANSACTION

C_DISPLAY_VARIANT -

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

Copy and paste ABAP code example for PS05_INIT_TRANSACTION 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_kokrs  TYPE COEP-KOKRS, "   
lv_i_tcode  TYPE SY-TCODE, "   
lv_c_display_variant  TYPE KAEP_DISVARIANT_KEY, "   
lv_e_tka00  TYPE TKA00, "   
lv_i_repid  TYPE SY-REPID, "   
lv_e_tka01  TYPE TKA01, "   
lv_i_rri_flag  TYPE C, "   SPACE
lv_e_update  TYPE C, "   
lv_et_wrttp  TYPE KAEP_T_WRTTP, "   
lv_et_default_fieldcat  TYPE SLIS_T_FIELDCAT_ALV, "   
lv_e_prim_dbtab  TYPE KAEP_TABNAME, "   
lv_e_sek_dbtab  TYPE KAEP_TABNAME, "   
lv_es_sel_view  TYPE TKALV_SELV. "   

  CALL FUNCTION 'PS05_INIT_TRANSACTION'  "NOTRANSL: Initialisierung für Projekteinzelposten
    EXPORTING
         I_TCODE = lv_i_tcode
         I_REPID = lv_i_repid
         I_RRI_FLAG = lv_i_rri_flag
    IMPORTING
         E_KOKRS = lv_e_kokrs
         E_TKA00 = lv_e_tka00
         E_TKA01 = lv_e_tka01
         E_UPDATE = lv_e_update
         ET_WRTTP = lv_et_wrttp
         ET_DEFAULT_FIELDCAT = lv_et_default_fieldcat
         E_PRIM_DBTAB = lv_e_prim_dbtab
         E_SEK_DBTAB = lv_e_sek_dbtab
         ES_SEL_VIEW = lv_es_sel_view
    CHANGING
         C_DISPLAY_VARIANT = lv_c_display_variant
. " PS05_INIT_TRANSACTION




ABAP code using 7.40 inline data declarations to call FM PS05_INIT_TRANSACTION

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 KOKRS FROM COEP INTO @DATA(ld_e_kokrs).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_i_tcode).
 
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_i_repid).
 
 
DATA(ld_i_rri_flag) = ' '.
 
 
 
 
 
 
 


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!