SAP PD_STARTUP_OPTIONS_DEFINE Function Module for Set start parameter









PD_STARTUP_OPTIONS_DEFINE is a standard pd startup options define SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Set start parameter 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 pd startup options define FM, simply by entering the name PD_STARTUP_OPTIONS_DEFINE into the relevant SAP transaction such as SE37 or SE38.

Function Group: PDSU
Program Name: SAPLPDSU
Main Program:
Appliation area: H
Release date: 23-Jun-1995
Mode(Normal, Remote etc): Normal Function Module
Update:



Function PD_STARTUP_OPTIONS_DEFINE 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 'PD_STARTUP_OPTIONS_DEFINE'"Set start parameter
EXPORTING
* _ADDSHAPES = ' ' "'X': Activate more object shapes
* _TBOXPOSY = "Vertical position of the toolbox
* _TBOXSIZEX = "Width of the toolbox
* _TBOXSIZEY = "Height of the toolbox
* _TBOXTITLE = "Toolbox: Window title
* _THELPTEXT = "Toolbox: Text for docu button
* _APPLTITLE = "Window title
* _TOOLSTITLE = "Toolbox: Title for tool list
* _TSETSTITLE = "Toolbox: Title for tool groups
* _WINID = "Standard dialog parameter
* _WINPOSX = "Horizontal window position
* _EDITABLE = 'X' "'X': Structure can be changed
* _WINPOSY = "Vertical window position
* _WINSIZEX = "Window width
* _WINSIZEY = "Window height
* _VIEWTITLE = "View heading
* _EXTACTBAR = ' ' "'X': Extend the menu bar
* _PATTERN = "Comparison sample
* _PWDID = "Standard dialog parameter
* _STATUS = '1' "Standard dialog parameter (=STAT)
* _SUPER = ' ' "Standard dialog parameter
* _TBOXOPEN = ' ' "'X': Toolbox is opened at the start
* _TBOXPOSX = "Horizontal position of the tool box
.



IMPORTING Parameters details for PD_STARTUP_OPTIONS_DEFINE

_ADDSHAPES - 'X': Activate more object shapes

Data type: GSUX-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

_TBOXPOSY - Vertical position of the toolbox

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

_TBOXSIZEX - Width of the toolbox

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

_TBOXSIZEY - Height of the toolbox

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

_TBOXTITLE - Toolbox: Window title

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

_THELPTEXT - Toolbox: Text for docu button

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

_APPLTITLE - Window title

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

_TOOLSTITLE - Toolbox: Title for tool list

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

_TSETSTITLE - Toolbox: Title for tool groups

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

_WINID - Standard dialog parameter

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

_WINPOSX - Horizontal window position

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

_EDITABLE - 'X': Structure can be changed

Data type: GSUX-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

_WINPOSY - Vertical window position

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

_WINSIZEX - Window width

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

_WINSIZEY - Window height

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

_VIEWTITLE - View heading

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

_EXTACTBAR - 'X': Extend the menu bar

Data type: GSUX-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

_PATTERN - Comparison sample

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

_PWDID - Standard dialog parameter

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

_STATUS - Standard dialog parameter (=STAT)

Data type: GSUX-TYPE
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

_SUPER - Standard dialog parameter

Data type: GSUX-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

_TBOXOPEN - 'X': Toolbox is opened at the start

Data type: GSUX-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

_TBOXPOSX - Horizontal position of the tool box

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

Copy and paste ABAP code example for PD_STARTUP_OPTIONS_DEFINE 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__addshapes  TYPE GSUX-FLAG, "   ' '
lv__tboxposy  TYPE TGSUX-TBPOSY, "   
lv__tboxsizex  TYPE TGSUX-TBSIZEX, "   
lv__tboxsizey  TYPE TGSUX-TBSIZEY, "   
lv__tboxtitle  TYPE GSUX-MTITLE, "   
lv__thelptext  TYPE GSUX-STITLE, "   
lv__appltitle  TYPE GSUX-LTITLE, "   
lv__toolstitle  TYPE GSUX-MTITLE, "   
lv__tsetstitle  TYPE GSUX-MTITLE, "   
lv__winid  TYPE GSUX-APPLID, "   
lv__winposx  TYPE TGSUX-WINPOSX, "   
lv__editable  TYPE GSUX-FLAG, "   'X'
lv__winposy  TYPE TGSUX-WINPOSY, "   
lv__winsizex  TYPE TGSUX-WINSIZEX, "   
lv__winsizey  TYPE TGSUX-WINSIZEY, "   
lv__viewtitle  TYPE GSUX-LTITLE, "   
lv__extactbar  TYPE GSUX-FLAG, "   ' '
lv__pattern  TYPE GSUOBJC-OBJECT, "   
lv__pwdid  TYPE GSUX-APPLID, "   
lv__status  TYPE GSUX-TYPE, "   '1'
lv__super  TYPE GSUX-FLAG, "   ' '
lv__tboxopen  TYPE GSUX-FLAG, "   ' '
lv__tboxposx  TYPE TGSUX-TBPOSX. "   

  CALL FUNCTION 'PD_STARTUP_OPTIONS_DEFINE'  "Set start parameter
    EXPORTING
         _ADDSHAPES = lv__addshapes
         _TBOXPOSY = lv__tboxposy
         _TBOXSIZEX = lv__tboxsizex
         _TBOXSIZEY = lv__tboxsizey
         _TBOXTITLE = lv__tboxtitle
         _THELPTEXT = lv__thelptext
         _APPLTITLE = lv__appltitle
         _TOOLSTITLE = lv__toolstitle
         _TSETSTITLE = lv__tsetstitle
         _WINID = lv__winid
         _WINPOSX = lv__winposx
         _EDITABLE = lv__editable
         _WINPOSY = lv__winposy
         _WINSIZEX = lv__winsizex
         _WINSIZEY = lv__winsizey
         _VIEWTITLE = lv__viewtitle
         _EXTACTBAR = lv__extactbar
         _PATTERN = lv__pattern
         _PWDID = lv__pwdid
         _STATUS = lv__status
         _SUPER = lv__super
         _TBOXOPEN = lv__tboxopen
         _TBOXPOSX = lv__tboxposx
. " PD_STARTUP_OPTIONS_DEFINE




ABAP code using 7.40 inline data declarations to call FM PD_STARTUP_OPTIONS_DEFINE

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 FLAG FROM GSUX INTO @DATA(ld__addshapes).
DATA(ld__addshapes) = ' '.
 
"SELECT single TBPOSY FROM TGSUX INTO @DATA(ld__tboxposy).
 
"SELECT single TBSIZEX FROM TGSUX INTO @DATA(ld__tboxsizex).
 
"SELECT single TBSIZEY FROM TGSUX INTO @DATA(ld__tboxsizey).
 
"SELECT single MTITLE FROM GSUX INTO @DATA(ld__tboxtitle).
 
"SELECT single STITLE FROM GSUX INTO @DATA(ld__thelptext).
 
"SELECT single LTITLE FROM GSUX INTO @DATA(ld__appltitle).
 
"SELECT single MTITLE FROM GSUX INTO @DATA(ld__toolstitle).
 
"SELECT single MTITLE FROM GSUX INTO @DATA(ld__tsetstitle).
 
"SELECT single APPLID FROM GSUX INTO @DATA(ld__winid).
 
"SELECT single WINPOSX FROM TGSUX INTO @DATA(ld__winposx).
 
"SELECT single FLAG FROM GSUX INTO @DATA(ld__editable).
DATA(ld__editable) = 'X'.
 
"SELECT single WINPOSY FROM TGSUX INTO @DATA(ld__winposy).
 
"SELECT single WINSIZEX FROM TGSUX INTO @DATA(ld__winsizex).
 
"SELECT single WINSIZEY FROM TGSUX INTO @DATA(ld__winsizey).
 
"SELECT single LTITLE FROM GSUX INTO @DATA(ld__viewtitle).
 
"SELECT single FLAG FROM GSUX INTO @DATA(ld__extactbar).
DATA(ld__extactbar) = ' '.
 
"SELECT single OBJECT FROM GSUOBJC INTO @DATA(ld__pattern).
 
"SELECT single APPLID FROM GSUX INTO @DATA(ld__pwdid).
 
"SELECT single TYPE FROM GSUX INTO @DATA(ld__status).
DATA(ld__status) = '1'.
 
"SELECT single FLAG FROM GSUX INTO @DATA(ld__super).
DATA(ld__super) = ' '.
 
"SELECT single FLAG FROM GSUX INTO @DATA(ld__tboxopen).
DATA(ld__tboxopen) = ' '.
 
"SELECT single TBPOSX FROM TGSUX INTO @DATA(ld__tboxposx).
 


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!