<?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 How to save Custom control records module pool program ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-custom-control-records-module-pool-program/m-p/3574114#M860289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to save Custom control records module pool program ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote multiple lines of record in custom control &lt;/P&gt;&lt;P&gt;Who to save that records ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2008 05:46:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-02T05:46:44Z</dc:date>
    <item>
      <title>How to save Custom control records module pool program ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-custom-control-records-module-pool-program/m-p/3574114#M860289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guru ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to save Custom control records module pool program ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote multiple lines of record in custom control &lt;/P&gt;&lt;P&gt;Who to save that records ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 05:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-custom-control-records-module-pool-program/m-p/3574114#M860289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T05:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Custom control records module pool program ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-custom-control-records-module-pool-program/m-p/3574115#M860290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subasha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the format below since it is based on a working code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************data declarations&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TY_EDITOR,&lt;/P&gt;&lt;P&gt;EDIT(254) TYPE C,&lt;/P&gt;&lt;P&gt;END OF TY_EDITOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: int_line type table of tline with header line.&lt;/P&gt;&lt;P&gt;data: gw_thead like thead.&lt;/P&gt;&lt;P&gt;data: int_table type standard table of ty_editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should create a text for uniquely identifying the text you are saving each time so that it doesn't get overwritten&lt;/P&gt;&lt;P&gt;For this a key combination must be decidedd to uniquely identify the test..here it is loc_nam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************fill header..from SO10( t-code )&lt;/P&gt;&lt;P&gt;GW_THEAD-TDNAME = loc_nam. " unique key for the text&lt;/P&gt;&lt;P&gt;GW_THEAD-TDID = 'ST'. " Text ID&lt;/P&gt;&lt;P&gt;GW_THEAD-TDSPRAS = SY-LANGU.&lt;/P&gt;&lt;P&gt;GW_THEAD-TDOBJECT = 'ZXXX'. "name of the text object created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Read Container and get data to int_table&lt;/P&gt;&lt;P&gt;CALL METHOD EDITOR -&amp;gt;GET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;TABLE = int_table&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR_DP = 1&lt;/P&gt;&lt;P&gt;ERROR_CNTL_CALL_METHOD = 2&lt;/P&gt;&lt;P&gt;ERROR_DP_CREATE = 3&lt;/P&gt;&lt;P&gt;POTENTIAL_DATA_LOSS = 4&lt;/P&gt;&lt;P&gt;others = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop data from int_table and save to int_line-tdline appending it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*save the text&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;HEADER = GW_THEAD&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES = InT_LINE&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;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code shown above is ok and working fine for save also,hope that the above sample with helps you solve the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check and revert,&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 05:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-custom-control-records-module-pool-program/m-p/3574115#M860290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T05:52:51Z</dc:date>
    </item>
  </channel>
</rss>

