‎2007 Jan 27 4:58 AM
hi experts,
Can anyone give me the idea about dialog-programming with one sample code
thanks in advance
Reg
R.Vijai
‎2007 Jan 27 5:04 AM
Hi
PROCESS BEFORE OUTPUT.
MODULE 0250_STATUS.
LOOP.
MODULE STATUS_0120.
ENDLOOP.
LOOP.
MODULE STATUS_0110.
ENDLOOP.
LOOP.
MODULE STATUS_0100.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE REFRESH_0250.
LOOP.
MODULE USER_COMMAND_0120.
ENDLOOP.
LOOP.
MODULE USER_COMMAND_0110.
ENDLOOP.
For example, if the user enter the Delete Screen, you will make all the Fields non-Editable.
&----
*& Module 0250_STATUS OUTPUT
&----
text *
----
MODULE 0250_STATUS OUTPUT.
SET PF-STATUS 'Z250'.
SET TITLEBAR 'Z250'.
IF OKSAVE = 'DEL'.
Make the SAVE Menu button inactive
SET PF-STATUS 'Z250' EXCLUDING 'SAVE'.
Make all the Fields non-Editable
LOOP AT SCREEN.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
For example, if the user enter the Modify Screen, you will make all the Fields Group 1 that
have a 'M' non-Editable.
You specify the 'M' for Group 1 using the Screen Painter Attribute
IF OKSAVE = 'MOD'.
Make the DELE Menu button inactive
SET PF-STATUS 'Z250' EXCLUDING 'DELE'.
Make all the Fields Groups 'M' non-Editable
LOOP AT SCREEN.
check screen-group1 = 'M'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
CLEAR OKCODE.
ENDMODULE.
Regards
Subramanian
‎2007 Jan 27 5:06 AM
hi vijaya kumar,
Please go to trnasaction 'ABAPDOCU'.
you will find variety to dialog-programming codes.
Thank you.