openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MEREP_TYPE_ORGSTR_CREATE:
    post:
      tags:
      - MEREP_GENERATE
      summary: Create Type Structure for Emulator
      operationId: /rfc/MEREP_TYPE_ORGSTR_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_METADATA:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCT_ID:
                        type: string
                        maxLength: 3
                        description: Structure ID
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name (In a Structure ID)
                      POS:
                        type: integer
                        format: int64
                        description: Position of the field in the table
                      INTATYPE:
                        type: string
                        maxLength: 1
                        description: ABAP Elementary Data Type
                      INTLENGTH:
                        type: integer
                        format: int64
                        description: Internal Field Length
                      OUTLENGTH:
                        type: integer
                        format: int64
                        description: Output Field Length
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: Lowercase letters allowed/not allowed
                      SIGNFLAG:
                        type: string
                        maxLength: 1
                        description: Flag for sign in numerical fields
                      KEYFLAG:
                        type: string
                        maxLength: 1
                        description: Key Flag
                      DATAFLAG:
                        type: string
                        maxLength: 1
                        description: Key Flag
                      FILTER_NO:
                        type: integer
                        format: int64
                        description: Filter Field Number
                      CUSTOMERFLD:
                        type: string
                        maxLength: 1
                        description: Field Created by Customer
                      RSCENARIO:
                        type: string
                        maxLength: 10
                        description: Related SyncBO ID
                      MANDATORY:
                        type: string
                        maxLength: 1
                        description: Mandatory
                      USE_AS_INDEX:
                        type: string
                        maxLength: 1
                        description: Use as an Index
                      LANG_ITEM:
                        type: string
                        maxLength: 3
                        description: Language Item
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                STRUCT_ID:
                  type: string
                  maxLength: 3
                  description: 'SAP Mobile: Structure ID'
                C_SOURCE:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: 'EDIC: Program editor line'
              required:
              - I_METADATA
              - STRUCT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  C_SOURCE:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: 'EDIC: Program editor line'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
