Exercise 5: Setting the OK Field 

In this exercise, you leave the fullscreen editor and use the Field list view to set the OK field. Each SAP screen has a single OK code. This OK code is used to pass information from the screen to the underlying application. To set the OK code, open your screen to the Flow Logic Display screen and proceed as follows:

  1. Choose Field list or, if the screen is already open in change mode, select Goto ® Field list views ® List field types.
  2. The system displays the field list for your screen. This list is a table representation of the same data available through the Attributes dialog.

  3. Page down until you find a FType specification of OK.
  4. The Field name for this specification is empty .

  5. Enter OK-CODE for the Field Name.
  6. The OK-CODE field is available with every screen. It is an invisible element and so does not appear in the Screen Painter fullscreen editor. You will use the OK code to pass information from the interface back to your application.

  7. Save your changes.

Check Your Work

To check your work, display the General Field Attribute list for your screen. The OK-CODE field appears at the bottom of the list.