cancel
Showing results for 
Search instead for 
Did you mean: 

HOOK_URL

Former Member
0 Kudos

Hello All,

Spent a fair while searching on the forums and have a question.

We've managed to integrate our External Catalog with a third party companies SRM. They are using OCI 4.0.

They can access the Catalog and add products to the basket. However when clicking on the <b>order confirmation</b>, the screen stays as it is?

In the asp code we have

<form action="<%=Request.QueryString("HOOK_URL")%>" method=post target=_top >

We have a 9 hidden fields which store OCI compliant data.

Appreciate any help or pointers you can offer.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

yann_bouillut
Active Contributor
0 Kudos
Former Member
0 Kudos

Thanks for the pointer Yann

I've read the thread posted but am at a complete loss to understand why it is failing.

This has actually been my first exposure to SAP/SRM. The docmentation for OCI 4.0 mentions that the HOOK_URL should be left blank?

Here's some more code which may give a better idea as to what is happening

<form action="<%=Request.QueryString("HOOK_URL")%>" method=post target=_top >

<input type="hidden" name="NEW_ITEM-UNIT<%Response.Write(intCounter)%>" value= "KGM" >
<input type="hidden" name="NEW_ITEM-QUANTITY<%Response.Write(intCounter)%>" value = "<%Response.Write(.Fields.Item("QTY").Value)%>">
<input type="hidden" name="NEW_ITEM-PRICE<%Response.Write(intCounter)%>" value = "<%Response.Write(.Fields.Item("LineExcPrice").Value)%>" >
<input type="hidden" name="NEW_ITEM-CURRENCY<%Response.Write(intCounter)%>" value = "GBP" >
<input type="hidden" name="NEW_ITEM-VENDORMAT<%Response.Write(intCounter)%>" value = "<%Response.Write(.Fields.Item("PartCode").Value)%>" >
<input type="hidden" name="NEW_ITEM-EXT_PRODUCT_ID<%Response.Write(intCounter)%>" value = "<%Response.Write(.Fields.Item("ProductID").Value)%>" >

Thanks for taking out the time to read and reply.

Former Member
0 Kudos

Hi Adrian,

The hook_url that should be left blank is in SRM, meaning the OCI call-up of your catalog doesn't need to have the hook_url filled as SRM will do that for you.

In the return message however (that's what you have in your message) the hook_url needs to be filled (you got it when SRM called up your catalog).

The only thing that's not correct in your message as I see now is that you wrote:

<input type="hidden" name="NEW_ITEM-UNIT<%Response.Write(intCounter)%>"

It should read:

<input type="hidden" name="NEW_ITEM-UNIT<b>[</b><%Response.Write(intCounter)%><b>]</b>"

Notice the [ and ] in the name bit.

The next passage is quoted from the OCI standard 4.0 documentation (can be found on here).

4.2.1 Required and Optional Fields

The following fields are required fields in all cases:

• Either NEW_ITEM-DESCRIPTION[n] or NEW_ITEM-MATNR[n] must be filled. Only one of the two should be filled.

• NEW_ITEM-QUANTITY[n]

The following fields are required fields depending on conditions:

• NEW_ITEM-UNIT[n] if NEW_ITEM-MATNR[n] has not been filled

• NEW_ITEM-CURRENCY[n] if NEW_ITEM-PRICE[n] has been filled

• NEW_ITEM-EXT_SCHEMA_TYPE[n] if NEW_ITEM-EXT_CATEGORY_ID[n] or NEW_ITEM-EXT_CATEGORY[n] are used

• NEW_ITEM-EXT_QUOTE_ID[n] if NEW_ITEM-EXT_QUOTE_ITEM[n] has been used

• NEW_ITEM-CONTRACT[n] if NEW_ITEM-CONTRACT_ITEM[n] has been used

All other fields are optional.

4.2.2 Product Numbers

There are four fields in the interface that describe product numbers:

• NEW_ITEM-MATNR[n]: The product number in the SRM System of the purchaser

• NEW_ITEM-VENDORMAT[n]: The vendor’s product number

• NEW_ITEM-MANUFACTMAT[n]: The manufacturer’s product number

• NEW_ITEM-EXT_PRODUCT_ID[n]: The number that uniquely identifies the product in the catalog.

These product numbers may not be mixed or used for other purposes; in particular the field NEW_ITEM-MATNR[n] may only be filled if the product number in the customer system is known to the catalog.

Former Member
0 Kudos

Thankyou Robin.

Its slowly making sense

I'm just getting the guys from the third party company to test so hopefully thats done the trick.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Adrian,

Have you tried to use some http sniffer program to view the posted data? For example, you could use HttpSniffer or IEWatch to see all outbound and inbound oci parameters. That would probably help you as well.

Cheers,

Kristoffer

Former Member
0 Kudos

A colleague mentioned something similar, thanks for the program recommendations.

To everyone who took the time to read or reply:

Appreciate all your help guys, its helped a lot.

Have a great day