1 / 33

Screen Element s for Input/Output 

Screen Element s for Input/Output . Checkboxes and Radio Button Groups Error Checking in Input/Output fields. 1. Checkboxes and Radio Button Groups. Checkboxes and Radio Buttons: Attributes. Creating a Checkbox. Creating a Radio Button Group. 也可用滑鼠框起來, 按右鍵,將其定義為 group.

yuli-hooper
Download Presentation

Screen Element s for Input/Output 

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Screen Elements for Input/Output  • Checkboxes and Radio Button Groups • Error Checking in Input/Output fields

  2. 1. Checkboxes and Radio Button Groups

  3. Checkboxes and Radio Buttons: Attributes

  4. Creating a Checkbox

  5. Creating a Radio Button Group 也可用滑鼠框起來, 按右鍵,將其定義為group 宣告按鈕,並讓display為預設選項

  6. Program Flow for Radio Buttons and Checkboxes 被勾選

  7. 練習實例1

  8. 主程式 DATA: CHECK1, CHECK2, RADIO1, RADIO2. CHECK1 = 'X'. RADIO2 = 'X'. DATA: RESULT1(20) TYPE C, RESULT2(20) TYPE C. DATA OK_CODE TYPE SY-UCOMM. CALL SCREEN 9000.

  9. Screen 9000的Layout: Checkbox Result1

  10. Screen 9000的Layout: Radio Button Result2

  11. Screen 9000的flow logic PROCESS BEFORE OUTPUT. * MODULE STATUS_9000. * PROCESS AFTER INPUT. MODULE USER_COMMAND_9000.

  12. MODULE USER_COMMAND_9000 MODULE USER_COMMAND_9000 INPUT. CASE OK_CODE. WHEN 'END'. LEAVE PROGRAM. WHEN 'SHOW'. RESULT1 = ''. IF NOT CHECK1 IS INITIAL. RESULT1 = 'ABAP; '. ENDIF. IF CHECK2 = 'X'. CONCATENATE RESULT1 'FI; ' INTO RESULT1. ENDIF. IF RADIO1 = 'X'. RESULT2 = 'You are Male...'. ELSE. RESULT2 = 'You are Female...'. ENDIF. ENDCASE. ENDMODULE. " USER_COMMAND_9000 INPUT

  13. 2. Error Checking in Input/Output fields • 範例程式:SAPBC410INPD_C_CHECK_INPUT

  14. AA 0017 13.02.2008

  15. 用SE11查詢SFLIGHT Table

  16. Automatic Field Input Checks 強制 (例如必填欄位之檢查)

  17. Field Input Checks with Error Dialog

  18. Dialog Message Categories

  19. Message Types

  20. 練習實例2-A

  21. 主程式 DATA: A TYPE I, B TYPE I, C TYPE I. DATA OK_CODE TYPE SY-UCOMM. CALL SCREEN 9000.

  22. Screen 9000 PAI PROCESS AFTER INPUT. MODULE USER_COMMAND_9000. FIELD A MODULE CHECK_A.

  23. MODULE USER_COMMAND_9000 INPUT. CASE OK_CODE. WHEN 'END'. LEAVE PROGRAM. ENDCASE. ENDMODULE. MODULE CHECK_A INPUT. IF A < 0 OR A > 50. MESSAGE 'Please input A Between 0~50' TYPE 'W' . ENDIF. ENDMODULE.

  24. Checking Groups of Fields

  25. Controlling Error Dialogs

  26. 練習實例2-B

  27. Screen 9000 PAI PROCESS AFTER INPUT. MODULE USER_COMMAND_9000. FIELD A MODULE CHECK_A. CHAIN. FIELD: A, B, C. MODULE CHECK_ABC ON CHAIN-INPUT. ENDCHAIN.

  28. MODULE CHECK_ABC INPUT. DATA SUM TYPE I. SUM = A + B + C. IF SUM <> 50. MESSAGE 'A + B + C is not equal 50' TYPE 'W' . ELSE. MESSAGE 'A + B + C is equal 50' TYPE 'S' . ENDIF. ENDMODULE.

  29. Conditional Module Calls

  30. Execution when value is not initial

  31. Execution on Change

  32. Avoiding Field Input Checks

  33. Navigation: Dialogs

More Related