openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_FOREIGN_KEY_UPDATE:
    post:
      tags:
      - SIFD
      operationId: /rfc/RPY_FOREIGN_KEY_UPDATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTIVATION_TYPE:
                  type: string
                  default: N
                  maxLength: 1
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                REPLACE:
                  type: string
                  default: ' '
                  maxLength: 1
                TABLE_NAME:
                  type: string
                  maxLength: 30
                TRANSPORT_NUMBER:
                  type: string
                  default: ' '
                  maxLength: 20
                FORKEY_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      TABLNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Name of the field to be checked
                      FORTABLE:
                        type: string
                        maxLength: 30
                        description: Table of the foreign key field
                      FORFIELD:
                        type: string
                        maxLength: 30
                        description: Names of Foreign Key Fields
                      CHECKTABLE:
                        type: string
                        maxLength: 30
                        description: Check table name of the foreign key
                      CHECKFIELD:
                        type: string
                        maxLength: 30
                        description: Field Name
                      PRIMPOS:
                        type: integer
                        format: int64
                        description: Position of corresp. foreign key field in primary key
                      DOMANAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                FORKEY_INF:
                  type: array
                  items:
                    type: object
                    properties:
                      TABLNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Name of the field to be checked
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      CHECKTABLE:
                        type: string
                        maxLength: 30
                        description: Check table name of the foreign key
                      FRKTYPE:
                        type: string
                        maxLength: 4
                        description: 'Dependency factor for semantic foreign keys  enumValues: OBL=Mandatory foreign key,ID=Identifying foreign key,TEXT=Foreign key for a text table,OPT=Optional foreign key'
                        enum:
                        - OBL
                        - ID
                        - TEXT
                        - OPT
                      CLASFIELD:
                        type: string
                        maxLength: 30
                        description: 'Internal classification of foreign keys: partial, etc.'
                      CARD:
                        type: string
                        maxLength: 2
                        description: 'Cardinality of a relationship  enumValues: C=Each record in check table has max. of one dependent record,1=Each record in check table has exactly one dependent record,CN=Each record in check table has any no. of dependent records,N=Each record in check table has at least one dependent record'
                        enum:
                        - C
                        - '1'
                        - CN
                        - N
                      NOCHECK:
                        type: string
                        maxLength: 1
                        description: 'No check in Screen Painter  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      DDTEXT:
                        type: string
                        maxLength: 60
                        description: Explanatory short text
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MSGNR:
                        type: string
                        maxLength: 3
                        description: Message number
                      NOINHERIT:
                        type: string
                        maxLength: 1
                        description: 'DD: Flag whether inheritance is switched off for the FRK  enumValues: ""=Not Included,Y=Foreign key maintained in including structure,N=Foreign key inherited from included structure'
                        enum:
                        - ''
                        - Y
                        - N
              required:
              - TABLE_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FORKEY_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        TABLNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Name of the field to be checked
                        FORTABLE:
                          type: string
                          maxLength: 30
                          description: Table of the foreign key field
                        FORFIELD:
                          type: string
                          maxLength: 30
                          description: Names of Foreign Key Fields
                        CHECKTABLE:
                          type: string
                          maxLength: 30
                          description: Check table name of the foreign key
                        CHECKFIELD:
                          type: string
                          maxLength: 30
                          description: Field Name
                        PRIMPOS:
                          type: integer
                          format: int64
                          description: Position of corresp. foreign key field in primary key
                        DOMANAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                  FORKEY_INF:
                    type: array
                    items:
                      type: object
                      properties:
                        TABLNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Name of the field to be checked
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        CHECKTABLE:
                          type: string
                          maxLength: 30
                          description: Check table name of the foreign key
                        FRKTYPE:
                          type: string
                          maxLength: 4
                          description: 'Dependency factor for semantic foreign keys  enumValues: OBL=Mandatory foreign key,ID=Identifying foreign key,TEXT=Foreign key for a text table,OPT=Optional foreign key'
                          enum:
                          - OBL
                          - ID
                          - TEXT
                          - OPT
                        CLASFIELD:
                          type: string
                          maxLength: 30
                          description: 'Internal classification of foreign keys: partial, etc.'
                        CARD:
                          type: string
                          maxLength: 2
                          description: 'Cardinality of a relationship  enumValues: C=Each record in check table has max. of one dependent record,1=Each record in check table has exactly one dependent record,CN=Each record in check table has any no. of dependent records,N=Each record in check table has at least one dependent record'
                          enum:
                          - C
                          - '1'
                          - CN
                          - N
                        NOCHECK:
                          type: string
                          maxLength: 1
                          description: 'No check in Screen Painter  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        DDTEXT:
                          type: string
                          maxLength: 60
                          description: Explanatory short text
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Application Area
                        MSGNR:
                          type: string
                          maxLength: 3
                          description: Message number
                        NOINHERIT:
                          type: string
                          maxLength: 1
                          description: 'DD: Flag whether inheritance is switched off for the FRK  enumValues: ""=Not Included,Y=Foreign key maintained in including structure,N=Foreign key inherited from included structure'
                          enum:
                          - ''
                          - Y
                          - N
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
