<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tg/onlinemanual/000029" xml:lang="en">
   <Header>
      <Title>Macros of previous enterprise sessions</Title>
   </Header>
   <GeneralSection>
      <List>
         <ListItem>First the syntax of the macro is given.</ListItem>
         <ListItem>Second the old description.</ListItem>
         <ListItem>Third is described how the macro should be converted, what the
		  new equivalent is.</ListItem>
      </List>
      <List>
         <ListIntro>In previous version of ERP, the following macros could be
		  used:</ListIntro>
         <ListItem> 
            <Link href="#A" role="internal">STORE.PI.VALUE</Link>
         </ListItem>
         <ListItem> 
            <Link href="#B" role="internal">double GET.PI.VALUE</Link>
         </ListItem>
         <ListItem> 
            <Link href="#C" role="internal">UPDATE.PI.VALUE(domain tgeis.valu pi.value)</Link>
         </ListItem>
         <ListItem> 
            <Link href="#D" role="internal">UPDATE.OTHER.PI(domain tgeis.pind other.pi, domain</Link>
         </ListItem>
         <ListItem> 
            <Link href="#E" role="internal">WRITE.LINE(string 132 text.string, long tab.position)</Link>
         </ListItem>
         <ListItem> 
            <Link href="#F" role="internal">BLANK.LINE(long nr.lines)</Link>
         </ListItem>
         <ListItem> 
            <Link href="#G" role="internal">UPDATE.PI.TEXT()</Link>
         </ListItem>
      </List>
   </GeneralSection>
   <GeneralSection ID="A">
      <SectionTitle>STORE.PI.VALUE</SectionTitle>
      <Formula space-and-orientation="indented-estimated">
         <Paragraph>
(domain  tgeis.modu  module.code, domain
tgeis.code  pi.code, domain  tgeis.valu  pi.value, long
update.code)
</Paragraph>
      </Formula>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>OLD Description:</SectionTitle>
      <Paragraph>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 <Link href="#B" role="internal">double GET.PI.VALUE</Link> 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.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>HOW TO CONVERT</SectionTitle>
      <Paragraph>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().</Paragraph>
   </GeneralSection>
   <GeneralSection ID="B">
      <SectionTitle>double GET.PI.VALUE</SectionTitle>
      <Formula space-and-orientation="indented-estimated">
         <Paragraph>
double GET.PI.VALUE(domain  tgeis.modu  module.code, domain 
tgeis.code  pi.code)</Paragraph>
      </Formula>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>OLD DESCRIPTION</SectionTitle>
      <Paragraph>This macro reads the value of pi.code within table
		tgeis020.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>HOW TO CONVERT</SectionTitle>
      <Paragraph>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().</Paragraph>
   </GeneralSection>
   <GeneralSection ID="C">
      <SectionTitle>UPDATE.PI.VALUE(domain tgeis.valu pi.value)</SectionTitle>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>OLD DESCRIPTION</SectionTitle>
      <Paragraph>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.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>HOW TO CONVERT</SectionTitle>
      <Paragraph>The name and syntax of this macro has changed : it is now
		UPDATE.VALUE()</Paragraph>
   </GeneralSection>
   <GeneralSection ID="D">
      <SectionTitle>UPDATE.OTHER.PI(domain tgeis.pind other.pi, domain</SectionTitle>
      <Formula space-and-orientation="indented-estimated">
         <Paragraph>
UPDATE.OTHER.PI(domain  tgeis.pind  other.pi, domain 
tgeis.valu  other.pi.value)
</Paragraph>
      </Formula>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>OLD DESCRIPTION</SectionTitle>
      <Paragraph>With this macro other PIs can be update from the script of the
		current PI. Further identical to macro <Link href="#C" role="internal">UPDATE.PI.VALUE(domain tgeis.valu pi.value)</Link>
      </Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>HOW TO CONVERT</SectionTitle>
      <Paragraph>The name and syntax of this macro has changed : it is now
		UPDATE.VALUE()</Paragraph>
   </GeneralSection>
   <GeneralSection ID="E">
      <SectionTitle>WRITE.LINE(string 132 text.string, long
		tab.position)</SectionTitle>
      <GeneralSection>
         <SectionTitle>DESCRIPTION</SectionTitle>
         <Paragraph>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 <Link href="#G" role="internal">UPDATE.PI.TEXT()</Link> If this macro is used in
		  a script, the macro <Link href="#G" role="internal">UPDATE.PI.TEXT()</Link> be used too. THIS MACRO HAS NOT BEEN CHANGED</Paragraph>
      </GeneralSection>
   </GeneralSection>
   <GeneralSection ID="F">
      <SectionTitle>BLANK.LINE(long nr.lines)</SectionTitle>
      <Paragraph>DESCRIPTION: Adds nr.lines of blank lines to the temporary text
		file. See <Link href="#E" role="internal">WRITE.LINE(string 132 text.string, long tab.position)</Link>. If this macro is
		used in a script, the macro <Link href="#G" role="internal">UPDATE.PI.TEXT()</Link> be used too. THIS MACRO HAS NOT BEEN CHANGED.</Paragraph>
   </GeneralSection>
   <GeneralSection ID="G">
      <SectionTitle>UPDATE.PI.TEXT()</SectionTitle>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>OLD DESCRIPTION</SectionTitle>
      <Paragraph>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.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>HOW TO CONVERT</SectionTitle>
      <Paragraph>The name and syntax of this macro has changed : it is now
		PDATE.TEXT()</Paragraph>
   </GeneralSection>
</ManualTopic>