Create Count Task

The periodic automated replenishment counter or the warehouse manager can report count quantity for parts physically identified in locations that were not traced by the locate process. Reporting the count quantity automatically transfers the stock of counted parts to a quarantine location which is basically a non reservable recall subinventory. For a non-quantity tracked subinventory, a receipt is created in the recall subinventory when the count quantity is reported. You can create a count task using Inventory Count Tasks REST resource.

Here's a typical application processing flow for the scenarios:

  1. You can create a manual count task and enter count quantity
  2. You can create a manual count task along with the item Costs

Create Manual Count Task and Enter Count Quantity

Let's say count task 1000 is generated to count a serial number S100 for a recalled item traced in Stores subinventory. By the time the counter begins to count items in the Stores subinventory, the serial number has moved to the RIP subinventory. The counter enters zero count for the 1000 count task. When the counting begins for RIP subinventory, the counter finds serial S100 in the RIP subinventory. The counter then creates a manual count task for this item, which is also subject to recall and enters the quantity corresponding to this count task.

To create the count task and enter count quantity you can use the POST operation with the payload to create the count task and enter the count quantity.

Example URL

Use this resource URL format.

POST

https://servername/fscmRestApi/resources/latest/inventoryCountTasks

Header :Content-type:application/vnd.oracle.adf.resourceitem+json

Example Request

Here's an example of the request body in JSON format.

{
	"RecallHeaderNumber":"RC204301",
	"RecallLineNumber":"1",
	"OrganizationCode":"M1",
	"ItemNumber":"INV-101",
	"Subinventory":"M1INSTOCK",
	"LotNumber":"AVILOT1",
	"CountDate":"2020-03-13",
	"CountedByEmployee":"Jones, Sandra",
	"CountUnitOfMeasure":"Box of 5",
	"CountQuantity":1,
	"SecondaryUOMQuantity":null,
	"ExpectedQuantity":200,
	"SecondaryExpectedQuantity":null,
	"TransactionReason":null,
	"PickSubinventory":"AASUB1",
	"PickLocator":null,
	"Comments":"Test Case1",
	"AccountAlias":null,
	"Account":"01-130-5800-0000-000",
	"UseItemCostFlag":true
}

Example Response

Here's an example of the response body in JSON format.

{
	"InvCountTaskId": 300100184764418,
	"RecallHeaderId": 300100184928127,
	"RecallHeaderNumber": "RC204301",
	"RecallLineId": 300100184928128,
	"RecallLineNumber": "1",
	"LocationId": 3248,
	"LocationCode": null,
	"LocationName": null,
	"CountTaskSourceHeaderId": 0,
	"CountTaskSourceLineId": 0,
	"CountTaskSourceLineTypeCode": "ORA_IN_STOCK",
	"CountTaskSourceLineType": null,
	"OrganizationId": 207,
	"OrganizationCode": "M1",
	"OrganizationName": null,
	"InventoryItemId": 663914,
	"ItemNumber": "INV-101",
	"ItemDescription": null,
	"Subinventory": "M1INSTOCK",
	"LocatorId": null,
	"Locator": null,
	"Revision": null,
	"LotNumber": "AVILOT1",
	"SerialNumber": null,
	"OwningTypeCode": "2",
	"OwningType": "Inventory organization",
	"OwningEntityId": 207,
	"OwningPartySite": null,
	"OwningParty": null,
	"ProcurementBU": null,
	"CountStatusCode": "ORA_OPEN",
	"CountStatus": "Pending count",
	"CountDate": "2020-03-13",
	"CountedByEmployeeId": 2159,
	"CountedByEmployee": "Copeland, Sandra",
	"CountUOMCode": "BX5",
	"CountUnitOfMeasure": "Box of 5",
	"CountSecondaryUOMCode": null,
	"CountSecondaryUnitOfMeasure": null,
	"CountQuantity": 1,
	"SecondaryUOMQuantity": null,
	"ExpectedUOMCode": "Ea",
	"ExpectedUnitOfMeasure": "Each",
	"ExpectedQuantity": 200,
	"SecondaryExpectedQuantity": null,
	"ErrorCode": null,
	"ErrorMessage": null,
	"TransactionReasonId": null,
	"TransactionReason": null,
	"TransactionDate": null,
	"DestinationSubinventory": "RECALL",
	"DestinationLocatorId": null,
	"DestinationLocator": null,
	"PickSubinventory": "AASUB1",
	"PickLocatorId": null,
	"PickLocator": null,
	"Comments": "Test Case1",
	"AccountAliasId": null,
	"AccountAlias": null,
	"AccountId": 107724,
	"Account": "01-130-5800-0000-000",
	"SequenceNumber": 9,
	"RequesterId": null,
	"RequesterName": null,
	"UseItemCostFlag": "true",
	"ProcessingModeCode": null,
	"ProcessingMode": null,
	"links": [ 3 ]
	{ ...

	}

}

Create Manual Count Task Along With the Item Costs

The PAR counter or the Warehouse Manager can report count quantity for parts physically identified in locations that were not traced by the locate process. Additionally, you can also enter the cost at which the item was procured on the purchase order while counting the quantity. Reporting the count quantity automatically transfers the stock of counted parts to a quarantine location, which is basically a nonreservable recall subinventory. For a non-quantity tracked subinventory, a receipt is created in the recall subinventory when the count quantity is reported.

To create the count task and enter count quantity, use the POST operation with the payload to create the count task along with the item costs.

Example URL

Use this resource URL format.

POST

https://servername/fscmRestApi/resources/latest/inventoryCountTasks

Header :Content-type:application/vnd.oracle.adf.resourceitem+json

Example Request

Here's an example of the request body in JSON format.

{
	"RecallHeaderNumber":"RC204102",
	"RecallLineNumber":"1",
	"OrganizationCode":"M1",
	"ItemNumber":"INV-101",
	"Subinventory":"M1INSTOCK",
	"LotNumber":"AVILOT1",
	"SerialNumber":null,
	"ProcurementBU":null,
	"CountDate":"2020-03-13",
	"CountedByEmployee":"Copeland, Sandra",
	"CountUnitOfMeasure":"Box of 5",
	"CountQuantity":1,
	"SecondaryUOMQuantity":null,
	"ExpectedQuantity":200,
	"SecondaryExpectedQuantity":null,
	"TransactionReason":null,
	"PickSubinventory":"AASUB1",
	"PickLocator":null,
	"Comments":"Test Case2",
	"AccountAlias":null,
	"Account":"01-130-5800-0000-000",
	"UseItemCostFlag":false,
	"costs": [
	{
		"Cost": 111,
		"CostComponentCode": "ITEM_PRICE"
	},
	{
		"Cost": 200,
		"CostComponentCode": "NONRECOVERABLE_TAX"
	}
	]

}

Example Response

Here's an example of the response body in JSON format.

{
	"InvCountTaskId": 300100184764419,
	"RecallHeaderId": 300100184928127,
	"RecallHeaderNumber": "RC204102",
	"RecallLineId": 300100184928128,
	"RecallLineNumber": "1",
	"LocationId": 3244,
	"LocationCode": null,
	"LocationName": null,
	"CountTaskSourceHeaderId": 0,
	"CountTaskSourceLineId": 0,
	"CountTaskSourceLineTypeCode": "ORA_PAR",
	"CountTaskSourceLineType": null,
	"OrganizationId": 207,
	"OrganizationCode": "M1",
	"OrganizationName": null,
	"InventoryItemId": 663914,
	"ItemNumber": "INV-101",
	"ItemDescription": null,
	"Subinventory": "M1PAR",
	"LocatorId": null,
	"Locator": null,
	"Revision": null,
	"LotNumber": "AVILOT1",
	"SerialNumber": null,
	"OwningTypeCode": "2",
	"OwningType": "Inventory organization",
	"OwningEntityId": 207,
	"OwningPartySite": null,
	"OwningParty": null,
	"ProcurementBU": null,
	"CountStatusCode": "ORA_OPEN",
	"CountStatus": "Pending count",
	"CountDate": "2020-03-13",
	"CountedByEmployeeId": 2159,
	"CountedByEmployee": "Copeland, Sandra",
	"CountUOMCode": "BX5",
	"CountUnitOfMeasure": "Box of 5",
	"CountSecondaryUOMCode": null,
	"CountSecondaryUnitOfMeasure": null,
	"CountQuantity": 1,
	"SecondaryUOMQuantity": null,
	"ExpectedUOMCode": "Ea",
	"ExpectedUnitOfMeasure": "Each",
	"ExpectedQuantity": 200,
	"SecondaryExpectedQuantity": null,
	"ErrorCode": null,
	"ErrorMessage": null,
	"TransactionReasonId": null,
	"TransactionReason": null,
	"TransactionDate": null,
	"DestinationSubinventory": "RECALL",
	"DestinationLocatorId": null,
	"DestinationLocator": null,
	"PickSubinventory": "AASUB1",
	"PickLocatorId": null,
	"PickLocator": null,
	"Comments": "Test Case1",
	"AccountAliasId": null,
	"AccountAlias": null,
	"AccountId": 107724,
	"Account": "01-130-5800-0000-000",
	"SequenceNumber": 10,
	"RequesterId": null,
	"RequesterName": null,
	"UseItemCostFlag": "false",
	"ProcessingModeCode": null,
	"ProcessingMode": null,
	"costs": [
	{
		"Cost": 111,
		"CostComponentCode": "ITEM_PRICE",
		"links": [ 3 }
	{ ...

		...



	}

}