<?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: Incorrect text printed from SAPScript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461593#M1553969</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;    What I meant was to get the texts using some selects on respective tables and not using SAVE_TEXT or some other FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Dec 2010 04:30:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-02T04:30:18Z</dc:date>
    <item>
      <title>Incorrect text printed from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461590#M1553966</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;I have added some code to the 'Pick list' print out of the production order. This code will read the 'Inspection text' from the material master and print it for all materials required in that production order. The code that I added is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR flg_head.&lt;/P&gt;&lt;P&gt;LOOP AT index_tab.&lt;/P&gt;&lt;P&gt;REFRESH: lt_lines.&lt;/P&gt;&lt;P&gt;CLEAR: lv_index,&lt;/P&gt;&lt;P&gt;lv_lncnt.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;client = sy-mandt&lt;/P&gt;&lt;P&gt;id = 'ST'&lt;/P&gt;&lt;P&gt;language = sy-langu&lt;/P&gt;&lt;P&gt;name = 'ZMATQM'&lt;/P&gt;&lt;P&gt;object = 'TEXT'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = lt_lines1&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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DELETE_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;client = sy-mandt&lt;/P&gt;&lt;P&gt;id = 'ST'&lt;/P&gt;&lt;P&gt;language = sy-langu&lt;/P&gt;&lt;P&gt;name = 'ZMATQM'&lt;/P&gt;&lt;P&gt;object = 'TEXT'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;not_found = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE 'Text could not be deleted' TYPE 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;REFRESH lt_lines1.&lt;/P&gt;&lt;P&gt;CLEAR lt_lines1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill DDIC-Strutcure of component&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE resbd_tab INDEX index_tab-index_cmp.&lt;/P&gt;&lt;P&gt;resbd = resbd_tab.&lt;/P&gt;&lt;P&gt;lv_mat = resbd_tab-matnr.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;client = sy-mandt&lt;/P&gt;&lt;P&gt;id = 'PRUE'&lt;/P&gt;&lt;P&gt;language = sy-langu&lt;/P&gt;&lt;P&gt;name = lv_mat&lt;/P&gt;&lt;P&gt;object = 'MATERIAL'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = lt_lines&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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;REFRESH lt_lines.&lt;/P&gt;&lt;P&gt;CLEAR lt_lines.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;SEARCH lt_lines FOR 'Prod:' AND MARK.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;lv_index = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF lv_index IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;gt_head-tdobject = 'TEXT' .&lt;/P&gt;&lt;P&gt;gt_head-tdid = 'ST' .&lt;/P&gt;&lt;P&gt;gt_head-tdspras = sy-langu.&lt;/P&gt;&lt;P&gt;gt_head-tdlinesize = 132.&lt;/P&gt;&lt;P&gt;gt_head-tdname = 'ZMATQM'.&lt;/P&gt;&lt;P&gt;LOOP AT lt_lines FROM lv_index.&lt;/P&gt;&lt;P&gt;APPEND lt_lines TO lt_lines1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;client = sy-mandt&lt;/P&gt;&lt;P&gt;header = gt_head&lt;/P&gt;&lt;P&gt;savemode_direct = 'X'&lt;/P&gt;&lt;P&gt;owner_specified = ' '&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = lt_lines1&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;object = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL FUNCTION 'COMMIT_TEXT'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;object = gt_head-tdobject&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;name = gt_head-tdname.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE 'Text could not be saved' TYPE 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;at first entry print print description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF flg_head IS INITIAL.&lt;/P&gt;&lt;P&gt;IF print_co-barco IS INITIAL.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;element = 'QM_DATA_HDR'&lt;/P&gt;&lt;P&gt;window = 'MAIN'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;reservation BC on each page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;element = 'BARCODE_RSNUM'&lt;/P&gt;&lt;P&gt;function = 'SET'&lt;/P&gt;&lt;P&gt;type = 'TOP'&lt;/P&gt;&lt;P&gt;window = 'MAIN'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;element = 'QM_DATA_BC_HDR'&lt;/P&gt;&lt;P&gt;window = 'MAIN'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;flg_head = const-flg_yes.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Print material instructions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'CONTROL_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;command = 'PROTECT'.&lt;/P&gt;&lt;P&gt;IF print_co-barco IS INITIAL.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;element = 'QM_DATA'&lt;/P&gt;&lt;P&gt;window = 'MAIN'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;element = 'QM_DATA_BC'&lt;/P&gt;&lt;P&gt;window = 'MAIN'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONTROL_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;command = 'ENDPROTECT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;print material text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM pppr_print_cmp_text.&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;This code prints the text correctly for the first material for which it finds the text. However, for all subsequent materials it prints the text of the first material. Upon debugging, I see that after 'SAVE_TEXT' the text has been updated but the SAPScript form does not seem to recognize the updated text and it prints the first text always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me on how to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rugmani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 23:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461590#M1553966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T23:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect text printed from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461591#M1553967</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;     There is no other alternative other than write code in a SUBROUTINE POOL to get the texts&lt;/P&gt;&lt;P&gt;     (I also faced the same issue , SAVE_TEXT does not get the text instantly)&lt;/P&gt;&lt;P&gt;     and call the perform from the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 05:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461591#M1553967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T05:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect text printed from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461592#M1553968</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;I created a subroutine for the read_text, delete_text portion of the code and placed the subroutine call inside the SAPScript. However, I retained the save_text in the main program. However, this makes no difference, it still displays the text of the first material for all cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rugmani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 22:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461592#M1553968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T22:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect text printed from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461593#M1553969</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;    What I meant was to get the texts using some selects on respective tables and not using SAVE_TEXT or some other FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 04:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461593#M1553969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-02T04:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect text printed from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461594#M1553970</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;I have been trying a couple of options including the 'SELECT' option suggested. I also tried using 'IMPORT' to read the text into a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DATA: itab TYPE STANDARD TABLE OF tline WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;      IMPORT tline TO itab&lt;/P&gt;&lt;P&gt;      FROM DATABASE stxl(tx)&lt;/P&gt;&lt;P&gt;      TO wa_indx&lt;/P&gt;&lt;P&gt;      CLIENT sy-mandt&lt;/P&gt;&lt;P&gt;      ID stxl_id&lt;/P&gt;&lt;P&gt;      IGNORING CONVERSION ERRORS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looped through this table (itab) and called the SAPScript function modules where I tried printing the table contents (itab-tdline). However, the table is not visible within the SAPScript and so it does not print any text. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rugmani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 00:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461594#M1553970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-09T00:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect text printed from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461595#M1553971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I decided to use internal tables and pass the table contents to the SAPScript for printing on the form.&lt;/P&gt;&lt;P&gt;Thanks for all your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 18:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incorrect-text-printed-from-sapscript/m-p/7461595#M1553971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-14T18:44:21Z</dc:date>
    </item>
  </channel>
</rss>

