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

sample basic program 4 dialog programming

Former Member
0 Likes
2,724

hi

can any one send me the sample code 4 simple dialog programming....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,175
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
4 REPLIES 4
Read only

Former Member
0 Likes
1,176
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
Read only

Former Member
0 Likes
1,175

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.

Read only

0 Likes
1,175

thanx a lot..