Create details

post

/fscmRestApi/resources/11.13.18.05/operationTransactions/{operationTransactionsUniqID}/child/OperationTransactionDetail

Request

Path Parameters
  • This is the hash key of the attributes which make up the composite key for the Work Order Operation Transactions resource and used to uniquely identify an instance of Work Order Operation Transactions. The client should not generate the hash key value. Instead, the client should query on the Work Order Operation Transactions collection resource in order to navigate to a specific instance of Work Order Operation Transactions to get the hash key.
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Maximum Length: 800
    Inventory locator where the products are completed to.
  • Title: Completion Subinventory Code
    Maximum Length: 18
    Abbreviation that identifies the subinventory in which the product will be stored during product completion.
  • Title: Country of Origin
    Maximum Length: 2
    Abbreviation that identifies the country of origin associated with the product.
  • Title: From Dispatch State
    Maximum Length: 30
    State of the transaction quantity for the operation at the beginning of processing.
  • Value that uniquely identifies the inspection event that this operation references. It is a primary key that the application generates when it starts an inspection for this operation.
  • Flexfields for Operation Transactions
    Title: Flexfields for Operation Transactions
    The Flexfields for Operation Transactions resource manages descriptive flexfields that contain details about the operation transaction.
  • Title: Organization Code
    Maximum Length: 30
    Abbreviation that identifies the organization where fulfillment performs the operation transaction.
  • Title: Purchase Order Line Number
    Number that uniquely identifies the purchase order.
  • Title: Purchase Order Header Number
    Maximum Length: 30
    Number of the purchase order. Use the PONumber attribute only if the plant is a contract manufacturing plant.
  • Title: Reason Code
    Maximum Length: 30
    Abbreviation that identifies the reason for the operation scrap transactions. This is a user-specified reason code. This is one of the additional attributes used by costing to determine the accounts for scrap and return from scrap. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Production Lookups task.
  • Title: Secondary Transaction Quantity
    Secondary quantity transacted for the operation. This attribute is associated with a feature that requires opt in.
  • Title: Sold-to Legal Entity Name
    Maximum Length: 240
    Name of the sold-to organization in the purchase order. Use this attribute only if the plant is a contract manufacturing plant.
  • Title: Source System Code
    Maximum Length: 30
    Abbreviation that identifies the source application that started the operation transaction.
  • Title: To Dispatch State
    Maximum Length: 30
    State of the transaction quantity for the operation at the end of processing.
  • Title: Transaction Date
    Date and time when the transaction was executed.
  • Transaction Lots
    Title: Transaction Lots
    The Transaction Lots resource manages details of the product lot.
  • Title: Transaction Note
    Maximum Length: 4000
    Notes that describe the operation transaction.
  • Title: Transaction Quantity
    Quantity transacted for the operation.
  • Transaction Serials
    Title: Transaction Serials
    The Transaction Serials resource manages details of the product serial.
  • Title: Unit of Measure
    Maximum Length: 25
    Unit of measure for the transaction quantity.
  • Title: Unit of Measure
    Maximum Length: 3
    Abbreviation that identifies the unit of measure for the transaction quantity.
  • Title: Undercomplete
    Maximum Length: 1
    Contains one of the following values: true or false. If true, then the work order is undercompleted. If false, then the work order is not undercompleted.This attribute is associated with a feature that requires opt in.
  • Title: Operation Sequence
    Number that identifies the sequence of the operation as defined in the work order operations. This attribute can take only whole numbers.
  • Value that uniquely identifies the transaction. If the transaction completes successfully, then this attribute contains a value that identifies the transaction. If the transaction does not complete successfully, then this attribute contains 0 (zero), the ErrorsExistFlag attribute contains true, and the ErrorMessages and ErrorMessageNames attributes contain error details.
  • Title: Work Order
    Maximum Length: 120
    Number that identifies the work order that the operation transaction references.
Nested Schema : Flexfields for Operation Transactions
Type: array
Title: Flexfields for Operation Transactions
The Flexfields for Operation Transactions resource manages descriptive flexfields that contain details about the operation transaction.
Show Source
Nested Schema : Transaction Lots
Type: array
Title: Transaction Lots
The Transaction Lots resource manages details of the product lot.
Show Source
Nested Schema : Transaction Serials
Type: array
Title: Transaction Serials
The Transaction Serials resource manages details of the product serial.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-OperationTransactionDFF-item-post-request
Type: object
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionLot-item-post-request
Type: object
Show Source
Nested Schema : Flexfields for Operation Transaction Lots
Type: array
Title: Flexfields for Operation Transaction Lots
The Flexfields for Operation Transaction Lots resource manages descriptive flexfields that contain details about the transaction lot.
Show Source
Nested Schema : schema
Type: object
Show Source
  • Title: Context Value
    Maximum Length: 30
    Descriptive flexfield context name for transaction lots.
  • Title: Context Value
    Descriptive flexfield context display value for transaction lots.
  • Value that uniquely identifies the transaction lot that uses the descriptive flexfields. Make sure your request payload does not include a value for this attribute. The response payload includes the primary key of the transaction lot.
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionSerial-item-post-request
Type: object
Show Source
Nested Schema : Flexfields for Operation Transaction Serials
Type: array
Title: Flexfields for Operation Transaction Serials
The Flexfields for Operation Transaction Serials resource manages descriptive flexfields that contain details about the transaction serial.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionSerial-TransactionSerialDFF-item-post-request
Type: object
Show Source
  • Title: Context Value
    Maximum Length: 30
    Descriptive flexfield context name for transaction serials.
  • Title: Context Value
    Descriptive flexfield context display value for transaction serials.
  • Value that uniquely identifies the transaction serial that uses the descriptive flexfields. This attribute should not be included in the request payload. The value of this attribute in the response payload includes the primary key of the transaction serial.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : operationTransactions-OperationTransactionDetail-item-response
Type: object
Show Source
  • Maximum Length: 800
    Inventory locator where the products are completed to.
  • Title: Completion Subinventory Code
    Maximum Length: 18
    Abbreviation that identifies the subinventory in which the product will be stored during product completion.
  • Title: Country of Origin
    Maximum Length: 2
    Abbreviation that identifies the country of origin associated with the product.
  • Read Only: true
    Maximum Length: 255
    Name of the error message, if any, when the transaction processing fails. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A comma ( , ) separate each message name.
  • Read Only: true
    Maximum Length: 2000
    Text of the error message, if any, when processing this transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A double dollar sign ($$) separate each message.
  • Title: From Dispatch State
    Maximum Length: 30
    State of the transaction quantity for the operation at the beginning of processing.
  • Value that uniquely identifies the inspection event that this operation references. It is a primary key that the application generates when it starts an inspection for this operation.
  • Links
  • Flexfields for Operation Transactions
    Title: Flexfields for Operation Transactions
    The Flexfields for Operation Transactions resource manages descriptive flexfields that contain details about the operation transaction.
  • Title: Organization Code
    Maximum Length: 30
    Abbreviation that identifies the organization where fulfillment performs the operation transaction.
  • Title: Purchase Order Line Number
    Number that uniquely identifies the purchase order.
  • Title: Purchase Order Header Number
    Maximum Length: 30
    Number of the purchase order. Use the PONumber attribute only if the plant is a contract manufacturing plant.
  • Title: Reason Code
    Maximum Length: 30
    Abbreviation that identifies the reason for the operation scrap transactions. This is a user-specified reason code. This is one of the additional attributes used by costing to determine the accounts for scrap and return from scrap. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Production Lookups task.
  • Title: Secondary Transaction Quantity
    Secondary quantity transacted for the operation. This attribute is associated with a feature that requires opt in.
  • Title: Sold-to Legal Entity Name
    Maximum Length: 240
    Name of the sold-to organization in the purchase order. Use this attribute only if the plant is a contract manufacturing plant.
  • Title: Source System Code
    Maximum Length: 30
    Abbreviation that identifies the source application that started the operation transaction.
  • Title: To Dispatch State
    Maximum Length: 30
    State of the transaction quantity for the operation at the end of processing.
  • Title: Transaction Date
    Date and time when the transaction was executed.
  • Transaction Lots
    Title: Transaction Lots
    The Transaction Lots resource manages details of the product lot.
  • Title: Transaction Note
    Maximum Length: 4000
    Notes that describe the operation transaction.
  • Title: Transaction Quantity
    Quantity transacted for the operation.
  • Transaction Serials
    Title: Transaction Serials
    The Transaction Serials resource manages details of the product serial.
  • Title: Unit of Measure
    Maximum Length: 25
    Unit of measure for the transaction quantity.
  • Title: Unit of Measure
    Maximum Length: 3
    Abbreviation that identifies the unit of measure for the transaction quantity.
  • Title: Undercomplete
    Maximum Length: 1
    Contains one of the following values: true or false. If true, then the work order is undercompleted. If false, then the work order is not undercompleted.This attribute is associated with a feature that requires opt in.
  • Title: Operation Sequence
    Number that identifies the sequence of the operation as defined in the work order operations. This attribute can take only whole numbers.
  • Value that uniquely identifies the transaction. If the transaction completes successfully, then this attribute contains a value that identifies the transaction. If the transaction does not complete successfully, then this attribute contains 0 (zero), the ErrorsExistFlag attribute contains true, and the ErrorMessages and ErrorMessageNames attributes contain error details.
  • Title: Work Order
    Maximum Length: 120
    Number that identifies the work order that the operation transaction references.
Nested Schema : Flexfields for Operation Transactions
Type: array
Title: Flexfields for Operation Transactions
The Flexfields for Operation Transactions resource manages descriptive flexfields that contain details about the operation transaction.
Show Source
Nested Schema : Transaction Lots
Type: array
Title: Transaction Lots
The Transaction Lots resource manages details of the product lot.
Show Source
Nested Schema : Transaction Serials
Type: array
Title: Transaction Serials
The Transaction Serials resource manages details of the product serial.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-OperationTransactionDFF-item-response
Type: object
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionLot-item-response
Type: object
Show Source
  • Read Only: true
    Maximum Length: 255
    Name of the error message, if any, when processing this operation transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A comma ( , ) separate each message name.
  • Read Only: true
    Maximum Length: 2000
    Text of the error message, if any, when processing this operation transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A double dollar sign ($$) separate each message.
  • Links
  • Title: Lot Expiration Date
    Date and time when the lot expires.
  • Title: Hold Until Date
    Date when the hold expires for the lot number. This attribute is associated with a feature that requires opt in.
  • Title: Lot Number
    Maximum Length: 80
    Lot number for the transaction quantity.
  • Title: Lot Origination Date
    Date and time when the lot originated.
  • Title: Lot Origination Type
    Maximum Length: 30
    Origin of the lot. The application determines the lot origination type when you create the lot.
  • Title: Parent Lot Number
    Maximum Length: 80
    Number that identifies the parent lot of the lot number used for the work order material. This attribute is applicable if the material is lot controlled. This attribute is associated with a feature that requires opt in.
  • Secondary quantity of the product lot transacted for the work order. This attribute is associated with a feature that requires opt in.
  • Flexfields for Operation Transaction Lots
    Title: Flexfields for Operation Transaction Lots
    The Flexfields for Operation Transaction Lots resource manages descriptive flexfields that contain details about the transaction lot.
  • Title: Transaction Quantity
    Quantity of the product lot transacted for the work order.
Nested Schema : Flexfields for Operation Transaction Lots
Type: array
Title: Flexfields for Operation Transaction Lots
The Flexfields for Operation Transaction Lots resource manages descriptive flexfields that contain details about the transaction lot.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionLot-TransactionLotDFF-item-response
Type: object
Show Source
  • Title: Context Value
    Maximum Length: 30
    Descriptive flexfield context name for transaction lots.
  • Title: Context Value
    Descriptive flexfield context display value for transaction lots.
  • Value that uniquely identifies the transaction lot that uses the descriptive flexfields. Make sure your request payload does not include a value for this attribute. The response payload includes the primary key of the transaction lot.
  • Links
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionSerial-item-response
Type: object
Show Source
  • Read Only: true
    Maximum Length: 255
    Name of the error message, if any, when processing this serial in the operation transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A comma ( , ) separate each message name.
  • Read Only: true
    Maximum Length: 2000
    Text of the error messages, if any, when processing this serial in the operation transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A double dollar sign ($$) separate each message.
  • Links
  • Title: Lot Number
    Maximum Length: 80
    Lot number of the serial of the component that fulfillment issues for the work order. The LotNumber attribute is optional.
  • Title: Serial Number
    Maximum Length: 80
    Serial number of the product where fulfillment performs the operation transaction.
  • Flexfields for Operation Transaction Serials
    Title: Flexfields for Operation Transaction Serials
    The Flexfields for Operation Transaction Serials resource manages descriptive flexfields that contain details about the transaction serial.
Nested Schema : Flexfields for Operation Transaction Serials
Type: array
Title: Flexfields for Operation Transaction Serials
The Flexfields for Operation Transaction Serials resource manages descriptive flexfields that contain details about the transaction serial.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionSerial-TransactionSerialDFF-item-response
Type: object
Show Source
  • Title: Context Value
    Maximum Length: 30
    Descriptive flexfield context name for transaction serials.
  • Title: Context Value
    Descriptive flexfield context display value for transaction serials.
  • Value that uniquely identifies the transaction serial that uses the descriptive flexfields. This attribute should not be included in the request payload. The value of this attribute in the response payload includes the primary key of the transaction serial.
  • Links
Back to Top

Examples

This example describes how to create one operation transaction detail in one operation transaction.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.action+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/operationTransactions"

Note that you use the action for the parent resource in the cURL command. You specify child details in the request payload. For example, you use a POST on the parent operationTransactions, and specify details for child OperationTransactionDetail in the request payload.

Example Request Body

The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

{

"SourceSystemCode" : "SAP",
"OperationTransactionDetail" : [ {
        "SourceSystemCode" : "SAP",
        "OrganizationCode" : "M1",
        "WorkOrderNumber" : "M1-1136",
        "WoOperationSequenceNumber" : 10,
        "FromDispatchState" : "READY",
        "ToDispatchState" : "COMPLETE",
        "TransactionQuantity" : 1,
        "TransactionUnitOfMeasure" : "Each",
        "ComplSubinventoryCode" : null,
        "CompletionLocator" : null,
        "ReasonCode" : null,
        "TransactionNote" : null,
        "PONumber" : null,
        "POLineNumber" : null,
        "SoldToLegalEntityName" : null
   }]
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
"SourceSystemType": "EXTERNAL",
"SourceSystemCode": "SAP",
"ErrorsExistFlag": "false",
"OperationTransactionDetail": [
  
{
"WoOperationTransactionId": 51647,
"SourceSystemCode": "SAP",
"OrganizationCode": "M1",
"WorkOrderNumber": "M1-1136",
"WoOperationSequenceNumber": 10,
"TransactionDate": "2017-10-15T05:40:39.230+00:00",
"FromDispatchState": "READY",
"ToDispatchState": "COMPLETE",
"TransactionQuantity": 1,
"TransactionUOMCode": null,
"TransactionUnitOfMeasure": "Each",
"ComplSubinventoryCode": null,
"ReasonCode": null,
"TransactionNote": null,
"PONumber": null,
"POLineNumber": null,
"SoldToLegalEntityName": null,
"CompletionLocator": null,
"ErrorMessages": "",
"ErrorMessageNames": "",
..
}
Back to Top