openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ER_TRAN_GET_DETAIL:
    post:
      tags:
      - ER_TRAN_API
      summary: Returns details of a transaction
      operationId: /rfc/ER_TRAN_GET_DETAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language Key
                I_TCODE:
                  type: string
                  maxLength: 20
                  description: Transaction code
                E_T_INPUT_FIELD:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 11
                        description: 'Type of Screen Element (External Type)  enumValues: FRAME=Box with Fixed Text as Box Group Heading,PUSH=Pushbutton with Fixed Text as Pushbutton Text,INFOBUTTON=Pushbutton for Online Help,TEXT=Text Field (Key Word),RADIO=Radio Button,FRAME_TMPL=Box with Variable Output Field as Group Heading,CHECK=Check Box,TEMPLATE=Input/Output Field (Template),PUSH_TMPL=Pushbutton with Variable Output Field as Pushbutton Text,OKCODE=OK Code Field'
                        enum:
                        - FRAME
                        - PUSH
                        - INFOBUTTON
                        - TEXT
                        - RADIO
                        - FRAME_TMPL
                        - CHECK
                        - TEMPLATE
                        - PUSH_TMPL
                        - OKCODE
                      NAME:
                        type: string
                        maxLength: 132
                        description: Name of a Screen Element
                      TEXT:
                        type: string
                        maxLength: 132
                        description: Text/template for a screen element
                      REQU_ENTRY:
                        type: string
                        maxLength: 1
                        description: 'Entries in the Field  enumValues: O=Required,""=Possible,R=Recommended,N=Not Possible'
                        enum:
                        - O
                        - ''
                        - R
                        - N
                      CONT_NAME:
                        type: string
                        maxLength: 132
                        description: Name of container (external interface)
                      FROM_DICT:
                        type: string
                        maxLength: 1
                        description: 'Field from ABAP Dictionary  enumValues: X=Field from ABAP Dictionary,""=Not an ABAP Dictionary field'
                        enum:
                        - X
                        - ''
                      FORMAT:
                        type: string
                        maxLength: 4
                        description: 'Field format (ABAP Dictionary data type)  enumValues: STRG=Character string of variable length,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,RSTR=Byte string of variable length (hexadecimal representation),INT1=1-byte integer, decimal number <= 254,ACCP=Posting period YYYYMM,SSTR=Short String of Variable Length,INT2=2-byte integer, only for length field before VARC or RAW,LANG=Language ID,PREC=Accuracy
                          of a QUAN field,NUMC=Character field with only digits,DATS=Date field YYYYMMDD, stored as CHAR(8),INT4=4-byte integer, decimal number with sign,CHAR=Character strings, fixed length,RAW=Byte string of fixed length (hexadecimal representation),TIMS=Time field (hhmmss), stored as CHAR(6),UNIT=Unit key for QUAN fields,CURR=Currency field, stored as DEC,DEC=Calculation and amount field with comma and sign'
                        enum:
                        - STRG
                        - CUKY
                        - QUAN
                        - RSTR
                        - INT1
                        - ACCP
                        - SSTR
                        - INT2
                        - LANG
                        - PREC
                        - NUMC
                        - DATS
                        - INT4
                        - CHAR
                        - RAW
                        - TIMS
                        - UNIT
                        - CURR
                        - DEC
                      LENGTH:
                        type: integer
                        format: int64
                        description: Defined length
                      CONV_EXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Exit
                      UP_LOWER:
                        type: string
                        maxLength: 1
                        description: 'Upper/lower case entry  enumValues: X='
                        enum:
                        - X
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      LENG:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
              required:
              - I_TCODE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_S_TSTCC:
                    type: object
                    properties:
                      TCODE:
                        type: string
                        maxLength: 20
                        description: Transaction Code
                      S_WEBGUI:
                        type: string
                        maxLength: 1
                        description: SAPGUI for HTML
                      S_WIN32:
                        type: string
                        maxLength: 1
                        description: Windows 32
                      S_PLATIN:
                        type: string
                        maxLength: 1
                        description: SAPGUI for Java
                      S_SERVICE:
                        type: string
                        maxLength: 14
                        description: Service name of Internet Application Component
                      S_PERVAS:
                        type: string
                        maxLength: 1
                        description: Pervasive enabled
                      S_DUMMY:
                        type: string
                        maxLength: 1
                        description: Function Key
                      S_DUMMY1:
                        type: string
                        maxLength: 1
                        description: Function Key
                      S_DUMMY2:
                        type: string
                        maxLength: 1
                        description: Function Key
                  E_S_TSTPVT:
                    type: object
                    properties:
                      TCODE:
                        type: string
                        maxLength: 20
                        description: Transaction Code
                      SPRSL:
                        type: string
                        maxLength: 1
                        description: Language Key
                      PGMNA:
                        type: string
                        maxLength: 40
                        description: Program Name
                      DYPNO:
                        type: integer
                        format: int64
                        description: Screen number
                      MENUE:
                        type: string
                        maxLength: 5
                        description: CHAR05 data element for SYST
                      CINFO:
                        type: string
                        format: byte
                        description: HEX01 data element for SYST
                      ARBGB:
                        type: string
                        maxLength: 20
                        description: Message identification
                      PARAM:
                        type: string
                        maxLength: 254
                        description: Parameters for transactions
                      TTEXT:
                        type: string
                        maxLength: 36
                        description: Transaction text
                  E_TCODE_BASE:
                    type: string
                    maxLength: 20
                    description: Transaction code this param. transact. is based on (SPACE if not param. trans.)
                  E_T_INPUT_FIELD:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 11
                          description: 'Type of Screen Element (External Type)  enumValues: FRAME=Box with Fixed Text as Box Group Heading,PUSH=Pushbutton with Fixed Text as Pushbutton Text,INFOBUTTON=Pushbutton for Online Help,TEXT=Text Field (Key Word),RADIO=Radio Button,FRAME_TMPL=Box with Variable Output Field as Group Heading,CHECK=Check Box,TEMPLATE=Input/Output Field (Template),PUSH_TMPL=Pushbutton with Variable Output Field as Pushbutton Text,OKCODE=OK Code Field'
                          enum:
                          - FRAME
                          - PUSH
                          - INFOBUTTON
                          - TEXT
                          - RADIO
                          - FRAME_TMPL
                          - CHECK
                          - TEMPLATE
                          - PUSH_TMPL
                          - OKCODE
                        NAME:
                          type: string
                          maxLength: 132
                          description: Name of a Screen Element
                        TEXT:
                          type: string
                          maxLength: 132
                          description: Text/template for a screen element
                        REQU_ENTRY:
                          type: string
                          maxLength: 1
                          description: 'Entries in the Field  enumValues: O=Required,""=Possible,R=Recommended,N=Not Possible'
                          enum:
                          - O
                          - ''
                          - R
                          - N
                        CONT_NAME:
                          type: string
                          maxLength: 132
                          description: Name of container (external interface)
                        FROM_DICT:
                          type: string
                          maxLength: 1
                          description: 'Field from ABAP Dictionary  enumValues: X=Field from ABAP Dictionary,""=Not an ABAP Dictionary field'
                          enum:
                          - X
                          - ''
                        FORMAT:
                          type: string
                          maxLength: 4
                          description: 'Field format (ABAP Dictionary data type)  enumValues: STRG=Character string of variable length,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,RSTR=Byte string of variable length (hexadecimal representation),INT1=1-byte integer, decimal number <= 254,ACCP=Posting period YYYYMM,SSTR=Short String of Variable Length,INT2=2-byte integer, only for length field before VARC or RAW,LANG=Language ID,PREC=Accuracy
                            of a QUAN field,NUMC=Character field with only digits,DATS=Date field YYYYMMDD, stored as CHAR(8),INT4=4-byte integer, decimal number with sign,CHAR=Character strings, fixed length,RAW=Byte string of fixed length (hexadecimal representation),TIMS=Time field (hhmmss), stored as CHAR(6),UNIT=Unit key for QUAN fields,CURR=Currency field, stored as DEC,DEC=Calculation and amount field with comma and sign'
                          enum:
                          - STRG
                          - CUKY
                          - QUAN
                          - RSTR
                          - INT1
                          - ACCP
                          - SSTR
                          - INT2
                          - LANG
                          - PREC
                          - NUMC
                          - DATS
                          - INT4
                          - CHAR
                          - RAW
                          - TIMS
                          - UNIT
                          - CURR
                          - DEC
                        LENGTH:
                          type: integer
                          format: int64
                          description: Defined length
                        CONV_EXIT:
                          type: string
                          maxLength: 5
                          description: Conversion Exit
                        UP_LOWER:
                          type: string
                          maxLength: 1
                          description: 'Upper/lower case entry  enumValues: X='
                          enum:
                          - X
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        LENG:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
