Show TOC

Setting Constant ValuesLocate this document in the navigation structure

Procedure

When creating or changing the mapping, you can manually set constant values for input parameters.

When you set a constant value for a Property, you enable the Service Builder to retrieve additional data for the key Property, at runtime.

You must enclose all values in apostrophes, for example, ‘Value’.

Recommendation

When you familiarize yourself with the documentation for the function or BAPI, you will get information about the parameter for which you can define a constant value.

Example

For example, in case of RFC, choose the data source BAPI_USER_GETLIST, its key parameter is USERNAME. After mapping the parameters you want, select the parameter WITH_USERNAME, and set a constant value for it.

Click the cell in the column, Constant Value, on the same row as the property you want to map, in the Mapping table; and set the constant value, 'Name'.

Do not use apostrophes for numeric values or the following ABAP statements, as these statements will be converted accordingly at runtime:

  • ABAP_TRUE

  • ABAP_FALSE

  • SPACE

  • Initial SY-... (for example, SY-LANGU)

You can add constants for flat structures and for only one table row. You can assign constant values to components of structures or for tables as well, but in the latter case, one table row instance will always be populated with constant values and passed to the data source.

Deleting a Constant Value

To delete a constant value, from the Mapping table, select the value (in the column, Constant Value) to be deleted and press Delete.

More Information