openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDUY_ENTITY_INSERT_OLD:
    post:
      tags:
      - SIDM
      summary: Insert Entity Type
      operationId: /rfc/SDUY_ENTITY_INSERT_OLD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DEVELOPMENT_CLASS:
                  type: string
                  default: $TMP
                  maxLength: 30
                DOCUTYPE:
                  type: string
                  default: T
                  maxLength: 1
                ENTITY_INF:
                  type: object
                  properties:
                    ENTITY_ID:
                      type: string
                      maxLength: 26
                      description: Entity type name
                    LANGUAGE:
                      type: string
                      maxLength: 1
                      description: Language Key
                    TIME_DEP:
                      type: string
                      maxLength: 1
                      description: 'Time-dependency flag  enumValues: ""=Non-time-dependent,X=Time-dependent'
                      enum:
                      - ''
                      - X
                    TIME_UNIT:
                      type: string
                      maxLength: 20
                      description: 'Time unit  enumValues: GESCH.JAHR=Fiscal year,GLTIG.END=Valid To Date,PLAN.ZEITR=Planning periods,ZEITPUNKT=Time,HISTORIE=History,GE.J/ZUG.J=Fiscal year/acquisition year,""=Not a measurement unit,ZU/AB.JAHR=Acquisition year/asset retirement year,MONAT=Month,KAL.JAHR=Calendar year,EINT.TERM.=Schedule line date,ZUGANGSJ=Acquisition year,PLAN.ZEITP=Planning time,GE.J/ZU.PE=Fiscal year/acquisition period,GE.J/KAL.J=Fiscal year/calendar year,BEW.ZEITP.=Movement time,ABGANGSJ=Asset
                        retirement year,TAG.ABSCHN=Section of the day,GEBURTSZP=Time of birth,AUSF.ZEITP=Execution time,SCHICHT=Shift,ANLAGEZEIT=Time created,STUNDE=Hour,AUFNAHMEZP=Time of physical inventory,BUCH.PER.=Posting period,PERIODE=Period,LIEFERTERM=Delivery date,BEDARFSZ=Requirements time,ENDZEITP.=End time,BU.PER/KAL=Posting period/calendar year,JAHR=Year,BU.P/ZUG.P=Posting period/acquisition period,GLTIG.ZR=Validity Period,BUCH.ZEITP=Posting time,GLTIG.BEG=Valid From Date,ZUGANGSPER=Acquisition
                        period,PLAN.ZR/ZP=Planning period/planning time,TAG=Day,ANF.ZEITP.=Start time'
                      enum:
                      - GESCH.JAHR
                      - GLTIG.END
                      - PLAN.ZEITR
                      - ZEITPUNKT
                      - HISTORIE
                      - GE.J/ZUG.J
                      - ''
                      - ZU/AB.JAHR
                      - MONAT
                      - KAL.JAHR
                      - EINT.TERM.
                      - ZUGANGSJ
                      - PLAN.ZEITP
                      - GE.J/ZU.PE
                      - GE.J/KAL.J
                      - BEW.ZEITP.
                      - ABGANGSJ
                      - TAG.ABSCHN
                      - GEBURTSZP
                      - AUSF.ZEITP
                      - SCHICHT
                      - ANLAGEZEIT
                      - STUNDE
                      - AUFNAHMEZP
                      - BUCH.PER.
                      - PERIODE
                      - LIEFERTERM
                      - BEDARFSZ
                      - ENDZEITP.
                      - BU.PER/KAL
                      - JAHR
                      - BU.P/ZUG.P
                      - GLTIG.ZR
                      - BUCH.ZEITP
                      - GLTIG.BEG
                      - ZUGANGSPER
                      - PLAN.ZR/ZP
                      - TAG
                      - ANF.ZEITP.
                    CUSTOMIZ:
                      type: string
                      maxLength: 1
                      description: 'Flag: customizing object  enumValues: A=Is generally applicable,C=Is only used in customizing,""=Is not used in customizing'
                      enum:
                      - A
                      - C
                      - ''
                    SHORTTEXT:
                      type: string
                      maxLength: 60
                      description: Short text
                    MOD_USER:
                      type: string
                      maxLength: 12
                      description: Changed by
                    MOD_DATE:
                      type: string
                      format: date
                      description: Changed on
                    MOD_TIME:
                      type: string
                      maxLength: 6
                      description: Last changed at
                ENTITY_NAME:
                  type: string
                  maxLength: 26
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                TRANSPORT_NUMBER:
                  type: string
                  default: ' '
                  maxLength: 20
                WITH_DOCU:
                  type: string
                  default: X
                  maxLength: 1
                ALIAS_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ENTITY_ID:
                        type: string
                        maxLength: 26
                        description: Entity type name
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      POSITION:
                        type: integer
                        format: int64
                        description: Attribute position
                      ALIAS:
                        type: string
                        maxLength: 60
                        description: Alias Name
                      MOD_USER:
                        type: string
                        maxLength: 12
                        description: Changed by
                      MOD_DATE:
                        type: string
                        format: date
                        description: Changed on
                ATTRIBUTE_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ENTITY_ID:
                        type: string
                        maxLength: 26
                        description: Entity type name
                      ATTRIB_ID:
                        type: string
                        maxLength: 30
                        description: Attribute ID
                      POSITION:
                        type: integer
                        format: int64
                        description: Attribute position
                      DICTFIELD:
                        type: string
                        maxLength: 1
                        description: 'Flag: transferred from Dictionary  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      ATTINHERIT:
                        type: string
                        maxLength: 1
                        description: 'Flag for inherited fields  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      ATTCLASS1:
                        type: string
                        maxLength: 1
                        description: 'Classification of entity type fields by purpose  enumValues: ""=,K=Conceptual,S=Conceptual key,L=Country-specific,P=Technical,O=Organizational,B=Repr. for relationship'
                        enum:
                        - ''
                        - K
                        - S
                        - L
                        - P
                        - O
                        - B
                      ATTCLASS2:
                        type: string
                        maxLength: 1
                        description: 'Classification of entity type fields by purpose  enumValues: ""=,K=Conceptual,S=Conceptual key,L=Country-specific,P=Technical,O=Organizational,B=Repr. for relationship'
                        enum:
                        - ''
                        - K
                        - S
                        - L
                        - P
                        - O
                        - B
                      DTELNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      MOD_USER:
                        type: string
                        maxLength: 12
                        description: Changed by
                      MOD_DATE:
                        type: string
                        format: date
                        description: Changed on
                      MOD_TIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                DOCU_TABLE_TECH:
                  type: array
                  items:
                    type: object
                    properties:
                      TDFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TDLINE:
                        type: string
                        maxLength: 132
                        description: Text Line
                DOCU_TABLE_USER:
                  type: array
                  items:
                    type: object
                    properties:
                      KEY_ID:
                        type: string
                        maxLength: 1
                        description: Line type ID with complex objects
                      OBJLINE:
                        type: string
                        maxLength: 72
                        description: 'EDIC: Program editor line'
                RELATION_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ENTID_FROM:
                        type: string
                        maxLength: 26
                        description: Start entity type
                      ENTID_TO:
                        type: string
                        maxLength: 26
                        description: Target entity type
                      ROLE:
                        type: string
                        maxLength: 1
                        description: Relationship role
                      CATEGORY:
                        type: string
                        maxLength: 1
                        description: 'Relationship type  enumValues: H=Hierarchical,R=Referential,X=External,A=Aggregating'
                        enum:
                        - H
                        - R
                        - X
                        - A
                      CARDINAL1:
                        type: string
                        maxLength: 2
                        description: 'Cardinality of a relationship  enumValues: 1=Each dependent entity has exactly one source entity,C=Each dependent entity has a maximum of one source entity'
                        enum:
                        - '1'
                        - C
                      CARDINAL2:
                        type: string
                        maxLength: 2
                        description: 'Cardinality of a relationship  enumValues: N=Each source entity has at least one dependent entity,XX=Relationship to objects not belonging to the SAP data model,C=Each source entity has a maximum of one dependent entity,1=Each source entity has exactly one dependent entity,CN=Each source entity has any number of dependent entities'
                        enum:
                        - N
                        - XX
                        - C
                        - '1'
                        - CN
                      TEMP_REF:
                        type: string
                        maxLength: 1
                        description: 'Temporary reference for relationships  enumValues: X=Reference restriction,""=No reference restriction'
                        enum:
                        - X
                        - ''
                      RELTXT_F_T:
                        type: string
                        maxLength: 30
                        description: Relationship name
                      RELTXT_T_F:
                        type: string
                        maxLength: 30
                        description: Relationship name
                      SHTXT_FROM:
                        type: string
                        maxLength: 60
                        description: Short text
                      SHTXT_TO:
                        type: string
                        maxLength: 60
                        description: Short text
                      MOD_USER:
                        type: string
                        maxLength: 12
                        description: Changed by
                      MOD_DATE:
                        type: string
                        format: date
                        description: Changed on
                      MOD_TIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                SPECIALIZATION_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ENTID_FROM:
                        type: string
                        maxLength: 26
                        description: Start entity type
                      ENTID_TO:
                        type: string
                        maxLength: 26
                        description: Target entity type
                      SPEZ_ID:
                        type: string
                        maxLength: 4
                        description: Specialization category
                      SHTXT_FROM:
                        type: string
                        maxLength: 60
                        description: Short text
                      SHTXT_TO:
                        type: string
                        maxLength: 60
                        description: Short text
                      MOD_USER:
                        type: string
                        maxLength: 12
                        description: Changed by
                      MOD_DATE:
                        type: string
                        format: date
                        description: Changed on
                      MOD_TIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                SPECTYPE_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ENTITY_ID:
                        type: string
                        maxLength: 26
                        description: Entity type name
                      SPEZ_ID:
                        type: string
                        maxLength: 4
                        description: Specialization category
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      COMPLETE:
                        type: string
                        maxLength: 1
                        description: 'Flag: Completeness of specialization  enumValues: X='
                        enum:
                        - X
                      DISJUNCT:
                        type: string
                        maxLength: 1
                        description: 'Flag: disjunct specialization  enumValues: X='
                        enum:
                        - X
                      SHORTTEXT:
                        type: string
                        maxLength: 60
                        description: Short text
                      MOD_USER:
                        type: string
                        maxLength: 12
                        description: Changed by
                      MOD_DATE:
                        type: string
                        format: date
                        description: Changed on
                      MOD_TIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                VARIANT_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ENTITY_ID:
                        type: string
                        maxLength: 26
                        description: Entity type name
                      VARIANT:
                        type: string
                        maxLength: 2
                        description: Variant
                      MOD_USER:
                        type: string
                        maxLength: 12
                        description: Changed by
                      MOD_DATE:
                        type: string
                        format: date
                        description: Changed on
                      MOD_TIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                VIEW_TABLE_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ENTITY_ID:
                        type: string
                        maxLength: 26
                        description: Entity type name
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Name of SAP table view
                      MOD_USER:
                        type: string
                        maxLength: 12
                        description: Changed by
                      MOD_DATE:
                        type: string
                        format: date
                        description: Changed on
                      MOD_TIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
              required:
              - ENTITY_INF
              - ENTITY_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ALIAS_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ENTITY_ID:
                          type: string
                          maxLength: 26
                          description: Entity type name
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        POSITION:
                          type: integer
                          format: int64
                          description: Attribute position
                        ALIAS:
                          type: string
                          maxLength: 60
                          description: Alias Name
                        MOD_USER:
                          type: string
                          maxLength: 12
                          description: Changed by
                        MOD_DATE:
                          type: string
                          format: date
                          description: Changed on
                  ATTRIBUTE_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ENTITY_ID:
                          type: string
                          maxLength: 26
                          description: Entity type name
                        ATTRIB_ID:
                          type: string
                          maxLength: 30
                          description: Attribute ID
                        POSITION:
                          type: integer
                          format: int64
                          description: Attribute position
                        DICTFIELD:
                          type: string
                          maxLength: 1
                          description: 'Flag: transferred from Dictionary  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        ATTINHERIT:
                          type: string
                          maxLength: 1
                          description: 'Flag for inherited fields  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        ATTCLASS1:
                          type: string
                          maxLength: 1
                          description: 'Classification of entity type fields by purpose  enumValues: ""=,K=Conceptual,S=Conceptual key,L=Country-specific,P=Technical,O=Organizational,B=Repr. for relationship'
                          enum:
                          - ''
                          - K
                          - S
                          - L
                          - P
                          - O
                          - B
                        ATTCLASS2:
                          type: string
                          maxLength: 1
                          description: 'Classification of entity type fields by purpose  enumValues: ""=,K=Conceptual,S=Conceptual key,L=Country-specific,P=Technical,O=Organizational,B=Repr. for relationship'
                          enum:
                          - ''
                          - K
                          - S
                          - L
                          - P
                          - O
                          - B
                        DTELNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        MOD_USER:
                          type: string
                          maxLength: 12
                          description: Changed by
                        MOD_DATE:
                          type: string
                          format: date
                          description: Changed on
                        MOD_TIME:
                          type: string
                          maxLength: 6
                          description: Last changed at
                  DOCU_TABLE_TECH:
                    type: array
                    items:
                      type: object
                      properties:
                        TDFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TDLINE:
                          type: string
                          maxLength: 132
                          description: Text Line
                  DOCU_TABLE_USER:
                    type: array
                    items:
                      type: object
                      properties:
                        KEY_ID:
                          type: string
                          maxLength: 1
                          description: Line type ID with complex objects
                        OBJLINE:
                          type: string
                          maxLength: 72
                          description: 'EDIC: Program editor line'
                  RELATION_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ENTID_FROM:
                          type: string
                          maxLength: 26
                          description: Start entity type
                        ENTID_TO:
                          type: string
                          maxLength: 26
                          description: Target entity type
                        ROLE:
                          type: string
                          maxLength: 1
                          description: Relationship role
                        CATEGORY:
                          type: string
                          maxLength: 1
                          description: 'Relationship type  enumValues: H=Hierarchical,R=Referential,X=External,A=Aggregating'
                          enum:
                          - H
                          - R
                          - X
                          - A
                        CARDINAL1:
                          type: string
                          maxLength: 2
                          description: 'Cardinality of a relationship  enumValues: 1=Each dependent entity has exactly one source entity,C=Each dependent entity has a maximum of one source entity'
                          enum:
                          - '1'
                          - C
                        CARDINAL2:
                          type: string
                          maxLength: 2
                          description: 'Cardinality of a relationship  enumValues: N=Each source entity has at least one dependent entity,XX=Relationship to objects not belonging to the SAP data model,C=Each source entity has a maximum of one dependent entity,1=Each source entity has exactly one dependent entity,CN=Each source entity has any number of dependent entities'
                          enum:
                          - N
                          - XX
                          - C
                          - '1'
                          - CN
                        TEMP_REF:
                          type: string
                          maxLength: 1
                          description: 'Temporary reference for relationships  enumValues: X=Reference restriction,""=No reference restriction'
                          enum:
                          - X
                          - ''
                        RELTXT_F_T:
                          type: string
                          maxLength: 30
                          description: Relationship name
                        RELTXT_T_F:
                          type: string
                          maxLength: 30
                          description: Relationship name
                        SHTXT_FROM:
                          type: string
                          maxLength: 60
                          description: Short text
                        SHTXT_TO:
                          type: string
                          maxLength: 60
                          description: Short text
                        MOD_USER:
                          type: string
                          maxLength: 12
                          description: Changed by
                        MOD_DATE:
                          type: string
                          format: date
                          description: Changed on
                        MOD_TIME:
                          type: string
                          maxLength: 6
                          description: Last changed at
                  SPECIALIZATION_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ENTID_FROM:
                          type: string
                          maxLength: 26
                          description: Start entity type
                        ENTID_TO:
                          type: string
                          maxLength: 26
                          description: Target entity type
                        SPEZ_ID:
                          type: string
                          maxLength: 4
                          description: Specialization category
                        SHTXT_FROM:
                          type: string
                          maxLength: 60
                          description: Short text
                        SHTXT_TO:
                          type: string
                          maxLength: 60
                          description: Short text
                        MOD_USER:
                          type: string
                          maxLength: 12
                          description: Changed by
                        MOD_DATE:
                          type: string
                          format: date
                          description: Changed on
                        MOD_TIME:
                          type: string
                          maxLength: 6
                          description: Last changed at
                  SPECTYPE_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ENTITY_ID:
                          type: string
                          maxLength: 26
                          description: Entity type name
                        SPEZ_ID:
                          type: string
                          maxLength: 4
                          description: Specialization category
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        COMPLETE:
                          type: string
                          maxLength: 1
                          description: 'Flag: Completeness of specialization  enumValues: X='
                          enum:
                          - X
                        DISJUNCT:
                          type: string
                          maxLength: 1
                          description: 'Flag: disjunct specialization  enumValues: X='
                          enum:
                          - X
                        SHORTTEXT:
                          type: string
                          maxLength: 60
                          description: Short text
                        MOD_USER:
                          type: string
                          maxLength: 12
                          description: Changed by
                        MOD_DATE:
                          type: string
                          format: date
                          description: Changed on
                        MOD_TIME:
                          type: string
                          maxLength: 6
                          description: Last changed at
                  VARIANT_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ENTITY_ID:
                          type: string
                          maxLength: 26
                          description: Entity type name
                        VARIANT:
                          type: string
                          maxLength: 2
                          description: Variant
                        MOD_USER:
                          type: string
                          maxLength: 12
                          description: Changed by
                        MOD_DATE:
                          type: string
                          format: date
                          description: Changed on
                        MOD_TIME:
                          type: string
                          maxLength: 6
                          description: Last changed at
                  VIEW_TABLE_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ENTITY_ID:
                          type: string
                          maxLength: 26
                          description: Entity type name
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Name of SAP table view
                        MOD_USER:
                          type: string
                          maxLength: 12
                          description: Changed by
                        MOD_DATE:
                          type: string
                          format: date
                          description: Changed on
                        MOD_TIME:
                          type: string
                          maxLength: 6
                          description: Last changed at
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
