openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ECATT_READ_FUNCDESCR_FOR_XML:
    post:
      tags:
      - SETRM
      operationId: /rfc/ECATT_READ_FUNCDESCR_FOR_XML
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONTROL:
                  type: object
                  properties:
                    LANGU:
                      type: string
                      maxLength: 1
                      description: Language Key
                    CALLBACK:
                      type: string
                      maxLength: 40
                      description: Callback Program for XML Representations
                    GUID:
                      type: string
                      format: byte
                      description: GUID for XML Representation
                    ATOM_TEXT:
                      type: string
                      maxLength: 1
                      description: Should Texts for Non-Structured Fields Be Displayed?
                    STRU_TEXT:
                      type: string
                      maxLength: 1
                      description: Should Texts for Structured Fields Be Displayed?
                    TTYP_TEXT:
                      type: string
                      maxLength: 1
                      description: Should Texts for Table-Type Fields Be Displayed
                    TTYP_MARK:
                      type: string
                      maxLength: 1
                      description: 'Selecting Tables in XML Templates  enumValues: ""=No Special Selection,C=By Comment,D=By Duplication'
                      enum:
                      - ''
                      - C
                      - D
                    ELEM_DISP:
                      type: string
                      maxLength: 1
                      description: 'Display of Elementary Components in XML Template  enumValues: ""=Display without content,S=Display with Exactly One Blank,A=Display according to ABAP type,T=Display with tabs,D=Display according to ABAP Dictionary type'
                      enum:
                      - ''
                      - S
                      - A
                      - T
                      - D
                    ELEM_COMM:
                      type: string
                      maxLength: 1
                      description: Include the Elementary Type Used as a Comment
                    PARAM_TEXT:
                      type: string
                      maxLength: 1
                      description: Should Texts for Function Module Parameters Be Displayed
                    FUBA_TEXT:
                      type: string
                      maxLength: 1
                      description: Should Function Module Short Text Be Displayed
                FUNCNAME:
                  type: string
                  maxLength: 30
                  description: Function Name
                IM_FUNCDESCR:
                  type: object
                  properties:
                    FUNCNAME:
                      type: string
                      maxLength: 30
                      description: Function name
                    LANGU:
                      type: string
                      maxLength: 1
                      description: Language Key
                    TEXT:
                      type: string
                      maxLength: 74
                      description: Short text for function module
                    PARAMETERS:
                      type: array
                      items:
                        type: object
                        properties:
                          PARAM:
                            type: string
                            maxLength: 30
                            description: Parameter Name
                          PARAMCLASS:
                            type: string
                            maxLength: 1
                            description: Parameter type
                          SPRAS:
                            type: string
                            maxLength: 1
                            description: Language Key
                          STEXT:
                            type: string
                            maxLength: 79
                            description: Short text
                          PARPOS:
                            type: integer
                            format: int32
                            description: Position in Relevant IMPORT/EXPORT Parameter
                          DEFLT:
                            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'
                          HAS_DBF:
                            type: string
                            maxLength: 1
                            description: Type Assignment in DBFIELD
                IM_RC:
                  type: integer
                  format: int32
                  description: Return Value, Return Value After ABAP Statements
                TAB_TYPEDESC:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX:
                        type: integer
                        format: int32
                        description: Natural number
                      REFERENCE:
                        type: integer
                        format: int32
                        description: Natural number
                      POSITION:
                        type: integer
                        format: int32
                        description: Natural number
                      STRUC_TYPE:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      LEVEL:
                        type: integer
                        format: int32
                        description: Natural number
                      ILENGTH:
                        type: integer
                        format: int32
                        description: Natural number
                      VLENGTH:
                        type: integer
                        format: int32
                        description: Natural number
                      OFFSET:
                        type: integer
                        format: int32
                        description: Natural number
                      GOFFSET:
                        type: integer
                        format: int32
                        description: Natural number
                      DECIMALS:
                        type: integer
                        format: int32
                        description: Natural number
                      NAME:
                        type: string
                        maxLength: 100
                        description: Character 100
                      EDITMASK:
                        type: string
                        maxLength: 15
                        description: Char 15
                TYPEPOOLS:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: Program Line in ABAP Format
              required:
              - CONTROL
              - FUNCNAME
              - IM_FUNCDESCR
              - IM_RC
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EX_FUNCDESCR:
                    type: object
                    properties:
                      FUNCNAME:
                        type: string
                        maxLength: 30
                        description: Function name
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      TEXT:
                        type: string
                        maxLength: 74
                        description: Short text for function module
                      PARAMETERS:
                        type: array
                        items:
                          type: object
                          properties:
                            PARAM:
                              type: string
                              maxLength: 30
                              description: Parameter Name
                            PARAMCLASS:
                              type: string
                              maxLength: 1
                              description: Parameter type
                            SPRAS:
                              type: string
                              maxLength: 1
                              description: Language Key
                            STEXT:
                              type: string
                              maxLength: 79
                              description: Short text
                            PARPOS:
                              type: integer
                              format: int32
                              description: Position in Relevant IMPORT/EXPORT Parameter
                            DEFLT:
                              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'
                            HAS_DBF:
                              type: string
                              maxLength: 1
                              description: Type Assignment in DBFIELD
                  EX_RC:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  TAB_TYPEDESC:
                    type: array
                    items:
                      type: object
                      properties:
                        INDEX:
                          type: integer
                          format: int32
                          description: Natural number
                        REFERENCE:
                          type: integer
                          format: int32
                          description: Natural number
                        POSITION:
                          type: integer
                          format: int32
                          description: Natural number
                        STRUC_TYPE:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        LEVEL:
                          type: integer
                          format: int32
                          description: Natural number
                        ILENGTH:
                          type: integer
                          format: int32
                          description: Natural number
                        VLENGTH:
                          type: integer
                          format: int32
                          description: Natural number
                        OFFSET:
                          type: integer
                          format: int32
                          description: Natural number
                        GOFFSET:
                          type: integer
                          format: int32
                          description: Natural number
                        DECIMALS:
                          type: integer
                          format: int32
                          description: Natural number
                        NAME:
                          type: string
                          maxLength: 100
                          description: Character 100
                        EDITMASK:
                          type: string
                          maxLength: 15
                          description: Char 15
                  TYPEPOOLS:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: Program Line in ABAP Format
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
