openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/BUPA_FS_REMOVEFISCYEAR01/BUPA_FS_REMOVEFISCYEAR:
    post:
      summary: 'BAPI: Delete Fiscal Year Information'
      operationId: /idoc/BUPA_FS_REMOVEFISCYEAR01/BUPA_FS_REMOVEFISCYEAR
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                EDI_DC40:
                  properties:
                    TABNAM:
                      type: string
                      maxLength: 10
                      description: Name of Table Structure
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    DOCNUM:
                      type: string
                      maxLength: 16
                      description: IDoc number
                    DOCREL:
                      type: string
                      maxLength: 4
                      description: SAP Release for IDoc
                    STATUS:
                      type: string
                      maxLength: 2
                      description: Status of IDoc
                    DIRECT:
                      type: string
                      maxLength: 1
                      description: 'Direction enumValues: 1=Outbound, 2=Inbound'
                      enum:
                      - '1'
                      - '2'
                    OUTMOD:
                      type: string
                      maxLength: 1
                      description: 'Output mode enumValues: 1=Transfer IDoc immediately and start external subsystem, 2=Transfer IDoc immediately, 3=Collect IDocs, transfer and start external subsystem, 4=Collect IDocs and transfer'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                      - '4'
                    EXPRSS:
                      type: string
                      maxLength: 1
                      description: 'Overriding in inbound processing enumValues: ""=No overriding, X=Overriding'
                      enum:
                      - ''
                      - X
                    TEST:
                      type: string
                      maxLength: 1
                      description: 'Test flag enumValues: ""=IDoc contains a productive message, X=IDoc contains a test message'
                      enum:
                      - ''
                      - X
                    IDOCTYP:
                      type: string
                      maxLength: 30
                      description: Name of basic type
                    CIMTYP:
                      type: string
                      maxLength: 30
                      description: Extension (defined by customer)
                    MESTYP:
                      type: string
                      maxLength: 30
                      description: Message type
                    MESCOD:
                      type: string
                      maxLength: 3
                      description: Message code
                    MESFCT:
                      type: string
                      maxLength: 3
                      description: Message Function
                    STD:
                      type: string
                      maxLength: 1
                      description: EDI standard, flag
                    STDVRS:
                      type: string
                      maxLength: 6
                      description: EDI standard, version and release
                    STDMES:
                      type: string
                      maxLength: 6
                      description: EDI message type
                    SNDPOR:
                      type: string
                      maxLength: 10
                      description: Sender port (SAP System, external subsystem)
                    SNDPRT:
                      type: string
                      maxLength: 2
                      description: Partner type of sender
                    SNDPFC:
                      type: string
                      maxLength: 2
                      description: Partner Function of Sender
                    SNDPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Sender
                    SNDSAD:
                      type: string
                      maxLength: 21
                      description: Sender address (SADR)
                    SNDLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of sender
                    RCVPOR:
                      type: string
                      maxLength: 10
                      description: Receiver port
                    RCVPRT:
                      type: string
                      maxLength: 2
                      description: Partner Type of Receiver
                    RCVPFC:
                      type: string
                      maxLength: 2
                      description: Partner function of recipient
                    RCVPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Receiver
                    RCVSAD:
                      type: string
                      maxLength: 21
                      description: Recipient address (SADR)
                    RCVLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of recipient
                    CREDAT:
                      type: string
                      format: date
                      maxLength: 8
                      description: Created on
                    CRETIM:
                      type: string
                      maxLength: 6
                      description: Created at
                    REFINT:
                      type: string
                      maxLength: 14
                      description: Transmission file (EDI Interchange)
                    REFGRP:
                      type: string
                      maxLength: 14
                      description: Message group (EDI Message Group)
                    REFMES:
                      type: string
                      maxLength: 14
                      description: Message (EDI Message)
                    ARCKEY:
                      type: string
                      maxLength: 70
                      description: Key for external message archive
                    SERIAL:
                      type: string
                      maxLength: 20
                      description: Serialization
                E1BUPA_FS_REMOVEFISCYEAR:
                  type: array
                  items:
                    properties:
                      BUSINESSPARTNER:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      TESTRUN:
                        type: string
                        maxLength: 1
                        description: 'Switch to Simulation Session for Write BAPIs: ""=Not set,X=Set'
                        enum:
                        - ''
                        - X
                      E1BP_STR_BUPA_FS_CHANGE_DOC:
                        type: array
                        items:
                          properties:
                            CHANGE_DOCU:
                              type: string
                              maxLength: 1
                              description: 'Generate Change Documents: X=TRUE,""=FALSE'
                              enum:
                              - X
                              - ''
                      E1BP_STR_BUPA_FS_FISCYEAR:
                        type: array
                        items:
                          properties:
                            FISCAL_YR:
                              type: string
                              maxLength: 4
                              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
                              maxLength: 8
                              description: Date of Annual Stockholders Meeting
                            FY_START:
                              type: string
                              format: date
                              maxLength: 8
                              description: Fiscal Year Start Date
                            FY_END:
                              type: string
                              format: date
                              maxLength: 8
                              description: Fiscal Year End Date
                            CLOSING:
                              type: string
                              maxLength: 1
                              description: 'Year-End Closing: X=Yes,""=No'
                              enum:
                              - X
                              - ''
                            DT_CLOSING:
                              type: string
                              format: date
                              maxLength: 8
                              description: Year-End Closing Date for Fiscal Year
                            CONS_ACCTS:
                              type: string
                              format: date
                              maxLength: 8
                              description: Date of Consolidated Financial Statements of Group Company
                            CAP_STOCK:
                              type: string
                              maxLength: 17
                              description: Authorized Capital Stock
                            STOCK_CAP:
                              type: string
                              maxLength: 17
                              description: Issued Stock Capital
                            PART_CERTS:
                              type: string
                              maxLength: 17
                              description: Participation Certificates Outstanding
                            EQUITYCAP:
                              type: string
                              maxLength: 17
                              description: Equity capital
                            GR_CONTRIB:
                              type: string
                              maxLength: 17
                              description: Gross Contribution
                            NET_CONTR:
                              type: string
                              maxLength: 17
                              description: Net contribution
                            SALES:
                              type: string
                              maxLength: 17
                              description: Annual Sales
                            SURPLUS:
                              type: string
                              maxLength: 17
                              description: Annual Net Income
                            DIVIDEND:
                              type: string
                              maxLength: 17
                              description: Dividend/profit distribution amount
                            DEBT_RATIO:
                              type: number
                              maxLength: 9
                              description: Debt ratio
                            PROFIT:
                              type: string
                              maxLength: 17
                              description: Profit Reported by Organization
                            BS_TOTAL:
                              type: string
                              maxLength: 17
                              description: Balance Sheet Total
                            CAP_RES:
                              type: string
                              maxLength: 17
                              description: Capital Reserve
                            RETEARNST:
                              type: string
                              maxLength: 17
                              description: Legal Revenue Reserves
                            RETEARNOS:
                              type: string
                              maxLength: 17
                              description: Revenue Reserves for Own Stock
                            RETEARNART:
                              type: string
                              maxLength: 17
                              description: Statutory Reserve
                            RETEARNOTH:
                              type: string
                              maxLength: 17
                              description: Other Revenue Reserves
                            P_L_FORWRD:
                              type: string
                              maxLength: 17
                              description: Profit/Loss Carried Forward
                            SUB_LIAB:
                              type: string
                              maxLength: 17
                              description: Subordinated Liabilities
                            TOTCAPRETN:
                              type: number
                              maxLength: 7
                              description: Return on Total Capital Employed
                            DEBT_CL:
                              type: number
                              maxLength: 7
                              description: Debt Clearance Period
                            FIN_COEFF:
                              type: number
                              maxLength: 7
                              description: Financing Coefficient
                            EQUIT_RAT:
                              type: number
                              maxLength: 7
                              description: Equity Ratio
                            STAFF_COUNT:
                              type: string
                              maxLength: 7
                              description: Number of Employees
                    required:
                    - E1BUPA_FS_REMOVEFISCYEAR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
