Transfer One Unit from One Distribution to Another
You want to transfer one unit from an asset with identifier
141174 for the PL CORP asset book from one
distribution of identifier 149860 to another distribution of identifier
168847. The distributions have the same expense account but a different
location identifier.
Note:
The transaction units are negative for the source distribution and positive for the destination distribution. Distribution identifier and expense account combination identifiers are mandatory.Example URL
Here's an example of the resource URL:
POSTfscmRestApi/resources/11.13.18.05/erpintegrationscURL Command
curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations
Example Request
Here's an example of the request body in JSON format:
{
"OperationName": "processTransaction-transferAsset",
"ParameterList": "{P_ASSET_ID: 141174, P_BOOK_TYPE_CODE: PL CORP, P_TRX_ATTRIBUTE1=d,P_TRX_ATTRIBUTE2=d, P_DISTRIBUTION_ID_TBL: '149860,168847',P_TRANSACTION_UNITS_TBL: '-1,1',P_ASSIGNED_TO_TBL:'300100036762401,300100036762401', P_UNITS_ASSIGNED_TBL: '1,4', P_EXPENSE_CCID_TBL: '91665,300100071633798', P_LOCATION_CCID_TBL: '300100071633793,300100071633793'}"
}
Example Response
Here's an example of the response body in JSON format:
{
"OperationName": "processTransaction-transferAsset",
"DocumentId": null,
"DocumentContent": null,
"FileName": null,
"ContentType": null,
"FileType": null,
"DocumentAccount": null,
"Comments": null,
"ProcessName": null,
"LoadRequestId": null,
"JobPackageName": null,
"JobDefName": null,
"ReqstId": null,
"RequestStatus": null,
"JobName": null,
"ParameterList": "{\"X_MSG_COUNT\":\"0\",\"X_TRANSACTION_HEADER_ID\":\"209888\",\"X_RETURN_STATUS\":\"S\",\"X_EVENT_ID\":\"2169374\"}",
"NotificationCode": null,
"CallbackURL": null,
"JobOptions": null,
"StatusCode": null,
"ESSParameters": null,
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations/processTransaction-transferAsset",
"name": "erpintegrations",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/erpintegrations/processTransaction-transferAsset",
"name": "erpintegrations",
"kind": "item"
}
]
}