Dear all,
I am having troubles on setting up a simple integration scenario and I would like some assistance.
First of all let me explain what I am trying to accomplish.
I would like to export a Product Order from SAP Business One to an xml file automatically, when a new Product Order is placed, using B1iSN2007 version B1iSN2007.P6.2.90
Here is what I did:
1) I generated a new BizPackage, SAP B1iSN Tools -> Development Tools -> Generator BizPackage.
2) Changed the xml files to reflect my requirements.
BizPackageMETA.xml
<?xml version="1.0" encoding="UTF-8"?><BizPackage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:com.sap.b1i.sim:entity" xsi:schemaLocation="urn:com.sap.b1i.sim:entity ../../com.sap.b1i.datasync.repository/General.xsd/SubsidiaryIntegration.xsd" BizArea="Sales and Distribution" isMulti-Receiver="no" Name="SalesForce1 Integration Package" isMulti-Sender="no" ProcessType="D" Id="Z.SalesForce1_D_0" Classification="P" isBiDirect="no"><!--Modified with X-Edit V 1.0; 2009-04-02_15:19.53--> <SysTypeLists> <SysTypeList Direction="S"> <SysType Id="B1.2007"></SysType> </SysTypeList> <SysTypeList Direction="R"> <SysType Id="F.B1.2007"></SysType> </SysTypeList> </SysTypeLists> <UIStepList> <UIStep isLastStep="no" Number="1" isMandatory="yes"></UIStep> <UIStep isLastStep="no" Number="2" isMandatory="yes"></UIStep> <UIStep isLastStep="no" Number="3" isMandatory="yes"></UIStep> <UIStep isLastStep="yes" Number="4" isMandatory="yes"></UIStep> <UIStep isLastStep="no" Number="5" isMandatory="no"></UIStep> </UIStepList> <BizStepList> <BizStep Name="Z.SalesForce1ToFile" Id="biu.Z.SalesForce1ToFile" isMandatory="yes" Direction="1" RegisterED="yes"></BizStep> </BizStepList> </BizPackage>
BIUMETA.B1.2007_F.B1.2007.xml
<?xml version="1.0" encoding="UTF-8"?> <BIU xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:com.sap.b1i.sim:entity" xsi:schemaLocation="urn:com.sap.b1i.sim:entity ../../com.sap.b1i.system.sld.repository/General.xsd/SemanticIntegrationModel.xsd" SenderSysTypeId="B1.2007" ReceiverSysTypeId="F.B1.2007" SenderCountryCode="*" ReceiverCountryCode="*" SenderMainObjectTypeId="B1.2007_SO" ReceiverMainObjectTypeId="F.B1.2007_SO" MainBizflow="Main.bfd" Name="Z.SalesForce1ToFile" TaskFilter="I"> <KeyExpansionRule/> <PropertyList> <Property Key="Timestamp" Value="01/01/1900" isEditable="yes" isMandatory="yes"></Property> </PropertyList> </BIU>
biu.Z.SalesForce1ToFile.xml
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:targetxsl="http://TargetXSLPrefixAlias" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" b1im:force="" sim:force="" jdbc:force="" rfc:force=""> <xsl:output method="xml" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <xsl:apply-templates select="b1im:B1IMessage/b1im:Body/b1im:Payload[./@ObjectTypeId='B1.2007_SO']"/> </xsl:template> <xsl:template match="b1im:B1IMessage/b1im:Body/b1im:Payload[./@ObjectTypeId='B1.2007_SO']"> <BOM> <BO> <AdmInfo> <Object>Obj</Object> <Version>1</Version> </AdmInfo> </BO> </BOM> </xsl:template> </xsl:stylesheet>
3) Setup EventSender and added an EventFilter to include B1 Object 17. All connections have been tested (through EventSender) and are working ok.
4) Defined a new BizPackage instance, Control Center -> Business Process -> Define -> Sales and Distribution
5) Activated the newly created BizPackage instance, Control Center -> Business Process -> Process -> Sales and Distribution -> Activate
Up to here there wasn't any problem.
The problem starts when I place a Product Order in SAP Business One.
If I go to B1 Event Monitor, I see in the Event Log that a B1 Object 17 has been received and dispatched to the B1 Application /0010000100.inbound/com.sap.b1i.datasync.ipo/P01/P01.ipo/EventConvertor but the BizPackage instance I created is never run.
What am I missing?