<?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: Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 &amp; Head-Text Elements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679573#M886087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Torsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ORDER_TEXT structure fill the following fields.&lt;/P&gt;&lt;P&gt;DOC_NUMBER - Sales Order No&lt;/P&gt;&lt;P&gt;ITM_NUMBER  - Item No&lt;/P&gt;&lt;P&gt;TEXT_ID           - Text ID (Length 4 can be any value)&lt;/P&gt;&lt;P&gt;LANGU            - Language (Generally English)&lt;/P&gt;&lt;P&gt;TEXT_LINE       - Text Line (Text that you want to use)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from the above values rest you have been doing already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you out. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Maddineni Bharath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 9, 2008 5:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 15:28:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T15:28:37Z</dc:date>
    <item>
      <title>Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 &amp; Head-Text Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679569#M886083</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;&lt;/P&gt;&lt;P&gt;I hape that sb can help me with my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a ABAP-Program to create sales-orders with the function module:&lt;/P&gt;&lt;P&gt;BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everythiunk works fine but I can not create text-elements (from the head) with this bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I have to use the table "ORDER_TEXT" but I do not know how to fill this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;pb974&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 14:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679569#M886083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T14:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 &amp; Head-Text Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679570#M886084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you see the structure of table order_text..you find it self explainatory...anyway, I'll tell you what to fill inside it..&lt;/P&gt;&lt;P&gt;Do as follows ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Open a sales order through VA03&lt;/P&gt;&lt;P&gt;2) From menu options choose Go To&amp;gt;Header&amp;gt;Texts&lt;/P&gt;&lt;P&gt;3) In the command field type TP_ANALYSE and press enter&lt;/P&gt;&lt;P&gt;4) Expand all the nodes..Now the third column is the text-id..&lt;/P&gt;&lt;P&gt;5) TEXT_LINE is ur text entry..gotta fill it manually in the code..other things you gotta fill is Sales Order no, item and language&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 14:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679570#M886084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 &amp; Head-Text Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679571#M886085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thorsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use the SAP function SAVE_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function SAVE_TEXT is a released SAP function and there is a documentation for this function in the SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 14:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679571#M886085</guid>
      <dc:creator>gabriel_braun</dc:creator>
      <dc:date>2008-04-09T14:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 &amp; Head-Text Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679572#M886086</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, you have to fill the order_text table. The following fields you have to fill:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOC_NUMBER    &lt;/P&gt;&lt;P&gt;-&amp;gt; not to fill, let it blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITM_NUMBER      &lt;/P&gt;&lt;P&gt;-&amp;gt; if you want to create a header-text then fill ITM_NUMBER with '000000'&lt;/P&gt;&lt;P&gt;-&amp;gt; if you want to create a position-text then fill the related position-number '000010' or '000020'....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEXT_ID&lt;/P&gt;&lt;P&gt;-&amp;gt; fill this field with the text-id for which you want to create the text.&lt;/P&gt;&lt;P&gt;-&amp;gt; The text-id must be defined in your customizing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGU&lt;/P&gt;&lt;P&gt;-&amp;gt; set the language for the text: 'E' or 'D' or......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGU_ISO&lt;/P&gt;&lt;P&gt;-&amp;gt; let it blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORMAT_COL&lt;/P&gt;&lt;P&gt;-&amp;gt; set a star (*) if you want to have the standard-format. If you have a special format defined in SapScript or in a Style you can set this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEXT_LINE&lt;/P&gt;&lt;P&gt;-&amp;gt; fill in the text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION&lt;/P&gt;&lt;P&gt;-&amp;gt; let it blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_text     LIKE bapisdtext  OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Texte...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;        CLEAR i_text.&lt;/P&gt;&lt;P&gt;        i_text-itm_number  = '000010'.    "Text for Position 10&lt;/P&gt;&lt;P&gt;        i_text-text_id         = 'ZA10'.        "Defined Text-ID&lt;/P&gt;&lt;P&gt;        i_text-langu           = 'D'.             "Language German&lt;/P&gt;&lt;P&gt;        i_text-format_col    = '*'.              "Standardformat&lt;/P&gt;&lt;P&gt;        i_text-text_line       = 'This is text for Pos. 10 - line 2'.   "the text&lt;/P&gt;&lt;P&gt;        APPEND i_text.&lt;/P&gt;&lt;P&gt;...if your text has more then one row... the same one to do...&lt;/P&gt;&lt;P&gt;        i_text-itm_number  = '000010'.    "Text for Position 10&lt;/P&gt;&lt;P&gt;        i_text-text_id         = 'ZA10'.        "Defined Text-ID&lt;/P&gt;&lt;P&gt;        i_text-langu           = 'D'.             "Language German&lt;/P&gt;&lt;P&gt;        i_text-format_col    = '*'.              "Standardformat&lt;/P&gt;&lt;P&gt;        i_text-text_line       = 'This is text for Pos. 10 - line 2'.   "the text&lt;/P&gt;&lt;P&gt;        APPEND i_text.&lt;/P&gt;&lt;P&gt;...and so one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now text for position 20...&lt;/P&gt;&lt;P&gt;        CLEAR i_text.&lt;/P&gt;&lt;P&gt;        i_text-itm_number  = '000020'.    "Text for Position 20&lt;/P&gt;&lt;P&gt;        i_text-text_id         = 'ZA10'.        "Defined Text-ID&lt;/P&gt;&lt;P&gt;        i_text-langu           = 'D'.             "Language German&lt;/P&gt;&lt;P&gt;        i_text-format_col    = '*'.              "Standardformat&lt;/P&gt;&lt;P&gt;        i_text-text_line       = 'Text für Pos. 20 - Zeile 1'.   "the text&lt;/P&gt;&lt;P&gt;        APPEND i_text.&lt;/P&gt;&lt;P&gt;...and now the text for position in englisch&lt;/P&gt;&lt;P&gt;        i_text-itm_number  = '000020'.    "Text for Position 20&lt;/P&gt;&lt;P&gt;        i_text-text_id         = 'ZA10'.        "Defined Text-ID&lt;/P&gt;&lt;P&gt;        i_text-langu           = 'E'.             "Language German&lt;/P&gt;&lt;P&gt;        i_text-format_col    = '*'.              "Standardformat&lt;/P&gt;&lt;P&gt;        i_text-text_line       = 'This is text for Pos. 20 - line 1'.   "the text&lt;/P&gt;&lt;P&gt;        APPEND i_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's a help for you.&lt;/P&gt;&lt;P&gt;Erhard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 15:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679572#M886086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T15:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 &amp; Head-Text Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679573#M886087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Torsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ORDER_TEXT structure fill the following fields.&lt;/P&gt;&lt;P&gt;DOC_NUMBER - Sales Order No&lt;/P&gt;&lt;P&gt;ITM_NUMBER  - Item No&lt;/P&gt;&lt;P&gt;TEXT_ID           - Text ID (Length 4 can be any value)&lt;/P&gt;&lt;P&gt;LANGU            - Language (Generally English)&lt;/P&gt;&lt;P&gt;TEXT_LINE       - Text Line (Text that you want to use)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from the above values rest you have been doing already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you out. &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Maddineni Bharath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 9, 2008 5:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 15:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679573#M886087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T15:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 &amp; Head-Text Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679574#M886088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 16:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-create-so-with-bapi-salesorder-createfromdat2-head-text-elements/m-p/3679574#M886088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T16:32:53Z</dc:date>
    </item>
  </channel>
</rss>

