<?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: BSEG Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348905#M1540368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Fetch FKBER in the same query as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr&lt;/P&gt;&lt;P&gt;hkont werks prctr projk fkber fkber_long&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;into table t_bseg&lt;/P&gt;&lt;P&gt;for all entries in t_jrnl_chg_ptr&lt;/P&gt;&lt;P&gt;where bukrs = t_jrnl_chg_ptr-bukrs&lt;/P&gt;&lt;P&gt;and belnr = t_jrnl_chg_ptr-belnr&lt;/P&gt;&lt;P&gt;and gjahr = t_jrnl_chg_ptr-gjahr&lt;/P&gt;&lt;P&gt;and buzei = t_jrnl_chg_ptr-buzei&lt;/P&gt;&lt;P&gt;and vorgn c_recur_doc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ways this selection will have same performance as your previous query.After your selection you can delete entries by loop at t_bseg into wa_bseg.&lt;/P&gt;&lt;P&gt;if wa_bseg-fkber is not initial or wa_bseg-fkber_long is not initial.&lt;/P&gt;&lt;P&gt;write your logic here&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;or if you are only concern with t_bseg having either fkber and fkber_long value then you can make use of DELETE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete t_bseg where (fkber  is initial or fkber_long is intial').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try above two logics,this may solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Manjunathm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Oct 2010 09:46:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-08T09:46:45Z</dc:date>
    <item>
      <title>BSEG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348901#M1540364</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 have an existing code that says&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr&lt;/P&gt;&lt;P&gt;             hkont werks prctr projk fkber&lt;/P&gt;&lt;P&gt;        from bseg&lt;/P&gt;&lt;P&gt;        into table t_bseg&lt;/P&gt;&lt;P&gt;        for all entries in t_jrnl_chg_ptr&lt;/P&gt;&lt;P&gt;        where bukrs  = t_jrnl_chg_ptr-bukrs&lt;/P&gt;&lt;P&gt;          and belnr  = t_jrnl_chg_ptr-belnr&lt;/P&gt;&lt;P&gt;          and gjahr  = t_jrnl_chg_ptr-gjahr&lt;/P&gt;&lt;P&gt;          and buzei  = t_jrnl_chg_ptr-buzei&lt;/P&gt;&lt;P&gt;          and vorgn  &amp;lt;&amp;gt; c_recur_doc.           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this, sometimes FKBER might be empty, in that case the functional consultant asked me to take fkber_long whenver fkber is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it is BSEG table, I need some tips on performance based how to further check and achieve fkber_long instead of FKBER.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348901#M1540364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348902#M1540365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You extract both fields then run a condition check on the blank field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348902#M1540365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348903#M1540366</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;Select the other field also into the internal table. In the further process, if the other field FKBER is initial, you can use this field FKBER_LONG. This will not affect performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348903#M1540366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348904#M1540367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add the other fiels also in the query. After that use the fkber_long if the fkber is empty in the read statement of t_bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr&lt;/P&gt;&lt;P&gt;hkont werks prctr projk fkber, fkber_long&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;into table t_bseg&lt;/P&gt;&lt;P&gt;for all entries in t_jrnl_chg_ptr&lt;/P&gt;&lt;P&gt;where bukrs = t_jrnl_chg_ptr-bukrs&lt;/P&gt;&lt;P&gt;and belnr = t_jrnl_chg_ptr-belnr&lt;/P&gt;&lt;P&gt;and gjahr = t_jrnl_chg_ptr-gjahr&lt;/P&gt;&lt;P&gt;and buzei = t_jrnl_chg_ptr-buzei&lt;/P&gt;&lt;P&gt;and vorgn c_recur_doc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read t_bseg with key......&lt;/P&gt;&lt;P&gt;If sy-subrc =0.&lt;/P&gt;&lt;P&gt;If t_bseg-fkber is initital.&lt;/P&gt;&lt;P&gt; process....ft_bseg=fkber_long&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;indif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348904#M1540367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348905#M1540368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Fetch FKBER in the same query as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr&lt;/P&gt;&lt;P&gt;hkont werks prctr projk fkber fkber_long&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;into table t_bseg&lt;/P&gt;&lt;P&gt;for all entries in t_jrnl_chg_ptr&lt;/P&gt;&lt;P&gt;where bukrs = t_jrnl_chg_ptr-bukrs&lt;/P&gt;&lt;P&gt;and belnr = t_jrnl_chg_ptr-belnr&lt;/P&gt;&lt;P&gt;and gjahr = t_jrnl_chg_ptr-gjahr&lt;/P&gt;&lt;P&gt;and buzei = t_jrnl_chg_ptr-buzei&lt;/P&gt;&lt;P&gt;and vorgn c_recur_doc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ways this selection will have same performance as your previous query.After your selection you can delete entries by loop at t_bseg into wa_bseg.&lt;/P&gt;&lt;P&gt;if wa_bseg-fkber is not initial or wa_bseg-fkber_long is not initial.&lt;/P&gt;&lt;P&gt;write your logic here&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;or if you are only concern with t_bseg having either fkber and fkber_long value then you can make use of DELETE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete t_bseg where (fkber  is initial or fkber_long is intial').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try above two logics,this may solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Manjunathm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348905#M1540368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348906#M1540369</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;select the fkber_long also with your select statement as below&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr&lt;/P&gt;&lt;P&gt;hkont werks prctr projk fkber fkber_long&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;into table t_bseg&lt;/P&gt;&lt;P&gt;for all entries in t_jrnl_chg_ptr&lt;/P&gt;&lt;P&gt;where bukrs = t_jrnl_chg_ptr-bukrs&lt;/P&gt;&lt;P&gt;and belnr = t_jrnl_chg_ptr-belnr&lt;/P&gt;&lt;P&gt;and gjahr = t_jrnl_chg_ptr-gjahr&lt;/P&gt;&lt;P&gt;and buzei = t_jrnl_chg_ptr-buzei&lt;/P&gt;&lt;P&gt;and vorgn c_recur_doc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare one more internal table with the same structure ( only one field among fkber and fkber_long ).&lt;/P&gt;&lt;P&gt;then move your t_bseg data to the second internal table say t_bseg1.&lt;/P&gt;&lt;P&gt;here you check if fkber is initial then move fkber_long to t_bseg1 else move fkber only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 10:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348906#M1540369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T10:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348907#M1540370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have an existing code that says&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr&lt;/P&gt;&lt;P&gt;hkont werks prctr projk fkber&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;into table t_bseg&lt;/P&gt;&lt;P&gt;for all entries in t_jrnl_chg_ptr&lt;/P&gt;&lt;P&gt;where bukrs = t_jrnl_chg_ptr-bukrs&lt;/P&gt;&lt;P&gt;and belnr = t_jrnl_chg_ptr-belnr&lt;/P&gt;&lt;P&gt;and gjahr = t_jrnl_chg_ptr-gjahr&lt;/P&gt;&lt;P&gt;and buzei = t_jrnl_chg_ptr-buzei&lt;/P&gt;&lt;P&gt;and vorgn c_recur_doc.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the internal table decleration declare FKBER as type FKBER_LONG as it is of 16 charecters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now write the following select queries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr&lt;/P&gt;&lt;P&gt;hkont werks prctr projk fkber&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;into table t_bseg&lt;/P&gt;&lt;P&gt;for all entries in t_jrnl_chg_ptr&lt;/P&gt;&lt;P&gt;where bukrs = t_jrnl_chg_ptr-bukrs&lt;/P&gt;&lt;P&gt;and belnr = t_jrnl_chg_ptr-belnr&lt;/P&gt;&lt;P&gt;and gjahr = t_jrnl_chg_ptr-gjahr&lt;/P&gt;&lt;P&gt;and buzei = t_jrnl_chg_ptr-buzei&lt;/P&gt;&lt;P&gt;and vorgn c_recur_doc&lt;/P&gt;&lt;P&gt;and fkber ne space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr buzei augdt shkzg dmbtr kokrs kostl aufnr&lt;/P&gt;&lt;P&gt;hkont werks prctr projk fkber&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;appending table t_bseg&lt;/P&gt;&lt;P&gt;for all entries in t_jrnl_chg_ptr&lt;/P&gt;&lt;P&gt;where bukrs = t_jrnl_chg_ptr-bukrs&lt;/P&gt;&lt;P&gt;and belnr = t_jrnl_chg_ptr-belnr&lt;/P&gt;&lt;P&gt;and gjahr = t_jrnl_chg_ptr-gjahr&lt;/P&gt;&lt;P&gt;and buzei = t_jrnl_chg_ptr-buzei&lt;/P&gt;&lt;P&gt;and vorgn c_recur_doc&lt;/P&gt;&lt;P&gt;and fkber eq space&lt;/P&gt;&lt;P&gt;and fkber_long ne space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above coding might solve u'r problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thabitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 11:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348907#M1540370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T11:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348908#M1540371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krish,&lt;/P&gt;&lt;P&gt;   I dont think tht you will have any problem if you add FKBER_LONG in your current query if you are worring about performance. Further while processing your internal table use condition to check the fields. Dont create 1 more internal table unnessessarily.&lt;/P&gt;&lt;P&gt;&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;Anmol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 13:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-table/m-p/7348908#M1540371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T13:27:39Z</dc:date>
    </item>
  </channel>
</rss>

