Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic screen size

Former Member
0 Likes
2,987

Hi!

Is there any method to adjust screen size according to the resolution of the screen.

Thanks!

Lluís i Montse

1 ACCEPTED SOLUTION
Read only

Former Member
1,932

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.

5 REPLIES 5
Read only

Former Member
0 Likes
1,932

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

Read only

Former Member
1,933

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.

Read only

0 Likes
1,932

Hello!

Thanks. But another question, it is possible to define the default screen size?

Thanks a lot!

Read only

0 Likes
1,932

Hi,

CTU_PARAMS-DEFSIZE = 'X' is nothing but setting Default screen size.

Please Dont forget to Reward for the useful Answers.

Rewards,

Raj.

Read only

0 Likes
1,932

Hi,

CTU_PARAMS(structure)--

DEFSIZE CTU_DEFSZE CHAR 1 0 Default screen size for CALL TRANSACTION USING...

Regards,

Shiva Kumar