<?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: Elements in sapscript not wrote in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/elements-in-sapscript-not-wrote/m-p/1842238#M357795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT TLINES INTO wa_tlines.&lt;/P&gt;&lt;P&gt;move wa_tlines-tline to EKKO-INCO2.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;element = 'TEXT'&lt;/P&gt;&lt;P&gt;type = 'BODY' "normal output&lt;/P&gt;&lt;P&gt;window = 'MAIN' "to 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;OTHERS = 8.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2007 15:30:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-22T15:30:56Z</dc:date>
    <item>
      <title>Elements in sapscript not wrote</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/elements-in-sapscript-not-wrote/m-p/1842237#M357794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm dealing with some strange problem with a sapscript. What is happening is that i'm reading a text already saved like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              id                      = 'TXT'&lt;/P&gt;&lt;P&gt;              language                = sy-langu&lt;/P&gt;&lt;P&gt;              name                    = name&lt;/P&gt;&lt;P&gt;              object                  = 'TRAM'&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              lines                   = tlines&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              id                      = 1&lt;/P&gt;&lt;P&gt;              language                = 2&lt;/P&gt;&lt;P&gt;              name                    = 3&lt;/P&gt;&lt;P&gt;              not_found               = 4&lt;/P&gt;&lt;P&gt;              object                  = 5&lt;/P&gt;&lt;P&gt;              reference_check         = 6&lt;/P&gt;&lt;P&gt;              wrong_access_to_archive = 7&lt;/P&gt;&lt;P&gt;              OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this i'm looping the table tlines to write every line like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      LOOP AT TLINES INTO wa_tlines.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                element                  = 'TEXT'&lt;/P&gt;&lt;P&gt;                type                     = 'BODY'  "normal output&lt;/P&gt;&lt;P&gt;                window                   = 'MAIN'  "to 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;                OTHERS                   = 8.&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;For some reason I'm not getting the text to write on the sapscript. I have debugged it and the text is there, it does go in the loop. I have checked that the element name is correct,&lt;/P&gt;&lt;P&gt;I have also checked that the variable in the sapscript looks like: &amp;amp;WA_TLINES-TDLINE&amp;amp;.&lt;/P&gt;&lt;P&gt;The strange thing is that in this section 'TEXT' in the sapscript I have used another variable like &amp;amp;EKKO-INCO2&amp;amp; and it does print and it prints the number of times according to the number of lines that tlines have. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really know what reasons am I missing so I can write this text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 15:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/elements-in-sapscript-not-wrote/m-p/1842237#M357794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T15:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Elements in sapscript not wrote</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/elements-in-sapscript-not-wrote/m-p/1842238#M357795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT TLINES INTO wa_tlines.&lt;/P&gt;&lt;P&gt;move wa_tlines-tline to EKKO-INCO2.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;element = 'TEXT'&lt;/P&gt;&lt;P&gt;type = 'BODY' "normal output&lt;/P&gt;&lt;P&gt;window = 'MAIN' "to 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;OTHERS = 8.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 15:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/elements-in-sapscript-not-wrote/m-p/1842238#M357795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T15:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Elements in sapscript not wrote</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/elements-in-sapscript-not-wrote/m-p/1842239#M357796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the line to be 132 char long like the field tline-tdline. Though you gave me the idea that I need to use the tables statement to transfer this to the sapscript and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason, working with some sapscripts needs to use the tables statement to do this, at least the standard ones(copies).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows how to change this? Or where is this set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways for the moment my problem is solved.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 15:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/elements-in-sapscript-not-wrote/m-p/1842239#M357796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T15:40:40Z</dc:date>
    </item>
  </channel>
</rss>

