openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_FUNCTIONMODULE_INSERT:
    post:
      tags:
      - SIFP
      summary: Insert a function module in the R/3 development environment
      operationId: /rfc/RPY_FUNCTIONMODULE_INSERT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CORRNUM:
                  type: string
                  default: ' '
                  maxLength: 20
                  description: Correction number
                FUNCNAME:
                  type: string
                  maxLength: 30
                  description: Name of the function module
                FUNCTION_POOL:
                  type: string
                  maxLength: 26
                  description: Respective function group
                INTERFACE_GLOBAL:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator for global interface
                NAMESPACE:
                  type: string
                  default: ' '
                  maxLength: 10
                  description: Namespace
                NEW_SOURCE:
                  type: array
                  items:
                    type: string
                    description: ''
                REMOTE_CALL:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Can be used for RFC
                SHORT_TEXT:
                  type: string
                  maxLength: 74
                  description: Short description of the function module
                SUPPRESS_CORR_CHECK:
                  type: string
                  default: X
                  maxLength: 1
                  description: Suppression of the correction system (=default)
                UPDATE_TASK:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Update type
                CHANGING_PARAMETER:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAMETER:
                        type: string
                        maxLength: 30
                        description: Parameter Name
                      DBFIELD:
                        type: string
                        maxLength: 26
                        description: Reference field/structure of a parameter
                      DEFAULT:
                        type: string
                        maxLength: 21
                        description: Default value for import parameter
                      TYPES:
                        type: string
                        maxLength: 1
                        description: Reference Structure is an ABAP/4 Type
                      OPTIONAL:
                        type: string
                        maxLength: 1
                        description: Optional parameters
                      REFERENCE:
                        type: string
                        maxLength: 1
                        description: Call by reference
                      CHANGING:
                        type: string
                        maxLength: 1
                        description: Changing a parameter allowed
                      TYP:
                        type: string
                        maxLength: 132
                        description: Associated Type of an Interface Parameter
                      CLASS:
                        type: string
                        maxLength: 1
                        description: Reference to a Class
                      REF_CLASS:
                        type: string
                        maxLength: 1
                        description: Reference to a Class
                      LINE_OF:
                        type: string
                        maxLength: 1
                        description: Parameter is 'LINE OF' table type
                      TABLE_OF:
                        type: string
                        maxLength: 1
                        description: Parameter Is Reference Type 'TABLE OF'
                EXCEPTION_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      EXCEPTION:
                        type: string
                        maxLength: 30
                        description: Parameter Name
                EXPORT_PARAMETER:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAMETER:
                        type: string
                        maxLength: 30
                        description: Parameter Name
                      DBFIELD:
                        type: string
                        maxLength: 26
                        description: Reference field/structure of a parameter
                      TYPES:
                        type: string
                        maxLength: 1
                        description: Reference Structure is an ABAP/4 Type
                      REFERENCE:
                        type: string
                        maxLength: 1
                        description: Call by reference
                      TYP:
                        type: string
                        maxLength: 132
                        description: Associated Type of an Interface Parameter
                      CLASS:
                        type: string
                        maxLength: 1
                        description: Reference to a Class
                      REF_CLASS:
                        type: string
                        maxLength: 1
                        description: Reference to a Class
                      LINE_OF:
                        type: string
                        maxLength: 1
                        description: Parameter is 'LINE OF' table type
                      TABLE_OF:
                        type: string
                        maxLength: 1
                        description: Parameter Is Reference Type 'TABLE OF'
                IMPORT_PARAMETER:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAMETER:
                        type: string
                        maxLength: 30
                        description: Parameter Name
                      DBFIELD:
                        type: string
                        maxLength: 26
                        description: Reference field/structure of a parameter
                      DEFAULT:
                        type: string
                        maxLength: 21
                        description: Default value for import parameter
                      TYPES:
                        type: string
                        maxLength: 1
                        description: Reference Structure is an ABAP/4 Type
                      OPTIONAL:
                        type: string
                        maxLength: 1
                        description: Optional parameters
                      REFERENCE:
                        type: string
                        maxLength: 1
                        description: Call by reference
                      CHANGING:
                        type: string
                        maxLength: 1
                        description: Changing a parameter allowed
                      TYP:
                        type: string
                        maxLength: 132
                        description: Associated Type of an Interface Parameter
                      CLASS:
                        type: string
                        maxLength: 1
                        description: Reference to a Class
                      REF_CLASS:
                        type: string
                        maxLength: 1
                        description: Reference to a Class
                      LINE_OF:
                        type: string
                        maxLength: 1
                        description: Parameter is 'LINE OF' table type
                      TABLE_OF:
                        type: string
                        maxLength: 1
                        description: Parameter Is Reference Type 'TABLE OF'
                PARAMETER_DOCU:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAMETER:
                        type: string
                        maxLength: 30
                        description: Parameter Name
                      KIND:
                        type: string
                        maxLength: 1
                        description: Type
                      STEXT:
                        type: string
                        maxLength: 79
                        description: Short text
                      INDEX:
                        type: string
                        maxLength: 4
                        description: Not More Closely Defined Area, Possibly Used for Patchlevels
                SOURCE:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: 'EDIC: Program editor line'
                TABLES_PARAMETER:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAMETER:
                        type: string
                        maxLength: 30
                        description: Parameter Name
                      DBSTRUCT:
                        type: string
                        maxLength: 26
                        description: Reference field/structure of a parameter
                      TYPES:
                        type: string
                        maxLength: 1
                        description: Reference Structure is an ABAP/4 Type
                      OPTIONAL:
                        type: string
                        maxLength: 1
                        description: Optional parameters
                      TYP:
                        type: string
                        maxLength: 132
                        description: Associated Type of an Interface Parameter
                      CLASS:
                        type: string
                        maxLength: 1
                        description: Reference to a Class
                      REF_CLASS:
                        type: string
                        maxLength: 1
                        description: Reference to a Class
                      LINE_OF:
                        type: string
                        maxLength: 1
                        description: Parameter is 'LINE OF' table type
                      TABLE_OF:
                        type: string
                        maxLength: 1
                        description: Parameter Is Reference Type 'TABLE OF'
              required:
              - FUNCNAME
              - FUNCTION_POOL
              - SHORT_TEXT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FUNCTION_INCLUDE:
                    type: string
                    maxLength: 40
                    description: Name of the respective INCLUDE file
                  CHANGING_PARAMETER:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAMETER:
                          type: string
                          maxLength: 30
                          description: Parameter Name
                        DBFIELD:
                          type: string
                          maxLength: 26
                          description: Reference field/structure of a parameter
                        DEFAULT:
                          type: string
                          maxLength: 21
                          description: Default value for import parameter
                        TYPES:
                          type: string
                          maxLength: 1
                          description: Reference Structure is an ABAP/4 Type
                        OPTIONAL:
                          type: string
                          maxLength: 1
                          description: Optional parameters
                        REFERENCE:
                          type: string
                          maxLength: 1
                          description: Call by reference
                        CHANGING:
                          type: string
                          maxLength: 1
                          description: Changing a parameter allowed
                        TYP:
                          type: string
                          maxLength: 132
                          description: Associated Type of an Interface Parameter
                        CLASS:
                          type: string
                          maxLength: 1
                          description: Reference to a Class
                        REF_CLASS:
                          type: string
                          maxLength: 1
                          description: Reference to a Class
                        LINE_OF:
                          type: string
                          maxLength: 1
                          description: Parameter is 'LINE OF' table type
                        TABLE_OF:
                          type: string
                          maxLength: 1
                          description: Parameter Is Reference Type 'TABLE OF'
                  EXCEPTION_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        EXCEPTION:
                          type: string
                          maxLength: 30
                          description: Parameter Name
                  EXPORT_PARAMETER:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAMETER:
                          type: string
                          maxLength: 30
                          description: Parameter Name
                        DBFIELD:
                          type: string
                          maxLength: 26
                          description: Reference field/structure of a parameter
                        TYPES:
                          type: string
                          maxLength: 1
                          description: Reference Structure is an ABAP/4 Type
                        REFERENCE:
                          type: string
                          maxLength: 1
                          description: Call by reference
                        TYP:
                          type: string
                          maxLength: 132
                          description: Associated Type of an Interface Parameter
                        CLASS:
                          type: string
                          maxLength: 1
                          description: Reference to a Class
                        REF_CLASS:
                          type: string
                          maxLength: 1
                          description: Reference to a Class
                        LINE_OF:
                          type: string
                          maxLength: 1
                          description: Parameter is 'LINE OF' table type
                        TABLE_OF:
                          type: string
                          maxLength: 1
                          description: Parameter Is Reference Type 'TABLE OF'
                  IMPORT_PARAMETER:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAMETER:
                          type: string
                          maxLength: 30
                          description: Parameter Name
                        DBFIELD:
                          type: string
                          maxLength: 26
                          description: Reference field/structure of a parameter
                        DEFAULT:
                          type: string
                          maxLength: 21
                          description: Default value for import parameter
                        TYPES:
                          type: string
                          maxLength: 1
                          description: Reference Structure is an ABAP/4 Type
                        OPTIONAL:
                          type: string
                          maxLength: 1
                          description: Optional parameters
                        REFERENCE:
                          type: string
                          maxLength: 1
                          description: Call by reference
                        CHANGING:
                          type: string
                          maxLength: 1
                          description: Changing a parameter allowed
                        TYP:
                          type: string
                          maxLength: 132
                          description: Associated Type of an Interface Parameter
                        CLASS:
                          type: string
                          maxLength: 1
                          description: Reference to a Class
                        REF_CLASS:
                          type: string
                          maxLength: 1
                          description: Reference to a Class
                        LINE_OF:
                          type: string
                          maxLength: 1
                          description: Parameter is 'LINE OF' table type
                        TABLE_OF:
                          type: string
                          maxLength: 1
                          description: Parameter Is Reference Type 'TABLE OF'
                  PARAMETER_DOCU:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAMETER:
                          type: string
                          maxLength: 30
                          description: Parameter Name
                        KIND:
                          type: string
                          maxLength: 1
                          description: Type
                        STEXT:
                          type: string
                          maxLength: 79
                          description: Short text
                        INDEX:
                          type: string
                          maxLength: 4
                          description: Not More Closely Defined Area, Possibly Used for Patchlevels
                  SOURCE:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: 'EDIC: Program editor line'
                  TABLES_PARAMETER:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAMETER:
                          type: string
                          maxLength: 30
                          description: Parameter Name
                        DBSTRUCT:
                          type: string
                          maxLength: 26
                          description: Reference field/structure of a parameter
                        TYPES:
                          type: string
                          maxLength: 1
                          description: Reference Structure is an ABAP/4 Type
                        OPTIONAL:
                          type: string
                          maxLength: 1
                          description: Optional parameters
                        TYP:
                          type: string
                          maxLength: 132
                          description: Associated Type of an Interface Parameter
                        CLASS:
                          type: string
                          maxLength: 1
                          description: Reference to a Class
                        REF_CLASS:
                          type: string
                          maxLength: 1
                          description: Reference to a Class
                        LINE_OF:
                          type: string
                          maxLength: 1
                          description: Parameter is 'LINE OF' table type
                        TABLE_OF:
                          type: string
                          maxLength: 1
                          description: Parameter Is Reference Type 'TABLE OF'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
