openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAPPO/BAPI_ORDER_CREATE:
    post:
      tags:
      - /SAPPO/BAPI_ORDER
      summary: Create Postprocessing Order
      operationId: /rfc/SAPPO/BAPI_ORDER_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BASICOBJECT:
                  type: object
                  properties:
                    OBJCAT:
                      type: integer
                      format: int64
                      description: 'Object Category  enumValues: 1=Business Object'
                      enum:
                      - '1'
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object Key
                    OBJLOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical System
                CREATIONDATE:
                  type: string
                  format: date
                  description: Created On
                CUSTOMEREXIT:
                  type: string
                  default: X
                  maxLength: 1
                  description: Execute BAdI for Creating Postprocessing Order
                ENVOBJECT1:
                  type: object
                  properties:
                    OBJCAT:
                      type: integer
                      format: int64
                      description: 'Object Category  enumValues: 1=Business Object'
                      enum:
                      - '1'
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object Key
                    OBJLOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical System
                ENVOBJECT2:
                  type: object
                  properties:
                    OBJCAT:
                      type: integer
                      format: int64
                      description: 'Object Category  enumValues: 1=Business Object'
                      enum:
                      - '1'
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object Key
                    OBJLOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical System
                MAINMESSAGE:
                  type: object
                  properties:
                    MSGID:
                      type: string
                      maxLength: 20
                      description: Message Class
                    MSGTY:
                      type: string
                      maxLength: 1
                      description: Message Type
                    MSGNO:
                      type: integer
                      format: int64
                      description: Message Number
                    MSGV1:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV2:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV3:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    MSGV4:
                      type: string
                      maxLength: 50
                      description: Message Variable
                    LOG_CAT:
                      type: integer
                      format: int64
                      description: 'Log Category  enumValues: 1=Application Log'
                      enum:
                      - '1'
                    LOG_NO:
                      type: string
                      maxLength: 20
                      description: Log Number
                    LOG_HANDLE:
                      type: string
                      maxLength: 22
                      description: Log Handle
                    LOG_MSG_NO:
                      type: integer
                      format: int64
                      description: ID in Log
                    MSG_OBJCAT:
                      type: integer
                      format: int64
                      description: 'Message Object Category  enumValues: 1=Business Object'
                      enum:
                      - '1'
                    MSG_OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Message Object Type
                    MSG_OBJKEY:
                      type: string
                      maxLength: 70
                      description: Message Object Key
                    MSG_OBJLOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical System
                MAINOBJECT:
                  type: object
                  properties:
                    OBJCAT:
                      type: integer
                      format: int64
                      description: 'Object Category  enumValues: 1=Business Object'
                      enum:
                      - '1'
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object Key
                    OBJLOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical System
                POSTDATE:
                  type: string
                  format: date
                  description: Processing date
                EXTENSIONIN:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCTURE:
                        type: string
                        maxLength: 30
                        description: Structure name of  BAPI table extension
                      VALUEPART1:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART2:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART3:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART4:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                MESSAGES:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      LOG_CAT:
                        type: integer
                        format: int64
                        description: 'Log Category  enumValues: 1=Application Log'
                        enum:
                        - '1'
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: Log Number
                      LOG_HANDLE:
                        type: string
                        maxLength: 22
                        description: Log Handle
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: ID in Log
                      MSG_OBJCAT:
                        type: integer
                        format: int64
                        description: 'Message Object Category  enumValues: 1=Business Object'
                        enum:
                        - '1'
                      MSG_OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Message Object Type
                      MSG_OBJKEY:
                        type: string
                        maxLength: 70
                        description: Message Object Key
                      MSG_OBJLOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical System
                OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJCAT:
                        type: integer
                        format: int64
                        description: 'Object Category  enumValues: 1=Business Object'
                        enum:
                        - '1'
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      OBJKEY:
                        type: string
                        maxLength: 70
                        description: Object Key
                      OBJLOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical System
              required:
              - MAINMESSAGE
              - MAINOBJECT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ORDER:
                    type: object
                    properties:
                      ORDER_ID:
                        type: string
                        maxLength: 32
                        description: Postprocessing Order ID
                  EXTENSIONIN:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTURE:
                          type: string
                          maxLength: 30
                          description: Structure name of  BAPI table extension
                        VALUEPART1:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART2:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART3:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART4:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                  MESSAGES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        LOG_CAT:
                          type: integer
                          format: int64
                          description: 'Log Category  enumValues: 1=Application Log'
                          enum:
                          - '1'
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: Log Number
                        LOG_HANDLE:
                          type: string
                          maxLength: 22
                          description: Log Handle
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: ID in Log
                        MSG_OBJCAT:
                          type: integer
                          format: int64
                          description: 'Message Object Category  enumValues: 1=Business Object'
                          enum:
                          - '1'
                        MSG_OBJTYPE:
                          type: string
                          maxLength: 10
                          description: Message Object Type
                        MSG_OBJKEY:
                          type: string
                          maxLength: 70
                          description: Message Object Key
                        MSG_OBJLOGSYS:
                          type: string
                          maxLength: 10
                          description: Logical System
                  OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJCAT:
                          type: integer
                          format: int64
                          description: 'Object Category  enumValues: 1=Business Object'
                          enum:
                          - '1'
                        OBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        OBJKEY:
                          type: string
                          maxLength: 70
                          description: Object Key
                        OBJLOGSYS:
                          type: string
                          maxLength: 10
                          description: Logical System
                  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.
