cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SRM 5.0 External Catalog is not working in SRM 7.0?

Former Member
0 Kudos
618

Hi,

I am facing an issue with External Catalog. It is working fine in SRM 5.0 but not working in SRM 7.0. I added the returntarget parameter and HOOKURL but still no luck. The parameters I have entered are

USERNAME XXX Fixed Value

PASSWORD XXX Fixed Value

retruntarget _top Fixed Value

HOOKURL Return URL

I have added the inbound handler also, based on the note. Still same issue.

The issue is that when I directly put the catalog URL in browser, it takes me to correct page , but if I click the on external catalog from SRM, it is going to external website and i can search for items.

But when i click add items to shopping cart, it is going to shopping cart home page and items are not adding to the shopping cart.

Please help on this.

Thanks

Venkatesh P

Edited by: Venkatesh Padarti on Nov 22, 2010 8:13 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Venkatesh,

What is the patch level of your SRM 7? External catalog is using OCI-HTML or OCI-XML?

Apart from web service call structure, please check is there anything bring back from external catalog actually.

At function module BBP_WS_IMPORT_SC_DATA, set external breakpoint at statement CALL FUNCTION 'WSI_IMPORT_DATA" to check if anything bring back.

If there is data came back, you can debug function module BBP_WS_MAP_OCI_TO_SC (e.g. for OCI-XML set break-point at call function BBP_WS_PATCH_XML_MAPPING) to examine the content.

Regards,

Donald

Former Member
0 Kudos

Hi Donald,

I have checked as per your suggestion by placing the break point in FM.

We are not getting data in the FM.

Item tables are empty.

Please advise.

Regards

Venkatesh P

Former Member
0 Kudos

Hi Venkatesh,

Suppose you are using portal, since you mentioned that "..it is going to shopping cart home page and items are not adding to the shopping cart..", that it why I think the return trip is okay except there is no data. Can you also specify patch level of SRM7 and the OCI format of external catalog (HTML or XML)? Because there is OSS note for OCI-XML at SRM7 before SP5.

When you selected item from external catalog and before return to shopping cart, can you view the source code of the web page? If yes, then you can verify the FORM action will post back to your server inbound_hdlr, calling portal iview and with OCI data.

When setup external break-point at statement CALL FUNCTION 'WSI_IMPORT_DATA" in function module BBP_WS_IMPORT_SC_DATA. If there is no data return back to SRM, the break-point will not be triggered. If the break-point is triggered, OCI data is returned and stored at IT_FORM_FIELDS. I'm not sure your statement "We are not getting data in the FM.", do you mean the debug is not trigger at all?

Regards,

Donald

Former Member
0 Kudos

Hi Donald,

Thank you for your response.

We are at SRM 7.0 SP7.

Source code of web page is like below



<form action="http://sapxxxx.xxxxx.net:8080/sap/sapsrm/inbound_hdlr?TARGET_URL=http%3a%2f%2fportal-sand%2exxxxx%2enet%3a80%2firj%2fportal%3fNavigationTarget%3dpcd%3aportal_content%2fcom%2esap%2epct%2fspecialist%2fcom%2esap%2epct%2esrm%2esrm70%2fcom%2esap%2epct%2esrm%2ecore%2efl_core%2fcom%2esap%2epct%2esrm%2ecore%2efl_roles%2fcom%2esap%2epct%2esrm%2ecore%2ero_employeeselfservice%2ffl_goshopping%2fcom%2esap%2epct%2esrm%2ecore%2eiv_shop%26NavMode%3d3%26UsePost%3dTrue%26SAPSRM_RESUME_ID%3dSAPSRM_OCI" method="POST">

at another place of web page source 

<form.action = "http://portal-sand.xxxxxx.net:80/irj/portal?navigationtarget=pcd:portal_content/com.sap.pct/specialist/com.sap.pct.srm.srm70/com.sap.pct.srm.core.fl_core/com.sap.pct.srm.core.fl_roles/com.sap.pct.srm.core.ro_employeeselfservice/fl_goshopping/com.sap.pct.srm.core.iv_shop&NavMode=3&UsePost=True&SAPSRM_RESUME_ID=SAPSRM_OCI";
form.method = "post";
form.target = "_top";>

Debug is stopped at FM and we are getting data in it_form_fields also , but lt_oci_item_data is empty.

So Please let me know your thoughts on this.

Regards

Venkatesh P

Former Member
0 Kudos

Hi Venkatesh,

So the round trip of OCI seem to be okay. Can you see the OCI data in the web page:

-- It is OCI-HTML if something like NEW_ITEM-DESCRIPTION, NEW_ITEM-CURRENCY; or

-- It is OCI-XML if word SAP_encode_b64 is contain at the form action line.

Similarly, when you read the data in IT_FORM_FIELDS, can you see some fields begin with NEW_ITEM- (then it is OCI-HTML) or ~xmlDocument (then it is OCI-XML)?

If it is OCI-XML, please check if OSS note 1463457 (in SP8) apply to your case.

Regards,

Donald

Former Member
0 Kudos

Hi,

We are using OCI HTML only.

But we are not getting data in IT_FORM_FIELDS like ITEM-.

Regards

Venkatesh P

Former Member
0 Kudos

Hi Venkatesh,

Back to source code of external catalog web page contains form action and calling inbound_hdlr, can you see any fields like NEW_ITEM-DESCRIPTION or NEW_ITEM-CURRENCY there?

You may browse the source code of same web page at SRM5 and SRM7 to compare if there is any different. What I think is there may be no data in the inbound web page at SRM7.

Regards,

Donald

former_member114630
Active Participant
0 Kudos

What internet browser/version are you using? We just found out that SAP does not support Firefox version 3.6.12 for SRM 7. We were able to bring items over if we use IE 7 or 8 or Firefox 3.5.15.

Monique Stephens

Former Member
0 Kudos

Hi,

We are using IE 7 only.

Regards

Venkatesh P

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

If you use NetWeaver Portal, please set returntarget=_parent.

Please double check the configuration guide.

Regards,

Masa

Former Member
0 Kudos

Hi,

I have tried above options.

Still it is not working.

Yes , we are using netweaver portal.

Regards

Venkatesh P

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

The issue looks returntarget handling or HOOK_URL handling in supplier catalog side.

Maybe the supplier does not support the OCI 4.0 specification.

Can you test OCI with NWBC client?

http://<srm server>:,port>/sap/bc/nwbc/srm?sap-client=XXX

If it works, the issue is returntarget handling.

https://service.sap.com/sap/support/notes/1287412

If it does not work, HOOK_URL may be truncated.

https://service.sap.com/sap/support/notes/1405908

Regards,

Masa

Former Member
0 Kudos

Hi,

i have tried with NWBC.

I am getting error , user menu is empty.

We are using portal , that is the reason we are getting this message?

Please let me know.

Regards

Venkatesh P

former_member114630
Active Participant
0 Kudos

Have you been able to resolve the issue? We are experiencing the same issue with Firefox (IE is just fine). SRM 4 works just fine; SRM 7 does not return the items to SRM. We are going back and forth with SAP and the third party catalog provider (SciQuest) without a resolution.

Monique

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please check the user has /SAPSRM/EMPLOYEE role.

Regards,

Masa

former_member114630
Active Participant
0 Kudos

The user has the appropriate role. They are able to punchout to the catalogs without any problems when IE is used. However, it does not work with Firefox which many of our users use.

Monique

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Monique,

Please create new thread for your issue.

Regards,

Masa

former_member114630
Active Participant
0 Kudos

Why? It sounds like we are experiencing the same issue as the original poster and I would like to know if and how it was resolved.

Monique

Former Member
0 Kudos

Hi,

Try this

10 PUNCHOUT URL 0 URL

20 username TESTUSER 2 Fixed Value

30 password TESTPWORD 2 Fixed Value

50 HOOK_URL 4 Return URL

60 ~OkCode ADDI 2 Fixed Value

70 ~target _top 2 Fixed Value

80 ~caller CTLG 2 Fixed Value

regards,

MRao