cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to fetch Purchase Order Item Note details via standard API

VenuAA
Explorer
0 Kudos
173

Hello All,

             I am using standard purchase API get call to fetch the Purchase Order details and send the details to 3rd party system. The problem being faced is, we are unable to fetch the purchase order item note details via the standard API. 

I am using the standard API: https://api.sap.com/api/OP_PURCHASEORDER_0001/path/get_PurchaseOrderItemNote__PurchaseOrder___Purcha...

& the input values are PO number:457XXXX, item no:00010, Text object type: F07  language: EN.

 

Is there any point which needs to be specified, for the item note details to be pulled via the standard API

I am getting the below error:
<Text>Unknown http error occurred in the context of Data Services</Text>


-<Source>

<Program>/IWBEP/CL_OD_UTILS============CP</Program>

<Include>/IWBEP/CL_OD_UTILS============CM00E</Include>

<Line>7</Line>

</Source>

</_-IWCOR_-CX_OD_HTTP_ERROR>


-<CX_SADL_GW_V4_NOT_FOUND>

<Text>Resource not found for segment 'A_PURCHASEORDERITEM_2'</Text>


-<Attributes>

<HTTP_STATUS_CODE>404</HTTP_STATUS_CODE>

<NAME>A_PURCHASEORDERITEM_2</NAME>

<SAP_NOTE_ID>0000000000</SAP_NOTE_ID>

</Attributes>


-<Source>

<Program>CL_SADL_GW_V4_DPC_ADP_EXC_CONVCP</Program>

<Include>CL_SADL_GW_V4_DPC_ADP_EXC_CONVCM007</Include>

<Line>8</Line>

</Source>

</CX_SADL_GW_V4_NOT_FOUND>


-<CX_SADL_CONTRACT_VIOLATION>

<Text>Resource not found for entity 'A_PURCHASEORDERITEM_2'</Text>

API
-<Attributes>

<LIMIT>0</LIMIT>

<NAME>A_PURCHASEORDERITEM_2</NAME>

 

Sijin_Chandran
Active Contributor
0 Kudos
Thanks a ton to you for detailing the solution. Much appreciated!
View Entire Topic
Sijin_Chandran
Active Contributor

Hello,

It seems the Standard REST API is not properly activated in your system.

Before that first check whether your present S4 System is compatible as per the Release information of this API, "Resource not found" error is normally encountered when there is discrepancies with the REST Service related Technical Artefacts.

Sijin_Chandran_0-1718958756841.png

Thanks,

Sijin

 

VenuAA
Explorer

Thank Sijin for the response. Appreciated your response.

We did some digging and found out that the table ESH_SR_LTXT  from which the CDS view is picking the data from, and further to the API.

The values in the specific table were not being updated/filled.

Further we searched and found out a note: 3048704 - Long text (SAPScript) search enablement for CDS-based search 

Which contains a program: ESH_SR_LTXT_REPLICATE which needs to be run.

We ran the program and could see the table being updated with the long text details.

Hence the API was able to fetch the details and display.

This resolved the issue