push button

Question:
Hi,
I creating a change button for a user dialog, when clicking on this button, the text field will change to editable. This is not function because i using the loop at screen command to search for the screen, then screen-input = 1. This is only allow in the PBO.
What can i do???? hope someone can help.... tq!!
Answer:
Check following:
1) don't you forget "MODIFY SCREEN"?
2) are you sure in field name - try debug? Use screen-group1 better.
3) is not field defined as "Output only"?
_________________
Best wishes,
Vladimir
Answer:
You MUST assign a function code to this button. When the user presses it, PAI will execute. During PAI you can store the function code for use in the PBO after the screen is re-loaded, or set some kind of flag indicating what you want to do on your next PBO. ie:
PBO.
IF [some flag] = 'X' ( or IF [saved_ok_code] = 'BUTTON1' )
LOOP AT SCREEN.
IF SCREEN-NAME = 'MyField'.
SCREEN-INPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
It is necessary to do it this way because the LOOP AT SCREEN is only valid during PBO.

More Articles:

Favorites and Multiple Login?
Custom fields in Material Master screen not saving data.?
ABAP Books (4.7 Upgrade)?
read data MDB (microsoft access) FROM R/3?
BDC urgent?
ABAP certification CDs?