SAP PS05_PROJECT_LINE_ITEM Function Module for NOTRANSL: Selektion der Objekte und Aufruf des Einzelpostentools
PS05_PROJECT_LINE_ITEM is a standard ps05 project line item 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: Selektion der Objekte und Aufruf des Einzelpostentools 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 project line item FM, simply by entering the name PS05_PROJECT_LINE_ITEM 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_PROJECT_LINE_ITEM 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_PROJECT_LINE_ITEM'"NOTRANSL: Selektion der Objekte und Aufruf des Einzelpostentools.
EXPORTING
I_REPID = "Caller
* I_USEAR = ' ' "Read from Archive
* I_AROBJ = "
* I_CALLED = ' ' "
IT_WRTTP = "
IT_FREE_SELECTION = "Dynamic selections
IT_FREE_SELECTION_RANGES = "Dynamic selections
* I_SHOWALL = "
* IV_USE_HANA = ' ' "
* IV_GROUP_OBJ = ' ' "
* IV_TREE_DISPLAY = ' ' "
* I_HANDLE = 3000 "
* IV_IMM_OUTPUT = ' ' "
* IV_DBCON = ' ' "
I_DISVAR = "Layout
* I_VALUE_TYPE = '0' "
* I_ACTUAL_VERSION = '000' "Actual Version
* I_UPDATE = ' ' "
* I_SHOWNOZERO = "
* I_ONLINE_MAXSEL = 5000 "
* I_USEDB = 'X' "Read from database
TABLES
* IT_COSEL = "
* IT_RSTHIE = "
* IT_ARSEL = "Archiv
IMPORTING Parameters details for PS05_PROJECT_LINE_ITEM
I_REPID - Caller
Data type: SY-REPIDOptional: No
Call by Reference: No ( called with pass by value option)
I_USEAR - Read from Archive
Data type: DTINP-XUSEARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AROBJ -
Data type: ARCH_OBJ-OBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CALLED -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_WRTTP -
Data type: PS05_RANGE_T_WRTTPOptional: No
Call by Reference: No ( called with pass by value option)
IT_FREE_SELECTION - Dynamic selections
Data type: RSDS_TWHEREOptional: No
Call by Reference: No ( called with pass by value option)
IT_FREE_SELECTION_RANGES - Dynamic selections
Data type: RSDS_TRANGEOptional: No
Call by Reference: No ( called with pass by value option)
I_SHOWALL -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
IV_USE_HANA -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_GROUP_OBJ -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_TREE_DISPLAY -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_HANDLE -
Data type: IDefault: 3000
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_IMM_OUTPUT -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_DBCON -
Data type: DBCON_NAMEDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_DISVAR - Layout
Data type: KAEP_DISVARIANT_KEYOptional: No
Call by Reference: No ( called with pass by value option)
I_VALUE_TYPE -
Data type: TKA09-VALUTYPDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ACTUAL_VERSION - Actual Version
Data type: TKA09-VERSNDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_UPDATE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SHOWNOZERO -
Data type: KAEP_SETT-SHOWNOZEROOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ONLINE_MAXSEL -
Data type: KAEP_SETT-MAXSELDefault: 5000
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_USEDB - Read from database
Data type: DTINP-XUSEARDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PS05_PROJECT_LINE_ITEM
IT_COSEL -
Data type: COSELOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_RSTHIE -
Data type: RSTHIEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ARSEL - Archiv
Data type: RNG_ARCHIVOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PS05_PROJECT_LINE_ITEM 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_i_repid | TYPE SY-REPID, " | |||
| lt_it_cosel | TYPE STANDARD TABLE OF COSEL, " | |||
| lv_i_usear | TYPE DTINP-XUSEAR, " SPACE | |||
| lv_i_arobj | TYPE ARCH_OBJ-OBJECT, " | |||
| lv_i_called | TYPE C, " SPACE | |||
| lv_it_wrttp | TYPE PS05_RANGE_T_WRTTP, " | |||
| lv_it_free_selection | TYPE RSDS_TWHERE, " | |||
| lv_it_free_selection_ranges | TYPE RSDS_TRANGE, " | |||
| lv_i_showall | TYPE C, " | |||
| lv_iv_use_hana | TYPE BOOLE_D, " SPACE | |||
| lv_iv_group_obj | TYPE BOOLE_D, " SPACE | |||
| lv_iv_tree_display | TYPE BOOLE_D, " SPACE | |||
| lv_i_handle | TYPE I, " 3000 | |||
| lt_it_rsthie | TYPE STANDARD TABLE OF RSTHIE, " | |||
| lv_iv_imm_output | TYPE BOOLE_D, " SPACE | |||
| lv_iv_dbcon | TYPE DBCON_NAME, " SPACE | |||
| lt_it_arsel | TYPE STANDARD TABLE OF RNG_ARCHIV, " | |||
| lv_i_disvar | TYPE KAEP_DISVARIANT_KEY, " | |||
| lv_i_value_type | TYPE TKA09-VALUTYP, " '0' | |||
| lv_i_actual_version | TYPE TKA09-VERSN, " '000' | |||
| lv_i_update | TYPE C, " SPACE | |||
| lv_i_shownozero | TYPE KAEP_SETT-SHOWNOZERO, " | |||
| lv_i_online_maxsel | TYPE KAEP_SETT-MAXSEL, " 5000 | |||
| lv_i_usedb | TYPE DTINP-XUSEAR. " 'X' |
|   CALL FUNCTION 'PS05_PROJECT_LINE_ITEM' "NOTRANSL: Selektion der Objekte und Aufruf des Einzelpostentools |
| EXPORTING | ||
| I_REPID | = lv_i_repid | |
| I_USEAR | = lv_i_usear | |
| I_AROBJ | = lv_i_arobj | |
| I_CALLED | = lv_i_called | |
| IT_WRTTP | = lv_it_wrttp | |
| IT_FREE_SELECTION | = lv_it_free_selection | |
| IT_FREE_SELECTION_RANGES | = lv_it_free_selection_ranges | |
| I_SHOWALL | = lv_i_showall | |
| IV_USE_HANA | = lv_iv_use_hana | |
| IV_GROUP_OBJ | = lv_iv_group_obj | |
| IV_TREE_DISPLAY | = lv_iv_tree_display | |
| I_HANDLE | = lv_i_handle | |
| IV_IMM_OUTPUT | = lv_iv_imm_output | |
| IV_DBCON | = lv_iv_dbcon | |
| I_DISVAR | = lv_i_disvar | |
| I_VALUE_TYPE | = lv_i_value_type | |
| I_ACTUAL_VERSION | = lv_i_actual_version | |
| I_UPDATE | = lv_i_update | |
| I_SHOWNOZERO | = lv_i_shownozero | |
| I_ONLINE_MAXSEL | = lv_i_online_maxsel | |
| I_USEDB | = lv_i_usedb | |
| TABLES | ||
| IT_COSEL | = lt_it_cosel | |
| IT_RSTHIE | = lt_it_rsthie | |
| IT_ARSEL | = lt_it_arsel | |
| . " PS05_PROJECT_LINE_ITEM | ||
ABAP code using 7.40 inline data declarations to call FM PS05_PROJECT_LINE_ITEM
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 REPID FROM SY INTO @DATA(ld_i_repid). | ||||
| "SELECT single XUSEAR FROM DTINP INTO @DATA(ld_i_usear). | ||||
| DATA(ld_i_usear) | = ' '. | |||
| "SELECT single OBJECT FROM ARCH_OBJ INTO @DATA(ld_i_arobj). | ||||
| DATA(ld_i_called) | = ' '. | |||
| DATA(ld_iv_use_hana) | = ' '. | |||
| DATA(ld_iv_group_obj) | = ' '. | |||
| DATA(ld_iv_tree_display) | = ' '. | |||
| DATA(ld_i_handle) | = 3000. | |||
| DATA(ld_iv_imm_output) | = ' '. | |||
| DATA(ld_iv_dbcon) | = ' '. | |||
| "SELECT single VALUTYP FROM TKA09 INTO @DATA(ld_i_value_type). | ||||
| DATA(ld_i_value_type) | = '0'. | |||
| "SELECT single VERSN FROM TKA09 INTO @DATA(ld_i_actual_version). | ||||
| DATA(ld_i_actual_version) | = '000'. | |||
| DATA(ld_i_update) | = ' '. | |||
| "SELECT single SHOWNOZERO FROM KAEP_SETT INTO @DATA(ld_i_shownozero). | ||||
| "SELECT single MAXSEL FROM KAEP_SETT INTO @DATA(ld_i_online_maxsel). | ||||
| DATA(ld_i_online_maxsel) | = 5000. | |||
| "SELECT single XUSEAR FROM DTINP INTO @DATA(ld_i_usedb). | ||||
| DATA(ld_i_usedb) | = 'X'. | |||
Search for further information about these or an SAP related objects