cancel
Showing results for 
Search instead for 
Did you mean: 

problem with OCI -- external catalog in R3 ISA b2b E commerce

Former Member
0 Kudos

Hi Experts ---

I am working on R3 E commerce B2b application. My client wants to use some external catalog developed in .net application. So, in XCM settings, i created a ocir3standard configuration, with below details:

ociCatalogURL: my external catalog url

ociTarget: form_input

ociVersion: 3.5

ociForm: HTML

ociEnable: true

ociReadAllProductData: true

ociAllProductsInMaterialMaster: false

Now when i click the external catalog link, in the welcome.jsp.. its going to external catalog, i can browse that products.

My problem is: now what configurations/settings/code changes i have to do, to transfer those selections to my shopping basket.

I am completely stuck here, and its becoming a bottleneck to my project. I am very new to this area but hopefully i might i have given u full details of my problem.

Kindly help me on this with your valuable inputs.

Thanks in advance,

Niraja

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Follow these links. This will give you the perfect solution.

[Supplier Relationship Management - SAP SRM Open Catalog Interface (B2B-OCI)|https://www.sdn.sap.com/irj/groups/group?rid=/webcontent/uuid/ff03d072-0501-0010-aa88-8018506a2ebe]

[Documentation, Open Catalog Interface, SAP Enterprise Buyer Professional, 3.0|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0fa7a090-0201-0010-6697-dc1ab229d383]

[XML and HTML Examples|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8662d190-0201-0010-aeb8-a79154f782c7]

Regards,

Sateesh Chandra

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Niraja,

Surprisingly, none as long as the external catalog is truly OCI enabled. The external catalog will show a "TRANSFER" button which will transfer the items from the external catalog to the R/3 E-Commerce cart. The data will be transferred either as XML or HTML - as defined in the XCM. The target URL is usually the "Action class" that will "automagically" read this HTML or XML content into the cart.

This hook URL has to be defined in the "external catalogs" configuration. If the external catalog is OCI compatible, then you should refer its documents. The hook URL to SAP E-Commerce will be usually to the forward

b2b/ocireceive.do

The URL will have the following structure:

http://[hostname]:[port]/[application-name]/b2b/init.do?shop=shopname&forward=ocireceive

You can now "transfer" the external catalog contents to the ISA cart and order them as such - as long as the Material transferred to cart is available in R/3.

Things you might have known already

E-Commerce OCI "interface" can work two ways.

  1. In the normal E-Commerce scenario, you are a "selling" organization. Your customers can order products from External Catalog (such as yours) in to the E-Commerce (ISA) cart and order. Your E-Commerce application transfers items from an external catalog into its cart usig OCI. In this scenario this is behaving as a OCI Client.

  1. If you are doing what is called "One-Step-Business" using E-Commerce, then you are still a "selling" office and integrating your E-Commerce system to your customer's SRM (EBP) system. This will be the case when your cusomer is too big compared to your org and they would like "automatic" integration of the E-Commerce system's catalog "directly" into their Buying system. In this scenario alos, OCI comes into play and the exisitng OCI framework will "transform" the normal E-Commerce catalog into "OCI server" mode.

You are using scenario (1) only.

Easwar Ram

http://www.parxlns.com

Former Member
0 Kudos

Hi Ram,

Thankyou so much for your prompt reply,

so now i understood much more than earlier. Basically, I have given the external catalog's url in the OCI settings in the XCM of b2b. I didnt gave teh HOOK_URL there.

First thing: what shud contain in the hook_url.?

so you mean, in that xcm settings, shall i also add -- http://[hostname]:[port]/[application-name]/b2b/init.do?shop=shopname&forward=ocireceive along with the external catalog's url with ?HOOK_URL= ??

so once i give this will that take automatically the data into ISA shopping cart from external cart. ?

in the external catalog, i can see for each item, there is a link "add to shopping cart" and at the top another link " view my cart ".

So to my understanding, once i click add to shopping cart, then i have to see those products when i click "view my cart". So where does the transfer button appear?

in the "view my cart" ?

if yes, what exactly the other developer has to be done(external catalog is done in .net) ?

kindly help me with you valuable comments.

Thanks in advance,

Niraja

Former Member
0 Kudos

Niraja,

The hook URL should be defined in the external catalog you are using.

I might be able to give a better reply if you can tell us which external catalog

you are using?

If the external catalog is a custom .NET app, then this feature of "Transferring" the

selected catalog items must be developed in that application. The application will

do a "POST" to the hook URL.

http://host:port/b2b/b2b/init.do?shop=shponame&forward=ocireceive

The ocireceive forward runs an action class that actually reads the HTML POST

attributes of of the selected catalog items and "builds" the cart.

Thanks,

Easwar Ram

Former Member
0 Kudos

solved, the data is coming to SC.

the hook url will automatically generated.. ex: HOOK_URL=http://sapdis.htillc.prv:50100/b2b_2/b2b/ocireceive.do&TARGET=form_input&OCI_VERSION=3.5&FORM=HTML&CALLER=CTLG&OkCode=ADDI

just have to hit this url correct values....

Former Member
0 Kudos

Hello All,

I had the same issue. When I amm clicling on link "External Catelog" in welcome.jsp, it is opening the catelog and after selecting the product from Catelog, when I click Send button, it is calling ocireceive.do method, the code written for this is

<form method="post" id="basketSendingForm"

action="http://XXXXX.com:51300/b2b_secore/b2b/ocireceive.do" target="form_input">

<input type="hidden" name="~TARGET" value="form_input"/>

<input type="hidden" name="OCI_VERSION" value="3.5"/>

<input type="hidden" name="~FORM" value="XML"/>

<input type="hidden" name="~CALLER" value="CML"/>

<input type="hidden" name="~CALLER" value="CTLG"/>

<input type="hidden" name="~OkCode" value="ADDI"/>

</form>

But I am getting the Invalid Session Error.

Regards.

PSC