cancel
Showing results for 
Search instead for 
Did you mean: 

what is the detaled schema for insert attachment in the B1iF ()

mohsen_ali
Explorer

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>

Accepted Solutions (1)

Accepted Solutions (1)

HuanYang
Employee
Employee
0 Kudos

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

Answers (1)

Answers (1)

mohsen_ali
Explorer
0 Kudos

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,