openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/FUNCTION_IMPORT_INTERFACE:
    post:
      tags:
      - SUNI
      summary: Providing Interface of a Function Module
      operationId: /rfc/FUNCTION_IMPORT_INTERFACE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FUNCNAME:
                  type: string
                  maxLength: 30
                  description: Name of the function module
                IGNORE_SWITCHES:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: X = Switches Are Ignored
                INACTIVE_VERSION:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Reads inactive version according to worklist
                WITH_ENHANCEMENTS:
                  type: string
                  default: X
                  maxLength: 1
                  description: X = Enhancement Parameters Will Be Provided
                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'
                ENHA_CHA_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'
                ENHA_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
                ENHA_EXP_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'
                ENHA_IMP_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'
                ENHA_TBL_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'
                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'
                P_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
                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
              - INACTIVE_VERSION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXCEPTION_CLASSES:
                    type: string
                    maxLength: 1
                    description: Additional Attributes for Function Modules
                  GLOBAL_FLAG:
                    type: string
                    maxLength: 1
                    description: Global Interface
                  REMOTE_CALL:
                    type: string
                    maxLength: 1
                    description: Function module can be called with remote function
                  UPDATE_TASK:
                    type: string
                    maxLength: 1
                    description: Function module running in update task
                  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'
                  ENHA_CHA_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'
                  ENHA_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
                  ENHA_EXP_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'
                  ENHA_IMP_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'
                  ENHA_TBL_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'
                  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'
                  P_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
                  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.
