How to insert variable in text element in SAP smartforms

After we insert text element in SAP smartforms, the inserted text element can contain variable. We will introduce step by step to insert variable in text element.

Step by Step

  • Double click text element that you want to insert variable in left tree navigator.
    img120
    In the example, i selected text element name ’TEXT1’.
  • We can insert variable to editor by  select img121 and input variable in popup screen.
    img122

    img123
    In the example, i have variable name ’FNAME’ and i want to insert it to editor. The inserted variable name should have start and end character by ’&’. 
  • After you completely input information, you can select img124 for insert the selected variable to editor. System will back to editor and show inserted variable to it.
    img125
    Be careful, Don’t input variable name directly in editor because system will assume that the variable name is a default text.
  • Or you can input variable by select  img129 in General Attributes tab. System will show editor as SAPscript editor.
    img130

    img131
  • You able input variable as SAPscript syntax and back to smartforms navigator.
    img132

    img133
  • Or you can drag and drop field by open field list navigator (Select img134).
    img136
  • Select field that you want to add to editor and drag and drop to editor.
    img140

    img133
  • You can delete this variable by select variable and press img126. System will delete the selected variable from the editor.
  • You can modify this variable by select variable and press img127. System will popup screen for modify the selected variable.
    img128
  • The output is:
    img139

Technorati Tags: ,

Post new comment