cancel
Showing results for 
Search instead for 
Did you mean: 

B1 Event Not Triggered in Payload -B1IF

former_member440545
Participant
0 Kudos

Dear Expert,

I have Created the PO to SO scenerio in Integration Framework using the OPENSAP Course.I followed the steps which are given in the Course videos. But the Scenerio is not working, and it is not showing any response in B1 event Monitor.

Here I have attached the atoms which are created by me during in scenerio creation.

XML transformation code for Atom1:

<?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet js:force="" uplt:force="" b1im:force="" utils2:force="" sim:force="" xci:force="" b1e:force="" b1ie:force="" rfc:force="" jdbc:force="" vpf:force="" bfa:force="" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:uplt="urn:com.sap.b1i.xcellerator:upltdoc" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:js="com.sap.b1i.bpc_tools.Javascript" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:b1e="urn:com.sap.b1i.sim:b1event"> <xsl:output indent="yes" encoding="UTF-8" method="xml"/> <xsl:param name="atom"/> <xsl:param name="sessionid"/> <xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']"/> <xsl:variable name="vptsDoc" select="document('/com.sap.b1i.internal/xml/timestamp')"/> <xsl:variable name="vpts" select="concat($vptsDoc/*/@year,'/',$vptsDoc/*/@month,'/',$vptsDoc/*/@date,' ',$vptsDoc/*/@hour,':',$vptsDoc/*/@minute,':',$vptsDoc/*/@second)"/> <xsl:variable name="vpSender" select="/vpf:Msg/vpf:Header/vpf:Sender/@Id"/> <xsl:variable name="vpObject" select="/vpf:Msg/vpf:Header/vpf:Sender/@ObjId"/> <xsl:variable name="vpReceiver" select="/vpf:Msg/vpf:Header/vpf:ReceiverList/vpf:Receiver[./@handover='P']/@Id"/> -<xsl:template match="/"> -<vpf:Msg> <xsl:copy-of select="/vpf:Msg/@*"/> <xsl:copy-of select="/vpf:Msg/vpf:Header"/> -<vpf:Body> <xsl:copy-of select="/vpf:Msg/vpf:Body/*"/> -<vpf:Payload ts="{$vpts}" id="{$atom}" Role="X"> <xsl:call-template name="transform"/> </vpf:Payload> </vpf:Body> </vpf:Msg> </xsl:template> -<xsl:template name="transform"> -<Values> <xsl:variable name="MappingCardCode" select="document('/com.sap.b1i.vplatform.scenarios.design/vPac.easap.B2BB1/vTbl.B1MappingCardCode.xml')"/> <xsl:variable name="Vendor" select="$msg/BOM/BO/Documents/row/CardCode"/> <xsl:variable name="Customer" select="$MappingCardCode/table/row[./col[2]=$Vendor]/col[1]"/> -<CustomerCode> <xsl:value-of select="$Customer"/> </CustomerCode> -<B1User> <xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='T']/Event/b1e:b1events/b1e:b1event/b1e:userid"/> </B1User> </Values> </xsl:template> </xsl:stylesheet>

XML transformation for Atom3(predecesser Transformation for B1 object atom)

<?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet js:force="" uplt:force="" b1im:force="" utils2:force="" sim:force="" xci:force="" b1e:force="" b1ie:force="" rfc:force="" jdbc:force="" vpf:force="" bfa:force="" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:uplt="urn:com.sap.b1i.xcellerator:upltdoc" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:js="com.sap.b1i.bpc_tools.Javascript" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:b1e="urn:com.sap.b1i.sim:b1event"> <xsl:output indent="yes" encoding="UTF-8" method="xml"/> <xsl:param name="atom"/> <xsl:param name="sessionid"/> <xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']"/> <xsl:variable name="vptsDoc" select="document('/com.sap.b1i.internal/xml/timestamp')"/> <xsl:variable name="vpts" select="concat($vptsDoc/*/@year,'/',$vptsDoc/*/@month,'/',$vptsDoc/*/@date,' ',$vptsDoc/*/@hour,':',$vptsDoc/*/@minute,':',$vptsDoc/*/@second)"/> <xsl:variable name="vpSender" select="/vpf:Msg/vpf:Header/vpf:Sender/@Id"/> <xsl:variable name="vpObject" select="/vpf:Msg/vpf:Header/vpf:Sender/@ObjId"/> <xsl:variable name="vpReceiver" select="/vpf:Msg/vpf:Header/vpf:ReceiverList/vpf:Receiver[./@handover='P']/@Id"/> -<xsl:template match="/"> -<vpf:Msg> <xsl:copy-of select="/vpf:Msg/@*"/> <xsl:copy-of select="/vpf:Msg/vpf:Header"/> -<vpf:Body> <xsl:copy-of select="/vpf:Msg/vpf:Body/*"/> -<vpf:Payload ts="{$vpts}" id="{$atom}" Role="X"> <xsl:call-template name="transform"/> </vpf:Payload> </vpf:Body> </vpf:Msg> </xsl:template> -<xsl:template name="transform"> -<Documents> -<row> -<xsl:variable name="date"> <xsl:call-template name="b1ilib.today"/> </xsl:variable> -<DocDate> <xsl:value-of select="$date"/> </DocDate> -<DocDueDate> -<xsl:call-template name="b1ilib.date_plus"> <xsl:with-param name="date" select="$date"/> <xsl:with-param name="x" select="20"/> </xsl:call-template> </DocDueDate> <xsl:variable name="Customer" select="/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom1']/Values/CustomerCode"/> -<CardCode> <xsl:value-of select="$Customer"/> </CardCode> -<NumAtCard> <xsl:value-of select="$msg/BOM/BO/Documents/row/DocNum"/> </NumAtCard> </row> </Documents> -<Document_Lines> -<xsl:for-each select="$msg/BOM/BO/Document_Lines/row"> -<row> -<ItemCode> <xsl:value-of select="ItemCode"/> </ItemCode> -<Quantity> <xsl:value-of select="Quantity"/> </Quantity> </row> </xsl:for-each> </Document_Lines> </xsl:template> <xsl:include href="../../com.sap.b1i.system.lib/xsl/datetime.xsl"/> <xsl:template name="B1if.object.schema."/> </xsl:stylesheet>

B1 object Code:

<?xml version="1.0"?> -<vPCallprocessing keyvalue="0" keyname="DocEntry" payload="atom3" objectid="17" valueOK="true" method="Synchronous Insert" b1login="Technical User" systype="B1.9.0" sysid="0010000102"> -<msg> -<vpf:Msg test="true" owntst="true" status="success" SubMessageId="" logmsg="0000" BeginTimeStamp="20180927115105" MessageId="18092711510551017844C0A864643317" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:uplt="urn:com.sap.b1i.xcellerator:upltdoc" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:js="com.sap.b1i.bpc_tools.Javascript" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:b1e="urn:com.sap.b1i.sim:b1event" xmlns:vpf="urn:com.sap.b1i.vplatform:entity"> -<Header xmlns="urn:com.sap.b1i.vplatform:entity"> <IPO Id="vPlatform_Test"/> <Sender Id="0010000100" ObjId="22"/> <Receiver Id=""/> -<ReceiverList> <Receiver Id="" handover="P"/> </ReceiverList> <Identification IdPar="" Ident="B1 Event"/> <nsList/> <vBIU Id="easap.B2bPO2SO" phase="" filter="" SId="easap.B2BB1" ver="1.0.0"/> -<Variables> <var value="" id="userid"/> <var value="" id="username"/> </Variables> <Properties/> -<SysTypeProperties rsystype="" ssystype="B1.9.0" rcv="receiverdummy" snd="0010000100" offline="" type="B1if"> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Country"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Company Language"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Foreign Language"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Company Code"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Credit Control Area"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Sales Organization"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Distribution Channel"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Division"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Plant"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Subsidiaries Customer Number"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Subsidiary Identifier"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Management Report Start Time"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Liquidity Forecasting Start Time"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Account Holder"/> <property VSrc="Cfg" Src="SAP" Dir="S" Value="" Key="Headquarters Vendor Number"/> </SysTypeProperties> <LocalProperties rcv="receiverdummy" snd="0010000100" offline="" type="B1if" sid="easap.B2BB1" biu="easap.B2bPO2SO"/> <VarProperties/> </Header> -<vpf:Body> <Payload xmlns="urn:com.sap.b1i.vplatform:entity" Type="Call" Role="T"/> <Payload xmlns="urn:com.sap.b1i.vplatform:entity" Role="S">*** no test message specified ***</Payload> -<vpf:Payload id="atom1" Role="X" ts="2018/09/27 11:51:05"> -<Values> <CustomerCode/> <B1User/> </Values> </vpf:Payload> -<vpf:Payload id="atom3" Role="X" ts="2018/09/27 11:51:05"> -<Documents> -<row> <DocDate>20180927</DocDate> <DocDueDate>20181017</DocDueDate> <CardCode/> <NumAtCard/> </row> </Documents> <Document_Lines/> </vpf:Payload> </vpf:Body> </vpf:Msg> </msg> -<B1Call sysid="0010000102"> -<connect> <b1Server>DESKTOP-FNU2JLL</b1Server> <licenseServer/> <sldServer/> <company>PRD_03</company> <dbType>8</dbType> <dbUser>sa</dbUser> <dbPassword>{{3AQEABEIxaVAAAAD2AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAXakd+mTTyEWrA8HMLu5w1QQAAAAC AAAAAAAQZgAAAAEAACAAAAD30pkeFdPg+utfORPZIe+mdyXmS3k3/mmWR3ViHudliwAAAAAOgAAA AAIAACAAAABR55DJMoasWZltys+bxzuefUG31GUekiT/3J1ragYmyiAAAACCS5vHE9rOYI7liqnh C4q5EqywlxCIZPVTNZFuo9pc1EAAAABMxHNoEUtOviGzCCg3tC2HUNtiV6f//06JfJk7a8NCL55j 7mKGlHMcdKnxyMWh2eFB5NUzVZzXBF656fkAKbpLAAAAEOtqhAp+5ww+lsCIeKQnCnTCyDQviqYG 4OJtRpI7twzQhhv35MFfqr0= }}</dbPassword> <userName>B1i</userName> <password>{{3AQEABEIxaVAAAAD2AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAXakd+mTTyEWrA8HMLu5w1QQAAAAC AAAAAAAQZgAAAAEAACAAAABYjBURdw5/tAixR4/h6rST116Xm5r+wgkjNvRi8h7DaQAAAAAOgAAA AAIAACAAAABYd8YDNx5C8J4P7kO+E+yboYKuZv+Zzgm94IbEsKmpZiAAAAC4hrWU8QGikwDclrpD x0AB6/Sy0mIfHMphuReRKBfH1UAAAADib/38Y0+sULbeKbyHJHSf2t0o6DOuiOj/slpXW4/K+NgJ p+5Hj/mWHn7tEmdnPXZ9amJLh8t2tzeNX0CEpxjOAAAAEKTbXe7q8Uz0S04cmWvx8evZ0AdEdvkA 521rknO5qJhvY5N+gj5Md7o= }}</password> <language>3</language> <isTrust>false</isTrust> <jcoPath/> <diProxyhost>DESKTOP-FNU2JLL</diProxyhost> <diProxyport>2099</diProxyport> <proxyHost/> <proxyPort/> <afterB12007>true</afterB12007> <DIJCO/> </connect> -<call> -<Envelope> -<Header> <Action autoCommit="false" throwException="true">add</Action> </Header> -<Body> -<BOM> -<BO> -<AdmInfo> <Object>17</Object> <Version>2</Version> </AdmInfo> -<Documents> -<row> <DocDate>20180927</DocDate> <DocDueDate>20181017</DocDueDate> <CardCode/> <NumAtCard/> </row> </Documents> <Document_Lines/> </BO> </BOM> </Body> </Envelope> </call> </B1Call> </vPCallprocessing>

Please find the attachment for Test and Debug image and Cancelled B1 object Call

Kindly do the needful on urgent Basis

Thanks Advance.

po-to-so.jpg

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member440545
Participant
0 Kudos

Dear Huan Yang,

Sorry for the late reply. Thanks for the solution. I have fixed this issue.

I have one more doubt in B1 to database scenerio. Please refer any samples for B1 to Database scenerio. I struggling on this issue.

HuanYang
Employee
Employee
0 Kudos

Hello Manikandan,

Maybe because you put incomplete payload there, which lead to error return.

Can you add an order successfully, only input date information, without cardcode, without item information?

Thanks

Huan Yang