on 2024 Oct 25 12:22 PM
Hi,
I am using PI 7.4 and using graphical mapping.
My source is a flat file which I have map it to a hierarchical output based on line number value.
Basically DocumentLineNumber can be repeated based on LotNumber values.
INPUT
<row>
<DocumentNumber>11</DocumentNumber>
<DocumentLineNumber>10</DocumentLineNumber>
<ItemNumber>MAT-123</ItemNumber>
<LotNumber>lot1</LotNumber>
<TransactionQuantity>1</TransactionQuantity>
</row>
<row>
<DocumentNumber>11</DocumentNumber>
<DocumentLineNumber>10</DocumentLineNumber>
<ItemNumber>MAT-123</ItemNumber>
<LotNumber>lot2</LotNumber>
<TransactionQuantity>2</TransactionQuantity>
</row>
<row>
<DocumentNumber>11</DocumentNumber>
<DocumentLineNumber>20</DocumentLineNumber>
<ItemNumber>MAT-343</ItemNumber>
<LotNumber>lot3</LotNumber>
<TransactionQuantity>5</TransactionQuantity>
</row>
<row>
<DocumentNumber>11</DocumentNumber>
<DocumentLineNumber>30</DocumentLineNumber>
<ItemNumber>MAT-742</ItemNumber>
<LotNumber>lot4</LotNumber>
<TransactionQuantity>4</TransactionQuantity>
</row>
Desired Output
Request clarification before answering.
Here are a bunch of screen shots showing the individual target fields with a combination of sorting, collapsing contexts and splitting by values (some by each value and others by value change, which I would leave to you to figure out), and one use of formatByExample, along with a screenshot of the result in CPI (I don't have PI/PO anymore).
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
45 | |
9 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.