<?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 Reg: function Save_text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-save-text/m-p/4559353#M1076265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have to Store some text at ITEM TEXT Level(&lt;EM&gt;VA02 screen -&amp;gt; GOTO -&amp;gt; ITEM -&amp;gt; TEXTS&lt;/EM&gt;). I am using the function module SAVE_TEXT for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared an structure:&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;DATA: ls_head TYPE thead.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And filled it as:&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;ls_head-tdid = 'ZCON'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;ls_head-tdobject = 'VBBP'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;ls_head-tdspras = sy-langu.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;ls_head-tdname   = "Activity number".&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SAVE_TEXT as shown below:&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;&lt;EM&gt;EXPORTING&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;client          = sy-mandt&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;header          = ls_head&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;insert          = 'X'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;savemode_direct = 'X'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;&lt;EM&gt;TABLES&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;lines           = lt_line.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i have just one "&lt;STRONG&gt;Activity number&lt;/STRONG&gt;" for whole order and i want this text to be created for all line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. Order number: 1000; Activity number: 012345 and this order has 5 line items: 10,20,30,40,50. Now i want to call SAVE _TEXT 5 times but i have just 1 "Activity number" (for the whole order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine if i am calling SAVE_TEXT only once, but i want texts for all line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution? Can i use SAVE_TEXT by giving same &lt;STRONG&gt;Activity number&lt;/STRONG&gt; and different line items? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 15:51:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-24T15:51:09Z</dc:date>
    <item>
      <title>Reg: function Save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-save-text/m-p/4559353#M1076265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have to Store some text at ITEM TEXT Level(&lt;EM&gt;VA02 screen -&amp;gt; GOTO -&amp;gt; ITEM -&amp;gt; TEXTS&lt;/EM&gt;). I am using the function module SAVE_TEXT for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared an structure:&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;DATA: ls_head TYPE thead.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And filled it as:&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;ls_head-tdid = 'ZCON'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;ls_head-tdobject = 'VBBP'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;ls_head-tdspras = sy-langu.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;ls_head-tdname   = "Activity number".&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SAVE_TEXT as shown below:&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;&lt;EM&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;&lt;EM&gt;EXPORTING&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;client          = sy-mandt&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;header          = ls_head&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;insert          = 'X'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;savemode_direct = 'X'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;&lt;EM&gt;TABLES&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;&lt;EM&gt;lines           = lt_line.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i have just one "&lt;STRONG&gt;Activity number&lt;/STRONG&gt;" for whole order and i want this text to be created for all line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. Order number: 1000; Activity number: 012345 and this order has 5 line items: 10,20,30,40,50. Now i want to call SAVE _TEXT 5 times but i have just 1 "Activity number" (for the whole order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine if i am calling SAVE_TEXT only once, but i want texts for all line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution? Can i use SAVE_TEXT by giving same &lt;STRONG&gt;Activity number&lt;/STRONG&gt; and different line items? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 15:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-save-text/m-p/4559353#M1076265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T15:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: function Save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-save-text/m-p/4559354#M1076266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; ls_head-tdname = "Activity number".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is wrong. You need to fill TDNAME with the key to your sales order line item, a concatenation of sales order number (length 10) and line item (length 6), e.g. 0000001000000010. You need to call SAVE_TEXT for each of the five line items in your example, changing TDNAME accordingly. The contents of LT_LINE can remain the same.&lt;/P&gt;&lt;P&gt;The text "Activity number" is fixed to the Text ID ZCON already, if you configured it that way.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 16:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-save-text/m-p/4559354#M1076266</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-09-24T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: function Save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-save-text/m-p/4559355#M1076267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;By activity number i meant 'VBKA-VBELN', as passing this can also create desirable text.&lt;/P&gt;&lt;P&gt;But whatever you have explained is also write and really was very helpful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 16:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-save-text/m-p/4559355#M1076267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T16:38:00Z</dc:date>
    </item>
  </channel>
</rss>

