cancel
Showing results for 
Search instead for 
Did you mean: 

Redefine S/4 Purchase Order OData Service with Custom Purchase Order Form

Deon_van_Zyl
Active Participant
0 Kudos
140

Hi,

I have a requirement to create a custom Purchase Order bases on the SAP Standard. The custom purchase order needs to get data from a Z-table and therefore SAP Standard OData(FDP_EF_PURCHASE_ORDER_SRV) service would need to be redefined as well. I have done the following:

1) Created a new OData Service(ZFDP_EF_PURCHASE_ORDER_SRV) and Redefined the SAP Standard OData Service for Purchase order into it (FDP_EF_PURCHASE_ORDER_SRV).

2) I have created an defined and activated a service in the gateway for the new service.

3) I have created my custom form template and uploaded it to Output Management Form Template. However at this step, my custom OData service is not available to select in the drop down?

4) As per note https://me.sap.com/notes/0003009083  I have created a copy of the call back class ZCL_MM_PUR_PO_OUTPUT_CALLBACK and replaced the hardcoded FDP_EF_PURCHASE_ORDER_SRV with ZFDP_EF_PURCHASE_ORDER_SRV.

5) I have configured all the OPD steps. 

So my new form is being called correctly and I am happy about that. Hoever.. my new Z Odata service with its DPC classes is not being called. It is still calling the FDP_EF_PURCHASE_ORDER_SRV service with its classes to populate the form. What am I missing? HoStep5.pngStep4.pngStep3.pngStep2.pngStep1.pngw do I link the redefined OData Service to my custom template?

Kind Regards

Deon

View Entire Topic
__7
Discoverer
0 Kudos

Hi Deon,

You assign the Service to the From using Transaction SFP. See https://me.sap.com/notes/3258342/E.

Cheers,
John.

__7
Discoverer
0 Kudos
Sorry about the typo... I meant Form 😉
Deon_van_Zyl
Active Participant
0 Kudos
Brilliant! Thanks John!