Skip to Content

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

Mar 22, 2017 at 01:50 AM


avatar image


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:

Thank you.



screenshot-1.jpg (32.5 kB)
screenshot-2.jpg (128.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sven Schuberth Dec 18, 2017 at 02:06 PM

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

10 |10000 characters needed characters left characters exceeded