12-28-2005 3:52 PM
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
12-28-2005 4:02 PM
Hi
the position of a field is static in the screen, you can't change it while program is working.
Max
12-28-2005 4:02 PM
Hi
the position of a field is static in the screen, you can't change it while program is working.
Max
12-29-2005 4:48 AM
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.
12-29-2005 4:55 AM
Hi,
what exactly you are looking for..
you can't set the screen field posititons dynamically.
regards
vijay
12-29-2005 5:00 AM
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
12-29-2005 9:05 AM
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.