Transfer One Unit from One Distribution to a New Distribution
You want to transfer one unit from an asset with identifier 131167
for the VF PRI CORP
asset book from a distribution of identifier 1480844
to a new distribution.
Note:
The transaction units for the source distribution is negative and for the destination distribution is positive. Distribution identifier and expense account combination identifiers are mandatory.- The source and destination employees that the asset is assigned to is unknown, -1.
P_DISTRIBUTION_ID_TBL: '140844,-1'
is valid. Avoid supplying zero (0) or blank values.- Do not pass -1 to expense or location rosetta attributes.
Example URL
Here's an example of the resource URL:
POST
fscmRestApi/resources/11.13.18.05/erpintegrations
cURL 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: 131167, P_BOOK_TYPE_CODE: VF PRI CORP, P_TRX_ATTRIBUTE1=d,P_TRX_ATTRIBUTE2=d,P_DISTRIBUTION_ID_TBL: '140844,-1',P_TRANSACTION_UNITS_TBL: '-1,1',P_ASSIGNED_TO_TBL:'-1,-1', P_UNITS_ASSIGNED_TBL: '1,1', P_EXPENSE_CCID_TBL: '10353,10353', ???P_LOCATION_CCID_TBL: '2,22'}"
}
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"
}
]
}