<?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: FM CREATE_TEXT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491277#M228570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Norbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   This works fine for me, though i have tried for Sales Document. Can you check if Text Name is combination of fields MANDT and Production Order for object AUFK and Text-Id: KOPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Reward for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Aug 2006 14:02:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-08T14:02:13Z</dc:date>
    <item>
      <title>FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491271#M228564</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;I'm trying to create a new text for an existing production order using FM:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CREATE_TEXT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          fid       = 'KOPF'&lt;/P&gt;&lt;P&gt;          flanguage = sy-langu&lt;/P&gt;&lt;P&gt;          fname     = l_name      "mandt+Prod.order&lt;/P&gt;&lt;P&gt;          fobject   = 'AUFK'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          flines    = i_line[]    "Message text info&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          no_init   = 1&lt;/P&gt;&lt;P&gt;          no_save   = 2&lt;/P&gt;&lt;P&gt;          OTHERS    = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I go to see it with transaction CO03 ... this created text do not appear !!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table STXH has my new register .... can someone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 13:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491271#M228564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T13:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491272#M228565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of CREATE_TEXT use SAVE_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 13:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491272#M228565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T13:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491273#M228566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add statement COMMIT WORK AND WAIT after CREATE_TEXT.&lt;/P&gt;&lt;P&gt;Also populate text name field with MANDT+order number with leading zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sridhar K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 13:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491273#M228566</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-08T13:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491274#M228567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You must go to table STXH to check the existence of the text. Then, use the function READ_TEXT to read the text content into your internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 13:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491274#M228567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T13:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491275#M228568</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;use FM&lt;/P&gt;&lt;P&gt;First, SAVE_TEXT&lt;/P&gt;&lt;P&gt;then, COMMIT_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 13:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491275#M228568</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-08-08T13:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491276#M228569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I also used SAVE_TEXT and it doesn't work if initial text was not created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAVE_TEXT works as "MODIFY"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also used FM COMMIT_TEXT ... not work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Of course I use leading zeros to inform MANDT + Prod. Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... Still trying !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 14:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491276#M228569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T14:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491277#M228570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Norbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   This works fine for me, though i have tried for Sales Document. Can you check if Text Name is combination of fields MANDT and Production Order for object AUFK and Text-Id: KOPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Reward for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 14:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491277#M228570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T14:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491278#M228571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This problem only happens with Production Order TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;id       = 'KOPF'&lt;/P&gt;&lt;P&gt;object   = 'AUFK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With other text works correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 14:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491278#M228571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491279#M228572</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;did you pass   save_direct = 'X' in create_text ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 14:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491279#M228572</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-08-08T14:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491280#M228573</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;after CRETAE_TEXT , call COMMIT_TEXT , then only the changes will reflect. and also some times it happens you will not be able to see the text with the updated one. in that case Checking can be done using READ_TEXT .&lt;/P&gt;&lt;P&gt;i think in your case you can cross check with the help of READ_TEXT FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay D T T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 14:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491280#M228573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T14:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491281#M228574</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;I always used this FM ... but with Production Orders ... doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only can change text ... not create initial text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 14:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491281#M228574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T14:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491282#M228575</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;Yes .... SAVE DIRECT = 'X' .... but nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 14:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491282#M228575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T14:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491283#M228576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AUFK-LTEXT should be populated for the text to show up in CO03.&lt;/P&gt;&lt;P&gt;When you use CREATE_TEXT, above mentioned field is not populated, and the text is not showing up in CO03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 14:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491283#M228576</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-08T14:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491284#M228577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had this same issue the other day.  I was able to create the text using SAVE_TEXT function module and setting the parameters...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

call function 'SAVE_TEXT'
  exporting
*   CLIENT                = SY-MANDT
    header                =
&amp;lt;b&amp;gt;   INSERT                = 'X'
   SAVEMODE_DIRECT       = 'X'
        &amp;lt;/b&amp;gt;
....


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the link to the other thread.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="188357"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting these two parameters in the SAVE_TEXT function module worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 14:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491284#M228577</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-08T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: FM CREATE_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491285#M228578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see the problem now,  it shows in STXH, but not in CO02.  The problem is that in this transaction,  it checks an indicator in AUFK called LTEXT.  This needs to be set in order to show the text in the text container in CO02.  Normally, I wouldn't suggest a direct table update, but in this case it may be ok to do so.  Move SY-LANGU to this field and update, then the text should show fine in the CO02 transaction.  See the sample program,  this works in my system.  I can see the text in the container in CO02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: xaufk  type aufk.
data: header type thead.
data: ilines type table of tline with header line.

parameters: p_aufnr type aufk-aufnr.

header-tdobject = 'AUFK'.
concatenate sy-mandt p_aufnr into header-tdname.
condense header-tdname no-gaps.
header-tdid = 'KOPF'.
header-tdspras = sy-langu.


ilines-tdline = 'This is a test 1'.
append ilines.
ilines-tdline = 'This is a test 2'.
append ilines.


call function 'SAVE_TEXT'
  exporting
    client                = sy-mandt
    header                = header
     savemode_direct       = 'X'
  tables
    lines                 = ilines
 exceptions
   id                    = 1
   language              = 2
   name                  = 3
   object                = 4
   others                = 5
          .


&amp;lt;b&amp;gt;

* Direct Database Update.
if sy-subrc = 0.
  select single * into xaufk from aufk
              where aufnr = p_aufnr.
  check sy-subrc = 0.
  xaufk-ltext = sy-langu.
  modify aufk from xaufk.
endif.&amp;lt;/b&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 15:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-create-text/m-p/1491285#M228578</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-08T15:35:00Z</dc:date>
    </item>
  </channel>
</rss>

