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

Change Dialog Screen Field Position Dynamically

eyal_alsheikh
Active Participant
0 Likes
1,477

Hi

Can I change screen field position at runtime?

I saw that in the SCREEN Structure there aren't any fields to set the position. Is there a Function Module or a Class to do that?

Thanks,

Eyal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
992

Hi

the position of a field is static in the screen, you can't change it while program is working.

Max

Hi

Can I change screen field position at runtime?

I saw that in the SCREEN Structure there aren't any fields to set the position. Is there a Function Module or a Class to do that?

Thanks,

Eyal

5 REPLIES 5
Read only

Former Member
0 Likes
993

Hi

the position of a field is static in the screen, you can't change it while program is working.

Max

Read only

Former Member
0 Likes
992

Hi Eyal,

Good Question.

1. R/3 abap does not allow this facility.

2. However, if we use a custom control /container,

then there one property LEFT, TOP,

which is avaialbe in the OO hierarchy.

CL_GUI_OBJECT 1

CL_GUI_CONTROL 2 <----


... CL_GUI_ALV_GRID, ETC. ETC.

3. This 2 has got this property

4. we can use like this.

CALL METHOD grid->set_top

EXPORTING

top = 1500

EXCEPTIONS

cntl_error = 1

OTHERS = 2.

5. I tried but i don't know why its not working.

regards,

amit m.

Read only

Former Member
0 Likes
992

Hi,

what exactly you are looking for..

you can't set the screen field posititons dynamically.

regards

vijay

Read only

Former Member
0 Likes
992

Hi ,

u can't change the screen field dynamically .

But what u can do is to have two field of same type in the screen and make one of then visible and other invisible...and during runtime u change the visible to invisible and invisible to visible.

Message was edited by: Asit Garg

Read only

eyal_alsheikh
Active Participant
0 Likes
992

Hi,

Thanks you all,

I need this in order to set a field position when I am using to add a Customer Field in EBP SRM.

In the EBP SRM I can add a screen field via appending it

to a structure but I can't control the field position.

I thought to handle the field position in a BADI at runtime.

Thanks,

Eyal.