cancel
Showing results for 
Search instead for 
Did you mean: 

Open Catalog Interface(OCI) in S/4Hana Material Management - Purchasing

Former Member
0 Kudos

Hi,

We are implementing complete end to end OCI application to facilitate employees to shop products and add them to PO creation (ME21N), I have gone through few threads here in SCN and implemented the OCI but i'm not able to post data back to the PO screen.

To confirm the steps which i have implemented to achieve this requirement.

  1. Configured Web Service via IMG->Material Management ->Purchasing ->Environment Data-> Web Services.
  2. For shopping cart i have developed simple SAPUI5 Application to transfer the data back to the PO creation screen.

With this I'm able to see new Catalog button in ME21N and when i click on button it is navigating to UI5 Application but when i click on transfer button it is not posting data back to the PO screen.

I have tried few options like implementing BADI MMPUR_CATALOG_TRANSFER but it is not reaching to BADI also.

I also want to open the Catalog in new window but is is not working too, it is getting open in same window.

I need experts help to resolve the below issues:

  1. Unable to post the data back to PO creation screen from the external catalog.
  2. Catalog should open in new window but it opens in same window, I have tried Parameter ~target = _top but no luck.

Reference threads:

https://blogs.sap.com/2007/12/07/oci-open-catalog-interface-setting-and-trouble-shooting/

https://blogs.sap.com/2013/12/14/oci-open-catalog-interface-40/

https://archive.sap.com/documents/docs/DOC-14117

Thank you.

Cheers,

San.

Accepted Solutions (0)

Answers (1)

Answers (1)

sven_schuberth2
Participant
0 Kudos

Hi San,

SAP calls yout first page with post-parameters. There are two very important parameters:

HOOK_URL and RETURNTARGET. You have to pass HOOK_URL to your action-attribute and the RETURNTARGET to your target-attribute in the form tag.

It should look like this.

<form name="sendForm" id="sendForm" action="sapevent:POST" method="post" target="_parent" > ... </form>

I have similar problems with SAPUI5. I can return to sap, but it does not post any data to sap... How do you generate this page shown in the second image?

Kind regards - Sven