‎2007 Mar 21 8:57 AM
hi
can any one send me the sample code 4 simple dialog programming....
‎2007 Mar 21 8:59 AM
Hi Sandy,
Chk these DEMO programs
DEMO_DYNPRO Program S_SCREEN_PAINTER_DEMO
DEMO_DYNPRO_AT_EXIT_COMMAND Demonstration of Conditional Module Execution
DEMO_DYNPRO_AUTOMATIC_CHECKS Demonstration of Automatic Entry Checks on Screens
DEMO_DYNPRO_CHECK_RADIO Checkboxes and Radio Buttons
DEMO_DYNPRO_CONTEXT_MENU Context Menus on Screens
DEMO_DYNPRO_DICTIONARY Demonstration for Screen Fields with Dictionary Reference
DEMO_DYNPRO_DROPDOWN_LISTBOX Demonstration of Dropdown List Boxes on Screens
DEMO_DYNPRO_F1_HELP Demonstration of F1 Help on Screens
DEMO_DYNPRO_F4_HELP_DICTIONARY Demonstration for F4 Help from the ABAP Dictionary on Screens
DEMO_DYNPRO_F4_HELP_DYNPRO Demonstration for F4 Help on Screens
DEMO_DYNPRO_F4_HELP_MODULE Demonstration for F4 Help from Dialog Modules
DEMO_DYNPRO_FIELD Demonstration of FIELD on Screens
DEMO_DYNPRO_FIELD_CHAIN Demonstration for Input Checks in ABAP Programs
DEMO_DYNPRO_GET_CURSOR Demonstration for GET CURSOR on a Screen
DEMO_DYNPRO_GUI_STATUS Demonstration of GUI Status on Screens
‎2007 Mar 21 8:59 AM
Hi Sandy,
Chk these DEMO programs
DEMO_DYNPRO Program S_SCREEN_PAINTER_DEMO
DEMO_DYNPRO_AT_EXIT_COMMAND Demonstration of Conditional Module Execution
DEMO_DYNPRO_AUTOMATIC_CHECKS Demonstration of Automatic Entry Checks on Screens
DEMO_DYNPRO_CHECK_RADIO Checkboxes and Radio Buttons
DEMO_DYNPRO_CONTEXT_MENU Context Menus on Screens
DEMO_DYNPRO_DICTIONARY Demonstration for Screen Fields with Dictionary Reference
DEMO_DYNPRO_DROPDOWN_LISTBOX Demonstration of Dropdown List Boxes on Screens
DEMO_DYNPRO_F1_HELP Demonstration of F1 Help on Screens
DEMO_DYNPRO_F4_HELP_DICTIONARY Demonstration for F4 Help from the ABAP Dictionary on Screens
DEMO_DYNPRO_F4_HELP_DYNPRO Demonstration for F4 Help on Screens
DEMO_DYNPRO_F4_HELP_MODULE Demonstration for F4 Help from Dialog Modules
DEMO_DYNPRO_FIELD Demonstration of FIELD on Screens
DEMO_DYNPRO_FIELD_CHAIN Demonstration for Input Checks in ABAP Programs
DEMO_DYNPRO_GET_CURSOR Demonstration for GET CURSOR on a Screen
DEMO_DYNPRO_GUI_STATUS Demonstration of GUI Status on Screens
‎2007 Mar 21 9:00 AM
Hi Sandy,
Simple Dialog Programming:
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,
Priyanka.
‎2007 Mar 23 4:32 AM
‎2007 Mar 21 9:02 AM
Check the below link:
http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
You can also check the transaction ABAPDOCU which gives you lot of sample programs.
Regards,
Santosh