cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the catalog in our own Web Dynpro program?

Former Member
0 Kudos

Hi Expert,

How to access MDM catalog and bring the product data back to a our own Web Dynpro program?

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

There is 2 ways to connect SRM-MDM Catalog.

1. via OCI: Open Catalog Interface - You can check the code in standard program

2. via MDM API - Please look at MDM API in help.sap.com

http://help.sap.com/saphelp_mdm550/helpdata/en/45/76bc4ed69b1956e10000000a11466f/frameset.htm

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

Many thanks for your help.

We are trying to connect the catalog as the standard function in shopping cart, but it is very difficult to simulate that program in our own codes. When we copy all the method and action from standard program that catalog connection related, there was an exception occured.

The short text is "Access via 'NULL' object reference not possible.".

The detail error analysis is below:

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not

caught in

procedure "ONACTIONCATALOG_OUT" "(METHOD)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

You attempted to use a 'NULL' object reference (points to 'nothing')

access a component.

An object reference must point to an object (an instance of a class)

before it can be used to access components.

Either the reference was never set or it was set to 'NULL' using the

CLEAR statement.

Do you have any good method to make the connection easily and simply?

Thanks.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I would enhance the standard WebDynpro UI to custom UI. It is much easier than implementing all action buttons.

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

Do you know where can I get the source code for Catalog Search UI? And what is that created for? Web Dynpro for ABAP or Web Dynpro for Java?

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Which UI are you talking about? SRM or MDM ?

SRM - WedDynpro ABAP

SRM-MDM Catalog - WedDynpro Java

You can not get source code for Java.

If you share the business requirements we can give some possible/alternative solutions.

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

The Catalog Search UI of SRM that is referred to as UI as aforementioned is a page which is capable of the selection of catalog items is linked from the shopping cart creation.

Our biz requirement content two scenarioes to processing the purchase requirement.

A. Create shopping cart via the catalog (PR) --> SRM PO Process --> SUS(PO and Invoice)

This is the standard SRM purchase scenario and we have already implemented that.

B. Create a requirement document via the catalog (This document is same with the SC but very simple, and we create this function by the own web dynpro program) --> transfer the requirement document to other purchasing system(none SAP) in our intranet.

So the key problems we faced are below:

1. How to connect to the catalog search UI from our own web dynpro program.

( If we connect the catalog via the MDM ABAP API, that will make the catalog serach UI could not be used;

Also it has been failed to simulate the function of SC's connection to the catalog;

So we decide to link the catalog serach UI via the URL, the linkage is "http://<J2EEserver:J2EEport>/SRM-MDM/SRM_MDM?sap-locale=EN&HOOK_URL=&mask=&namedSearch=General&username=&password=&catalog=<Repository Name>&server=&datalanguage=EN". )

2. How to transfer the catalog item data to our own web dynpro program.

If we link the catalog search UI by URL, we can not find any good method to transfer the catalog item data to our own program.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I think 2 types of implementations are possible.

A. Custom SC UI. You need to implement OCI HOOK_URL generation and method for receiving items via OCI.

Catalog returns items to the HOOK_URL. You do not need to change anything SRM-MDM catalog side.

You can learn logic from SAP standard program by debugging.

B. Use standard SC UI and implement PO transfer to legacy backend like classic scenario.

If employees prefer 1 common SC UI, B implementation will fit.

If employees prefer 2 different SC UI, A implementation will fit.

I think B is less development effort.

Regards,

Masa

Former Member
0 Kudos

Hi Masa,

Many thanks for your help.

Our employees prefer 2 different SC UI, so the A implementation will be used.

We learned the logic of standard program and found that the Web Dynpro Component "/SAPSRM/WDC_UI_SC_DOTC_BD" content the methodes to connect the SRM-MDM catalog UI when the SC creation.

Also we find the core method "ONACTIONADDITEM_CATALOG" will trigger to get connection with catalog. But why we can not find any function to generate the OCI HOOK_URL in this method or in this Web Dynpro Component?

How could we generate the OCI HOOK_URL?

Thank and Best Regards.

Former Member
0 Kudos

Hi,

Did you find a way how to do it. I'm also working on a similar requirement. Please let me know if you find anything related to this.

Thanks,
karthik