on 01-15-2010 3:00 PM
Dear all,
why is the following not working:
CALL METHOD lo_window_manager->create_external_window( EXPORTING url = l_url
RECEIVING window = lo_window ).
lo_window->SET_WINDOW_SIZE( width = '100%' height = '100%' ).
lo_window->open( ).
I expect the opening window to be full screen size. But it is not.
Width and Height are String. Values without percentage are accepted.
Has anyone got experience how this could be solved?
Many thanks!!
I am presuming that the system you are working is on Netweaver 7.0. The height and width parameters are ignored during the rendering of windows.
Netweaver EHP1 does consider these parameters during the rendering of the windows. Therefore you will need upgrade to EHP1 for NW 7.0 to open windows with 100% height and 100% width.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
refer this SAP online help :
http://help.sap.com/SAPHELP_nwmobile71/helpdata/EN/47/b8acd317302fe1e10000000a42189d/frameset.htm
It is not yet possible to change the size or position of a dialog box in the program code.
The following methods therefore do not have any effect:
IF_WD_WINDOW~SET_WINDOW_POSITION
IF_WD_WINDOW~SET_WINDOW_POSITION_CONTROL
IF_WD_WINDOW~SET_WINDOW_SIZE
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agreed the SAP documentation says that it's not possible to control the size of the window using if_wd_window->set_window_size( width = '100%' height = '100%' ).
We have recently upgraded from NW 7.0 to NW 7.01 and can confirm that using if_wd_window->set_window_size( width = '100%' height = '100%' ) does work. By default we had above code for all the windows in our programs in NW 7.0 and same caused lot of issues when we upgraded to EHP1. After upgrade all windows were opened with 100% width and 100% width without any reference to the number elements in the window or size of the elements. All the windows overlapped the previous view when opened. To stop this behavior we had to remove the code for setting the height and width.
We haven't tried with various sizes of the windows i.e. 40% or 50% but the 100% height and width does work in EHP1. May be there is a need to adjust the SAP Help documentation.
Regards
Rohit Chowdhary
User | Count |
---|---|
69 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.