Hi Guys,
I have an input table like this which consists of document numbers with auto-posting (Auto Line) Yes or No:
| Document Number | Debit/ Credit | Amount | Auto Line |
| 1900000000 | Debit | 100 | X |
| 1900000000 | Credit | 100 | X |
| 1900000001 | Debit | 200 | |
| 1900000001 | Credit | 200 | |
| 1900000002 | Debit | 100 | X |
| 1900000002 | Debit | 100 | |
| 1900000002 | Credit | 100 | X |
| 1900000002 | Credit | 100 | |
I want to add a column "Manual Entry?" which shall identify the documents which are not auto-posted on complete document number basis.
Conditions:
1. For the same document number if both debit and credit Iines are auto-posted then in the 'Manual Entry' column - "No" should be updated.
2. If either debit/ credit is auto-posted or both debit, credits are not auto-posted then the column should be updated as "Yes".
Output table should be like this:
| Document Number | Debit/ Credit | Amount | Auto Line | Manual Entry? |
| 1900000000 | Debit | 100 | X | No |
| 1900000000 | Credit | 100 | X | No |
| 1900000001 | Debit | 200 | | Yes |
| 1900000001 | Credit | 200 | | Yes |
| 1900000002 | Debit | 100 | X | Yes |
| 1900000002 | Debit | 100 | | Yes |
| 1900000002 | Credit | 100 | X | Yes |
| 1900000002 | Credit | 100 | | Yes |
Can anyone help me with this problem without using Cross Tab?