2008 May 15 7:34 AM
Hi!
Is there any method to adjust screen size according to the resolution of the screen.
Thanks!
Lluís i Montse
2008 May 15 7:36 AM
Hi,
For BDC we Use CTU_params for adjusting the Screen resolution.
Check table CTU_PARAMS and field DEFSIZE for setting fixed line of table control.
For CALL TRANSACTION
CALL TRANSACTION 'VA01' USING it_bdcdata
OPTIONS FROM OPT
MESSAGES INTO it_mesg.
opt of type ctu_params.
WA_CTU_PARAMS-DISMODE = 'N'. "no screen mode
WA_CTU_PARAMS-UPDMODE = 'S'. "synchronus update
WA_CTU_PARAMS-NOBINPT = 'X'.
WA_CTU_PARAMS-NOBIEND = 'X'.
WA_CTU_PARAMS-DEFSIZE = 'X'. "Default size
Default size will play good role in terms of resoultion. in one system in table control you can see 10rows, but in others system it will show 20 records. it depends on resoultion. but when you set the default size then it will take same (default screen size) in all the systems when you run BDC.
In session method under BDC_INSERT,you need to handle
CTU_PARAMS for setting screen resolution
For ALV Reports follow the Procedure Given Below
Try the following for your screen which holds the container.
Set the screen with and height to the max. extent possible. (screen attributes)
place the custom controller on the screen and expand it to the full screen width and height.
Set the custom control attributes:
by selecting the check box for resizing vertical, horizontal and set the min lines and min columns to 1.
Regards,
Raj.
2008 May 15 7:36 AM
Hi,
Suppose if,you are using in BDC,CTU_PARAMS can work for this(i.e Screen resolution).
In session,bdc_insert--ctu_params,
in call transaction--update mode.
1.
CTU_PARAMS is a structure used to control processing of CALL_TRANSACTION.
CALL TRANSACTION (...) OPTIONS FROM opt.
Look at CALL TRANSACTION - Calling a Transaction or other threads like CTU_PARAMS
Generally CTU_PARAMS Is used to avoid unnecessary screens,even though they will not appear in the recording.i also send a sample code for that to avoid this problem check it once ok..
we have to add the below code in ur bdc program at the begin of ur code.
SYNTAX AND CODE:
-
For Elimination Of Illegal Screens
-
DATA: opt TYPE ctu_params.
START-OF-SELECTION.
opt-nobinpt = 'X'.
opt-defsize = 'X'.
opt-updmode = 'A'.
Regards,
Shiva Kumar
2008 May 15 7:36 AM
Hi,
For BDC we Use CTU_params for adjusting the Screen resolution.
Check table CTU_PARAMS and field DEFSIZE for setting fixed line of table control.
For CALL TRANSACTION
CALL TRANSACTION 'VA01' USING it_bdcdata
OPTIONS FROM OPT
MESSAGES INTO it_mesg.
opt of type ctu_params.
WA_CTU_PARAMS-DISMODE = 'N'. "no screen mode
WA_CTU_PARAMS-UPDMODE = 'S'. "synchronus update
WA_CTU_PARAMS-NOBINPT = 'X'.
WA_CTU_PARAMS-NOBIEND = 'X'.
WA_CTU_PARAMS-DEFSIZE = 'X'. "Default size
Default size will play good role in terms of resoultion. in one system in table control you can see 10rows, but in others system it will show 20 records. it depends on resoultion. but when you set the default size then it will take same (default screen size) in all the systems when you run BDC.
In session method under BDC_INSERT,you need to handle
CTU_PARAMS for setting screen resolution
For ALV Reports follow the Procedure Given Below
Try the following for your screen which holds the container.
Set the screen with and height to the max. extent possible. (screen attributes)
place the custom controller on the screen and expand it to the full screen width and height.
Set the custom control attributes:
by selecting the check box for resizing vertical, horizontal and set the min lines and min columns to 1.
Regards,
Raj.
2008 May 15 8:15 AM
Hello!
Thanks. But another question, it is possible to define the default screen size?
Thanks a lot!
2008 May 15 8:24 AM
Hi,
CTU_PARAMS-DEFSIZE = 'X' is nothing but setting Default screen size.
Please Dont forget to Reward for the useful Answers.
Rewards,
Raj.
2008 May 15 8:26 AM
Hi,
CTU_PARAMS(structure)--
DEFSIZE CTU_DEFSZE CHAR 1 0 Default screen size for CALL TRANSACTION USING...
Regards,
Shiva Kumar