Line details from tSageX3Input Component

Five Stars

Line details from tSageX3Input Component

Hi,
I am using the version 6.4. This query is regarding tSageX3Input Component.
I kindly request to give more information on how to get the line details while reading the record. Basically the question is how to manage the TAB ID and the LIN tags.
Is the TAB ID and LIN ID can be managed with tSageX3Input Component ?

<?xml version="1.0" encoding="UTF-8"?>
<RESULT>
    <GRP ID="POH0_1" >
        <FLD NAME="POHFCY" TYPE="Char" >F</FLD>
        <FLD NAME="POHNUM" TYPE="Char" >ODA1701357F</FLD>
        <FLD NAME="ORDDAT" TYPE="Date" >20171024</FLD>
        <FLD NAME="BPSNUM" TYPE="Char" >S00071</FLD>
    </GRP>
    <GRP ID="POH1_1" >
        <FLD NAME="BPSINV" TYPE="Char" >S00071</FLD>
        <FLD NAME="BPAINV" TYPE="Char" >SL01</FLD>
        <FLD NAME="BPRPAY" TYPE="Char" >S00071</FLD>
    </GRP>
    <TAB DIM="500" ID="POH2_1" SIZE="3" >
        <LIN NUM="1" >
            <FLD NAME="POPLIN" TYPE="Integer" >1000</FLD>
            <FLD NAME="YCANUMD" TYPE="Char" ></FLD>
            <FLD NAME="ITMREF" TYPE="Char" >3001003</FLD>
            <FLD NAME="ITMDES" TYPE="Char" >vite TE UNI 5739 - A2-70 M 8 x</FLD>
            <FLD NAME="UOM" TYPE="Char" >UN</FLD>
            <FLD NAME="QTYUOM" TYPE="Decimal" >11</FLD>
        </LIN>
        <LIN NUM="2" >
            <FLD NAME="POPLIN" TYPE="Integer" >2000</FLD>
            <FLD NAME="YCANUMD" TYPE="Char" ></FLD>
            <FLD NAME="ITMREF" TYPE="Char" >3001014</FLD>
            <FLD NAME="ITMDES" TYPE="Char" >vite TE UNI 5739 - A2-70 M 12 </FLD>
            <FLD NAME="UOM" TYPE="Char" >UN</FLD>
            <FLD NAME="QTYUOM" TYPE="Decimal" >10</FLD>
        </LIN>
        <LIN NUM="3" >
            <FLD NAME="POPLIN" TYPE="Integer" >3000</FLD>
            <FLD NAME="YCANUMD" TYPE="Char" ></FLD>
            <FLD NAME="ITMREF" TYPE="Char" >3001014</FLD>
            <FLD NAME="ITMDES" TYPE="Char" >vite TE UNI 5739 - A2-70 M 12 </FLD>
            <FLD NAME="UOM" TYPE="Char" >UN</FLD>
            <FLD NAME="QTYUOM" TYPE="Decimal" >20</FLD>
        </LIN>
    </TAB>
</RESULT>

Thanks, Luca

Moderator

Re: Line details from tSageX3Input Component

Hello Luca,

Could you please also elaborate your case with an example with expected output values?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: Line details from tSageX3Input Component

Hello,

this is the expected output that i did with tFileInputXML

Thanks,

Luca

[statistics] connected
.----+------+-------+------.
|        tLogRow_1         |
|=---+------+-------+-----=|
|Riga|POPLIN|ITMREF |QTYUOM|
|=---+------+-------+-----=|
|1   |1000  |3001003|11    |
|2   |2000  |3001014|10    |
|32  |3000  |3001014|20    |
'----+------+-------+------'
[statistics] disconnected

 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now