SAP FORMPAINTER_GET_WINDOW_PROP_PW Function Module for SAPscript Form Painter: Get Size and Position of a Page Window
FORMPAINTER_GET_WINDOW_PROP_PW is a standard formpainter get window prop pw SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SAPscript Form Painter: Get Size and Position of a Page Window 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 formpainter get window prop pw FM, simply by entering the name FORMPAINTER_GET_WINDOW_PROP_PW into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNFP
Program Name: SAPLCNFP
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FORMPAINTER_GET_WINDOW_PROP_PW 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 'FORMPAINTER_GET_WINDOW_PROP_PW'"SAPscript Form Painter: Get Size and Position of a Page Window.
EXPORTING
WINDOW = "
PAGE = "
UNIT_LEFT = "
UNIT_TOP = "
UNIT_WIDTH = "
UNIT_HEIGHT = "
CPI = "
LPI = "
IMPORTING
LEFT = "
TOP = "
WIDTH = "
HEIGHT = "
EXCEPTIONS
WINDOW_NOT_FOUND = 1 CONTROL_ERROR = 2
IMPORTING Parameters details for FORMPAINTER_GET_WINDOW_PROP_PW
WINDOW -
Data type: ITCTH-TDWINDOWOptional: No
Call by Reference: No ( called with pass by value option)
PAGE -
Data type: ITCTH-TDPAGEOptional: No
Call by Reference: No ( called with pass by value option)
UNIT_LEFT -
Data type: ITCTH-TDWLEFTUOptional: No
Call by Reference: No ( called with pass by value option)
UNIT_TOP -
Data type: ITCTH-TDWTOPUOptional: No
Call by Reference: No ( called with pass by value option)
UNIT_WIDTH -
Data type: ITCTH-TDWWIDTHUOptional: No
Call by Reference: No ( called with pass by value option)
UNIT_HEIGHT -
Data type: ITCTH-TDWHEIGHTUOptional: No
Call by Reference: No ( called with pass by value option)
CPI -
Data type: ITCTA-TDCPIOptional: No
Call by Reference: No ( called with pass by value option)
LPI -
Data type: ITCTA-TDLPIOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FORMPAINTER_GET_WINDOW_PROP_PW
LEFT -
Data type: ITCTH-TDWLEFTOptional: No
Call by Reference: No ( called with pass by value option)
TOP -
Data type: ITCTH-TDWTOPOptional: No
Call by Reference: No ( called with pass by value option)
WIDTH -
Data type: ITCTH-TDWWIDTHOptional: No
Call by Reference: No ( called with pass by value option)
HEIGHT -
Data type: ITCTH-TDWHEIGHTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WINDOW_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONTROL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FORMPAINTER_GET_WINDOW_PROP_PW 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_left | TYPE ITCTH-TDWLEFT, " | |||
| lv_window | TYPE ITCTH-TDWINDOW, " | |||
| lv_window_not_found | TYPE ITCTH, " | |||
| lv_top | TYPE ITCTH-TDWTOP, " | |||
| lv_page | TYPE ITCTH-TDPAGE, " | |||
| lv_control_error | TYPE ITCTH, " | |||
| lv_width | TYPE ITCTH-TDWWIDTH, " | |||
| lv_unit_left | TYPE ITCTH-TDWLEFTU, " | |||
| lv_height | TYPE ITCTH-TDWHEIGHT, " | |||
| lv_unit_top | TYPE ITCTH-TDWTOPU, " | |||
| lv_unit_width | TYPE ITCTH-TDWWIDTHU, " | |||
| lv_unit_height | TYPE ITCTH-TDWHEIGHTU, " | |||
| lv_cpi | TYPE ITCTA-TDCPI, " | |||
| lv_lpi | TYPE ITCTA-TDLPI. " |
|   CALL FUNCTION 'FORMPAINTER_GET_WINDOW_PROP_PW' "SAPscript Form Painter: Get Size and Position of a Page Window |
| EXPORTING | ||
| WINDOW | = lv_window | |
| PAGE | = lv_page | |
| UNIT_LEFT | = lv_unit_left | |
| UNIT_TOP | = lv_unit_top | |
| UNIT_WIDTH | = lv_unit_width | |
| UNIT_HEIGHT | = lv_unit_height | |
| CPI | = lv_cpi | |
| LPI | = lv_lpi | |
| IMPORTING | ||
| LEFT | = lv_left | |
| TOP | = lv_top | |
| WIDTH | = lv_width | |
| HEIGHT | = lv_height | |
| EXCEPTIONS | ||
| WINDOW_NOT_FOUND = 1 | ||
| CONTROL_ERROR = 2 | ||
| . " FORMPAINTER_GET_WINDOW_PROP_PW | ||
ABAP code using 7.40 inline data declarations to call FM FORMPAINTER_GET_WINDOW_PROP_PW
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 TDWLEFT FROM ITCTH INTO @DATA(ld_left). | ||||
| "SELECT single TDWINDOW FROM ITCTH INTO @DATA(ld_window). | ||||
| "SELECT single TDWTOP FROM ITCTH INTO @DATA(ld_top). | ||||
| "SELECT single TDPAGE FROM ITCTH INTO @DATA(ld_page). | ||||
| "SELECT single TDWWIDTH FROM ITCTH INTO @DATA(ld_width). | ||||
| "SELECT single TDWLEFTU FROM ITCTH INTO @DATA(ld_unit_left). | ||||
| "SELECT single TDWHEIGHT FROM ITCTH INTO @DATA(ld_height). | ||||
| "SELECT single TDWTOPU FROM ITCTH INTO @DATA(ld_unit_top). | ||||
| "SELECT single TDWWIDTHU FROM ITCTH INTO @DATA(ld_unit_width). | ||||
| "SELECT single TDWHEIGHTU FROM ITCTH INTO @DATA(ld_unit_height). | ||||
| "SELECT single TDCPI FROM ITCTA INTO @DATA(ld_cpi). | ||||
| "SELECT single TDLPI FROM ITCTA INTO @DATA(ld_lpi). | ||||
Search for further information about these or an SAP related objects