FI users often have to enter a series of document line items and then create an offsetting entry that is the total of the line items with the opposite sense so that the document nets to 0. (If the total is a credit, a debit entry must be added and vice versa.) But the user may not have the total at hand and would like to have the final entry determined without having to go to a calculator or a spreadsheet. If you create a document using say FB50, this can be done automatically by entering all the line items with the correct amounts except for the last item. For the last item, the user can enter a “*” in the amount and the program will calculate and populate the total after the user presses enter. If you find yourself being asked to do something similar, the following program should help to guide you along.
Some Things to Note
Double click on ‘9999’ in the line: CALL SCREEN 9999.
Seeing what’s going on
When you copied the field DMBTR from the data dictionary and kept the default attributes, the “* Entry” attribute was not clicked on. Now, when you execute the program and the screen comes up, enter a numeric value in the “Amount” field and press enter. There should be no problem doing this. Then try entering a non-numeric character (other than “*” or “-“) in the amount. You should find that the screen will not accept the entry at all. Finally, enter “*” in the amount (without the quotes) and press enter. Unlike a normal non-numeric character, you can enter this; however, when you press enter, you should get an error: “Input should be in the form __,___,___,__~.__”.
Now go back to the screen attributes and click on the “* Entry” attribute on the “program” tab of the attributes. Save and generate the screen. Go back and try entering the same data in the amount as you did earlier. You will find that it behaves similarly with a couple of exceptions: if you enter exactly one “*”, you will not get an error and the “*” will not be re-displayed; if you enter a “*” followed by a number, the number will be shifted left by one character so that the “*” again disappears.
This is the first thing you have to realize – clicking on the “* Entry” attribute will allow you to enter a “*” in a numeric field. Note that you can click this on for other fields and maybe you can use this in some way, but for now it is only relevant for this currency field. But what good is entering a “*” in a numeric field? Not much yet – the entry was simply removed. Now we are ready to look at the second important point:
Now you are ready to do a real test. In the first two lines, enter a debit/credit indicator of “S” (debit) and in the first line an amount of 100 and in the second one an amount of 200. On the third line, enter a “*” in the amount and press enter. If we’ve both done everything correctly, the first two lines will be re-displayed normally, but the third line will have “H” (credit) in the debit/credit indicator and an amount of 300. So the program was able to calculate and populate the amount and sense of an offsetting entry.
Some Further Things to Note
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |