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

Changing attributes of push button dynamically

Former Member
0 Likes
860

Hi guys,

I have a pushbutton, how can i change its attributes in position coordinates dynamically? is it possible?

OR

how to subsitute a pushbutton dynamically with another pushbutton?

example:

button1 will be swapped with button2.

for now, i only can make them visible and invisible.. but i cant put them at the same spot together.

does anyone have some suggestions? thank you very much.

Hi guys,

I have a pushbutton, how can i change its attributes in position coordinates dynamically? is it possible?

OR

how to subsitute a pushbutton dynamically with another pushbutton?

example:

button1 will be swapped with button2.

for now, i only can make them visible and invisible.. but i cant put them at the same spot together.

does anyone have some suggestions? thank you very much.

5 REPLIES 5
Read only

Former Member
0 Likes
817

Hi,

Overlaping pushbuttons in not possible. I think you are right in one way. You can put both the buttons adjucent to each other and make them visible as and when needed.

On based on condition change the functionality of the push-botton... i.e use your conditions along with Function code.

Darshan

Read only

0 Likes
817

hi darshan,

can you explain in more detail? because i only managed to make the buttons like this:

IF sy-ucomm = 'ACPT' AND NOT ld_ran_aufnr IS INITIAL.

LOOP AT SCREEN.

IF screen-name = 'MUL_B1'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

IF screen-name = 'MUL_B1A'.

screen-invisible = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

button mul_b1 is next to mul_b1a.. if possible is there any other way to make it almost like overlapping? like swapping? or change its coordinates?

thanks

Read only

0 Likes
817

one more way is , based on the conditions call 2 diff PF-status ?

or make use of EXCLUDINFG Fcodes along with PF status.

Regards

Prabhu

Read only

0 Likes
817

i thought that pf-statuses are about menus and toolbars?

Read only

Former Member
0 Likes
817

Hi,

It seems that, It is not possible to position coordinates dynamically.

If you want to behave pushbutton differently that you can mangae with some flag in program, that will decide runtime behaviour of that pushbutton.

I dont know your exact requirement, pl tell me in brief so that we may get some solution.

Anyway, try to think diffectent LOGIC....

Jogdand M B