<?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: SAPscript errors in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060557#M91770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check your page format and ensure that it wont exceeds the window boundaries.&lt;/P&gt;&lt;P&gt;Well u have the option to use text elements or avoid it altogether but using will be recommended.&lt;/P&gt;&lt;P&gt;Once you have defined your layout setting then write your print program by making use of the FMs like OPEN_FORM,&lt;/P&gt;&lt;P&gt;START_FORM,WRITE_FORM and END_FORM.The FMs requirement may vary based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2005 08:41:39 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2005-12-15T08:41:39Z</dc:date>
    <item>
      <title>SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060556#M91769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am experimenting on SAPscripts and I encountered an error. the first error is "bad_pageformat_for_print". Also, what is the use of element? do i need to declare that? how can I know the value of that particular element in write_form? &lt;/P&gt;&lt;P&gt;Also, if you can give me some examples and tips on SAPscriptI would really appreciate it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 08:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060556#M91769</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2005-12-15T08:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060557#M91770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check your page format and ensure that it wont exceeds the window boundaries.&lt;/P&gt;&lt;P&gt;Well u have the option to use text elements or avoid it altogether but using will be recommended.&lt;/P&gt;&lt;P&gt;Once you have defined your layout setting then write your print program by making use of the FMs like OPEN_FORM,&lt;/P&gt;&lt;P&gt;START_FORM,WRITE_FORM and END_FORM.The FMs requirement may vary based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 08:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060557#M91770</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2005-12-15T08:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060558#M91771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The elements are very necessary part of the SAPscripts as they tell the driver functions to call which part of the script at what time.&lt;/P&gt;&lt;P&gt;The error you are getting is due to the fact that data you are displaying is not well formed on the paragraph formats.&lt;/P&gt;&lt;P&gt;Kindly check them through.&lt;/P&gt;&lt;P&gt;If you can give me your email id I can provide you with a stepwise tutorial for SAPscript which will help you a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 08:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060558#M91771</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2005-12-15T08:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060559#M91772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to Give DINA4 or some proper page format, and align..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and elements you need to go to layout and and check for&lt;/P&gt;&lt;P&gt;elements , element command '/E' and look for them and specify them in write form, otherwise text or variables under that element will not print (if they are under some element)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 08:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060559#M91772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T08:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060560#M91773</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;The error may be because the page format you have specified doesnt suit the printer you are using. Change the printer settings for this.&lt;/P&gt;&lt;P&gt;Elements are declared for logical processing of a part of the code in script.&lt;/P&gt;&lt;P&gt;If you want some part of teh code to be executed based on some conditional statement, then you give this under one element and while calling from the program call this element seperately.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Lavanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 08:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060560#M91773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T08:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060561#M91774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! here is my e-mail address: viraylab@yahoo.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, pasted below is the report that I made to call the form. Please give comments and suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZRPT_ARIS_PRACTICE_11 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;*/  Table Definition&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;TABLES ZMOVIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;*/  Internal Table/Work Area Definition&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_ZMOVIES OCCURS 0,&lt;/P&gt;&lt;P&gt;         TITLE LIKE ZMOVIES-TITLE,&lt;/P&gt;&lt;P&gt;         GENRE LIKE ZMOVIES-GENRE,&lt;/P&gt;&lt;P&gt;         YEAR_RELEASED LIKE ZMOVIES-YEAR_RELEASED,&lt;/P&gt;&lt;P&gt;         CASTS LIKE ZMOVIES-CASTS,&lt;/P&gt;&lt;P&gt;         PRODUCER LIKE ZMOVIES-PRODUCER,&lt;/P&gt;&lt;P&gt;         DIRECTOR LIKE ZMOVIES-DIRECTOR,&lt;/P&gt;&lt;P&gt;         REVIEW LIKE ZMOVIES-REVIEW,&lt;/P&gt;&lt;P&gt;         SYNOPSIS LIKE ZMOVIES-SYNOPSIS,&lt;/P&gt;&lt;P&gt;      END OF IT_ZMOVIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;*/  Selection Screen&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK BLOCK1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;   PARAMETERS: SP_TITLE LIKE IT_ZMOVIES-TITLE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK BLOCK1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;/  Main Routine Program&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;PERFORM GET_RECORDS.&lt;/P&gt;&lt;P&gt;PERFORM OPEN_FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_RECORDS.&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM ZMOVIES&lt;/P&gt;&lt;P&gt;INTO TABLE IT_ZMOVIES.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*form open_form&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;      DEVICE     =     'PRINTER'&lt;/P&gt;&lt;P&gt;      FORM       =     'ZFRM_ARIS'&lt;/P&gt;&lt;P&gt;      DIALOG     =     'X'&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;      OTHERS          = 6.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;         WRITE 'Error in open_form'.&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;CALL FUNCTION 'START_FORM'&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS     =     1.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;         WRITE 'Error in start_form'.&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;*write_form&lt;/P&gt;&lt;P&gt;PERFORM WRITE_FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'END_FORM'&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS     =     1.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      WRITE 'Error in end_form'.&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;CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS         = 1.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;         WRITE 'Error in close_form'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*write_form&lt;/P&gt;&lt;P&gt;FORM WRITE_FORM.&lt;/P&gt;&lt;P&gt;LOOP AT IT_ZMOVIES.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;      ELEMENT     =     'XXX'&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;      ELEMENT     =      1&lt;/P&gt;&lt;P&gt;      FUNCTION    =      2&lt;/P&gt;&lt;P&gt;      TYPE        =      3&lt;/P&gt;&lt;P&gt;      UNOPENED    =      4&lt;/P&gt;&lt;P&gt;      UNSTARTED   =      5&lt;/P&gt;&lt;P&gt;      WINDOW      =      6&lt;/P&gt;&lt;P&gt;      BAD_PAGEFORMAT_FOR_PRINT = 7.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 1.&lt;/P&gt;&lt;P&gt;         WRITE: 'error in element!'.&lt;/P&gt;&lt;P&gt;      ELSEIF SY-SUBRC = 2.&lt;/P&gt;&lt;P&gt;         WRITE: 'error in function'.&lt;/P&gt;&lt;P&gt;      ELSEIF SY-SUBRC = 3.&lt;/P&gt;&lt;P&gt;         WRITE: 'error in type'.&lt;/P&gt;&lt;P&gt;      ELSEIF SY-SUBRC = 4.&lt;/P&gt;&lt;P&gt;         WRITE: 'unopened'.&lt;/P&gt;&lt;P&gt;      ELSEIF SY-SUBRC = 5.&lt;/P&gt;&lt;P&gt;         WRITE: 'unstarted'.&lt;/P&gt;&lt;P&gt;      ELSEIF SY-SUBRC = 6.&lt;/P&gt;&lt;P&gt;         WRITE: 'error in window'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;         WRITE: 'bad_pageformat_for_print!'.&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;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 08:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060561#M91774</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2005-12-15T08:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060562#M91775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;elements are required wen u want a particular piece of information to be displayed in sapscript at a particular time in the program( eg, if some condition is met or after a loop, etc ).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 09:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060562#M91775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T09:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060563#M91776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viray,&lt;/P&gt;&lt;P&gt;You can check out your mail ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 09:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060563#M91776</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2005-12-15T09:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060564#M91777</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;element can be declared in the script using prefix '/', it tells the script thru the driver program that which part of the script should be processed based on the selected element name!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regarding ur error....since it's related to bad page format ...do check ur page format and make it DINA4 if that suits( u can find that in basic settings of the form)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, after u have created the form ..go to menu (form-&amp;gt;check-&amp;gt;text..check the first two option and press enter)..next window will ask for the print program appen dur print program and click on copy..it will display all the relevant errors that may have creaped in)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLz reward valuable points by clicking on the star!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 09:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060564#M91777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T09:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060565#M91778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for your help! I really appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2005 00:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-errors/m-p/1060565#M91778</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2005-12-16T00:05:29Z</dc:date>
    </item>
  </channel>
</rss>

