<?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 in Text (BAPI_SALEORDER_ CREATEFROMDAT2) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781037#M336632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mrityun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at the code.. I am pretty much doing the same thing u have mentioned but only the first line of the text got transfered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE gt_vbak-vbeln gt_vbap-posnr INTO g_name.&lt;/P&gt;&lt;P&gt;      LOOP AT gt_stxh WHERE tdname = g_name AND tdobject = 'VBBP'.&lt;/P&gt;&lt;P&gt;        PERFORM text_read.&lt;/P&gt;&lt;P&gt;        LOOP AT gt_line.&lt;/P&gt;&lt;P&gt;           MOVE gt_vbap-posnr TO gs_text-itm_number.&lt;/P&gt;&lt;P&gt;          MOVE gt_stxh-tdid TO gs_text-text_id.&lt;/P&gt;&lt;P&gt;          MOVE gt_stxh-tdspras TO gs_text-langu.&lt;/P&gt;&lt;P&gt;          MOVE gt_line-tdformat TO gs_text-format_col.&lt;/P&gt;&lt;P&gt;          MOVE gt_line-tdline TO gs_text-text_line.&lt;/P&gt;&lt;P&gt;          APPEND gs_text TO gt_text.&lt;/P&gt;&lt;P&gt;          CLEAR: gs_text,&lt;/P&gt;&lt;P&gt;                 gt_stxh,&lt;/P&gt;&lt;P&gt;                 gt_line.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;        REFRESH: gt_line.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 14:00:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-04T14:00:08Z</dc:date>
    <item>
      <title>Problem in Text (BAPI_SALEORDER_ CREATEFROMDAT2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781033#M336628</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 am using a BAPI to transfer sales order from one system to other. My problem is that while transferring text only the first line of the sales text is transferred to the sales order. &lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt;if the header note has text like: &amp;lt;b&amp;gt;Martin&lt;/P&gt;&lt;P&gt;sdn.sap.com&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;only &amp;lt;b&amp;gt;Martin&amp;lt;/b&amp;gt; is transferred to the new sales order.&lt;/P&gt;&lt;P&gt;i am using the read_text for reading the text in the old sales order. and using the Lines from in i am populating the Order_text in BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781033#M336628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Text (BAPI_SALEORDER_ CREATEFROMDAT2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781034#M336629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after reading the text which is present in internal table u have to pass the whole internal table data to order_text of BAPI...Mostly the BAPI is taking only first line into consideration....then u might need to use CREATE_TEXT &amp;amp; COMMIT_TEXT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781034#M336629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Text (BAPI_SALEORDER_ CREATEFROMDAT2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781035#M336630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this process&lt;/P&gt;&lt;P&gt;Table: ORDER_TEXT can be used for inserting texts in a sales document while creating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values to be populated:&lt;/P&gt;&lt;P&gt;For Header Texts:&lt;/P&gt;&lt;P&gt;TEXT_ID &lt;/P&gt;&lt;P&gt;LANGU&lt;/P&gt;&lt;P&gt;TEXT_LINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Item Texts:&lt;/P&gt;&lt;P&gt;Apart from the above, populate the ITM_NUMBER with the item number we use for ORDER_ITEMS_IN structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code can give you some idea, though am using SD_SALESDOCUMENT_CREATE, the structure for Texts is the same in both BAPI's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  ADD_TEXT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ADD_TEXT  USING    P_TID   LIKE THEAD-TDID&lt;/P&gt;&lt;P&gt;                        P_TEXT  LIKE THEAD-TLINE.&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;Sales Document Header Texts&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   CLEAR: IBAPISDTEXT.&lt;/P&gt;&lt;P&gt;   IBAPISDTEXT-TEXT_ID   = P_TID.&lt;/P&gt;&lt;P&gt;   IBAPISDTEXT-LANGU     = SY-LANGU.&lt;/P&gt;&lt;P&gt;   IBAPISDTEXT-TEXT_LINE = P_TEXT.&lt;/P&gt;&lt;P&gt;   APPEND IBAPISDTEXT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDFORM.                    " ADD_TEXT&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  ORDER_CRE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ORDER_CRE .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: L_WAIT LIKE BAPITA-WAIT VALUE '2'.&lt;/P&gt;&lt;P&gt;DATA: LT_BAPIRET2 LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     SALESDOCUMENT                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       SALES_HEADER_IN               = IBAPISDHD1&lt;/P&gt;&lt;P&gt;       SALES_HEADER_INX              = IBAPISDHD1X&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     BUSINESS_OBJECT               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;       SALESDOCUMENT_EX              = IBAPIVBELN&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;       RETURN                        = IBAPIRET2&lt;/P&gt;&lt;P&gt;       SALES_ITEMS_IN                = IBAPISDITM&lt;/P&gt;&lt;P&gt;       SALES_ITEMS_INX               = IBAPISDITMX&lt;/P&gt;&lt;P&gt;       SALES_PARTNERS                = IBAPIPARNR&lt;/P&gt;&lt;P&gt;       SALES_SCHEDULES_IN            = IBAPISCHDL&lt;/P&gt;&lt;P&gt;       SALES_SCHEDULES_INX           = IBAPISCHDLX&lt;/P&gt;&lt;P&gt;       SALES_CONDITIONS_IN           = IBAPICOND&lt;/P&gt;&lt;P&gt;       SALES_CONDITIONS_INX          = IBAPICONDX&lt;/P&gt;&lt;P&gt;       SALES_TEXT                    = IBAPISDTEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781035#M336630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Text (BAPI_SALEORDER_ CREATEFROMDAT2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781036#M336631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i need to transfer order from one system to another... But unfortunately create_text and save_text are normal FM so it cannot be done....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781036#M336631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Text (BAPI_SALEORDER_ CREATEFROMDAT2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781037#M336632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mrityun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at the code.. I am pretty much doing the same thing u have mentioned but only the first line of the text got transfered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE gt_vbak-vbeln gt_vbap-posnr INTO g_name.&lt;/P&gt;&lt;P&gt;      LOOP AT gt_stxh WHERE tdname = g_name AND tdobject = 'VBBP'.&lt;/P&gt;&lt;P&gt;        PERFORM text_read.&lt;/P&gt;&lt;P&gt;        LOOP AT gt_line.&lt;/P&gt;&lt;P&gt;           MOVE gt_vbap-posnr TO gs_text-itm_number.&lt;/P&gt;&lt;P&gt;          MOVE gt_stxh-tdid TO gs_text-text_id.&lt;/P&gt;&lt;P&gt;          MOVE gt_stxh-tdspras TO gs_text-langu.&lt;/P&gt;&lt;P&gt;          MOVE gt_line-tdformat TO gs_text-format_col.&lt;/P&gt;&lt;P&gt;          MOVE gt_line-tdline TO gs_text-text_line.&lt;/P&gt;&lt;P&gt;          APPEND gs_text TO gt_text.&lt;/P&gt;&lt;P&gt;          CLEAR: gs_text,&lt;/P&gt;&lt;P&gt;                 gt_stxh,&lt;/P&gt;&lt;P&gt;                 gt_line.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;        REFRESH: gt_line.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781037#M336632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Text (BAPI_SALEORDER_ CREATEFROMDAT2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781038#M336633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the problem is with this statement:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MOVE gt_vbap-posnr TO gs_text-itm_number.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781038#M336633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Text (BAPI_SALEORDER_ CREATEFROMDAT2)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781039#M336634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eswar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I dont think that statement will have problem because i am using the same code for transferring the Header Text in Sales Order but without the statement u mentioned to be problematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still i am getting only the first line of the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-text-bapi-saleorder-createfromdat2/m-p/1781039#M336634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:17:53Z</dc:date>
    </item>
  </channel>
</rss>

