<?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: problem with printing a receipt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946161#M1153472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you your solution resolves part of the problem the write invalid  and the start form missing one but still its not looping its printing just one record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2008 07:40:46 GMT</pubDate>
    <dc:creator>florence_mupagamuri</dc:creator>
    <dc:date>2008-12-12T07:40:46Z</dc:date>
    <item>
      <title>problem with printing a receipt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946159#M1153470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;guys please help out am trying to print a receipt from an internal table but when i loop before the write form into the internal table that is used for printing the form it gives me an error "WRITE FORM INVALID START FORM MISSING". THE PROBLEM S the start form is there but if i remove the loop or i loop at the empty internal table it prints but the receipt will be empty . has any1 ever come across this problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 16:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946159#M1153470</guid>
      <dc:creator>florence_mupagamuri</dc:creator>
      <dc:date>2008-12-11T16:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem with printing a receipt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946160#M1153471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the procedure....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      form    = gv_label_name&lt;/P&gt;&lt;P&gt;      device  = 'PRINTER'&lt;/P&gt;&lt;P&gt;      OPTIONS = itcpo&lt;/P&gt;&lt;P&gt;      dialog  = ' '.&lt;/P&gt;&lt;P&gt; LOOP AT lt_final_mg INTO wa_final_ssf.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        form    = gc_big&lt;/P&gt;&lt;P&gt;        program = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'END_FORM'.&lt;/P&gt;&lt;P&gt;    CLEAR wa_final_ssf.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CLOSE_FORM'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 16:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946160#M1153471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem with printing a receipt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946161#M1153472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you your solution resolves part of the problem the write invalid  and the start form missing one but still its not looping its printing just one record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 07:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946161#M1153472</guid>
      <dc:creator>florence_mupagamuri</dc:creator>
      <dc:date>2008-12-12T07:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem with printing a receipt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946162#M1153473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the flow will be like this..&lt;/P&gt;&lt;P&gt;data : count type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;write_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if count gt 8.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CONTROL_FORM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    COMMAND         = 'NEW_PAGE'&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   UNOPENED        = 1&lt;/P&gt;&lt;P&gt;   UNSTARTED       = 2&lt;/P&gt;&lt;P&gt;   OTHERS          = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;clear : count&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end_form.&lt;/P&gt;&lt;P&gt;close_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 08:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946162#M1153473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T08:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem with printing a receipt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946163#M1153474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi .. just follow these steps . you can get it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OPEN FORM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              device                      = 'PRINTER'&lt;/P&gt;&lt;P&gt;              form                        = lv_form&lt;/P&gt;&lt;P&gt;              language                    = sy-langu&lt;/P&gt;&lt;P&gt;              options                     = itcpo&lt;/P&gt;&lt;P&gt;              dialog                      = lv_dialog&lt;/P&gt;&lt;P&gt;         importing&lt;/P&gt;&lt;P&gt;              result                      = itcpp&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              canceled                    = 1&lt;/P&gt;&lt;P&gt;              device                      = 2&lt;/P&gt;&lt;P&gt;              form                        = 3&lt;/P&gt;&lt;P&gt;              options                     = 4&lt;/P&gt;&lt;P&gt;              unclosed                    = 5&lt;/P&gt;&lt;P&gt;              mail_options                = 6&lt;/P&gt;&lt;P&gt;              archive_error               = 7&lt;/P&gt;&lt;P&gt;              invalid_fax_number          = 8&lt;/P&gt;&lt;P&gt;              more_params_needed_in_batch = 9&lt;/P&gt;&lt;P&gt;              spool_error                 = 10&lt;/P&gt;&lt;P&gt;              others                      = 11.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;call function 'START_FORM'&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                    form        = lv_form&lt;/P&gt;&lt;P&gt;                    language    = lv_langu&lt;/P&gt;&lt;P&gt;                    startpage   = lv_page&lt;/P&gt;&lt;P&gt;                    program     = '&lt;STRONG&gt;'FORM_NAME'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;               exceptions&lt;/P&gt;&lt;P&gt;                    form        = 1&lt;/P&gt;&lt;P&gt;                    format      = 2&lt;/P&gt;&lt;P&gt;                    unended     = 3&lt;/P&gt;&lt;P&gt;                    unopened    = 4&lt;/P&gt;&lt;P&gt;                    unused      = 5&lt;/P&gt;&lt;P&gt;                    spool_error = 6&lt;/P&gt;&lt;P&gt;                    others      = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;            exit.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        POPULATE THE LINE ITEM DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          loop at gt_des.&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          EGP/CHALLAN NUMBER AND DATE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            call function 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;                 exporting&lt;/P&gt;&lt;P&gt;                      element  = 'MAIN'&lt;/P&gt;&lt;P&gt;                      function = 'SET'&lt;/P&gt;&lt;P&gt;                      type     = 'BODY'&lt;/P&gt;&lt;P&gt;                      window   = 'MAIN'&lt;/P&gt;&lt;P&gt;                 exceptions&lt;/P&gt;&lt;P&gt;                      others   = 4.&lt;/P&gt;&lt;P&gt;            if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;              exit.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;          endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        PASS SUBTOTAL DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          call function 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                    element  = 'SUB'&lt;/P&gt;&lt;P&gt;                    function = 'SET'&lt;/P&gt;&lt;P&gt;                    type     = 'BODY'&lt;/P&gt;&lt;P&gt;                    window   = 'SUBTOTAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          call function 'END_FORM'.&lt;/P&gt;&lt;P&gt;        enddo.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLOSE FORM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;              otfdata                  = gt_itcoo&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              unopened                 = 1&lt;/P&gt;&lt;P&gt;              bad_pageformat_for_print = 2&lt;/P&gt;&lt;P&gt;              send_error               = 3&lt;/P&gt;&lt;P&gt;              spool_error              = 4&lt;/P&gt;&lt;P&gt;              others                   = 5.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;GSANA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 09:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946163#M1153474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T09:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem with printing a receipt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946164#M1153475</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;in your sap script , check the next page u have assigned or not if its assigned then correct page or not which contains the main window  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Digvijay Rai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 09:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946164#M1153475</guid>
      <dc:creator>digvijay_rai</dc:creator>
      <dc:date>2008-12-12T09:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with printing a receipt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946165#M1153476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  APPLICATION                       = 'TX'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEVICE                            = 'PRINTER'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   DIALOG                            = 'X'&lt;/P&gt;&lt;P&gt;     FORM                              = 'ZUT_RECEIPT'&lt;/P&gt;&lt;P&gt;     LANGUAGE                          = SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     FORM                   = 'ZUT_RECEIPT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LOOP AT   itprint[] INTO itprint.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itprint.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       ELEMENT                        = 'RECORDS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION                       = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TYPE                           = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       WINDOW                         = 'MAIN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'END_FORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CLOSE_FORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did this but still the receipt is printing the first record only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 12:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-printing-a-receipt/m-p/4946165#M1153476</guid>
      <dc:creator>florence_mupagamuri</dc:creator>
      <dc:date>2008-12-12T12:28:20Z</dc:date>
    </item>
  </channel>
</rss>

