Background documentationAdjusting Screens or Screen Elements Locate this document in the navigation structure

 

As with the generation of templates for simple mobile applications, some basic adjustments are made on the screen itself.

For speech input or output, two different sources are used:

  • Text elements that are already stored for display on the individual screen elements (such as pushbutton labels such as “Delete”, "Cancel", and so on) can also be used for speech output.

  • Additional texts, which are only used in the context of the speech capability, can also be stored for the screen elements. These additional texts are maintained as properties of the relevant screen.

Prerequisites

In the ABAP Workbench object list, select the screen for which you want to generate a template.

Double-click the entry in the object list to open the Screen Painter.

On the Attributes tab page, choose the Properties button (properties of the screen element).

Properties of Screen Elements: Another window appears, showing the table for maintaining the properties of the screen elements. To specifically maintain the values of the speech output attribute, choose the Details button for the Speech line.

The Effect of the Speech Property

First define the effect of the Speech property:

  • No Effect (Deletion of Property): Select this property if you want to completely suppress existing speech output. In this case, all existing values for the additional attributes are also deleted.

  • Effective w/o Additional Attributes: Select this property if you want to implement speech capability for the existing element texts. In this case, the text strings that exist for the element are automatically used for speech input/output without you needing to take any further steps.

  • Effective, additional attributes possible: Select this property if you want to create and maintain additional text attributes. In this case, the table below the options becomes ready for input and you can enter the text attributes there.

Using Additional Attributes

You can use different XML text attributes, depending on the Speech Dialog.

PromptText

Text to prompt input for a field, such as “Enter the client”.

There are also six other attributes with which you can control the process flow of the speech input dialog:

Grammar

Grammar for identifying the speech input.

GrammarLnk

Grammar for identifying the speech input that is loaded as an external file.

TimeOut

Time in seconds until the help text is read, if no speech input is made.

HelpText

Help text for speech input. The text is read out if a language input was not recognized.

FilledText

The text is read if speech input was successfully detected.

NextField

Specifies the next field with speech input.

Caution Caution

You should only set this attribute in exceptional cases. More information: Sequence of the Speech Dialogs in the Speech Dialogs document.

End of the caution.

You can also define at this point the source from which the attributes are to be provided with values:

  • Direct: The speech output uses the string entered here. Only use this function if no translation of the text is necessary.

  • From Variable: Speech output assigns the value of the specified variable to the attribute.

  • From Text Element: The attribute is supplied from a text element.

The number of additional XML attributes used is limited to five. Once you have made your changes, confirm the dialog box for maintaining the details for the Speech property. The underlying Properties for Screen Elements now shows the settings that you have just made in the attribute string.

Save your changes.

Generating the Template

You Generate the Template in exactly the same way as for applications without speech support. The only difference is that, in this case, for the generation style, you need to select the Mobile Devices with Speech Support entry.