<?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 CALL FUNCTION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019083#M413040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do we get this function, can anybody expalin the below function please.  &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;         APPLICATION        = 'TX'   -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; explain&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;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_PARAMS     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         DEVICE             = 'PRINTER' -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; explain&lt;/P&gt;&lt;P&gt;         DIALOG             = ' '&lt;/P&gt;&lt;P&gt;         FORM               = 'Z_TESTSCRIPT'&lt;/P&gt;&lt;P&gt;         LANGUAGE           = SY-LANGU&lt;/P&gt;&lt;P&gt;         OPTIONS            = ZOPTION -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; explain&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          LANGUAGE           = SY-LANGU&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         OTHERS     = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2007 05:50:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-20T05:50:11Z</dc:date>
    <item>
      <title>CALL FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019083#M413040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do we get this function, can anybody expalin the below function please.  &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;         APPLICATION        = 'TX'   -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; explain&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;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_PARAMS     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         DEVICE             = 'PRINTER' -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; explain&lt;/P&gt;&lt;P&gt;         DIALOG             = ' '&lt;/P&gt;&lt;P&gt;         FORM               = 'Z_TESTSCRIPT'&lt;/P&gt;&lt;P&gt;         LANGUAGE           = SY-LANGU&lt;/P&gt;&lt;P&gt;         OPTIONS            = ZOPTION -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; explain&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          LANGUAGE           = SY-LANGU&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         OTHERS     = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 05:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019083#M413040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T05:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019084#M413041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaheen , &lt;/P&gt;&lt;P&gt;  This is the FM for using a Sapscript in our program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 05:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019084#M413041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T05:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019085#M413042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer this link for  export parameter discription.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 05:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019085#M413042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T05:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019086#M413043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is one of th fun module  used in writing the scrpts along wih START_FORM, WRITE_FORM,END_FORM and CLOSE_FORM.&lt;/P&gt;&lt;P&gt;In this fun module OPEN_FORM &lt;/P&gt;&lt;P&gt;only parameter FORM = 'Z_TESTSCRIPT' is compulsory to pass, upon which it will take your own script  to print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program, first call this fun module them fetch data, write using Write_form.&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 05:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019086#M413043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T05:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019087#M413044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shakheen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                        This function module is used to open the form. the form defines the format .i.e layout.&lt;/P&gt;&lt;P&gt;                        Here application defines the Text editor interface normally for SAp scripts we use 'TX' means Standard Text. &lt;/P&gt;&lt;P&gt;                       Device defines where the out put should go i.e Printer ,Fax, E-mail etc.&lt;/P&gt;&lt;P&gt;Here options defines Print options.Ex: Number of copies,print immediately can be set from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Vinsa.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 05:58:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019087#M413044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T05:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019088#M413045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN_FORM  only use for SAP script description as above&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;&amp;lt;b&amp;gt;APPLICATION = 'TX' -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; explain&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;For the device type SCREEN, the system displays the text formatting on the screen. This requires an interface in which the different menu entries are defined. The same applies if the user chooses to display a print view on the screen for the other device types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter one of the interface names provided by SAPscript. You usually use the interface that is assigned to the respective text object in table TTXOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: TTXOB-TDAPPL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: 'TX'&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&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;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_PARAMS = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;DEVICE = 'PRINTER' -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; explain&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;The parameter DEVICE contains an invalid device type.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;DIALOG = ' '&lt;/P&gt;&lt;P&gt;FORM = 'Z_TESTSCRIPT'&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OPTIONS = ZOPTION -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; explain&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;The parameter OPTIONS contains invalid values for the formatting options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output device specified in field TDDEST does not exist.&lt;/P&gt;&lt;P&gt;The field TDPAGESLCT for selecting the pages to be printed contains invalid characters.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Purpose&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;OPEN_FORM function: After selecting the data, you open the layout set in which you want to display the data. In the OPEN_FORM function we mention the Layout set name to open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Please reward suitable points&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;Navin Khedikar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 06:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019088#M413045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T06:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019089#M413046</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;APPLICATION refers to the interface you want to use. there are different input options available for the it, they are DS - for hypertext environment, TO - for office environment, TD - for Documentation environment and TX - for all other text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEVICE refers to the device you are going to use i.e. printer, fax, mails etc......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS - Different variants can be defined for the output via the parameter Options. The structure is described in table ITCPO. Some of the fields contained in this structure can be changed by the user via the print dialog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more details on other you can refer the function module documentation in SE37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunajl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 06:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019089#M413046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T06:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019090#M413047</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;this function will open the form u have given in the exaporting parameters.&lt;/P&gt;&lt;P&gt;whenever u open a form.ushould close that also.&lt;/P&gt;&lt;P&gt;for that the function module is "close_form".&lt;/P&gt;&lt;P&gt;for this u have to pass the language also because all the scripts are language dependent.&lt;/P&gt;&lt;P&gt;this FM is used for exaporting the functional texts  from print program to the scripts.for that we need to use FMs:start_form,write_form,end_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 06:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019090#M413047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T06:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019091#M413048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Khan,&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;The function module OPEN_FORM opens form printing. You must call this function module before you can use any other form function (WRITE_FORM, START_FORM, CONTROL_FORM...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need not specify a form name. If you omit the name, you must use the function module START_FORM to open a form before starting the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must end form printing by using the function module CLOSE_FORM. Otherwise, the system does not print or display anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a program, you can use several OPEN_FORM.. CLOSE_FORM pairs. This allows you to write output to several different spool requests from within one program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function call:&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 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING FORM = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&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;DIALOG = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPLICATION = 'TX'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARCHIVE_PARAMS = SPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING LANGUAGE =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEW_ARCHIVE_PARAMS =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS CANCELED =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEVICE =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNCLOSED =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM&lt;/P&gt;&lt;P&gt; You can enter the name of a form here, which then controls output formatting. After calling OPEN_FORM, you can immediately output texts to the form using other function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you leave the parameter blank, you must call START_FORM with a valid form name before starting any output functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: SPACE &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LANGUAGE&lt;/P&gt;&lt;P&gt; Forms are language-dependent. Enter the desired language. If a form does not exist in this language, the system tries to call the form in its original language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDSPRAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: SY-LANGU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DEVICE&lt;/P&gt;&lt;P&gt; SAPscript can format a text for output on different device types. Enter the desired device type here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible values: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'PRINTER' print output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'TELEX' telex output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'TELEFAX' telefax output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ABAP' screen output as ABAP list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(interface of the calling program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'SCREEN' screen output as ABAP list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(interface controlled by SAPscript,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can be set with parameter APPLICATION)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user can display output formatted for PRINTER, TELEX, or TELEFAX as print view on the screen. From within the program, you can set the field TDPREVIEW (structure ITCPO) in the parameter OPTIONS, or the user can call the function on the print control screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields TDSENDTIME and TDSENDDATE designed for fax output (structure ITCPO) will be used for future enhancements; they are not used at present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: 'PRINTER'&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DIALOG&lt;/P&gt;&lt;P&gt; Use parameter DIALOG to determine whether to display a dialog box before printing, in which the user can set several spool parameters for print formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' ' display no print parameter screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'X' display print parameter screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: 'X'&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;OPTIONS&lt;/P&gt;&lt;P&gt; Use parameter OPTIONS to set several options for print formatting. The parameter has the structure ITCPO. The user can change some of the defined settings on the print control screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure: ITCPO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: SPACE&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;APPLICATION&lt;/P&gt;&lt;P&gt; For the device type SCREEN, the system displays the text formatting on the screen. This requires an interface in which the different menu entries are defined. The same applies if the user chooses to display a print view on the screen for the other device types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter one of the interface names provided by SAPscript. You usually use the interface that is assigned to the respective text object in table TTXOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: TTXOB-TDAPPL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: 'TX'&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX&lt;/P&gt;&lt;P&gt; Enter the index information for the print output you want to archive. This information (DARA line) is stored in the archive together with the print output. Thus, you can use the index information to access the print output directly in the archive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure: TOA_DARA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: SPACE &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ARCHIVE_PARAMS&lt;/P&gt;&lt;P&gt; The system interprets the settings passed in this parameter when archiving the output. The archive parameters have the ABAP Dictionary structure ARC_PARAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure: ARC_PARAMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: SPACE &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;Import parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE&lt;/P&gt;&lt;P&gt; The parameter tells you which language variant of the form the system actually used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDSPRAS&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;RESULT&lt;/P&gt;&lt;P&gt; The parameter contains results of the print formatting process. By comparing the corresponding fields of parameter OPTIONS with those of parameter RESULT, you can determine whether the user made changes to any settings on the print control screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure: ITCPP&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;NEW_ARCHIVE_PARAMS&lt;/P&gt;&lt;P&gt; The parameter contains results of the archiving process, including the archive parameters the user changed on the print control screen. The parameter has the ABAP Dictionary structure ARC_PARAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure: ARC_PARAMS&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;Exceptions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CANCELED&lt;/P&gt;&lt;P&gt; When starting SAPscript print formatting, the system displayed a selection screen, on which the user can enter settings for the output, such as: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Printer name&lt;/P&gt;&lt;P&gt;Information on the cover page&lt;/P&gt;&lt;P&gt;Page selection&lt;/P&gt;&lt;P&gt;Number of copies&lt;/P&gt;&lt;P&gt;The user did not call any subsequent actions allowed on this screen, but canceled the output formatting instead. The function module was ended without further action. No form is open for output anymore. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DEVICE&lt;/P&gt;&lt;P&gt; The parameter DEVICE contains an invalid device type.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM&lt;/P&gt;&lt;P&gt; The parameter FORM contains the name of a form that the system could not find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible reasons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The form does not exist.&lt;/P&gt;&lt;P&gt;There is no active version of this form.&lt;/P&gt;&lt;P&gt;SAPscript first searches for the form in the current client and in the specified language. If the form does not exist there, it tries the original language of the form. If the form is still not found, it searches in client 0, first in the specified language, than in the original form language. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;OPTIONS&lt;/P&gt;&lt;P&gt; The parameter OPTIONS contains invalid values for the formatting options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output device specified in field TDDEST does not exist.&lt;/P&gt;&lt;P&gt;The field TDPAGESLCT for selecting the pages to be printed contains invalid characters.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;UNCLOSED&lt;/P&gt;&lt;P&gt; The system was told to open a new form even though an old form is still active. The old form must be closed first (CLOSE_FORM or 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;Don't forget to reward  if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 06:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function/m-p/2019091#M413048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T06:02:46Z</dc:date>
    </item>
  </channel>
</rss>

