<?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: performance issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045431#M967004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;My understanding is that you want Sales Order number corresponding to every billing No in  it_vbrp1x&lt;/P&gt;&lt;P&gt;You can take these details from VBRP table,(Being a huge table try to avoid vbfa )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUBEL	Sales ORDER&lt;/P&gt;&lt;P&gt;AUPOS	Sales Order Item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT it_vbrp1x[] IS INTIAL&lt;/P&gt;&lt;P&gt;SELECT aubel AS vbelv&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;FROM vbrp&lt;/P&gt;&lt;P&gt;INTO TABLE it_vbfax&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_vbrp1x&lt;/P&gt;&lt;P&gt;WHERE vbeln = it_vbrp1x-vbeln&lt;/P&gt;&lt;P&gt;AND posnn = it_vbrp1x-posnr.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukundan.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2008 10:59:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-11T10:59:13Z</dc:date>
    <item>
      <title>performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045417#M966990</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 getting performance issue while fetching  data from vbfa table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fields  fetched form vbfa  are  Preceding sales and distribution document(vbelv)&lt;/P&gt;&lt;P&gt;Subsequent sales and distribution document(vbeln) and &lt;/P&gt;&lt;P&gt;doccument category of preceding SD document(vbtyp_v)   into an internal table     and in select query  where condition....... i m giving .&lt;/P&gt;&lt;P&gt;VBELN , POSNN ,VBTYP_N, AND VBTYP_V  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;\[removed by moderator\]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; code is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF  it_vbfa OCCURS 0,&lt;/P&gt;&lt;P&gt;      vbelv  LIKE  vbfa-vbelv,&lt;/P&gt;&lt;P&gt;      vbeln  TYPE vbfa-vbeln,&lt;/P&gt;&lt;P&gt;      vbtyp_v TYPE vbtyp_v,&lt;/P&gt;&lt;P&gt;      END OF it_vbfa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_vbfax LIKE TABLE OF it_vbfa WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_vbrp1x[] = it_vbrp1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SORT  it_vbrp1x  BY vbeln.&lt;/P&gt;&lt;P&gt;    DELETE ADJACENT DUPLICATES FROM it_vbrp1x COMPARING vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT vbelv&lt;/P&gt;&lt;P&gt;           vbeln&lt;/P&gt;&lt;P&gt;           vbtyp_v FROM vbfa&lt;/P&gt;&lt;P&gt;           INTO  TABLE it_vbfax&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN it_vbrp1x&lt;/P&gt;&lt;P&gt;           WHERE vbeln = it_vbrp1x-vbeln&lt;/P&gt;&lt;P&gt;           AND   posnn   = it_vbrp1x-posnr&lt;/P&gt;&lt;P&gt;           AND vbtyp_n = 'M'&lt;/P&gt;&lt;P&gt;           AND vbtyp_v = 'C'.   " BIL_DOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jan Stallkamp on Aug 7, 2008 11:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045417#M966990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T09:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045418#M966991</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;Before using for all entries, you need to check whether itab in filled with values or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if not it_vbrp1x [ ] is initial.
SELECT vbelv
vbeln
vbtyp_v FROM vbfa
INTO TABLE it_vbfax
FOR ALL ENTRIES IN it_vbrp1x
WHERE vbeln = it_vbrp1x-vbeln
AND posnn = it_vbrp1x-posnr
AND vbtyp_n = 'M'
AND vbtyp_v = 'C'. " BIL_DOC.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045418#M966991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T09:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045419#M966992</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;Delete the adjacent duplicates for the line items as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM it_vbrp1x COMPARING vbeln posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the the order of the fields in the same order as in any of the index for the table VBFA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the order in which the fields are selected should be in the same order as in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will improve performance a BIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If is not a viable option use extract datasets and LDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045419#M966992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T09:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045420#M966993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbelv&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;vbtyp_v FROM vbfa&lt;/P&gt;&lt;P&gt;INTO TABLE it_vbfax&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_vbrp1x&lt;/P&gt;&lt;P&gt;WHERE vbeln = it_vbrp1x-vbeln&lt;/P&gt;&lt;P&gt;AND posnn = it_vbrp1x-posnr&lt;/P&gt;&lt;P&gt;AND vbtyp_n = 'M'&lt;/P&gt;&lt;P&gt;*AND VBTYP_v = 'C'. "Remove this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Selecting the Sales Documents from VBFA for corresponding Invoice
    SELECT vbelv
                 posnv
      FROM vbfa
      INTO TABLE gt_itab3
   FOR ALL ENTRIES IN it_vbrp1X
     WHERE vbeln EQ it_vbrp1x-vbeln
       AND posnn EQ it_vbrp1x-posnr
       AND vbtyp_n EQ 'M'.

    IF sy-subrc EQ gc_zero_num.
      SORT gt_itab3 BY vbelv posnv.
    ENDIF.
  ENDIF.

  IF NOT gt_itab3 IS INITIAL.
* Selecting the Purchase Orders from VBFA for corresponding Sales Documents
    SELECT vbeln
           posnn
      FROM vbfa
      INTO TABLE gt_itab4
   FOR ALL ENTRIES IN gt_itab3
     WHERE vbelv EQ gt_itab3-vbelv
       AND posnv EQ gt_itab3-posnv
       AND vbtyp_n EQ 'V'.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045420#M966993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T09:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045421#M966994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ponna ji&lt;/P&gt;&lt;P&gt; i have checked initial condition  &lt;/P&gt;&lt;P&gt;thanks   no improvement in performance of select query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045421#M966994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045422#M966995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks naren..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but without ldb any other option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045422#M966995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045423#M966996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;This table is related to  SD module.&lt;/P&gt;&lt;P&gt;we have following SD tables.&lt;/P&gt;&lt;P&gt;1.vbak--Sales Document: header Data&lt;/P&gt;&lt;P&gt;vbap--Sales Document: Item Data&lt;/P&gt;&lt;P&gt;vbfa--Sales Document Flow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need to get fields from vbfa table right.&lt;/P&gt;&lt;P&gt;do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. get vbelv ,vbeln,vbtyp_n  from vbap (item) table where vbeln = itab-vbeln.&lt;/P&gt;&lt;P&gt;2.then go to vbfa table give conditions and fopr all entries u ll get all fields for the given conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after getting entries,check with se11 for the same conditions.if no of records and values are same then this method is correct..&lt;/P&gt;&lt;P&gt;and also u get idea of all tables related to&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 10:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045423#M966996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T10:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045424#M966997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;related to SD module ,then u can easily get idea of logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;\[removed by moderator\]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;diana.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jan Stallkamp on Aug 7, 2008 11:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 10:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045424#M966997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T10:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045425#M966998</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;why dont you try JOIN ??? It should solve your problem.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT it_vbrp1x BY vbeln.                &amp;lt;--- add posnr too
DELETE ADJACENT DUPLICATES FROM it_vbrp1x COMPARING vbeln.   &amp;lt;- add posnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 10:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045425#M966998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T10:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045426#M966999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u r right but it is also increasing  performance issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 10:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045426#M966999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T10:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045427#M967000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi subramani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can join vbap and vbfa  for the conditions what u have given it is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u send select statement that is used to fill it_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;diana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 10:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045427#M967000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T10:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045428#M967001</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;can u try using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_vbrp1x.&lt;/P&gt;&lt;P&gt;SELECT SINGLE  vbelv vbeln vbtyp_v &lt;/P&gt;&lt;P&gt;  FROM vbfa&lt;/P&gt;&lt;P&gt;  ......  &lt;/P&gt;&lt;P&gt;WHERE vbeln = it_vbrp1x-vbeln&lt;/P&gt;&lt;P&gt;AND posnn = it_vbrp1x-posnr&lt;/P&gt;&lt;P&gt;AND vbtyp_n = 'M'&lt;/P&gt;&lt;P&gt;AND vbtyp_v = 'C'. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would again suggest you to try out join with the correct JOIN conditions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 10:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045428#M967001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T10:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045429#M967002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;My understanding is that you want Sales Order number corresponding to every billing No in  it_vbrp1x&lt;/P&gt;&lt;P&gt;You can take these details from VBRP table,(Being a huge table try to avoid vbfa )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUBEL	Sales ORDER&lt;/P&gt;&lt;P&gt;AUPOS	Sales Order Item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT it_vbrp1x[] IS INTIAL&lt;/P&gt;&lt;P&gt;SELECT aubel AS vbelv&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;FROM vbrp&lt;/P&gt;&lt;P&gt;INTO TABLE it_vbfax&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_vbrp1x&lt;/P&gt;&lt;P&gt;WHERE vbeln = it_vbrp1x-vbeln&lt;/P&gt;&lt;P&gt;AND posnn = it_vbrp1x-posnr.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukundan.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 10:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045429#M967002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T10:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045430#M967003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use following join statement.it will definitely improve performance.because i have tried already.&lt;/P&gt;&lt;P&gt;Select f&lt;SUB&gt;vbelv f&lt;/SUB&gt;vbeln f~vbtyp_v&lt;/P&gt;&lt;P&gt;Into table it_vbfa&lt;/P&gt;&lt;P&gt;    from Vbap  as p  &lt;/P&gt;&lt;P&gt;join      vbfa as f &lt;/P&gt;&lt;P&gt;on          p&lt;SUB&gt;vbeln  =  f&lt;/SUB&gt;vbeln and &lt;/P&gt;&lt;P&gt;           p&lt;SUB&gt;posnr  =  f&lt;/SUB&gt;posnr and &lt;/P&gt;&lt;P&gt;            p&lt;SUB&gt;vbtyp_n  =  f&lt;/SUB&gt;vbtyp_n&lt;/P&gt;&lt;P&gt;    WHERE  vbtyp_n = 'M' &lt;/P&gt;&lt;P&gt;   AND        vbtyp_v = 'C'. " BIL_DOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this where condition if u have any vbeln and posnr  from select option u can include, or if those are all in internal table then u can use for all entries in itab.(contains vbeln ,posnr).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test and tell howmuch is improved.&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;\[removed by moderator\]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;diana.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jan Stallkamp on Aug 7, 2008 11:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 10:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045430#M967003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T10:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045431#M967004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;My understanding is that you want Sales Order number corresponding to every billing No in  it_vbrp1x&lt;/P&gt;&lt;P&gt;You can take these details from VBRP table,(Being a huge table try to avoid vbfa )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUBEL	Sales ORDER&lt;/P&gt;&lt;P&gt;AUPOS	Sales Order Item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT it_vbrp1x[] IS INTIAL&lt;/P&gt;&lt;P&gt;SELECT aubel AS vbelv&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;FROM vbrp&lt;/P&gt;&lt;P&gt;INTO TABLE it_vbfax&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_vbrp1x&lt;/P&gt;&lt;P&gt;WHERE vbeln = it_vbrp1x-vbeln&lt;/P&gt;&lt;P&gt;AND posnn = it_vbrp1x-posnr.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukundan.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 10:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045431#M967004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045432#M967005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your query is OK. I would recommend you to create an INDEX on table VBFA with following fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;posnn&lt;/P&gt;&lt;P&gt;vbtyp_n&lt;/P&gt;&lt;P&gt;vbtyp_v.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your performance will be resolved 100%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 09:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/4045432#M967005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-07T09:29:40Z</dc:date>
    </item>
  </channel>
</rss>

