<?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: &amp;quot;Write_Form&amp;quot; function module is not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863010#M1686367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Che,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; At last my friend, you make my day.. It works now!.. just because of one little setting.. I moved the text element and the variables to the 'MAIN' window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2012 09:14:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-07-19T09:14:58Z</dc:date>
    <item>
      <title>"Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862994#M1686351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in the midst of customizing the sapscript form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added the following lines in include (Z_RFFORI06) of print medium program Z_RFFOAVIS_FPAYM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF hlp_xhrfo EQ space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window&amp;nbsp;&amp;nbsp; = 'main_or'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; element&amp;nbsp; = '699'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'APPEND'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; element&amp;nbsp; = 2.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I also added the following lines in the sapscript form &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;/E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 699&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -------------------- print invoice line item -------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;/:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF &amp;amp;REGUH-LIFNR&amp;amp; EQ ' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;T2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;BSEG-REBZG&amp;amp;,,&amp;amp;VBRK-FKDAT&amp;amp;,,&amp;amp;VBRK-NETWR&amp;amp;,,&amp;amp;BSEG-NEBTR&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;/:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I used debugger to test print and the system did run the function module "write_form" but nothing came out on the printout.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've even tried to use Write statement, and it printed out to the display, that means, there were values in the variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Does anyone has any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Abraham&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 10:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862994#M1686351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-17T10:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862995#M1686352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the window = 'main_or' to uppercase window = 'MAIN_OR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window&amp;nbsp;&amp;nbsp; = '&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;main_or&lt;/STRONG&gt;&lt;/SPAN&gt;'&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; element&amp;nbsp; = '699'&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'APPEND'&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; element&amp;nbsp; = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;Assuming there is a window called MAIN_OR in the sap script and a text element 699.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 10:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862995#M1686352</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2012-07-17T10:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862996#M1686353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing, comment out the IF check in the window 699 and put it back once the text is printing. This will make testing easier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;amp;REGUH-LIFNR&amp;amp; EQ ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to change the above to IF &amp;amp;REGUH-LIFNR&amp;amp; EQ '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But just comment it out for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 10:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862996#M1686353</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2012-07-17T10:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862997#M1686354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window&amp;nbsp;&amp;nbsp; = 'main_or'&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; should be written 'MAIN'_OR', too.&lt;/P&gt;&lt;P&gt;If this is not the problem check the window has exact the same name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 13:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862997#M1686354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-17T13:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862998#M1686355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi guys,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;thanks for your help..&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I changed the window's name, 'main_or' to big capital letter, 'MAIN_OR', and it printed out but only the last line of the internal table.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm not sure whether they actually process the content in the 'MAIN_OR' window.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The following are the lines I added in Z_RFFORI06.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;LOOP AT it_bseg.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; AT FIRST.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; bseg-zuonr = it_bseg-zuonr.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ENDAT.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;bseg-rebzg = it_bseg-rebzg.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/DIV&gt;&lt;DIV&gt;bseg-nebtr = it_bseg-nebtr.&amp;nbsp;&amp;nbsp; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;WRITE:/ bseg-rebzg, bseg-nebtr.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; IF hlp_xhrfo EQ space.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL FUNCTION 'WRITE_FORM'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window&amp;nbsp;&amp;nbsp; = 'MAIN_OR'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; element&amp;nbsp; = '699'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function = 'APPEND'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window&amp;nbsp;&amp;nbsp; = 1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; element&amp;nbsp; = 2.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;ENDLOOP.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt;"&gt;As you can see the above variables, 'bseg-rebzg' and 'bseg-nebtr' were printed repeatedly for 4 times as there're 4 rows in the internal table it_bseg.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;The WRITE statement works fine.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;What else did I miss out?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt;"&gt;Abraham&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 02:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862998#M1686355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-18T02:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862999#M1686356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chaun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep all in caps.SAP is not a case sensitive but space sensitive.Even though keep in caps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/825/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 03:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8862999#M1686356</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2012-07-18T03:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863000#M1686357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abraham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your window name from lowercase to upper case then try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window&amp;nbsp;&amp;nbsp; = 'MAIN_OR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think now it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 04:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863000#M1686357</guid>
      <dc:creator>former_member212705</dc:creator>
      <dc:date>2012-07-18T04:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863001#M1686358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's still the same after I made them to big cap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I added CLEAR statement immediately after the ENDLOOP, in order to clear the value in the above mentioned variables, and it printed out 4 lines of zero amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like that the system pick up the last values that remained in the variables, and since it's reset after end of WRITE_FORM by the CLEAR statement, it has no values to print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how exactly the system push the values to the print layout before sent for printing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 04:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863001#M1686358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-18T04:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863002#M1686359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already done that earlier and it worked but didn't print out exactly the values being passed to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it's printing the last line's value only for 4 times repeatedly as there're 4 rows of data in the internal table.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 07:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863002#M1686359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-18T07:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863003#M1686360</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;Can i check with you window main is calling some condition &lt;SPAN style="color: #333333; font-size: 11px; background-color: #ffffff;"&gt; if hlp_xhrfo EQ space&lt;/SPAN&gt; .&lt;/P&gt;&lt;P&gt;Check for this condition may be for some record condition is getting truncate .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in Debugging .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yukti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 07:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863003#M1686360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-18T07:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863004#M1686361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yukti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've removed "if hlp_xhrfo EQ space" but still the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried with Debugger and it showed there's correct values in the variables each loop before it move to the 'WRITE_FORM' function module, same as what was displayed by WRITE statement.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know where else other than WRITE_FORM function module, does the system process the print layout?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 08:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863004#M1686361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-18T08:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863005#M1686362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi guys,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The following is the print out.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;1800000283&amp;nbsp;&amp;nbsp; 150.00&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;1800000283&amp;nbsp;&amp;nbsp; 150.00&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;1800000283&amp;nbsp;&amp;nbsp; 150.00&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;1800000283&amp;nbsp;&amp;nbsp; 150.00&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;As mentioned earlier, the WRITE_FORM did print out but only the last line of the internal table repeatedly for 4 times (exactly the number of loops occurred).&lt;/DIV&gt;&lt;DIV&gt;It supposed print the first line and followed by subsequent lines of the internal table.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Does anyone here has any idea?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;regards,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Abraham&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 09:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863005#M1686362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-18T09:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863006#M1686363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abraham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear the variables just before 'ENDLOOP', then check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 11:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863006#M1686363</guid>
      <dc:creator>former_member212705</dc:creator>
      <dc:date>2012-07-18T11:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863007#M1686364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where have you declared BSEG? is it declared globally or locally? It must be declared globally for it to be visible in the sap script. The write statement maybe referring to a local declaration of BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Show us where you have declared BSEG and if possible give us more from Z_RFFORI06 and Z_RFFOAVIS_FPAYM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Che&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 11:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863007#M1686364</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2012-07-18T11:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863008#M1686365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Che,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declared BSEG in Z_RFFORI00 as following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;tables:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; bseg.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Accounting Document Segment &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and internal table in Z_RFFORI06 as following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;FORM avis_schreiben.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; DATA:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_bseg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE TABLE OF bseg WITH HEADER LINE.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; The way I look at the issue, it seems like the declaration has no problem as print medium program could print out except that it's print the last line repeatedly only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I did use the Debugger, and it showed the values were carried in until just before WRITE_FORM, but once entered, it dissappeared, but will come back again once exit from WRITE_FORM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Would that be caused by the declaration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Abraham&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 06:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863008#M1686365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-19T06:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863009#M1686366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abraham,&lt;/P&gt;&lt;P&gt;From what I have seen you cannot print table data in a non main window. You are printing the contents of table IT_BSEG in window MAIN_OR, is it a Main window or a Secondary window? The results you are getting are consistent with printing in a secondary window i.e. only the last line of data printed is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="http:////http://scn.sap.com/thread/1059966"&gt;//http://scn.sap.com/thread/1059966&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Che&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 07:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863009#M1686366</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2012-07-19T07:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: "Write_Form" function module is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863010#M1686367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Che,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; At last my friend, you make my day.. It works now!.. just because of one little setting.. I moved the text element and the variables to the 'MAIN' window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 09:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quot-write-form-quot-function-module-is-not-working/m-p/8863010#M1686367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-19T09:14:58Z</dc:date>
    </item>
  </channel>
</rss>

