You can either map importing single attributes to Data Model Properties or you can assign constant values to them.
You can either 'flatten out' fields of importing structures and map them to Data Model root Properties (they cannot be mapped to nested Data Objects in the Data Model) or you can assign constant values to them.
You cannot map tables; the only thing you can do is to assign constant values to the table fields, but then you can only pass one line filled with these constants.
Create Recording Type
In Screen Scraping, after recording a transaction that includes the create operation, you must map its data entities into your Data Model.
Before you map the create operation, make sure that you have the following:
A recording that includes the Read operation, and based on a transaction in the same business context.
For example, if you want to record the transaction VD01, using the Create operation, first record the transaction VD03, using the Read operation.
A recording that includes the Create operation, and based on a transaction in the same business context as the recording that includes the Read operation.
Get a search help (Query) entity from the recording that includes the Read operation.
Map the search help (Query) entity to the Data Model.
Map the recording that includes the Create operation.
Make sure that the fields that you map for the Create operation are also mapped for the Read operation.
If you do not map the same fields for the different operations, the object fails at runtime.
Map the recording that includes the Read operation.
When you map the entities, they become visible in your object model as Data Objects and properties.
You can see the content of the new Data Model in the Data Model section in the Structure tab, under the Data Model Details pane.
Screen Scraping does not allow you to map the recording group to your object model, as this can contain more than one data source entity.
In addition, you can use the SAP Gateway Generators Cookbook to quickly create a Data Model and test the generated SAP Gateway service using the Data Model Generator tool.
For more information about mapping, see Create the Mapping.