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

SAPgui window size (+)

Former Member
0 Likes
1,427

Hello,

Is it possible to change SAPgui window size through ABAP program?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
915

Hi cyrill,

1. I don't think its possible.

2. The reason is that since r/3

is client-server based,

and the gui is client based,

3. so, all the settings of window size

will be manually

and not thru abap code.

regards,

amit m.

Hello,

Is it possible to change SAPgui window size through ABAP program?

6 REPLIES 6
Read only

Former Member
0 Likes
916

Hi cyrill,

1. I don't think its possible.

2. The reason is that since r/3

is client-server based,

and the gui is client based,

3. so, all the settings of window size

will be manually

and not thru abap code.

regards,

amit m.

Read only

0 Likes
915

hi,

That is not possible ... since gui is client-server based one. So through ABAP Code it is not possible.

Regards,

Santosh

Read only

Former Member
0 Likes
915

But we can start applications on the frontend, can't we? If so, we may try to call some Windows APIs, to change window size. These API calls might have been implemented in some SAP functions.

Read only

0 Likes
915

I'm not sure of this but worth a try:

YOu can use the class=>methodCL_GUI_FRONTEND_SERVICES=>ENVIRONMENT_SET_VARIABLE for setting the environment variables.

Regards,

Ravi

Read only

Former Member
0 Likes
915

Hi Cyrill,

somtime we use the AT LINE-SELECTION with on own Window:

WINDOW STARTING AT 50 10

ENDING AT 90 15.

OR in ALV with:

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = PROGNAME

IT_FIELDCAT = FIELDCAT

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

IT_EVENTS = EVENT

IT_EVENT_EXIT = EVENT_EXIT

<b> I_SCREEN_START_COLUMN = 20

I_SCREEN_START_LINE = 05

I_SCREEN_END_COLUMN = 110</b> I_SCREEN_END_LINE = LINE_ALV

TABLES

T_OUTTAB = IEQUZ

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

Is this what you need?

Regards, Dieter

Read only

0 Likes
915

Unfortunately, no.

I would like to resize existing SAPgui window. And that's the problem.