cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding / Disabling window in SAPScript

Former Member
0 Kudos
934

Hi all,

I want to hide all windows on a sapscript, and show a text as 'Data not available' on a sapscript.

I have copied an SAP delivered SAPScript to a Z version, its original language was DE, now I want to disable all windows and display a text.

I would appreciate any help in this matter.

Thanks.

View Entire Topic
Will2
Explorer
0 Kudos

In case anyone is looking, this is how to remove a Window. Call just before the CLOSE_FORM function module:

CONSTANTS lc_page_windows(25) TYPE c VALUE '(SAPLSTXC)PAGE_WINDOWS[]'.
DATA: ls_page_windows TYPE itcth.
* =======================================================
ASSIGN (lc_page_windows) TO field-symbols(<fs_page_windows>).
IF <fs_page_windows> IS ASSIGNED.
	READ TABLE <fs_page_windows> INTO ls_page_windows WITH KEY tdwindow = 'window_name_here'.
	IF sy-subrc EQ 0.
		DELETE TABLE <fs_page_windows> FROM ls_page_windows.
	ENDIF.
ENDIF.