im试图从CRM中将值(ZZZZ)检索到orderstatusedetails.jsp文件中。
我尝试了以下
<%@ page errorPage="\appbase\jspruntimeexception.jsp" %>
<%@ page import="java.util.*" %>
<%@ page import="com.sap.isa.core.*" %>
<%@ page import="com.sap.isa.core.util.*" %>
<%@ page import="com.sap.isa.core.util.table.ResultData" %>
<%@ page import="com.sap.isa.businessobject.*" %>
<%@ page import="java.util.Collection" %>
<%@ page import="com.sap.isa.businessobject.item.*" %>
<%@ page import="com.sap.isa.businessobject.order.*" %>
<%@ page import="com.sap.isa.businessobject.header.*" %>
<%@ page import="com.sap.isa.businesspartner.businessobject.*" %>
<%@ page
import="com.sap.isa.businesspartner.backend.boi.PartnerFunctionData"
%>
<%@ page import="com.sap.isa.isacore.*" %>
<%@ page import="com.sap.isa.isacore.action.*" %>
<%@ page import="com.sap.isa.isacore.action.order.*" %>
<%@ page import="com.sap.isa.isacore.uiclass.b2b.order.ConfirmationUI" %>
<%@ page import="com.sap.isa.core.util.WebUtil" %>
<%@ page import="com.sap.isa.ui.uicontrol.UIController" %>
<%@ page import="com.sap.isa.mod.utils.*" %>
<%@ taglib uri="/isa" prefix="isa" %>
<%@ taglib uri="/isacore" prefix="isacore" %>
<%@ taglib uri="http://java.sap.com/xsrf" prefix="xsrf" %>
<%@ page import="com.sap.isa.businessobject.header.HeaderSalesDocument" %>
<%@ page import="com.sap.isa.isacore.action.ActionConstantsBase" %>
<%@ page import="com.sap.isa.isacore.ManagedDocumentLargeDoc" %>
<%@ page import="com.sap.isa.isacore.uiclass.SalesDocumentStatusBaseUI" %>
<%@ page import="com.sap.isa.ui.uiclass.genericsearch.GenericSearchUIData"
%>
<%@ page import="com.sap.spc.remote.client.object.IPCItem" %>
<%@ page import="com.sap.isa.businessobject.order.ExtRefObjectList" %>
<%@ page import="com.sap.isa.businessobject.order.ExternalReference" %>
<%@ page import="com.sap.isa.businessobject.ConnectedDocument" %>
<%@ page import="com.sap.isa.businessobject.ConnectedDocumentItem" %>
<%@ page import="com.sap.isa.businessobject.Schedline" %>
<%@ page import="com.sap.isa.businessobject.item.ItemSalesDoc" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="com.sap.isa.businessobject.item.ItemList" %>
<%@ page import="com.sapmarkets.isa.mod.utils.*" %>
<%@ include file="/appbase/checksession.inc" %>
<%@ include file="/b2b/usersessiondata.inc" %>
SalesDocumentStatusBaseUI ui =
(SalesDocumentStatusBaseUI)GenericFactory.getInstance("orderStatusUI");
HeaderSalesDocument header =(HeaderSalesDocument)
request.getAttribute(MaintainOrderBaseAction.RC_HEADER);
String z1 ="";
String z2 = "0.00";
以下两行适用于我(order.jsp,confirm.jsp,order_change.jsp),但不适用于orderstatusdetails.jsp。
z1 = (String)header.getExtensionData("Z1");
z2 = (String)header.getExtensionData("Z2");
以下两行根本不起作用
z1 = (String)ui.header.getExtensionData("Z1");
z2 = (String)ui.header.getExtensionData("Z2");
我不断收到此错误“在请求处理期间发生了应用程序错误”。 详细信息:com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException:编译J2EE应用程序[sap.com/home~b2b_mod]的别名[b2b_mod]的[/ecombase/documentstatus/orderstatusdetail.jsp]时出错。 em>
导入与confirm.jsp(以及更多)中的导入完全相同。
CRM类ZCL_IM_CRM_ISA_BASKET_HEAD方法GETHEAD_GET_DATA
DATA ls_extension TYPE LINE OF crmt_isales_extension_tab.
ls_extension-ref_guid = cs_basket_head-guid.
ls_extension-name = 'Z1'.
ls_extension-value = Z_value1.
APPEND ls_extension TO ct_extension.
ls_extension-ref_guid = cs_basket_head-guid.
ls_extension-name = 'Z2'.
ls_extension-value = Z_value2.
APPEND ls_extension TO ct_extension.
有什么想法可以解决此问题吗?
在此先感谢您的帮助。