<?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: Adding text to SO using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620200#M277492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kantheri,&lt;/P&gt;&lt;P&gt;It is the text-id value which you need to create a text for it.&lt;/P&gt;&lt;P&gt;The value what i am passing is this.&lt;/P&gt;&lt;P&gt;  gc_ship_instr    like ttxid-tdid value '0012'&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2006 07:44:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-04T07:44:16Z</dc:date>
    <item>
      <title>Adding text to SO using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620196#M277488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI , &lt;/P&gt;&lt;P&gt;I am using BAPI to create sales order BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating i want to add text in the line items.&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a structure ORDER_TEXT, shud i use this?&lt;/P&gt;&lt;P&gt;But it asks for sales order number, which is not yet created until the BAPI is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isnt it possible to add the text while creating the SO using this BAPI?if yes then how&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Points will be rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 10:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620196#M277488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T10:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text to SO using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620197#M277489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kantheri,&lt;/P&gt;&lt;P&gt;Yes you can add the text while creating the salesorder it self.Check the Pseudo code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Populate texts
  refresh bapisdtext_itab.
  clear   bapisdtext_itab.
  if not text1 is initial.
    bapisdtext_itab-itm_number = gc_header_item.
    bapisdtext_itab-text_id    = gc_ship_instr.
    bapisdtext_itab-langu      = sy-langu.
    bapisdtext_itab-text_line  = text1.
    append bapisdtext_itab.
    clear  bapisdtext_itab.
  endif.
  CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
       EXPORTING
            ORDER_HEADER_IN    = bapisdhd1
       IMPORTING
            SALESDOCUMENT      = vbak-vbeln
       TABLES
            RETURN             = BAPIRET2_itab
            ORDER_ITEMS_IN     = BAPISDITM_itab
            ORDER_PARTNERS     = BAPIPARNR_itab
            ORDER_SCHEDULES_IN = BAPISCHDL_itab
            ORDER_TEXT         = BAPISDTEXT_itab.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to simulate the code with your changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 10:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620197#M277489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T10:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text to SO using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620198#M277490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      yes text can be entered while creating sales order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       just check FM PIA_CSO_BAPI_SORDER_CREATE2 which&lt;/P&gt;&lt;P&gt;       calls BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;       fill structure order_text with sales text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       use below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       REFRESH T_SDTEXT.&lt;/P&gt;&lt;P&gt;  CLEAR SDTEXT.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CSO_P_TEXT_GET'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            PI_MODE_GET_COMPL = C_ACTIVE&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            PE_RETURN         = RETURN&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            PE_T_TEXT         = T_TEXT.&lt;/P&gt;&lt;P&gt;  IF NOT RETURN IS INITIAL.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING RETURN TO PE_RETURN1.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  LOOP AT T_TEXT INTO TEXT.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING TEXT TO SDTEXT.&lt;/P&gt;&lt;P&gt;    APPEND SDTEXT TO T_SDTEXT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OSS note begin 552438&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM BAPI_TEXTS_ASCII_ITF_CONV TABLES T_SDTEXT&lt;/P&gt;&lt;P&gt;                                    USING  'ASC'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OSS note end 552438&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Salesorder create&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR LOGIC_SWITCH.&lt;/P&gt;&lt;P&gt;  LOGIC_SWITCH-PRICING = C_PRICING_STRAT_KEEP_PRICES.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            ORDER_HEADER_IN       = SDHD1&lt;/P&gt;&lt;P&gt;            INT_NUMBER_ASSIGNMENT = 'X'&lt;/P&gt;&lt;P&gt;            LOGIC_SWITCH          = LOGIC_SWITCH&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            SALESDOCUMENT         = DOC_NUMBER&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            RETURN                = T_RET2&lt;/P&gt;&lt;P&gt;            ORDER_ITEMS_IN        = T_SDITM&lt;/P&gt;&lt;P&gt;            ORDER_PARTNERS        = T_PARNR&lt;/P&gt;&lt;P&gt;            ORDER_SCHEDULES_IN    = T_SCHDL&lt;/P&gt;&lt;P&gt;            ORDER_CONDITIONS_IN   = T_CND&lt;/P&gt;&lt;P&gt;            ORDER_CCARD           = T_CCARD&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;            ORDER_TEXT            = T_SDTEXT.&amp;lt;/b&amp;gt;  LOOP AT T_RET2 INTO RET2.&lt;/P&gt;&lt;P&gt;    IF RET2-TYPE = C_MESSAGE_TYPE_ERROR OR&lt;/P&gt;&lt;P&gt;      RET2-TYPE  = C_MESSAGE_TYPE_ABORT.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING RET2 TO PE_RETURN1.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&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;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2006 11:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620198#M277490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-03T11:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text to SO using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620199#M277491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghvendra, what should be the gc_ship_instr value or how do i determine it? Is it the same id 0002 etc which can be seen throug goto&amp;gt;header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 03:08:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620199#M277491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T03:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding text to SO using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620200#M277492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kantheri,&lt;/P&gt;&lt;P&gt;It is the text-id value which you need to create a text for it.&lt;/P&gt;&lt;P&gt;The value what i am passing is this.&lt;/P&gt;&lt;P&gt;  gc_ship_instr    like ttxid-tdid value '0012'&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 07:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-to-so-using-bapi/m-p/1620200#M277492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T07:44:16Z</dc:date>
    </item>
  </channel>
</rss>

