openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_BUPA_FS_FISCYEAR_GET2:
    post:
      tags:
      - FS_BAPI
      summary: Read Fiscal Year Information
      operationId: /rfc/BAPI_BUPA_FS_FISCYEAR_GET2
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BUSINESSPARTNER:
                  type: string
                  maxLength: 10
                  description: Business Partner Number
                FISCALYEAR:
                  type: integer
                  format: int64
                  description: Fiscal year
                FISCYEARDATA:
                  type: array
                  items:
                    type: object
                    properties:
                      FISCAL_YR:
                        type: integer
                        format: int64
                        description: Fiscal Year
                      CURRENCY:
                        type: string
                        maxLength: 5
                        description: Balance Sheet Currency
                      ISO_CODE:
                        type: string
                        maxLength: 3
                        description: ISO currency code
                      DT_ST_MTG:
                        type: string
                        format: date
                        description: Date of Annual Stockholders Meeting
                      FY_START:
                        type: string
                        format: date
                        description: Fiscal Year Start Date
                      FY_END:
                        type: string
                        format: date
                        description: Fiscal Year End Date
                      CLOSING:
                        type: string
                        maxLength: 1
                        description: 'Year-End Closing  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      DT_CLOSING:
                        type: string
                        format: date
                        description: Year-End Closing Date for Fiscal Year
                      CONS_ACCTS:
                        type: string
                        format: date
                        description: Date of Consolidated Financial Statements of Group Company
                      CAP_STOCK:
                        type: integer
                        format: int64
                        description: Authorized Capital Stock
                      STOCK_CAP:
                        type: integer
                        format: int64
                        description: Issued Stock Capital
                      PART_CERTS:
                        type: integer
                        format: int64
                        description: Participation Certificates Outstanding
                      EQUITYCAP:
                        type: integer
                        format: int64
                        description: Equity Capital
                      GR_CONTRIB:
                        type: integer
                        format: int64
                        description: Gross Contribution
                      NET_CONTR:
                        type: integer
                        format: int64
                        description: Net Contribution
                      SALES:
                        type: integer
                        format: int64
                        description: Annual Sales
                      SURPLUS:
                        type: integer
                        format: int64
                        description: Annual Net Income
                      DIVIDEND:
                        type: integer
                        format: int64
                        description: Dividend/Profit Distribution Amount
                      DEBT_RATIO:
                        type: integer
                        format: int64
                        description: Debt ratio
                      PROFIT:
                        type: integer
                        format: int64
                        description: Profit Reported by Organization
                      BS_TOTAL:
                        type: integer
                        format: int64
                        description: Balance Sheet Total
                      CAP_RES:
                        type: integer
                        format: int64
                        description: Capital Reserve
                      RETEARNST:
                        type: integer
                        format: int64
                        description: Legal Revenue Reserves
                      RETEARNOS:
                        type: integer
                        format: int64
                        description: Revenue Reserves for Own Stock
                      RETEARNART:
                        type: integer
                        format: int64
                        description: Statutory Revenue Reserve
                      RETEARNOTH:
                        type: integer
                        format: int64
                        description: Other Revenue Reserves
                      P_L_FORWRD:
                        type: integer
                        format: int64
                        description: Profit/Loss Carried Forward
                      SUB_LIAB:
                        type: integer
                        format: int64
                        description: Subordinated Liabilities
                      TOTCAPRETN:
                        type: integer
                        format: int64
                        description: Return on Total Capital Employed
                      DEBT_CL:
                        type: integer
                        format: int64
                        description: Debt Clearance Period
                      FIN_COEFF:
                        type: integer
                        format: int64
                        description: Financing Coefficient
                      EQUIT_RAT:
                        type: integer
                        format: int64
                        description: Equity Ratio
                      STAFF_COUNT:
                        type: integer
                        format: int64
                        description: Number of Employees
              required:
              - BUSINESSPARTNER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FISCYEARDATA:
                    type: array
                    items:
                      type: object
                      properties:
                        FISCAL_YR:
                          type: integer
                          format: int64
                          description: Fiscal Year
                        CURRENCY:
                          type: string
                          maxLength: 5
                          description: Balance Sheet Currency
                        ISO_CODE:
                          type: string
                          maxLength: 3
                          description: ISO currency code
                        DT_ST_MTG:
                          type: string
                          format: date
                          description: Date of Annual Stockholders Meeting
                        FY_START:
                          type: string
                          format: date
                          description: Fiscal Year Start Date
                        FY_END:
                          type: string
                          format: date
                          description: Fiscal Year End Date
                        CLOSING:
                          type: string
                          maxLength: 1
                          description: 'Year-End Closing  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        DT_CLOSING:
                          type: string
                          format: date
                          description: Year-End Closing Date for Fiscal Year
                        CONS_ACCTS:
                          type: string
                          format: date
                          description: Date of Consolidated Financial Statements of Group Company
                        CAP_STOCK:
                          type: integer
                          format: int64
                          description: Authorized Capital Stock
                        STOCK_CAP:
                          type: integer
                          format: int64
                          description: Issued Stock Capital
                        PART_CERTS:
                          type: integer
                          format: int64
                          description: Participation Certificates Outstanding
                        EQUITYCAP:
                          type: integer
                          format: int64
                          description: Equity Capital
                        GR_CONTRIB:
                          type: integer
                          format: int64
                          description: Gross Contribution
                        NET_CONTR:
                          type: integer
                          format: int64
                          description: Net Contribution
                        SALES:
                          type: integer
                          format: int64
                          description: Annual Sales
                        SURPLUS:
                          type: integer
                          format: int64
                          description: Annual Net Income
                        DIVIDEND:
                          type: integer
                          format: int64
                          description: Dividend/Profit Distribution Amount
                        DEBT_RATIO:
                          type: integer
                          format: int64
                          description: Debt ratio
                        PROFIT:
                          type: integer
                          format: int64
                          description: Profit Reported by Organization
                        BS_TOTAL:
                          type: integer
                          format: int64
                          description: Balance Sheet Total
                        CAP_RES:
                          type: integer
                          format: int64
                          description: Capital Reserve
                        RETEARNST:
                          type: integer
                          format: int64
                          description: Legal Revenue Reserves
                        RETEARNOS:
                          type: integer
                          format: int64
                          description: Revenue Reserves for Own Stock
                        RETEARNART:
                          type: integer
                          format: int64
                          description: Statutory Revenue Reserve
                        RETEARNOTH:
                          type: integer
                          format: int64
                          description: Other Revenue Reserves
                        P_L_FORWRD:
                          type: integer
                          format: int64
                          description: Profit/Loss Carried Forward
                        SUB_LIAB:
                          type: integer
                          format: int64
                          description: Subordinated Liabilities
                        TOTCAPRETN:
                          type: integer
                          format: int64
                          description: Return on Total Capital Employed
                        DEBT_CL:
                          type: integer
                          format: int64
                          description: Debt Clearance Period
                        FIN_COEFF:
                          type: integer
                          format: int64
                          description: Financing Coefficient
                        EQUIT_RAT:
                          type: integer
                          format: int64
                          description: Equity Ratio
                        STAFF_COUNT:
                          type: integer
                          format: int64
                          description: Number of Employees
                  RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
