<?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 BSEG Table update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table-update/m-p/3865769#M929065</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;My requirement is like that, Whenever I do the posting I want to update the BSEG Table field xref3.Please suggest is there any BTE exist for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are surely awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 13:24:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-12T13:24:26Z</dc:date>
    <item>
      <title>BSEG Table update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table-update/m-p/3865769#M929065</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;My requirement is like that, Whenever I do the posting I want to update the BSEG Table field xref3.Please suggest is there any BTE exist for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are surely awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 13:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table-update/m-p/3865769#M929065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T13:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG Table update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table-update/m-p/3865770#M929066</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;Go to GGB1 is the transaction for creation of substitution and rules under that select financial accouting-&amp;gt;under select line items-&amp;gt; and go with create substitution-&amp;gt; here you have to provide the substitution name and the conditions &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;NN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 16:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table-update/m-p/3865770#M929066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T16:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG Table update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table-update/m-p/3865771#M929067</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 have found the following BTE to update the xref3 field of BSEG table with LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even OPEN_FI_PERFORM_00001020_E...Even I have implement that BTE in my copy function module with the folowing code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : V_LIFNR LIKE BSEG-LIFNR.

  READ TABLE T_BSEG WITH KEY KOART = 'K'.
  IF SY-SUBRC = 0.
    V_LIFNR = T_BSEG-LIFNR.
    LOOP AT T_BSEG.
      T_BSEG-XREF3 = V_LIFNR.
      MODIFY T_BSEG.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever i simulate the posting&lt;/P&gt;&lt;P&gt;But problem exist in the BTE OPEN_FI_PERFORM_00001020_E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Becoz in this BTE code is like that in line, first the T_BSEG table entries get saved with the old entries in table  L_BSEG[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  EXPORT T_BSEG T_BKPF TO MEMORY ID MEMID.
   L_BSEG[]  = T_BSEG[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After that the code written in my FM execute and update the BSEG value successfully.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the most confusing code thing again the T_BSEG  table get again updated with the old entries of L_BSEG[]*  &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;T_BSEG[]  = L_BSEG[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the table does n't get updated with the required entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion is valuable.Points are surely awarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table-update/m-p/3865771#M929067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:01:31Z</dc:date>
    </item>
  </channel>
</rss>

