<?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 BTE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812335#M1126348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, I'm trying to update bseg-sgtxt fields with number of document (bkpf-belnr) by saving in FB60 transaction. I'm implenting a BTE by fibf transaction and my custom function is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION ZSAMPLE_INTERFACE_00001030.
*"--------------------------------------------------------------------
*"*"Interfaccia locale:
*"  IMPORTING
*"     VALUE(I_BKDF) LIKE  BKDF STRUCTURE  BKDF
*"     VALUE(I_UF05A) LIKE  UF05A STRUCTURE  UF05A
*"     VALUE(I_XVBUP) LIKE  OFIWA-XVBUP DEFAULT 'X'
*"  TABLES
*"      T_AUSZ1 STRUCTURE  AUSZ1 OPTIONAL
*"      T_AUSZ2 STRUCTURE  AUSZ2 OPTIONAL
*"      T_AUSZ3 STRUCTURE  AUSZ_CLR OPTIONAL
*"      T_BKP1 STRUCTURE  BKP1
*"      T_BKPF STRUCTURE  BKPF
*"      T_BSEC STRUCTURE  BSEC
*"      T_BSED STRUCTURE  BSED
*"      T_BSEG STRUCTURE  BSEG
*"      T_BSET STRUCTURE  BSET
*"      T_BSEU STRUCTURE  BSEU
*"--------------------------------------------------------------------



loop at t_bseg.
    concatenate 'protocollo n.:' T_BKPF-BELNR into t_bseg-sgtxt.
    Modify t_bseg.
endloop.


ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see in debug mode value of T_BKPF-BELNR with next number of document and I see the text "protocollo n.:0000030010"  in every t_bseg-sgtxt fileld of position document, where '0000030010' is next number of document assigned by system to T_BKPF-BELNR field.&lt;/P&gt;&lt;P&gt;Document is registered  correctly but texts in positions are not update.&lt;/P&gt;&lt;P&gt;If I display new document with fb03 transaction, sgtxt fields are blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the problem ?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2008 10:31:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-27T10:31:49Z</dc:date>
    <item>
      <title>BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812335#M1126348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, I'm trying to update bseg-sgtxt fields with number of document (bkpf-belnr) by saving in FB60 transaction. I'm implenting a BTE by fibf transaction and my custom function is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION ZSAMPLE_INTERFACE_00001030.
*"--------------------------------------------------------------------
*"*"Interfaccia locale:
*"  IMPORTING
*"     VALUE(I_BKDF) LIKE  BKDF STRUCTURE  BKDF
*"     VALUE(I_UF05A) LIKE  UF05A STRUCTURE  UF05A
*"     VALUE(I_XVBUP) LIKE  OFIWA-XVBUP DEFAULT 'X'
*"  TABLES
*"      T_AUSZ1 STRUCTURE  AUSZ1 OPTIONAL
*"      T_AUSZ2 STRUCTURE  AUSZ2 OPTIONAL
*"      T_AUSZ3 STRUCTURE  AUSZ_CLR OPTIONAL
*"      T_BKP1 STRUCTURE  BKP1
*"      T_BKPF STRUCTURE  BKPF
*"      T_BSEC STRUCTURE  BSEC
*"      T_BSED STRUCTURE  BSED
*"      T_BSEG STRUCTURE  BSEG
*"      T_BSET STRUCTURE  BSET
*"      T_BSEU STRUCTURE  BSEU
*"--------------------------------------------------------------------



loop at t_bseg.
    concatenate 'protocollo n.:' T_BKPF-BELNR into t_bseg-sgtxt.
    Modify t_bseg.
endloop.


ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see in debug mode value of T_BKPF-BELNR with next number of document and I see the text "protocollo n.:0000030010"  in every t_bseg-sgtxt fileld of position document, where '0000030010' is next number of document assigned by system to T_BKPF-BELNR field.&lt;/P&gt;&lt;P&gt;Document is registered  correctly but texts in positions are not update.&lt;/P&gt;&lt;P&gt;If I display new document with fb03 transaction, sgtxt fields are blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the problem ?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 10:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812335#M1126348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T10:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812336#M1126349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any suggestions ?&lt;/P&gt;&lt;P&gt;I work with SAP ECC 6.0...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 12:51:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812336#M1126349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T12:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812337#M1126350</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;use transporting in modify statement for that particular field you want to modify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 12:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812337#M1126350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T12:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812338#M1126351</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;Use modify with index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_bseg.&lt;/P&gt;&lt;P&gt;    concatenate 'protocollo n.:' T_BKPF-BELNR into t_bseg-sgtxt.&lt;/P&gt;&lt;P&gt;    Modify t_bseg tabix sy-index.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 13:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812338#M1126351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T13:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812339#M1126352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luca&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is you're using the wrong BTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BTE 00001030 is to update your own custom tables: it's usually used to insert the document number into Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's useless to try to change the data there, because the system'll restore the original data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to change some FI data, u need to use the BTE (process) 00001120, the code should be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT T_BSEG.
   T_BSEGSUB-TABIX   = SY-TABIX.
   T_BSEGSUB-SGTXT = .......
   APPEND T_BSEGSUB.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 13:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812339#M1126352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812340#M1126353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I max, thank you, now I can write a text in position line of my document. But with BTE (process) 00001120 I cannot get next document number assigned by system. In debug mode I can see t_besg-belnr='$1', T_BKPFSUB-belnr=' ' t_bkpf-belnr='$1' and t_bsegsub-belnr=' '.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 14:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812340#M1126353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T14:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812341#M1126354</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;So I believe u can't do it by BTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BTE 00001030 (the first one you've tried to use) has the account document number, but it's called after calling the fm POST_DOCUMENT so it's useless to try to change the data there ( u could try to use the field-symbols).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u need to insert a Temporary text and replace it after posting the FI document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 14:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812341#M1126354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812342#M1126355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Use modify with index.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; loop at t_bseg.&lt;/P&gt;&lt;P&gt;&amp;gt;     concatenate 'protocollo n.:' T_BKPF-BELNR into t_bseg-sgtxt.&lt;/P&gt;&lt;P&gt;&amp;gt;     Modify t_bseg tabix sy-index.&lt;/P&gt;&lt;P&gt;&amp;gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to learn [ABAP System Fields|http://help.sap.com/saphelp_nw04/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 14:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812342#M1126355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T14:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812343#M1126356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bkpf-belnr = &amp;amp;1,dose it matter? you also can use it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 02:21:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812343#M1126356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T02:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: BTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812344#M1126357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you find a solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interested party&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 12:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bte/m-p/4812344#M1126357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T12:22:36Z</dc:date>
    </item>
  </channel>
</rss>

