openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_BUPA_FS_REPORTING_ADD:
    post:
      tags:
      - FS_BAPI2
      summary: Create Regulatory Reporting Data
      operationId: /rfc/BAPI_BUPA_FS_REPORTING_ADD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BUSINESSPARTNER:
                  type: string
                  maxLength: 10
                  description: Business Partner Number
                CHANGEDOCU:
                  type: object
                  properties:
                    CHANGE_DOCU:
                      type: string
                      maxLength: 1
                      description: 'Generate Change Documents  enumValues: X=TRUE,""=FALSE'
                      enum:
                      - X
                      - ''
                GENERALSETTINGS:
                  type: object
                  properties:
                    IDATE:
                      type: string
                      format: date
                      description: DB Field Contents Must Be Valid at This Date
                    TECH_DATE:
                      type: string
                      format: date
                      description: Consider Database Changes up to This Date Limit Only
                TESTRUN:
                  type: string
                  maxLength: 1
                  description: Activate Simulation Mode
                REPORTINGDATA:
                  type: array
                  items:
                    type: object
                    properties:
                      NONRESIDENT:
                        type: string
                        maxLength: 1
                        description: 'Non-Resident According to Paragraph 4 AWG  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      NONRESIDENT_DATE:
                        type: string
                        format: date
                        description: Start of Non-Residency According to Paragraph 4 AWG
                      REPORTING_RELEVANT:
                        type: string
                        maxLength: 1
                        description: 'Recipient of Multimillion Loan According to Paragraph 14 GBA  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      BORROWER_NR:
                        type: string
                        maxLength: 8
                        description: Borrower Number for Reporting a Loan According to GBA
                      BORROWER_UNIT:
                        type: string
                        maxLength: 8
                        description: Borrower Entity No. for Reporting a Loan According to GBA
                      CREDIT_STANDING_REVIEW:
                        type: integer
                        format: int64
                        description: Credit Standing Review According to Paragraph 18 GBA
                      CREDIT_STANDING_REVIEW_DATE:
                        type: string
                        format: date
                        description: Date of Credit Standing Review According to Paragraph 18 GBA
                      CREDIT_NOTIFICATION:
                        type: integer
                        format: int64
                        description: Loan to Manager According to Paragraph 15 German Banking Act
                      COMPANY_RELATIONSHIP:
                        type: string
                        maxLength: 1
                        description: 'Organization Relationship  enumValues: 4=Holding,1=Affiliated Company,2=Shareholding,3=Other'
                        enum:
                        - '4'
                        - '1'
                        - '2'
                        - '3'
                      NAT_BANK_ID_AUSTRIA:
                        type: string
                        maxLength: 11
                        description: (OeNB) Ident Number
                      NAT_BANK_GROUP_ID_AUSTRIA:
                        type: string
                        maxLength: 2
                        description: Target Group According to OeNB
                      ID_EXTERN_AUSTRIA:
                        type: string
                        maxLength: 1
                        description: 'Assign (OeNB) Ident Number  enumValues: 0=No,1=Yes'
                        enum:
                        - '0'
                        - '1'
                      BANK_CODE_AUSTRIA:
                        type: string
                        maxLength: 7
                        description: Institute Number According to OeNB
                      REPORTING_RELEVANT_BANK_AT:
                        type: string
                        maxLength: 1
                        description: 'Institute Subject to Austrian Reg. Reporting Requirements  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      ENTITY_REPORT:
                        type: string
                        maxLength: 2
                        description: 'Legal Entity for Business Partner  enumValues: 05=Public Credit Institution,04=Other Regional Governmnts, Local Authorities in EC/EEA (20%),01=Fed. Rep. Germany, States, Local Govmts and Loc. Authorities,03=International Organizations with FRG as Full Member,02=Partner States, Reg. Govmt, Local Authorities in EC/EEA (0%),06=Private Credit Institution,07=Private Companies (Except Credit Institutions),08=Other'
                        enum:
                        - '05'
                        - '04'
                        - '01'
                        - '03'
                        - '02'
                        - '06'
                        - '07'
                        - '08'
                      ENTITY_QUOTA:
                        type: string
                        maxLength: 1
                        description: 'Business Partner Acc. to Para. 3 Section 2 German Asset Reg.  enumValues: 1=BP According to Para. 3, Subp. 2 a - German Asset Regulation,2=BP According to Para. 3, Subp. 2 b - German Asset Regulation,3=BP According to Para. 3, Subp. 2 c - German Asset Regulation,4=BP According to Para. 3, Subp. 2 d - German Asset Regulation'
                        enum:
                        - '1'
                        - '2'
                        - '3'
                        - '4'
                      DEBTOR_GROUP:
                        type: string
                        maxLength: 1
                        description: 'Debtor Group According to German Law (BerVersV, Template 5)  enumValues: 1=Corporations and Institutions Under Public Law,2=Companies Under Private Law,3=Employees,4=Other Persons'
                        enum:
                        - '1'
                        - '2'
                        - '3'
                        - '4'
                      RISK_GROUP:
                        type: string
                        maxLength: 1
                        description: 'Risk Group  enumValues: 1=Credits Without Discernible Risk,0=No Risk Group,2=Credits with Increased, Latent Risk,3=Value-Adjusted Credits'
                        enum:
                        - '1'
                        - '0'
                        - '2'
                        - '3'
                      CLASSIFICATION_DATE:
                        type: string
                        format: date
                        description: Date of Risk Grouping
                      COMBINE_TIE:
                        type: string
                        maxLength: 1
                        description: 'Group Affiliation Exists  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      MFI:
                        type: string
                        maxLength: 1
                        description: 'Monetary Financial Institution  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      LEGAL_RELEVANT:
                        type: string
                        maxLength: 1
                        description: 'Obligation to Submit to Credit Standing Review - Para.18 GBA  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      LARGE_CREDIT_CHECK:
                        type: string
                        maxLength: 1
                        description: 'Large-Scale Loan Monitoring According to Paragraph 13b GBA  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      CREDITING_RELIEF:
                        type: string
                        maxLength: 1
                        description: 'Crediting Relief in Accordance with §13/3 GBA  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      PAR1_ABS1_REL:
                        type: string
                        maxLength: 1
                        description: 'Authorized Acc. to Para. 1/1 No. 20b German Asset Regulation  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      LZB_COUNTRY_KEY:
                        type: string
                        maxLength: 4
                        description: Numeric Code for German Federal Bank Country Indicator
              required:
              - BUSINESSPARTNER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  REPORTINGDATA:
                    type: array
                    items:
                      type: object
                      properties:
                        NONRESIDENT:
                          type: string
                          maxLength: 1
                          description: 'Non-Resident According to Paragraph 4 AWG  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        NONRESIDENT_DATE:
                          type: string
                          format: date
                          description: Start of Non-Residency According to Paragraph 4 AWG
                        REPORTING_RELEVANT:
                          type: string
                          maxLength: 1
                          description: 'Recipient of Multimillion Loan According to Paragraph 14 GBA  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        BORROWER_NR:
                          type: string
                          maxLength: 8
                          description: Borrower Number for Reporting a Loan According to GBA
                        BORROWER_UNIT:
                          type: string
                          maxLength: 8
                          description: Borrower Entity No. for Reporting a Loan According to GBA
                        CREDIT_STANDING_REVIEW:
                          type: integer
                          format: int64
                          description: Credit Standing Review According to Paragraph 18 GBA
                        CREDIT_STANDING_REVIEW_DATE:
                          type: string
                          format: date
                          description: Date of Credit Standing Review According to Paragraph 18 GBA
                        CREDIT_NOTIFICATION:
                          type: integer
                          format: int64
                          description: Loan to Manager According to Paragraph 15 German Banking Act
                        COMPANY_RELATIONSHIP:
                          type: string
                          maxLength: 1
                          description: 'Organization Relationship  enumValues: 4=Holding,1=Affiliated Company,2=Shareholding,3=Other'
                          enum:
                          - '4'
                          - '1'
                          - '2'
                          - '3'
                        NAT_BANK_ID_AUSTRIA:
                          type: string
                          maxLength: 11
                          description: (OeNB) Ident Number
                        NAT_BANK_GROUP_ID_AUSTRIA:
                          type: string
                          maxLength: 2
                          description: Target Group According to OeNB
                        ID_EXTERN_AUSTRIA:
                          type: string
                          maxLength: 1
                          description: 'Assign (OeNB) Ident Number  enumValues: 0=No,1=Yes'
                          enum:
                          - '0'
                          - '1'
                        BANK_CODE_AUSTRIA:
                          type: string
                          maxLength: 7
                          description: Institute Number According to OeNB
                        REPORTING_RELEVANT_BANK_AT:
                          type: string
                          maxLength: 1
                          description: 'Institute Subject to Austrian Reg. Reporting Requirements  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        ENTITY_REPORT:
                          type: string
                          maxLength: 2
                          description: 'Legal Entity for Business Partner  enumValues: 05=Public Credit Institution,04=Other Regional Governmnts, Local Authorities in EC/EEA (20%),01=Fed. Rep. Germany, States, Local Govmts and Loc. Authorities,03=International Organizations with FRG as Full Member,02=Partner States, Reg. Govmt, Local Authorities in EC/EEA (0%),06=Private Credit Institution,07=Private Companies (Except Credit Institutions),08=Other'
                          enum:
                          - '05'
                          - '04'
                          - '01'
                          - '03'
                          - '02'
                          - '06'
                          - '07'
                          - '08'
                        ENTITY_QUOTA:
                          type: string
                          maxLength: 1
                          description: 'Business Partner Acc. to Para. 3 Section 2 German Asset Reg.  enumValues: 1=BP According to Para. 3, Subp. 2 a - German Asset Regulation,2=BP According to Para. 3, Subp. 2 b - German Asset Regulation,3=BP According to Para. 3, Subp. 2 c - German Asset Regulation,4=BP According to Para. 3, Subp. 2 d - German Asset Regulation'
                          enum:
                          - '1'
                          - '2'
                          - '3'
                          - '4'
                        DEBTOR_GROUP:
                          type: string
                          maxLength: 1
                          description: 'Debtor Group According to German Law (BerVersV, Template 5)  enumValues: 1=Corporations and Institutions Under Public Law,2=Companies Under Private Law,3=Employees,4=Other Persons'
                          enum:
                          - '1'
                          - '2'
                          - '3'
                          - '4'
                        RISK_GROUP:
                          type: string
                          maxLength: 1
                          description: 'Risk Group  enumValues: 1=Credits Without Discernible Risk,0=No Risk Group,2=Credits with Increased, Latent Risk,3=Value-Adjusted Credits'
                          enum:
                          - '1'
                          - '0'
                          - '2'
                          - '3'
                        CLASSIFICATION_DATE:
                          type: string
                          format: date
                          description: Date of Risk Grouping
                        COMBINE_TIE:
                          type: string
                          maxLength: 1
                          description: 'Group Affiliation Exists  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        MFI:
                          type: string
                          maxLength: 1
                          description: 'Monetary Financial Institution  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        LEGAL_RELEVANT:
                          type: string
                          maxLength: 1
                          description: 'Obligation to Submit to Credit Standing Review - Para.18 GBA  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        LARGE_CREDIT_CHECK:
                          type: string
                          maxLength: 1
                          description: 'Large-Scale Loan Monitoring According to Paragraph 13b GBA  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        CREDITING_RELIEF:
                          type: string
                          maxLength: 1
                          description: 'Crediting Relief in Accordance with §13/3 GBA  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        PAR1_ABS1_REL:
                          type: string
                          maxLength: 1
                          description: 'Authorized Acc. to Para. 1/1 No. 20b German Asset Regulation  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        LZB_COUNTRY_KEY:
                          type: string
                          maxLength: 4
                          description: Numeric Code for German Federal Bank Country Indicator
                  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.
