Did you confirm that the PO Line actually shows the PRNum and PRLineNum? Those are non-persistent fields on the POLine. When a PR is copied to a PO or a PRLine is copied to a PO, Maximo update the PONum, POLineNum, PORevisionNum, and POLineID on the related PRLine. You should confirm that update actually took place with your REST transaction.
Ergonare, Inc.
Original Message:
Sent: Tue May 20, 2025 07:16 AM
From: karthik krishnamurthy
Subject: create PO with PRNUM,PRLINENUM in POLINE object
thanks pavan,
it worked with below JSON data,
{
"ponum": "PO0003_2",
"revisionnum": 0,
"revcomments": "Rev 0",
"siteid": "TEST",
"issuedate": "2025-05-15T11:15:26+00:00",
"orgid": "CAN",
"status": "APPR",
"description": "test PO-PR0003",
"requestedby": "USER01",
"sourcesysid": "OR",
"sendersysid": "OIC",
"potype": "STD",
"allowreceipt": true,
"vendor": "2622",
"poline": [
{
"prlinenum": 1,
"prnum":"PR0003",
"orgid": "CAN",
"issue": false,
"conversion": 1.0,
"linecost": 2250.0,
"loadedcost": 2250.0,
"orderqty": 5.0,
"enterdate": "2025-05-15T11:16:03+00:00",
"orderunit": "EA",
"restype": "AUTOMATIC",
"itemnum": "KKITEM001",
"itemsetid": "ITEMSET",
"unitcost": 450,
"linetype": "ITEM",
"category": "STK",
"gldebitacct": "00000-00000-00000",
"requestedby": "USER01",
"shiptoattn": "USER01",
"polinenum": 1,
"tositeid": "TEST",
"storeloc": "0001",
"pocost": [
{
"costlinenum": 1,
"linecost": 2250.0,
"loadedcost": 2250.0,
"orgid": "CAN",
"percentage": 100.0,
"quantity": 5.0,
"gldebitacct": "00000-00000-00000"
}
]
}
]
}
------------------------------
---------------------------
Karthik Krishnamurthy
---------------------------
Original Message:
Sent: Tue May 20, 2025 03:23 AM
From: pavan uppalanchu
Subject: create PO with PRNUM,PRLINENUM in POLINE object
Hi Karthik,
Could you try to modify the structure of the JSON file using the following as a reference? Like PO/POLINE/POCOST and GLAccount ?
<DODI_EBS_POSet>
<PO action="AddChange">
<CHANGEDATE>2024-09-16T10:31:05+00:00</CHANGEDATE>
<CONTACT>KIM KLEINERT</CONTACT>
<CURRENCYCODE>USD</CURRENCYCODE>
<DESCRIPTION>STK ALFA LAVAL SPARES LOP PRIORITY 1</DESCRIPTION>
<EXCHANGEDATE>2024-09-05T00:00:00+00:00</EXCHANGEDATE>
<FOB>EX-WORKS</FOB>
<FREIGHTTERMS>PREPAID AND ADD</FREIGHTTERMS>
<ORDERDATE>2024-09-05T15:05:12+00:00</ORDERDATE>
<ORGID>DO</ORGID>
<OWNERSYSID>EBS</OWNERSYSID>
<PONUM>108-109157</PONUM>
<SENDERSYSID>EBS</SENDERSYSID>
<SITEID>108</SITEID>
<SOURCESYSID>EBS</SOURCESYSID>
<STATUS>APPR</STATUS>
<STATUSDATE>2024-09-16T10:45:59+00:00</STATUSDATE>
<VENDELIVERYDATE>2024-09-12T00:00:00+00:00</VENDELIVERYDATE>
<VENDOR>17346-49664-57211</VENDOR>
<POLINE>
<DESCRIPTION>KIT, OVERHAUL, ALFA LAVAL</DESCRIPTION>
<ENTERDATE>2024-09-05T15:05:12+00:00</ENTERDATE>
<GLDEBITACCT>
<VALUE>0108.7480000</VALUE>
</GLDEBITACCT>
<ITEMNUM>S-1907407</ITEMNUM>
<ITEMSETID>ITEMSET</ITEMSETID>
<LINECOST>3755.36</LINECOST>
<LINETYPE>ITEM</LINETYPE>
<MANUFACTURER>M-1000378</MANUFACTURER>
<MODELNUM>56702110</MODELNUM>
<ORDERQTY>1.0</ORDERQTY>
<ORDERUNIT>EACH</ORDERUNIT>
<POLINENUM>2</POLINENUM>
<PRLINENUM>2</PRLINENUM>
<PRNUM>108-109157</PRNUM>
<TOSITEID>108</TOSITEID>
<UNITCOST>3755.36</UNITCOST>
<VENDELIVERYDATE>2024-09-12T00:00:00+00:00</VENDELIVERYDATE>
<POCOST>
<COSTLINENUM>1</COSTLINENUM>
<GLDEBITACCT>
<VALUE>0108.7480000</VALUE>
</GLDEBITACCT>
<PERCENTAGE>100.0</PERCENTAGE>
</POCOST>
</POLINE>
</PO>
</DODI_EBS_POSet>
------------------------------
pavan uppalanchu
Original Message:
Sent: Mon May 19, 2025 05:59 AM
From: karthik krishnamurthy
Subject: create PO with PRNUM,PRLINENUM in POLINE object
Hi All,
I am trying to create PO/POLINE(with PRNUM,PRLINENUM ref in POLINE) record through REST API call, here is my Transaction data.
{
"ponum": "PO0003_1",
"revisionnum": 0,
"revcomments": "Rev 0",
"siteid": "TEST",
"issuedate": "2025-05-15T11:15:26+00:00",
"orgid": "CAN",
"status": "APPR",
"description": "test PO-PR0003",
"requestedby": "KK",
"sourcesysid": "OR",
"sendersysid": "OIC",
"potype": "STD",
"allowreceipt": true,
"vendor": "2611",
"poline": [
{
"polinenum":1,
"conversion": 1.0,
"linecost": 2250,
"loadedcost": 2250,
"orderqty": 5,
"enterdate": "2025-05-15T11:16:03+00:00",
"orderunit": "EA",
"orgid": "CAN",
"restype": "AUTOMATIC",
"itemnum": "KKITEM001",
"itemsetid": "ITEMSET",
"unitcost": 450,
"linetype": "ITEM",
"category": "STK",
"gldebitacct": "00000-00000-00000",
"requestedby": "KK",
"prnum":"PR0003",
"prlinenum":1
}
]
}
while i am sending this JSON data, getting the below error.
{
"Error": {
"extendedError": {
"moreInfo": {
"href": "https://main.manage.test-dev.suite.maximo.com/maximo/api/error/messages/BMXAA4214E"
}
},
"reasonCode": "BMXAA4214E",
"message": "BMXAA4214E - An unknown error has occurred. Please contact your system administrator for assistance. Gather the logs from the <HOME> directory and determine where and why the error occurred.\n\tnull",
"statusCode": "400"
}
}
there is nothing in log related with this BMXAA4214E error.
any help on this issue would be appreciated.
Regards,
Karthik Krishnamurthy
------------------------------
---------------------------
Karthik Krishnamurthy
---------------------------
------------------------------