SAP PPTST_SAVE Function Module for Save mechanism
PPTST_SAVE is a standard pptst save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save mechanism 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 pptst save FM, simply by entering the name PPTST_SAVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: PPTST
Program Name: SAPLPPTST
Main Program: SAPLPPTST
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function PPTST_SAVE 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 'PPTST_SAVE'"Save mechanism.
EXPORTING
IM_PPECNTL = "
CHANGING
* T_PNODID = "
* T_PRELID = "
* T_PRELIDH = "
* T_PRTST = "
* T_PNODTX = "
* T_PNTST = "
* T_POSVID = "
* T_POSVTX = "
* T_PVTST = "
* T_PATST = "
* T_PALTTX = "
* T_PALTID = "
IMPORTING Parameters details for PPTST_SAVE
IM_PPECNTL -
Data type: PPET_PPECNTLOptional: No
Call by Reference: Yes
CHANGING Parameters details for PPTST_SAVE
T_PNODID -
Data type: PPET_PNODID_TABOptional: Yes
Call by Reference: Yes
T_PRELID -
Data type: PPET_PRELID_TABOptional: Yes
Call by Reference: Yes
T_PRELIDH -
Data type: PPET_PRELIDH_TABOptional: Yes
Call by Reference: Yes
T_PRTST -
Data type: PPTST_PRTST_TABOptional: Yes
Call by Reference: Yes
T_PNODTX -
Data type: PPET_PNODTX_TABOptional: Yes
Call by Reference: Yes
T_PNTST -
Data type: PPTST_PNTST_TABOptional: Yes
Call by Reference: Yes
T_POSVID -
Data type: PPET_POSVID_TABOptional: Yes
Call by Reference: Yes
T_POSVTX -
Data type: PPET_POSVTX_TABOptional: Yes
Call by Reference: Yes
T_PVTST -
Data type: PPTST_PVTST_TABOptional: Yes
Call by Reference: Yes
T_PATST -
Data type: PPTST_PATST_TABOptional: Yes
Call by Reference: Yes
T_PALTTX -
Data type: PPET_PALTTX_TABOptional: Yes
Call by Reference: Yes
T_PALTID -
Data type: PPET_PALTID_TABOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for PPTST_SAVE 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_t_pnodid | TYPE PPET_PNODID_TAB, " | |||
lv_im_ppecntl | TYPE PPET_PPECNTL, " | |||
lv_t_prelid | TYPE PPET_PRELID_TAB, " | |||
lv_t_prelidh | TYPE PPET_PRELIDH_TAB, " | |||
lv_t_prtst | TYPE PPTST_PRTST_TAB, " | |||
lv_t_pnodtx | TYPE PPET_PNODTX_TAB, " | |||
lv_t_pntst | TYPE PPTST_PNTST_TAB, " | |||
lv_t_posvid | TYPE PPET_POSVID_TAB, " | |||
lv_t_posvtx | TYPE PPET_POSVTX_TAB, " | |||
lv_t_pvtst | TYPE PPTST_PVTST_TAB, " | |||
lv_t_patst | TYPE PPTST_PATST_TAB, " | |||
lv_t_palttx | TYPE PPET_PALTTX_TAB, " | |||
lv_t_paltid | TYPE PPET_PALTID_TAB. " |
  CALL FUNCTION 'PPTST_SAVE' "Save mechanism |
EXPORTING | ||
IM_PPECNTL | = lv_im_ppecntl | |
CHANGING | ||
T_PNODID | = lv_t_pnodid | |
T_PRELID | = lv_t_prelid | |
T_PRELIDH | = lv_t_prelidh | |
T_PRTST | = lv_t_prtst | |
T_PNODTX | = lv_t_pnodtx | |
T_PNTST | = lv_t_pntst | |
T_POSVID | = lv_t_posvid | |
T_POSVTX | = lv_t_posvtx | |
T_PVTST | = lv_t_pvtst | |
T_PATST | = lv_t_patst | |
T_PALTTX | = lv_t_palttx | |
T_PALTID | = lv_t_paltid | |
. " PPTST_SAVE |
ABAP code using 7.40 inline data declarations to call FM PPTST_SAVE
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.Search for further information about these or an SAP related objects