<?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: SAP Script Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/6850411#M1474291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'OPEN_FORM'
     EXPORTING
         APPLICATION        = 'TX'
*         ARCHIVE_INDEX      = ' '
*         ARCHIVE_PARAMS     = ' '
         DEVICE             = 'LOCL'
         DIALOG             = ' '
         FORM               = 'Z_XPTO'
         LANGUAGE           = SY-LANGU
         OPTIONS            = Z*OPTION*XPTO
     IMPORTING
          LANGUAGE           = SY-LANGU
       EXCEPTIONS
         OTHERS     = 1.

CALL FUNCTION 'WRITE_FORM'
     EXPORTING
         ELEMENT       = 'HEADER'
*         FUNCTION      = 'SET'
*         TYPE          = 'BODY'
         WINDOW        = 'HEADER'
     EXCEPTIONS
          ELEMENT       = 1.

CALL FUNCTION 'CLOSE_FORM'
     EXCEPTIONS
          UNOPENED = 1
          OTHERS   = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 May 2010 15:34:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-14T15:34:58Z</dc:date>
    <item>
      <title>SAP Script Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/6850409#M1474289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some body help me in this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have write some code to print the data into sap script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have write select statement and now data is in internal table and i write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop
write_form
endloop&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is saying invalid write_form and open_form is missing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Surendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 11:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/6850409#M1474289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/6850410#M1474290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;open form is must in any script. we have to open the script form with open_form statement.that might be the reason for getting open_form is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form OPEN_FORM .&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            Form = 'YKC_FIRST_SCRIPT'.&lt;/P&gt;&lt;P&gt;Endform.                    "OPEN-FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;invalid write_form is because,we can not loop at write_form.istead looping can be done at either internal table or database values retrieval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check it out..or else.search in sdn.sap.com...we can know the exact method for the above mentioned query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 15:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/6850410#M1474290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T15:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/6850411#M1474291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'OPEN_FORM'
     EXPORTING
         APPLICATION        = 'TX'
*         ARCHIVE_INDEX      = ' '
*         ARCHIVE_PARAMS     = ' '
         DEVICE             = 'LOCL'
         DIALOG             = ' '
         FORM               = 'Z_XPTO'
         LANGUAGE           = SY-LANGU
         OPTIONS            = Z*OPTION*XPTO
     IMPORTING
          LANGUAGE           = SY-LANGU
       EXCEPTIONS
         OTHERS     = 1.

CALL FUNCTION 'WRITE_FORM'
     EXPORTING
         ELEMENT       = 'HEADER'
*         FUNCTION      = 'SET'
*         TYPE          = 'BODY'
         WINDOW        = 'HEADER'
     EXCEPTIONS
          ELEMENT       = 1.

CALL FUNCTION 'CLOSE_FORM'
     EXCEPTIONS
          UNOPENED = 1
          OTHERS   = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 15:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/6850411#M1474291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T15:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/6850412#M1474292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 15:43:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/6850412#M1474292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T15:43:07Z</dc:date>
    </item>
  </channel>
</rss>

