Skip to Content
author's profile photo Former Member
Former Member

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


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)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on 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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.