Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can click “Customize cookies” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To continue without accepting these cookies, click “Continue without accepting.” To make more detailed choices or learn more, click “Customize cookies.”

Skip to content

/AWS1/CL_AG2=>CREATEMODEL()

About CreateModel

Creates a Model for an API.

Method Signature

IMPORTING

Required arguments:

IV_APIID TYPE /AWS1/AG2__STRING /AWS1/AG2__STRING

The API identifier.

IV_NAME TYPE /AWS1/AG2STRWLENGTHBETWEEN1A01 /AWS1/AG2STRWLENGTHBETWEEN1A01

The name of the model. Must be alphanumeric.

IV_SCHEMA TYPE /AWS1/AG2STRWLENGTHBETWEEN0A01 /AWS1/AG2STRWLENGTHBETWEEN0A01

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

Optional arguments:

IV_CONTENTTYPE TYPE /AWS1/AG2STRWLENGTHBETWEEN1A05 /AWS1/AG2STRWLENGTHBETWEEN1A05

The content-type for the model, for example, "application/json".

IV_DESCRIPTION TYPE /AWS1/AG2STRWLENGTHBETWEEN0A00 /AWS1/AG2STRWLENGTHBETWEEN0A00

The description of the model.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_AG2CREATEMODELRSP /AWS1/CL_AG2CREATEMODELRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC