How to Increase Billing Tables perforamnce

Dear Friends,
I am writing a query simply joining tables VBRK an VBRP.
But its taking very long time. we have mor then 2,800,000 Records in our VBRP
table.
I need your help gurus how can we boost the performance of this quer.
my select is
select vbrk~fkart vbrk~kunag vbrk~kunrg vbrk~fkdat vbrk~vkorg vbrk~vtweg
vbrk~vbeln vbrk~ernam vbrk~fktyp  vbrp~matnr vbrp~fkimg vbrp~netwr
vbrp~meins vbrp~spart vbrp~matkl vbrp~mvgr1 vbrp~mvgr2 vbrp~mvgr3
vbrp~mvgr4 vbrp~mvgr5 vbrp~aufnr vbrp~posnr vbrp~vgbel vbrp~kvgr1
vbrp~kvgr2 vbrp~kvgr3 vbrp~werks   vbrp~vstel vbrp~wavwr
  into (itab_bill-fkart, itab_bill-kunag, itab_bill-kunrg, itab_bill-fkdat,
itab_bill-vkorg, itab_bill-vtweg, itab_bill-vbeln, itab_bill-ernam,
itab_bill-fktyp, itab_bill-matnr, itab_bill-fkimg, itab_bill-netwr, itab_bill-meins,
itab_bill-spart, itab_bill-matkl, itab_bill-mvgr1, itab_bill-mvgr2, itab_bill-mvgr3,
itab_bill-mvgr4, itab_bill-mvgr5, itab_bill-aufnr, itab_bill-posnr, itab_bill-vgbel,
itab_bill-kvgr1, itab_bill-kvgr2, itab_bill-kvgr3, itab_bill-werks,
itab_bill-vstel, itab_bill-wavwr)
  from vbrk
  join vbrp
    on vbrk~vbeln = vbrp~vbeln
where vbrk~fkdat in s_fkdat "Billing Date(7)
   and vbrk~fkart in s_fkart "Billing Type(1)
   and vbrk~kunag in s_kunag "Sold To Party
   and vbrk~vkorg in s_vkorg "Sales Organisation
   and vbrk~vtweg in s_vtweg "Distribution Channel
   and vbrk~vbeln in s_vbeln "Billing Document
   and vbrp~matnr in s_matnr "Material Number
   and vbrp~spart in s_spart "Division
   and vbrp~matkl in s_matkl "Material Group
   and vbrp~kvgr1 in s_kvgr1 "Customer Group1
   and vbrp~kvgr1 in s_kvgr2 "Customer Group2
   and vbrp~kvgr1 in s_kvgr2 "Customer Group3
   and vbrp~vstel in s_vstel. "Shipping Point/Receiving Point
Regards
Malik
Edited by: Malik Naeem on Feb 12, 2009 9:20 AM

Hi ,
In your case ...
select vbrkfkart vbrkkunag vbrkkunrg vbrkfkdat vbrkvkorg vbrkvtweg
vbrkvbeln vbrkernam vbrkfktyp  vbrpmatnr vbrpfkimg vbrpnetwr
vbrpmeins vbrpspart vbrpmatkl vbrpmvgr1 vbrpmvgr2 vbrpmvgr3
vbrpmvgr4 vbrpmvgr5 vbrpaufnr vbrpposnr vbrpvgbel vbrpkvgr1
vbrpkvgr2 vbrpkvgr3 vbrpwerks   vbrpvstel vbrp~wavwr
  into table  itab PACKAGE SIZE 100000
  from vbrk
  join vbrp
    on vbrkvbeln = vbrpvbeln
where vbrk~fkdat in s_fkdat "Billing Date(7)
   and vbrk~fkart in s_fkart "Billing Type(1)
   and vbrk~kunag in s_kunag "Sold To Party
   and vbrk~vkorg in s_vkorg "Sales Organisation
   and vbrk~vtweg in s_vtweg "Distribution Channel
   and vbrk~vbeln in s_vbeln "Billing Document.
delete itab where conditions for VBRP.
append lines of itab to itab1
Endselect..
Hope this works
Raj

Similar Messages

  • How to increase the table space for a particular table?

    Hi Friends,
    I want to know how to increase the table space for a particular table and how to check the table space size of a particular table. Please can any one send the SQL Script. I am very much poor in DBA Part.
    Thanking You ..
    Kiran

    Kiran - you should post this question on the SQL/Database forums - this is a Forms specific forum...
    Regards
    Grant Ronald
    Forms PRoduct Management

  • Billing table and Sales table relation

    Hello,
    How is the billing table and sales table related to each other. I meant which is the field that keeps relation between two tables?
    Thanks
    Rakesh

    vbrk and vbrp are billing tables.
    vbak and vbap are sales tables.
    likp and lips are delivery tables
    vbkd is sales doc business data.
    vbrp-vgbel = lips-vbeln.
    vbrp-vgpos = lips-posnr.
    lips-vgbel = vbap-vbeln.
    lips-vgpos= vbap-posnr.
    VBKD-VBELN = VBRP-AUBEL
    regards.
    santhosh
    Message was edited by:
            Santhosh Reddy

  • How to increase the row height of the table in the smartform

    Hi,
    Can any one say,
    How to increase the row height of the table in the smartform.
    It is presently show the row width very small, i want to increase the row with of the table in the smartform.
    Plase say how can we increase the row height in the smartform.

    Hi Ravi,
         In Smartforms , Select the Table and you can adjust the cell hieghts in OUTPUT OPTIONs TAB.
        Reward points if that Helps.
    Manish

  • How to Increase the Length of Condition table in OV20

    While creating a condition table in T.code OV20 if fields length is more that 50 bytes table is not getting generated.it gives error as Too Many Fields Selected(More than 50 Bytes).
    Actually i need to create a tabel with Basic Material(WRKST) which has length of 48 bytes.
    Is there a solution on how to increase the length so that error is avoided.
    There is no such error occuring while crating condition table in V/03

    Hi,
         You can try to use the type string:
    form like zscr_data_hdr-form,
    werks like zscr_data_hdr-werks,
    matnr like zscr_data_hdr-matnr,
    verid like zscr_data_hdr-verid,
    lot like zscr_data_hdr-lot,
    lot_qty like zscr_data_hdr-lot_qty,
    udate like zscr_data_hdr-udate,
    utime like zscr_data_hdr-utime,
    zuser like zscr_data_hdr-zuser,
    processed like zscr_data_hdr-processed,
    defect like zscr_defect_data-defect,
    vornr like zscr_route_data-vornr,
    fieldxx type string,
    dayst like zscr_data_hdr-dayst,
    end of t_data.
    So you can save you informations of every fld<n> concatenating their values into fieldxx.
    Regards

  • How to increase the length of internal table dynamically

    How to increase the length of internal table dynamically depending on the number of fields fetched into the internal table ?
    The requirement code :
    types: begin of t_data,
             form          like zscr_data_hdr-form,
             werks         like zscr_data_hdr-werks,
             matnr         like zscr_data_hdr-matnr,
             verid         like zscr_data_hdr-verid,
             lot           like zscr_data_hdr-lot,
             lot_qty       like zscr_data_hdr-lot_qty,
             udate         like zscr_data_hdr-udate,
             utime         like zscr_data_hdr-utime,
             zuser         like zscr_data_hdr-zuser,
             processed     like zscr_data_hdr-processed,
             defect        like zscr_defect_data-defect,
             vornr         like zscr_route_data-vornr,
             fld1          like zscr_defect_data-defect_val,
             fld2          like zscr_defect_data-defect_val,
             fld3          like zscr_defect_data-defect_val,
             fld4          like zscr_defect_data-defect_val,
             fld5          like zscr_defect_data-defect_val,
             fld6          like zscr_defect_data-defect_val,
             fld7          like zscr_defect_data-defect_val,
             fld8          like zscr_defect_data-defect_val,
             fld9          like zscr_defect_data-defect_val,
             fld10         like zscr_defect_data-defect_val,
             fld11         like zscr_defect_data-defect_val,
             fld12         like zscr_defect_data-defect_val,
             fld13         like zscr_defect_data-defect_val,
             fld14         like zscr_defect_data-defect_val,
             fld15         like zscr_defect_data-defect_val,
             fld16         like zscr_defect_data-defect_val,
             fld17         like zscr_defect_data-defect_val,
             fld18         like zscr_defect_data-defect_val,
             fld19         like zscr_defect_data-defect_val,
             fld20         like zscr_defect_data-defect_val,
             fld21         like zscr_defect_data-defect_val,
             fld22         like zscr_defect_data-defect_val,
             fld23         like zscr_defect_data-defect_val,
             fld24         like zscr_defect_data-defect_val,
             fld25         like zscr_defect_data-defect_val,
             fld26         like zscr_defect_data-defect_val,
             fld27         like zscr_defect_data-defect_val,
             fld28         like zscr_defect_data-defect_val,
             fld29         like zscr_defect_data-defect_val,
             fld30         like zscr_defect_data-defect_val,
             fld31         like zscr_defect_data-defect_val,
             fld32         like zscr_defect_data-defect_val,
             fld33         like zscr_defect_data-defect_val,
             fld34         like zscr_defect_data-defect_val,
             fld35         like zscr_defect_data-defect_val,
             fld36         like zscr_defect_data-defect_val,
             fld37         like zscr_defect_data-defect_val,
             fld38         like zscr_defect_data-defect_val,
             fld39         like zscr_defect_data-defect_val,
             fld40         like zscr_defect_data-defect_val,
             fld41         like zscr_defect_data-defect_val,
             fld42         like zscr_defect_data-defect_val,
             fld43         like zscr_defect_data-defect_val,
             fld44         like zscr_defect_data-defect_val,
             fld45         like zscr_defect_data-defect_val,
             fld46         like zscr_defect_data-defect_val,
             fld47         like zscr_defect_data-defect_val,
             fld48         like zscr_defect_data-defect_val,
             fld49         like zscr_defect_data-defect_val,
             fld50         like zscr_defect_data-defect_val,
             fld51         like zscr_defect_data-defect_val,
             fld52         like zscr_defect_data-defect_val,
             fld53         like zscr_defect_data-defect_val,
             fld54         like zscr_defect_data-defect_val,
             fld55         like zscr_defect_data-defect_val,
             fld56         like zscr_defect_data-defect_val,
             fld57         like zscr_defect_data-defect_val,
             fld58         like zscr_defect_data-defect_val,
             fld59         like zscr_defect_data-defect_val,
             fld60         like zscr_defect_data-defect_val,
             fld61         like zscr_defect_data-defect_val,
             fld62         like zscr_defect_data-defect_val,
             fld63         like zscr_defect_data-defect_val,
             fld64         like zscr_defect_data-defect_val,
             fld65         like zscr_defect_data-defect_val,
             fld66         like zscr_defect_data-defect_val,
             fld67         like zscr_defect_data-defect_val,
             fld68         like zscr_defect_data-defect_val,
             fld69         like zscr_defect_data-defect_val,
             fld70         like zscr_defect_data-defect_val,
             fld71         like zscr_defect_data-defect_val,
             fld72         like zscr_defect_data-defect_val,
             fld73         like zscr_defect_data-defect_val,
             fld74         like zscr_defect_data-defect_val,
             fld75         like zscr_defect_data-defect_val,
             fld76         like zscr_defect_data-defect_val,
             fld77         like zscr_defect_data-defect_val,
             fld78         like zscr_defect_data-defect_val,
             fld79         like zscr_defect_data-defect_val,
             fld80         like zscr_defect_data-defect_val,
             fld81         like zscr_defect_data-defect_val,
             fld82         like zscr_defect_data-defect_val,
             fld83         like zscr_defect_data-defect_val,
             fld84         like zscr_defect_data-defect_val,
             fld85         like zscr_defect_data-defect_val,
             fld86         like zscr_defect_data-defect_val,
             fld87         like zscr_defect_data-defect_val,
             fld88         like zscr_defect_data-defect_val,
             fld89         like zscr_defect_data-defect_val,
             fld90         like zscr_defect_data-defect_val,
             fld91         like zscr_defect_data-defect_val,
             fld92         like zscr_defect_data-defect_val,
             fld93         like zscr_defect_data-defect_val,
             fld94         like zscr_defect_data-defect_val,
             fld95         like zscr_defect_data-defect_val,
             fld96         like zscr_defect_data-defect_val,
             fld97         like zscr_defect_data-defect_val,
             fld98         like zscr_defect_data-defect_val,
             fld99         like zscr_defect_data-defect_val,
             fld100         like zscr_defect_data-defect_val,
             fld101         like zscr_defect_data-defect_val,
             fld102         like zscr_defect_data-defect_val,
             fld103         like zscr_defect_data-defect_val,
             fld104         like zscr_defect_data-defect_val,
             fld105         like zscr_defect_data-defect_val,
             fld106         like zscr_defect_data-defect_val,
             fld107         like zscr_defect_data-defect_val,
             fld108         like zscr_defect_data-defect_val,
             fld109         like zscr_defect_data-defect_val,
             fld110         like zscr_defect_data-defect_val,
             fld111         like zscr_defect_data-defect_val,
             fld112         like zscr_defect_data-defect_val,
             fld113         like zscr_defect_data-defect_val,
             fld114         like zscr_defect_data-defect_val,
             fld115         like zscr_defect_data-defect_val,
             fld116         like zscr_defect_data-defect_val,
             fld117         like zscr_defect_data-defect_val,
             fld118         like zscr_defect_data-defect_val,
             fld119         like zscr_defect_data-defect_val,
             fld120         like zscr_defect_data-defect_val,
             fld121         like zscr_defect_data-defect_val,
             fld122         like zscr_defect_data-defect_val,
             fld123         like zscr_defect_data-defect_val,
             fld124         like zscr_defect_data-defect_val,
             fld125         like zscr_defect_data-defect_val,
             fld126         like zscr_defect_data-defect_val,
             fld127         like zscr_defect_data-defect_val,
             fld128         like zscr_defect_data-defect_val,
             fld129         like zscr_defect_data-defect_val,
             fld130         like zscr_defect_data-defect_val,
             fld131         like zscr_defect_data-defect_val,
             fld132         like zscr_defect_data-defect_val,
             fld133         like zscr_defect_data-defect_val,
             fld134         like zscr_defect_data-defect_val,
             fld135         like zscr_defect_data-defect_val,
             dayst         like zscr_data_hdr-dayst,
           end of t_data.
    In this fld1 to fld135 are defined in internal table.
    But if the number of fields are more than 135 then the program is going to short dump.
    Some times fld1 to fid170 or more fields will be there in my internal table.
    Please suggest me how to make my requirement dynamic and display this data fetched into this internal table onto a .XLS file in the presentation server ?

    Hi
    You can try to use the type string:
    form like zscr_data_hdr-form,
    werks like zscr_data_hdr-werks,
    matnr like zscr_data_hdr-matnr,
    verid like zscr_data_hdr-verid,
    lot like zscr_data_hdr-lot,
    lot_qty like zscr_data_hdr-lot_qty,
    udate like zscr_data_hdr-udate,
    utime like zscr_data_hdr-utime,
    zuser like zscr_data_hdr-zuser,
    processed like zscr_data_hdr-processed,
    defect like zscr_defect_data-defect,
    vornr like zscr_route_data-vornr,
    fieldxx type string,
    dayst like zscr_data_hdr-dayst,
    end of t_data.
    So you can save you informations of every fld<n> concatenating their values into fieldxx.
    Max

  • How to increase field size in Internal table

    Hi friends,
    I want to concatenate around 20 fields in one internal table field,
    i declared the destination filed as character, now i am able to get around 12 to 13 fileds only , how to increase the length of this field to include all fields ?
    or how can i do this ? can any body help me ?
    I concatenate this to create a file  which will be send as email attachment.
    its very urgent issue, kindly help me to resolve as early as possible.
    Thanks in advance.
    Joseph

    Hi,
    Use the string data type..
    Example
    DATA: IT_STRING TYPE STRING OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF WA,
                 MATNR(18),
                 WERKS(4),
                 VBELN(10),
               END OF WA.
    CONCATENATE WA-MATNR WA-WERKS WA-VBELN INTO IT_STRING.
    APPEND IT_STRING.
    Thanks,
    Naren

  • How the Feature Variables Table BEFM_FV get populated in CRM Billing Eng?

    Hello Expert,
    Can you please tell me how the Feature Variables Table BEFM_FV get populated in CRM Billing Enge(BEFN)?
    We need to change the value of CANCEL_COPY_TYPE variable there. Please help.
    - FInd out the way to maintain this table from Billing Engine Frame(BEFN) Meta Data Entry.
    Edited by: Palash Dutta on Apr 25, 2011 4:10 PM

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • How to increase text size of a Column header of table in webdypro

    Hi All,
    Can anybody suggest me how to increase the text size of a column header of table in webdyrpo. I didnt find any option anywhere. can anybody help me out to solve this issue?
    Regards
    Ravikumar

    Hi Ravikumar,
    As Sukanta has suggested create a Simpletype of String Type and Length 40.
    Then create a context for the column header and for its type, instead of choosing
    from the drop down, choose the 3 dots.
    In the window that appears, select Local Dictionary, and Select the Simpletype
    that you have created, from the respective package name. And click OK.
    This will make the text of ColumnHeader of type String and Length 40.
    Hope it helps.
    Regards,
    Alka.

  • How do i increase the table space in BI...

    How do i increase the table space in BI. Its giving me short dumps when i am logging into the system. So, i need to increase the Table space. Can you all please tell me the steps for increasing it.
    Thank You.

    hi irfan,
               I too faced the similar problem error showing was table space problem its some database issue sue to this issue i was not able to run any loads or do any operations on by BI side then my on site team contacted the oracle guys to solve this.......
    ravi

  • How to get the table of value field? and can we expand the technical limits

    Dear
    I have created value field in COPA with KEA6. And now, I need the table which the value fields are saved. Yet, I have tried a lot to find it and get failure? Can any guy help me? Please tell me how to get the table of a value field.
    And another question is that, can we extend the technical limits for the number of value field for ECC6.0?
    We have a note for R.4.x Please see below:
    OSS note 160892
    You can display the length of a data record using Transaction KEA0 ('Maintain Operating Concern'). After you have navigated to the 'Characteristics Screen' or to the 'Value field Screen' choose menu path 'Extras -> Technical Limits'.
    The maximum displayed here under 'Length in bytes on the DB' is the maximum length permitted by the Dictionary. The reserve required for the release upgrade must be subtracted from this value.
    To increase the allowed number of the value fields, increase the value that is assigned to field ikcge-bas_max_cnt (FORM init_ikcge_ke USING fm_subrc, approx. line 165) in Include FKCGNF20. It specifies the number of the possible value fields. The corresponding part of the source code is attached to the note as a correction.
    David Sun
    Regards!

    how to extend the limit of value numbers? please see the original question.

  • Excise invoice table and billing table relation???

    Can anyone please tell me how excise invoise and billing table are related??

    Hi
    check these table VBRP and VBRK
    you wil get idea.
    if its useful reward points
    thanks
    senthil

  • How to give the table in a Portal Report an ID?

    I have a report created in Oracle Portal 10.1.4 using the standard Portal Report feature. The results are output in HTML as a table. How do I give the table an ID attribute?
    This is what teh output looks like now:
    <TABLE border="1" cellspacing=0 cellpadding=2 SUMMARY ="Printing Table Headers">
    <TR>
    <TH nowrap><FONT CLASS="PortletHeading1">Heading 1</FONT></TH>
    <TH nowrap><FONT CLASS="PortletHeading1">Heading 2</FONT></TH>
    <TH nowrap><FONT CLASS="PortletHeading1">Heading 3</FONT></TH>
    <TH nowrap><FONT CLASS="PortletHeading1">Heading 4</FONT></TH>
    </TR>
    <TR BGCOLOR=#BBBBBB>
    <td align="center"><FONT CLASS="PortletText1">Value r1v1</FONT></TD>
    <td align="center"><FONT CLASS="PortletText1">Value r1v2</FONT></TD>
    <td align="center"><FONT CLASS="PortletText1">Value r1v3</FONT></TD>
    <td align="center"><FONT CLASS="PortletText1">Value r1v4</FONT></TD>
    </TR>
    <TR BGCOLOR=#BBBBBB>
    <td align="center"><FONT CLASS="PortletText1">Value r2v1</FONT></TD>
    <td align="center"><FONT CLASS="PortletText1">Value r2v2</FONT></TD>
    <td align="center"><FONT CLASS="PortletText1">Value r2v3</FONT></TD>
    <td align="center"><FONT CLASS="PortletText1">Value r2v4</FONT></TD>
    </TR>
    </TABLE>

    Hi,
    you can increase the table size by using the table properties.
    table properties-->Additional formatting options--->give the values of height and width like 800,600 etc.
    mark if helpful/correct...
    thanks,
    prasanna

  • How to increase the row and Column length of Bex query in EP Portal 7.3

    Dear All,
    Please let me know the process  to Increase the Rows and Columns  Size of Bex Query in Enterprise Portal  of SAP  7.3 .
    Please  let settings to increase rows up 10000 and column 100 in one page.
    Thanks
    Regards,
    Sai

    Dear All,
    Please find the attached screen shot.
    The report be open with 4 or 5 columns and 5 or 6 rows.
    So, please  let me know how to increase the length of the table.
    Do the needful for me to over come this issue.
    Thanks
    Regards,
    Sai.

  • How to increase the performance of a report

    can any body tell me how to increase the performance of a report?////
    i have prepared a report to show the expense detail .I have used BSIS and BSAS table.
    But whenever I am executing it is facing runtime error (TIME_OUT error ).
    Moderator Message: Duplicate Post. Read my comments in your previous thread.
    Edited by: kishan P on Nov 25, 2010 1:38 PM

    Please SEARCH in SCN before posting.
    Also post performance related issues here.

Maybe you are looking for

  • Using Creative Suite on Tablet

    I have a Samsung Galaxy Tab 3, I saw that in the "store" that there are some apps for adobe software. I was wondering if there was a way to install the creative suite to my tablet as I already have the software cd (Creative Suite 6) for my laptop? Ma

  • My iphone is coming up with a white screen. i have restored it but that didnt help. any other suggestions before going to the store?

    help! my phone is coming up as a white screen. i can hold the home and on/off button and restart it and it works until i try and listen to voicemails or make calls or turn the screen off. i have restored it and it still is white. help! anyone know an

  • Applet like input type=file ?

    I need to build an applet that will facilitate file uploads. It needs to be part of a form, and when files are dragged into it, it forces a form submission, uploading the contents of the form as well as the dragged files. Of course, we want all the b

  • Question about Premiere Elements

    I am considering purchasing Premiere Elements but I need to know if one can use it to add effects to an animated gif file. For example, in Photoshop Elements one can add certain effects to a gif image, such as giving it certain textures or filters. C

  • Red Eye Removal

    Q - How do I remove Redeye.