Application Development 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: 

Change Dialog Screen Field Position Dynamically

eyal_alsheikh
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hi

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

Max

5 REPLIES 5

Former Member
0 Kudos

Hi

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

Max

Former Member
0 Kudos

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.

former_member188685
Active Contributor
0 Kudos

Hi,

what exactly you are looking for..

you can't set the screen field posititons dynamically.

regards

vijay

Former Member
0 Kudos

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

eyal_alsheikh
Active Participant
0 Kudos

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.