I have a table Tab1 with two rows
| DOC Number | From Material | Quantity | Amount
| DOC Number | To Material | Quantity | Amount
enter image descript