Create details
/fscmRestApi/resources/11.13.18.05/operationTransactions/{operationTransactionsUniqID}/child/OperationTransactionDetail
Request
-
operationTransactionsUniqID(required): string
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.
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
- application/json
object
-
CompletionLocator: string
Maximum Length:
800
Inventory locator where the products are completed to. -
ComplSubinventoryCode: string
Title:
Completion Subinventory Code
Maximum Length:18
Abbreviation that identifies the subinventory in which the product will be stored during product completion. -
CountryOfOriginCode: string
Title:
Country of Origin
Maximum Length:2
Abbreviation that identifies the country of origin associated with the product. -
FromDispatchState(required): string
Title:
From Dispatch State
Maximum Length:30
State of the transaction quantity for the operation at the beginning of processing. -
InspectionEventId: integer
(int64)
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.
-
OperationTransactionDFF: array
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. -
OrganizationCode: string
Title:
Organization Code
Maximum Length:30
Abbreviation that identifies the organization where fulfillment performs the operation transaction. -
POLineNumber: number
Title:
Purchase Order Line Number
Number that uniquely identifies the purchase order. -
PONumber: string
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. -
ReasonCode: string
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. -
SecondaryTransactionQuantity: number
Title:
Secondary Transaction Quantity
Secondary quantity transacted for the operation. This attribute is associated with a feature that requires opt in. -
SoldToLegalEntityName: string
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. -
SourceSystemCode: string
Title:
Source System Code
Maximum Length:30
Abbreviation that identifies the source application that started the operation transaction. -
ToDispatchState(required): string
Title:
To Dispatch State
Maximum Length:30
State of the transaction quantity for the operation at the end of processing. -
TransactionDate: string
(date-time)
Title:
Transaction Date
Date and time when the transaction was executed. -
TransactionLot: array
Transaction Lots
Title:
Transaction Lots
The Transaction Lots resource manages details of the product lot. -
TransactionNote: string
Title:
Transaction Note
Maximum Length:4000
Notes that describe the operation transaction. -
TransactionQuantity(required): number
Title:
Transaction Quantity
Quantity transacted for the operation. -
TransactionSerial: array
Transaction Serials
Title:
Transaction Serials
The Transaction Serials resource manages details of the product serial. -
TransactionUnitOfMeasure: string
Title:
Unit of Measure
Maximum Length:25
Unit of measure for the transaction quantity. -
TransactionUOMCode: string
Title:
Unit of Measure
Maximum Length:3
Abbreviation that identifies the unit of measure for the transaction quantity. -
UnderCompleteFlag: boolean
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. -
WoOperationSequenceNumber: number
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. -
WoOperationTransactionId: integer
(int64)
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.
-
WorkOrderNumber: string
Title:
Work Order
Maximum Length:120
Number that identifies the work order that the operation transaction references.
array
Flexfields for Operation Transactions
array
Transaction Lots
array
Transaction Serials
object
-
__FLEX_Context: string
Title:
Context Segment
Maximum Length:80
Descriptive flexfield context name for operation transactions. -
__FLEX_Context_DisplayValue: string
Title:
Context Segment
-
Discriminator: string
-
InterfaceRowId: integer
(int64)
Value that uniquely identifies the operation transaction detail that a descriptive flexfield references. 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 operation transaction detail.
object
-
LotExpirationDate: string
(date-time)
Title:
Lot Expiration Date
Date and time when the lot expires. -
LotHoldUntilDate: string
(date-time)
Title:
Hold Until Date
Date when the hold expires for the lot number. This attribute is associated with a feature that requires opt in. -
LotNumber(required): string
Title:
Lot Number
Maximum Length:80
Lot number for the transaction quantity. -
LotOriginationDate: string
(date-time)
Title:
Lot Origination Date
Date and time when the lot originated. -
LotOriginationType: string
Title:
Lot Origination Type
Maximum Length:30
Origin of the lot. The application determines the lot origination type when you create the lot. -
ParentLotNumber: string
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. -
SecondaryTransactionQuantity: number
Secondary quantity of the product lot transacted for the work order. This attribute is associated with a feature that requires opt in.
-
TransactionLotDFF: array
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. -
TransactionQuantity(required): number
Title:
Transaction Quantity
Quantity of the product lot transacted for the work order.
array
Flexfields for Operation Transaction Lots
object
-
__FLEX_Context: string
Title:
Context Value
Maximum Length:30
Descriptive flexfield context name for transaction lots. -
__FLEX_Context_DisplayValue: string
Title:
Context Value
Descriptive flexfield context display value for transaction lots. -
InterfaceRowId: integer
(int64)
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.
object
-
LotNumber: string
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. -
SerialNumber(required): string
Title:
Serial Number
Maximum Length:80
Serial number of the product where fulfillment performs the operation transaction. -
TransactionSerialDFF: array
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.
array
Flexfields for Operation Transaction Serials
object
-
__FLEX_Context: string
Title:
Context Value
Maximum Length:30
Descriptive flexfield context name for transaction serials. -
__FLEX_Context_DisplayValue: string
Title:
Context Value
Descriptive flexfield context display value for transaction serials. -
InterfaceRowId: integer
(int64)
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.
Response
- application/json
Default Response
-
Metadata-Context(required):
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".
-
REST-Framework-Version(required):
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.
object
-
CompletionLocator: string
Maximum Length:
800
Inventory locator where the products are completed to. -
ComplSubinventoryCode: string
Title:
Completion Subinventory Code
Maximum Length:18
Abbreviation that identifies the subinventory in which the product will be stored during product completion. -
CountryOfOriginCode: string
Title:
Country of Origin
Maximum Length:2
Abbreviation that identifies the country of origin associated with the product. -
ErrorMessageNames: string
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. -
ErrorMessages: string
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. -
FromDispatchState: string
Title:
From Dispatch State
Maximum Length:30
State of the transaction quantity for the operation at the beginning of processing. -
InspectionEventId: integer
(int64)
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: array
Links
Title:
Links
The link relations associated with the resource instance. -
OperationTransactionDFF: array
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. -
OrganizationCode: string
Title:
Organization Code
Maximum Length:30
Abbreviation that identifies the organization where fulfillment performs the operation transaction. -
POLineNumber: number
Title:
Purchase Order Line Number
Number that uniquely identifies the purchase order. -
PONumber: string
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. -
ReasonCode: string
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. -
SecondaryTransactionQuantity: number
Title:
Secondary Transaction Quantity
Secondary quantity transacted for the operation. This attribute is associated with a feature that requires opt in. -
SoldToLegalEntityName: string
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. -
SourceSystemCode: string
Title:
Source System Code
Maximum Length:30
Abbreviation that identifies the source application that started the operation transaction. -
ToDispatchState: string
Title:
To Dispatch State
Maximum Length:30
State of the transaction quantity for the operation at the end of processing. -
TransactionDate: string
(date-time)
Title:
Transaction Date
Date and time when the transaction was executed. -
TransactionLot: array
Transaction Lots
Title:
Transaction Lots
The Transaction Lots resource manages details of the product lot. -
TransactionNote: string
Title:
Transaction Note
Maximum Length:4000
Notes that describe the operation transaction. -
TransactionQuantity: number
Title:
Transaction Quantity
Quantity transacted for the operation. -
TransactionSerial: array
Transaction Serials
Title:
Transaction Serials
The Transaction Serials resource manages details of the product serial. -
TransactionUnitOfMeasure: string
Title:
Unit of Measure
Maximum Length:25
Unit of measure for the transaction quantity. -
TransactionUOMCode: string
Title:
Unit of Measure
Maximum Length:3
Abbreviation that identifies the unit of measure for the transaction quantity. -
UnderCompleteFlag: boolean
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. -
WoOperationSequenceNumber: number
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. -
WoOperationTransactionId: integer
(int64)
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.
-
WorkOrderNumber: string
Title:
Work Order
Maximum Length:120
Number that identifies the work order that the operation transaction references.
array
Links
array
Flexfields for Operation Transactions
array
Transaction Lots
array
Transaction Serials
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
object
-
__FLEX_Context: string
Title:
Context Segment
Maximum Length:80
Descriptive flexfield context name for operation transactions. -
__FLEX_Context_DisplayValue: string
Title:
Context Segment
-
Discriminator: string
-
InterfaceRowId: integer
(int64)
Value that uniquely identifies the operation transaction detail that a descriptive flexfield references. 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 operation transaction detail.
-
links: array
Links
Title:
Links
The link relations associated with the resource instance.
array
Links
object
-
ErrorMessageNames: string
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. -
ErrorMessages: string
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: array
Links
Title:
Links
The link relations associated with the resource instance. -
LotExpirationDate: string
(date-time)
Title:
Lot Expiration Date
Date and time when the lot expires. -
LotHoldUntilDate: string
(date-time)
Title:
Hold Until Date
Date when the hold expires for the lot number. This attribute is associated with a feature that requires opt in. -
LotNumber: string
Title:
Lot Number
Maximum Length:80
Lot number for the transaction quantity. -
LotOriginationDate: string
(date-time)
Title:
Lot Origination Date
Date and time when the lot originated. -
LotOriginationType: string
Title:
Lot Origination Type
Maximum Length:30
Origin of the lot. The application determines the lot origination type when you create the lot. -
ParentLotNumber: string
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. -
SecondaryTransactionQuantity: number
Secondary quantity of the product lot transacted for the work order. This attribute is associated with a feature that requires opt in.
-
TransactionLotDFF: array
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. -
TransactionQuantity: number
Title:
Transaction Quantity
Quantity of the product lot transacted for the work order.
array
Links
array
Flexfields for Operation Transaction Lots
object
-
__FLEX_Context: string
Title:
Context Value
Maximum Length:30
Descriptive flexfield context name for transaction lots. -
__FLEX_Context_DisplayValue: string
Title:
Context Value
Descriptive flexfield context display value for transaction lots. -
InterfaceRowId: integer
(int64)
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: array
Links
Title:
Links
The link relations associated with the resource instance.
array
Links
object
-
ErrorMessageNames: string
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. -
ErrorMessages: string
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: array
Links
Title:
Links
The link relations associated with the resource instance. -
LotNumber: string
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. -
SerialNumber: string
Title:
Serial Number
Maximum Length:80
Serial number of the product where fulfillment performs the operation transaction. -
TransactionSerialDFF: array
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.
array
Links
array
Flexfields for Operation Transaction Serials
object
-
__FLEX_Context: string
Title:
Context Value
Maximum Length:30
Descriptive flexfield context name for transaction serials. -
__FLEX_Context_DisplayValue: string
Title:
Context Value
Descriptive flexfield context display value for transaction serials. -
InterfaceRowId: integer
(int64)
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: array
Links
Title:
Links
The link relations associated with the resource instance.
array
Links
- OperationTransactionDFF
-
Parameters:
- OperationTransactionDetailUniqID:
$request.path.OperationTransactionDetailUniqID
- operationTransactionsUniqID:
$request.path.operationTransactionsUniqID
The Flexfields for Operation Transactions resource manages descriptive flexfields that contain details about the operation transaction. - OperationTransactionDetailUniqID:
- TransactionLot
-
Parameters:
- OperationTransactionDetailUniqID:
$request.path.OperationTransactionDetailUniqID
- operationTransactionsUniqID:
$request.path.operationTransactionsUniqID
The Transaction Lots resource manages details of the product lot. - OperationTransactionDetailUniqID:
- TransactionSerial
-
Parameters:
- OperationTransactionDetailUniqID:
$request.path.OperationTransactionDetailUniqID
- operationTransactionsUniqID:
$request.path.operationTransactionsUniqID
The Transaction Serials resource manages details of the product serial. - OperationTransactionDetailUniqID:
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": "", .. }