| # Macros of previous enterprise sessions First the syntax of the macro is given. Second the old description. Third is described how the macro should be converted, what the new equivalent is. In previous version of ERP, the following macros could be used: STORE.PI.VALUE double GET.PI.VALUE UPDATE.PI.VALUE(domain tgeis.valu pi.value) UPDATE.OTHER.PI(domain tgeis.pind other.pi, domain WRITE.LINE(string 132 text.string, long tab.position) BLANK.LINE(long nr.lines) UPDATE.PI.TEXT() STORE.PI.VALUE
    (domain  tgeis.modu  module.code, domain
    tgeis.code  pi.code, domain  tgeis.valu  pi.value, long
    update.code)
OLD Description: With this macro a calculated (temporary) value can be stored in table tgeis020. Data within this table will not be shown in the fishbone diagram, so this table can be used to store temporary results. Also cumulating can be done with use of this table. It is also possible to store data from one PI script and retrieve this with macro double GET.PI.VALUE It is not necessary that pi.code contains the name of the current PI. There is no relation between the pi.code and the name of the current PI. Update.code = 0 causes existing data to be overwritten, update.code = 1 causes the system to add the pi.value to the existing value. HOW TO CONVERT This macro is removed because table tgeis020 has skipped. This macro was used to stored temporary data that later would be retrieved with macro GET.PI.VALUE(). This storing temporary data should now be done in table tgeis012, with use of a (dummy) PI which is not linked to any fishbone diagram. Storing data in table tgeis012 can be done with the new macro UPDATE.VALUE(). double GET.PI.VALUE
    double GET.PI.VALUE(domain  tgeis.modu  module.code, domain
    tgeis.code  pi.code)
OLD DESCRIPTION This macro reads the value of pi.code within table tgeis020. HOW TO CONVERT This macro is skipped because table tgeis020 is removed. Retrieving (temporary) data should now be done with the new macro GET.VALUE(). This reads data from table tgeis012, stored with macro UPDATE.VALUE(). UPDATE.PI.VALUE(domain tgeis.valu pi.value) OLD DESCRIPTION Writes pi.value to table tgeis012 in field Calculated Value for the current PI and Year, Year Part, Period Number which is currently be calculated. This value will be shown in fishbone diagram. HOW TO CONVERT The name and syntax of this macro has changed : it is now UPDATE.VALUE() UPDATE.OTHER.PI(domain tgeis.pind other.pi, domain
    UPDATE.OTHER.PI(domain  tgeis.pind  other.pi, domain
    tgeis.valu  other.pi.value)
OLD DESCRIPTION With this macro other PIs can be update from the script of the current PI. Further identical to macro UPDATE.PI.VALUE(domain tgeis.valu pi.value) HOW TO CONVERT The name and syntax of this macro has changed : it is now UPDATE.VALUE() WRITE.LINE(string 132 text.string, long tab.position) DESCRIPTION Used to generate an output file for the current PI. Writes text.string to a temporary file, starting on position tab.position. The output file will be written to table tgeis012 with macro UPDATE.PI.TEXT() If this macro is used in a script, the macro UPDATE.PI.TEXT() be used too. THIS MACRO HAS NOT BEEN CHANGED BLANK.LINE(long nr.lines) DESCRIPTION: Adds nr.lines of blank lines to the temporary text file. See WRITE.LINE(string 132 text.string, long tab.position). If this macro is used in a script, the macro UPDATE.PI.TEXT() be used too. THIS MACRO HAS NOT BEEN CHANGED. UPDATE.PI.TEXT() OLD DESCRIPTION Writes the temporary text file to table tgeis012. This macro should always be used at the bottom of a PI script when one of the previous two macros is used. Otherwise the generated text file will not be visible as an output file in the fishbone diagram. HOW TO CONVERT The name and syntax of this macro has changed : it is now PDATE.TEXT() |