cancel
Showing results for 
Search instead for 
Did you mean: 

Get IPC server details from CRM 4.0

Former Member
0 Kudos

The below is all for CRM ISA 4.0

I am trying to return the details of the IPC server in the confirmorder.jsp but it does not seem to work.

The code is as follows:

HeaderSalesDocument header =

(HeaderSalesDocument) request.getAttribute(MaintainOrderBaseAction.RC_HEADER);

ipcServer = JspUtil.removeNull(header.getIpcHost());

ipcPort = JspUtil.removeNull(header.getIpcPort()).trim();

ipcSessionId = JspUtil.removeNull(header.getIpcSession()).trim();

ipcDocumentId = JspUtil.removeNull(header.getIpcDocumentId().getIdAsString());

httpSession = request.getSession();

This same code works no problem in the screen before which is order.jsp.

Can anyone tell me why I can not get the IPC server details on the confirmorder.jsp screen.

I have output the header detail on both screen and they both look the same.

Please Help.

Naidio

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I don't think it is the imports at fault - if the JSP page couldn't find the HeaderSalesDocument object then it wouldn't run.

I don't know much about this but maybe it is because once the application has got to the confirmorder.jsp page it has dropped its connection to the IPC? So maybe the header object you are using doesn't have any info relating to IPC.

Does the line

HeaderSalesDocument header =
(HeaderSalesDocument) request.getAttribute(MaintainOrderBaseAction.RC_HEADER);

work ok?

Hope this helps,

Gareth.

Former Member
0 Kudos

Hello Gareth,

Yes HeaderSalesDocument header =

(HeaderSalesDocument) request.getAttribute(MaintainOrderBaseAction.RC_HEADER);

works fine and I can output and see the content of header on the screen with a println.

The page ofter conformorder.jsp can be orderstatusdetail.jsp and it displays the IPC detail no problem. The IPC server is should always be available as it is a windows service.

Any other help will be very much appreciated.

thanks

Naidoo.

Former Member
0 Kudos

Hmmmm... Strange one this.

The only thing I can suggest is to de-compile the Java behind the HeaderSalesDocument object and have a look at the methods and see if there is anything obvious.

Sorry can't help more but I don't have access to either a B2B system or any of the source code at the moment.

Gareth.

Former Member
0 Kudos

Gareth

To my understabding,the IPC Head details stored on the Constant RC_HEADER in the class MaintainOrderBaseAction.

He is retrieving the stored values !!!

Thanks

Jack

Former Member
0 Kudos

Naidoo

Could you please compare these imports with the <b>order.jsp</b> for <b>HeaderSalesDocument</b> ???

To my understanding some import is missing in the confirmorder.jsp !!!!

Thanks

Jack

Message was edited by: Jack

Former Member
0 Kudos

I have added the imports that order.jsp had to conformorder.jsp but this does not help.

Do you know which import has the HeaderSalesDocument?

Thanks

Naidoo

Former Member
0 Kudos

Naidoo

Have you imported <b>HeaderSalesDocument</b> in the confirmorder.jsp ???

Thanks

Jack

Former Member
0 Kudos

I have imported the following:

<%@ page import="java.lang.*" %>

<%@ page import="java.math.*" %>

<%@ page import="java.util.*" %>

<%@ page import="java.text.NumberFormat"%>

<%@ page import="com.sapmarkets.isa.core.*" %>

<%@ page import="com.sapmarkets.isa.core.util.*" %>

<%@ page import="com.sapmarkets.isa.businessobject.*" %>

<%@ page import="java.util.Collection" %>

<%@ page import="com.sapmarkets.isa.businessobject.item.*" %>

<%@ page import="com.sapmarkets.isa.businessobject.order.*" %>

<%@ page import="com.sapmarkets.isa.businessobject.header.*" %>

<%@ page import="com.sapmarkets.isa.businesspartner.businessobject.*" %>

<%@ page import="com.sapmarkets.isa.businesspartner.backend.boi.PartnerFunctionData" %>

<%@ page import="com.sapmarkets.isa.isacore.*" %>

<%@ page import="com.sapmarkets.isa.isacore.action.*" %>

<%@ page import="com.sapmarkets.isa.isacore.action.order.*" %>

<%@ page import="com.sapmarkets.isa.isacore.actionform.order.*" %>

<%@ page import="com.sapmarkets.isa.core.util.WebUtil" %>

<%@ taglib uri="/isa" prefix="isa" %>

<%@ taglib uri="/isacore" prefix="isacore" %>

<%@ page import="com.sapmarkets.isa.isacore.action.ShowShipToAction" %>

<%@ page import="com.sapmarkets.isa.businessobject.Shop" %>

<%@ page import="com.sapmarkets.isa.backend.boi.isacore.order.*" %>

<%@ page import="com.sapmarkets.isa.backend.boi.isacore.*"%>

<%@ page import="com.sapmarkets.isa.businessobject.*" %>

<%@ page import="com.sapmarkets.isa.isacore.actionform.order.orderdownload.*" %>

<%@ page import="com.sapmarkets.isa.core.interaction.InteractionConfig" %>

<%@ page import="com.sapmarkets.isa.core.interaction.InteractionConfigContainer" %>

<%@ page import="com.sapmarkets.isa.core.ContextConst" %>

<%@ include file="/b2b/usersessiondata.inc" %>

<%@ include file="/b2b/checksession.inc" %>

<%@ include file="/b2b/checkscenario.inc" %>

<%-- IPC imports --%>

<%@ page import="java.net.URLEncoder" %>

<%@ page import="com.sap.spc.remote.client.object.IPCItem" %>

<%@ page import="com.sap.spc.remote.client.ClientSupport" %>

<%@ page import="com.sap.sxe.socket.client.ClientException" %>

<%@ page import="com.sap.sxe.socket.client.ServerResponse" %>

<%@ page import="com.sap.sxe.socket.shared.ErrorCodes" %>

<%@ page import="com.sap.spc.remote.shared.command.*" %>

<%@ page import="com.sap.spc.remote.client.object.IPCException" %>

Former Member
0 Kudos

try on the follwoings:(a wise guess)

import="com.sapmarkets.isa.businessobject.header.*"

import="com.sapmarkets.isa.businessobject.item.*"

import="com.sapmarkets.isa.businessobject.order.*"

import="com.sapmarkets.isa.businessobject.*"

import="com.sapmarkets.isa.isacore.action.order.*"

Thanks

Jack

Message was edited by: Jack

Former Member
0 Kudos

I have those in my imports and have output the header detail to the screen, but still I can not get IPC serve details.

Do you have any other options I can try.

Thank you for your help.

Thanks

Naidoo.