SAP /SAPAPO/PT_USER_SETT_BUFFER Function Module for Working with User Settings Buffer
/SAPAPO/PT_USER_SETT_BUFFER is a standard /sapapo/pt user sett buffer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Working with User Settings Buffer 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 /sapapo/pt user sett buffer FM, simply by entering the name /SAPAPO/PT_USER_SETT_BUFFER into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/RRP_PT_USER
Program Name: /SAPAPO/SAPLRRP_PT_USER
Main Program: /SAPAPO/SAPLRRP_PT_USER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/PT_USER_SETT_BUFFER 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 '/SAPAPO/PT_USER_SETT_BUFFER'"Working with User Settings Buffer.
EXPORTING
IV_PT_USAGE = "Anwendung im PP/DS
* IV_PTUCVIS = "Set buffer - Userparameter Produktplantafel: C.L chart User Parameters
* IV_PTUTCOL = "Set buffer - Userparameter Produktplantafel - Spalten im Navigationsbaum
* IV_PTUSORT = "Set buffer - Userparameter Produktplantafel - Sortierkriterien
* IV_PTUSRROW = "User Parameters for Product Plng Table - Rows in Stor Res C
* IV_PROFIL_ID = "Master Profile
* IV_UNAME = SY-UNAME "R/3-System, Anmeldename des Benutzers
* IV_PTCALL = "Set buffer
* IV_PTUALL = "Set buffer - Userparameter Produktplantafel - allgemeine Einstellungen
* IV_PTUSCR = "Set buffer - Userparameter Produktplantafel - Teilbildauswahl
* IV_PTUDYN = "Set buffer - Userparameter Produktplantafel - Teilbildangebot
* IV_PTUPROW = "Set buffer - Userparameter Produktplantafel - Zeilen im Produktgrid
* IV_PTUPQUA = "Set buffer - Userparameter Produktplantafel: Mengendarstellung
IMPORTING
EV_PTCALL = "Get buffer - Cust: Produktplantafel - Gesamtprofil (Detail)
EV_PTUSRROW = "User Parameters for Product Plng Table - Rows in Stor Res C
EV_PTUALL = "Get buffer - Userparameter Produktplantafel - allgemeine Einstellungen
EV_PTUSCR = "Get buffer - Userparameter Produktplantafel - Teilbildauswahl
EV_PTUDYN = "Get buffer - Userparameter Produktplantafel - Teilbildangebot
EV_PTUPROW = "Get buffer - Userparameter Produktplantafel - Zeilen im Produktgrid
EV_PTUPQUA = "Get buffer - Userparameter Produktplantafel: Mengendarstellung
EV_PTUCVIS = "Get buffer - Userparameter Produktplantafel: C.L Chart
EV_PTUTCOL = "Get buffer - Userparameter Produktplantafel - Spalten im Navigationsbaum
EV_PTUSORT = "Get buffer - Userparameter Produktplantafel - Sortierkriterien
EXCEPTIONS
NOTFOUND = 1
IMPORTING Parameters details for /SAPAPO/PT_USER_SETT_BUFFER
IV_PT_USAGE - Anwendung im PP/DS
Data type: /SAPAPO/PT_USAGEOptional: No
Call by Reference: Yes
IV_PTUCVIS - Set buffer - Userparameter Produktplantafel: C.L chart User Parameters
Data type: /SAPAPO/PTUCVIS_TABOptional: Yes
Call by Reference: Yes
IV_PTUTCOL - Set buffer - Userparameter Produktplantafel - Spalten im Navigationsbaum
Data type: /SAPAPO/PTUTCOL_TABOptional: Yes
Call by Reference: Yes
IV_PTUSORT - Set buffer - Userparameter Produktplantafel - Sortierkriterien
Data type: /SAPAPO/PTUSORT_TABOptional: Yes
Call by Reference: Yes
IV_PTUSRROW - User Parameters for Product Plng Table - Rows in Stor Res C
Data type: /SAPAPO/PTUSRROW_TABOptional: Yes
Call by Reference: Yes
IV_PROFIL_ID - Master Profile
Data type: /SAPAPO/PT_PROFIL_IDOptional: Yes
Call by Reference: Yes
IV_UNAME - R/3-System, Anmeldename des Benutzers
Data type: SYUNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_PTCALL - Set buffer
Data type: /SAPAPO/PTCALL1Optional: Yes
Call by Reference: Yes
IV_PTUALL - Set buffer - Userparameter Produktplantafel - allgemeine Einstellungen
Data type: /SAPAPO/PTUALLOptional: Yes
Call by Reference: Yes
IV_PTUSCR - Set buffer - Userparameter Produktplantafel - Teilbildauswahl
Data type: /SAPAPO/PTUSCR_TABOptional: Yes
Call by Reference: Yes
IV_PTUDYN - Set buffer - Userparameter Produktplantafel - Teilbildangebot
Data type: /SAPAPO/PTUDYN_TABOptional: Yes
Call by Reference: Yes
IV_PTUPROW - Set buffer - Userparameter Produktplantafel - Zeilen im Produktgrid
Data type: /SAPAPO/PTUPROW_TABOptional: Yes
Call by Reference: Yes
IV_PTUPQUA - Set buffer - Userparameter Produktplantafel: Mengendarstellung
Data type: /SAPAPO/PTUPQUA_TABOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SAPAPO/PT_USER_SETT_BUFFER
EV_PTCALL - Get buffer - Cust: Produktplantafel - Gesamtprofil (Detail)
Data type: /SAPAPO/PTCALL1Optional: No
Call by Reference: Yes
EV_PTUSRROW - User Parameters for Product Plng Table - Rows in Stor Res C
Data type: /SAPAPO/PTUSRROW_TABOptional: No
Call by Reference: Yes
EV_PTUALL - Get buffer - Userparameter Produktplantafel - allgemeine Einstellungen
Data type: /SAPAPO/PTUALLOptional: No
Call by Reference: Yes
EV_PTUSCR - Get buffer - Userparameter Produktplantafel - Teilbildauswahl
Data type: /SAPAPO/PTUSCR_TABOptional: No
Call by Reference: Yes
EV_PTUDYN - Get buffer - Userparameter Produktplantafel - Teilbildangebot
Data type: /SAPAPO/PTUDYN_TABOptional: No
Call by Reference: Yes
EV_PTUPROW - Get buffer - Userparameter Produktplantafel - Zeilen im Produktgrid
Data type: /SAPAPO/PTUPROW_TABOptional: No
Call by Reference: Yes
EV_PTUPQUA - Get buffer - Userparameter Produktplantafel: Mengendarstellung
Data type: /SAPAPO/PTUPQUA_TABOptional: No
Call by Reference: Yes
EV_PTUCVIS - Get buffer - Userparameter Produktplantafel: C.L Chart
Data type: /SAPAPO/PTUCVIS_TABOptional: No
Call by Reference: Yes
EV_PTUTCOL - Get buffer - Userparameter Produktplantafel - Spalten im Navigationsbaum
Data type: /SAPAPO/PTUTCOL_TABOptional: No
Call by Reference: Yes
EV_PTUSORT - Get buffer - Userparameter Produktplantafel - Sortierkriterien
Data type: /SAPAPO/PTUSORT_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOTFOUND - Record not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for /SAPAPO/PT_USER_SETT_BUFFER 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_notfound | TYPE STRING, " | |||
| lv_ev_ptcall | TYPE /SAPAPO/PTCALL1, " | |||
| lv_iv_pt_usage | TYPE /SAPAPO/PT_USAGE, " | |||
| lv_iv_ptucvis | TYPE /SAPAPO/PTUCVIS_TAB, " | |||
| lv_ev_ptusrrow | TYPE /SAPAPO/PTUSRROW_TAB, " | |||
| lv_iv_ptutcol | TYPE /SAPAPO/PTUTCOL_TAB, " | |||
| lv_iv_ptusort | TYPE /SAPAPO/PTUSORT_TAB, " | |||
| lv_iv_ptusrrow | TYPE /SAPAPO/PTUSRROW_TAB, " | |||
| lv_ev_ptuall | TYPE /SAPAPO/PTUALL, " | |||
| lv_iv_profil_id | TYPE /SAPAPO/PT_PROFIL_ID, " | |||
| lv_iv_uname | TYPE SYUNAME, " SY-UNAME | |||
| lv_ev_ptuscr | TYPE /SAPAPO/PTUSCR_TAB, " | |||
| lv_ev_ptudyn | TYPE /SAPAPO/PTUDYN_TAB, " | |||
| lv_iv_ptcall | TYPE /SAPAPO/PTCALL1, " | |||
| lv_iv_ptuall | TYPE /SAPAPO/PTUALL, " | |||
| lv_ev_ptuprow | TYPE /SAPAPO/PTUPROW_TAB, " | |||
| lv_iv_ptuscr | TYPE /SAPAPO/PTUSCR_TAB, " | |||
| lv_ev_ptupqua | TYPE /SAPAPO/PTUPQUA_TAB, " | |||
| lv_iv_ptudyn | TYPE /SAPAPO/PTUDYN_TAB, " | |||
| lv_ev_ptucvis | TYPE /SAPAPO/PTUCVIS_TAB, " | |||
| lv_ev_ptutcol | TYPE /SAPAPO/PTUTCOL_TAB, " | |||
| lv_iv_ptuprow | TYPE /SAPAPO/PTUPROW_TAB, " | |||
| lv_ev_ptusort | TYPE /SAPAPO/PTUSORT_TAB, " | |||
| lv_iv_ptupqua | TYPE /SAPAPO/PTUPQUA_TAB. " |
|   CALL FUNCTION '/SAPAPO/PT_USER_SETT_BUFFER' "Working with User Settings Buffer |
| EXPORTING | ||
| IV_PT_USAGE | = lv_iv_pt_usage | |
| IV_PTUCVIS | = lv_iv_ptucvis | |
| IV_PTUTCOL | = lv_iv_ptutcol | |
| IV_PTUSORT | = lv_iv_ptusort | |
| IV_PTUSRROW | = lv_iv_ptusrrow | |
| IV_PROFIL_ID | = lv_iv_profil_id | |
| IV_UNAME | = lv_iv_uname | |
| IV_PTCALL | = lv_iv_ptcall | |
| IV_PTUALL | = lv_iv_ptuall | |
| IV_PTUSCR | = lv_iv_ptuscr | |
| IV_PTUDYN | = lv_iv_ptudyn | |
| IV_PTUPROW | = lv_iv_ptuprow | |
| IV_PTUPQUA | = lv_iv_ptupqua | |
| IMPORTING | ||
| EV_PTCALL | = lv_ev_ptcall | |
| EV_PTUSRROW | = lv_ev_ptusrrow | |
| EV_PTUALL | = lv_ev_ptuall | |
| EV_PTUSCR | = lv_ev_ptuscr | |
| EV_PTUDYN | = lv_ev_ptudyn | |
| EV_PTUPROW | = lv_ev_ptuprow | |
| EV_PTUPQUA | = lv_ev_ptupqua | |
| EV_PTUCVIS | = lv_ev_ptucvis | |
| EV_PTUTCOL | = lv_ev_ptutcol | |
| EV_PTUSORT | = lv_ev_ptusort | |
| EXCEPTIONS | ||
| NOTFOUND = 1 | ||
| . " /SAPAPO/PT_USER_SETT_BUFFER | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/PT_USER_SETT_BUFFER
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.| DATA(ld_iv_uname) | = SY-UNAME. | |||
Search for further information about these or an SAP related objects