<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How does SAPscript 'WRITE_FORM' works ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-sapscript-write-form-works/m-p/1047329#M88264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the program works like you said, but it works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;old_werks = '   '&lt;/P&gt;&lt;P&gt;T001W-WERKS = '0900'.&lt;/P&gt;&lt;P&gt;*T001W-WERKS = T001W-WERKS .&lt;/P&gt;&lt;P&gt;*T001W-WERKS = old_werks.    &amp;lt;-- '   '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM' &lt;/P&gt;&lt;P&gt;(form KOPF with *T001W-WERKS)&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;old_werks = '0900'&lt;/P&gt;&lt;P&gt;T001W-WERKS = '0901'.&lt;/P&gt;&lt;P&gt;*T001W-WERKS = T001W-WERKS .&lt;/P&gt;&lt;P&gt;*T001W-WERKS = old_werks.    &amp;lt;--  '0900'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'  &lt;/P&gt;&lt;P&gt;(form with *T001W-WERKS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the FM prints 0900 and after 0901, when the *T001W-WERKS values were '    '  and  '0900'   !!!&lt;/P&gt;&lt;P&gt;(and with the *T001W-NAME1 field occurs in the same way)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does the FM prints that values ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2005 17:52:14 GMT</pubDate>
    <dc:creator>former_member425121</dc:creator>
    <dc:date>2005-10-31T17:52:14Z</dc:date>
    <item>
      <title>How does SAPscript 'WRITE_FORM' works ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-sapscript-write-form-works/m-p/1047326#M88261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Z program working fine, it is a SAPM07DR copy and i aggregated some fields to WASCHEIN form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i see when the program (standard or copy) calls the write form, the field values in program have other values (just the previous values) than the values wich appears in the printed form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WASCHEIN KOPF Window has the WERKS value: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Plant:    &amp;amp;*T001W-WERKS&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the write form is called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;            EXPORTING ELEMENT = 'KOPF'&lt;/P&gt;&lt;P&gt;            WINDOW            = 'KOPF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program the *T001W-WERKS field has a different value that the value wich appears in the spool, debugging i see that the field has the prevoius value in the program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program&lt;/P&gt;&lt;P&gt;*T001W-WERKS&lt;/P&gt;&lt;P&gt;(when Write Form).............Spool &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;.................----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    '     '...................................Plant:  0900&lt;/P&gt;&lt;P&gt;    '0900'.............................Plant:  0901&lt;/P&gt;&lt;P&gt;                  &lt;/P&gt;&lt;P&gt;I had to do the same logic in my new aggregated fields, but i realy don't know why does the program works in this way.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;Why the print program and sapscript function works in this way ?&lt;/P&gt;&lt;P&gt;How does WRITE-FORM works, that is where the function take from the values to print ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2005 22:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-sapscript-write-form-works/m-p/1047326#M88261</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2005-10-28T22:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAPscript 'WRITE_FORM' works ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-sapscript-write-form-works/m-p/1047327#M88262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does nobody can help me to solve my doubt, please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 16:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-sapscript-write-form-works/m-p/1047327#M88262</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2005-10-31T16:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAPscript 'WRITE_FORM' works ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-sapscript-write-form-works/m-p/1047328#M88263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It generally depends on when the fm WRITE_FORM is called:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*T001W-WERS = '9000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*T001W-WERS = '9001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the sapscript should print 9000 and after 9001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 16:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-sapscript-write-form-works/m-p/1047328#M88263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-31T16:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAPscript 'WRITE_FORM' works ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-sapscript-write-form-works/m-p/1047329#M88264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the program works like you said, but it works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;old_werks = '   '&lt;/P&gt;&lt;P&gt;T001W-WERKS = '0900'.&lt;/P&gt;&lt;P&gt;*T001W-WERKS = T001W-WERKS .&lt;/P&gt;&lt;P&gt;*T001W-WERKS = old_werks.    &amp;lt;-- '   '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM' &lt;/P&gt;&lt;P&gt;(form KOPF with *T001W-WERKS)&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;old_werks = '0900'&lt;/P&gt;&lt;P&gt;T001W-WERKS = '0901'.&lt;/P&gt;&lt;P&gt;*T001W-WERKS = T001W-WERKS .&lt;/P&gt;&lt;P&gt;*T001W-WERKS = old_werks.    &amp;lt;--  '0900'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'  &lt;/P&gt;&lt;P&gt;(form with *T001W-WERKS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the FM prints 0900 and after 0901, when the *T001W-WERKS values were '    '  and  '0900'   !!!&lt;/P&gt;&lt;P&gt;(and with the *T001W-NAME1 field occurs in the same way)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does the FM prints that values ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 17:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-sapscript-write-form-works/m-p/1047329#M88264</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2005-10-31T17:52:14Z</dc:date>
    </item>
  </channel>
</rss>

