<?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: calling an sapscript from an interactive report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-sapscript-from-an-interactive-report/m-p/1683337#M301070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should not be a problem.&lt;/P&gt;&lt;P&gt;In sy-ucomm OR LINE-SELECTION JUST CALL A SUBROUTINE WHICH CONTAINS THE FMS OPEN_FORM,WRITE_FORM ETC.The control should pass to the SAP SCript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2006 11:00:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-28T11:00:12Z</dc:date>
    <item>
      <title>calling an sapscript from an interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-sapscript-from-an-interactive-report/m-p/1683336#M301069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can anybody help me that,How can i call an sapscript from an interactive report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 04:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-sapscript-from-an-interactive-report/m-p/1683336#M301069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T04:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: calling an sapscript from an interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-sapscript-from-an-interactive-report/m-p/1683337#M301070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should not be a problem.&lt;/P&gt;&lt;P&gt;In sy-ucomm OR LINE-SELECTION JUST CALL A SUBROUTINE WHICH CONTAINS THE FMS OPEN_FORM,WRITE_FORM ETC.The control should pass to the SAP SCript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 11:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-sapscript-from-an-interactive-report/m-p/1683337#M301070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T11:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: calling an sapscript from an interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-sapscript-from-an-interactive-report/m-p/1683338#M301071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;can you please provide me the code for this,so that i can go further with my development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 06:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-sapscript-from-an-interactive-report/m-p/1683338#M301071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T06:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: calling an sapscript from an interactive report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-sapscript-from-an-interactive-report/m-p/1683339#M301072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of a Print Program  (Hope it helps)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example below shows a typical print program. This simple print program creates an invoice that contains company-related information, date, page numbering, customer address, and all flight bookings of a customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the detailed sample program RSTXEXP1, refer to development class SAPBC460 (corresponding form S_EXAMPLE_1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Print program: overview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(1) Get customer data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES: scustom, sbook, spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: bookings like sbook...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(2) Open form&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DEVICE = 'PRINTER'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      FORM = 'S_EXAMPLE_1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DIALOG = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      others = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(3) Print table heading&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;    EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ELEMENT = 'HEADING'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      TYPE = 'TOP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WINDOW = 'MAIN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      FUNCTION = 'SET'&lt;/P&gt;&lt;P&gt;&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;(4) Print customer bookings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT bookings WHERE&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;      EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ELEMENT = 'BOOKING'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        TYPE = 'BODY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WINDOW = 'MAIN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ...&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;(5) Close form &lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt;In this example, the first section reads the required data from the database and fills it into internal tables (for example, BOOKINGS). In section (2), the function module OPEN_FORM is called to initialize the print output of the form S_EXAMPLE_1. Then, WRITE_FORM uses the text element HEADING to output general text and the column heading of the invoice in the MAIN window (section (3)). In section (4), the text element BOOKING in the MAIN window is used to output the bookings of a customer that are read in a loop from the internal table BOOKINGS. The address of the customer as well as company-related information is output in other form windows directly, using default text elements. CLOSE_FORM finally ends the printing of the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each printout of a form, you must use the pair of function modules OPEN_FORM and CLOSE_FORM. You can also use a print program to print several forms, which you can either maintain in separate spool requests or combine into one. In the latter case, you must use the function modules START_FORM and END_FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see OPEN_FORM and CLOSE_FORM as well as START_FORM and END_FORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 11:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-sapscript-from-an-interactive-report/m-p/1683339#M301072</guid>
      <dc:creator>sourabhshah</dc:creator>
      <dc:date>2006-12-01T11:56:48Z</dc:date>
    </item>
  </channel>
</rss>

