on 03-31-2018 12:59 PM
Dear Team,
I made a b1 object and it contains insert for object 221 attachment and I wrote that schema in the previous transformation atom but it didn't work, please help
<xsl:template name="transform">
<Attachments2
> <row>
<AbsEntry>
<xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom3']/BOM/BO/OATC/row"></xsl:value-of>
</AbsEntry>
</row>
</Attachments2>
<Attachments2_Lines>
<xsl:for-each select="/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom3']/BOM/BO/ATC1/row">
<row>
<SourcePath>
<xsl:value-of select="SourcePath"></xsl:value-of>
</SourcePath>
<FileName>
<xsl:value-of select="FileName"></xsl:value-of>
</FileName>
<FileExtension>
<xsl:value-of select="FileExtension"></xsl:value-of>
</FileExtension>
<Override>
<xsl:value-of select="Override"></xsl:value-of> </Override> </row> </xsl:for-each> </Attachments2_Lines>
</xsl:template>
<xsl:template name="B1if.object.schema."></xsl:template>
Hello Mohsen Sameh,
The following code works.
<xsl:template name="transform">
<!--<Attachments2>
<row>
<AbsoluteEntry>3</AbsoluteEntry>
</row>
</Attachments2>-->
<Attachments2_Lines>
<row>
<SourcePath>C:\TMC</SourcePath>
<FileName>AC</FileName>
<FileExtension>jpg</FileExtension>
<Override>tYES</Override>
</row>
</Attachments2_Lines>
</xsl:template>
Thanks & Best regards
Huan Yang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This the error I am facing
com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.lang.RuntimeException: DI error: Invoke of: GetBusinessObjectFromXML Source: SAPbobsCOM.Company.90.0 Description: <,ErrorList>,<,Error>,System Id = 403871320, Line Number = 1, Column Number = 79, Description = The namespace of element ',schema', must be from the schema namespace.<,/Error>,<,Error>,System Id = 403869800, Line Number = 1, Column Number = 99, Description = The namespace of element ',element', must be from the schema namespace.<,/Error>,<,Error>,System Id = 403868584, Line Number = 1, Column Number = 112, Description = The namespace of element ',complexType', must be from the schema namespace.<,/Error>,<,Error>,System Id = 403870560, Line Number = 1, Column Number = 117, Description = The namespace of element ',all', must be from the schema namespace.<,/Error>,<,Error>,System Id = 403872688, Line Number = 1, Column Number = 164, Description = The namespace of element ',element', must be from the schema namespace.<,/Error>,<,Error>,System Id = 403869800, Line Number = 1, Column Number = 177,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.