Restricting of cancellation

Hi gurus,
i am facing a scenario which is as follows
The sales cycle which we follow is Order, Delivery, Post goods issue, Invoice, Receipt of payment. In any case when a receipt is raised the system should not allow deleting or altering any other previous functions (Order, Delivery, Post goods issue, Invoice) unless the receipt is canceled. Now when the receipt is canceled or reversed then only we will be able to cancel all other steps invoice, deliver and the sales order, other wise no user is allowed to delete or alter the sales order, delivery and billing document. hope every one got my point?
so can any one help me on the above scenario?
thanks in advance
subhro

Hi,
In the BILLING DOCUMENT TYPE VOFA for your billing document you can put the COPYING REQUIREMENT in the tab     Cancellation
The routine is 29, this will not allow you to cancel the Billing document unless the ACCOUNTING DOCUMENT REVERSED.
Hope it is clear,
regards,
santosh

Similar Messages

  • Restrict GRN Cancellation

    Dear All,
    I want to restrict GRN cancellation option from all the users having MIGO.
    How can I do this?
    Is it possible to restrict this in object level? If so, What is the option for that?
    regards,
    buddhika

    Hi Buddhika,
    Thro' Roles and authorization, you can prohibit authorization for movements 102 & 106 for the specific users.
    This 102/106 authorization may be extended thro' a separate role to the high level authority as required by you.
    If you are not sure on the above, please take this up with your Basis consultant who can do the needful.
    Regards,
    Siva

  • Cancel one billing document through VF11

    Hi Gurus,
    My client does not want to cancel more than one billing document at the same  time. Can I know which user exit can be used to restrict to cancell one billing billing document through VF11.
    Regards,
    Rakesh

    User Exits For Billing
    USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)
    The internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
    USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
    In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMKCV (header fields).
    USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)
    In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMPCV (item fields).
    USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    Depending on the number range, table TVFKD is used to set the billing date (country-specific requirments in Italy).
    USEREXIT_NUMBER_RANGE is automatically deactivated when this user exit is being applied.
    USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
    This user exit is only called when the billing document is created. It is used to provide the header and the item of the new billing document with deviating or additional data.
    USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)
    Printing the item line of a billing document can be supplemented or changed.
    USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Printing the header line of a billing document can be supplemented or changed.
    User exits in program RV60AFZD
    Short descriptions of the user exits are contained in the program:
    USEREXIT_RELI_XVBPAK_AVBPAK
    USEREXIT_NEWROLE_XVBPAK_AVBPAK
    USEREXIT_NEWROLE_XVBPAP_AVBPAK
    User exits for program SAPLV60B (Interface to accounting):
    EXIT_SAPLV60B_001: Change the header data in the structure acchd
    EXIT_SAPLV60B_002: Change the customer line (accit and accccr)
    EXIT_SAPLV60B_003: Change the customer line in costing
    EXIT_SAPLV60B_004: Change a GL account item (accit and acccr)
    EXIT_SAPLV60B_005: User exit for accruals
    EXIT_SAPLV60B_006: Change the control line (accit and acccr)
    EXIT_SAPLV60B_007: Change the installment plan
    EXIT_SAPLV60B_008: Change the transfer structure acccr, accit and acchd
    EXIT_SAPLV60B_0011: Change the parameter for cash account determination or reconciliation account determination
    Regards,
    Raj

  • MIRO posted with cancelled GR

    Hello,
    The scenario is we have created GRN (From 101 Movement) and cancelled same due to some reason. Parked invoice should not be created in reference of cancelled document.
    We can see same in EKBE as per attached snapshot
    Same time we don’t have tick mark on RevGR Desp.IR in SPRO & check on GR based Invoice Verification in PO.  So curious to know how it happened and please let us know how to restrict the posting of park invoice (Should not be posted if reference GR has been canceled) or restrict the cancellation of GR if parked invoice is created for this GR.
    Regards,
    Vivek Kumar

    Hi,
       Go to OMRM transaction and maintain the message M8 088 as error message as shown below:
       Now, system wont allow to post the IR if GR is reversed. You may test the scenario and revert back.
    Regards,
    AKPT

  • Control Excise invoice cancellation

    Hi All
    Our Business process is Proforma invoice -
    Excise invoice -
    Commercial invoice (Pass to accounting )
    Problem - After generating Commercial invoice system is allowing to cancel Excise invoice through J1IH or J1IIN with out checking commercial invoice ..
    We need the system to check Commercial invoice at the time of cancelling Excise invoice .
    Is there any user exit or Badi to control the Cancellation of Excise invoice if commercial invoice exists

    Dear Marathanda,
    CIN is not a statdard SAP offering, It has been built for India requirements and that is the reason why excise Invoice doesn't show up in the document flow..like SO, Del, Invoice..which gets updated in Table VBFA. and that is the reason why there is no check at Excise Invoice cancellation level that if commercial Invoice exists then cancellation should not be allowed.  there is one more factor for that, in many business scenarios we are creating Excise Invoice after the commercial Invoice and in many we are creating after delivery..say at the time of despatch of goods from factory premises or Stock Transfer Order so it's a tricky situation.
    In your case, the commercial invoice is getting generated after the Excise Invoice i.e.with Excise Invoice is getting generated with ref to the pro forma Invoice and then you want to restrict the cancellation of the Excise Invoice then first you need to check the Internal Number created at the time of Excise invoice, that number will give you the billing reference number (of pro forma Invoice). now from that billing document (pro forma Invoice) check in table VBFA , enter that precceding document number and and item number along with subseqent document number catagory as "M" It will give you the Commercial Invoice Number.  you can put your restriction there.
    Thanks,
    N

  • How to delete the duplicate data  from PSA Table

    Dear All,
    How to delete the duplicate data  from PSA Table, I have the purchase cube and I am getting the data from Item data source.
    In PSA table, I found the some cancellation records for that particular records quantity  would be negative for the same record value would be positive.
    Due to this reason the quantity is updated to target but the values would summarized and got  the summarized value  of all normal and cancellation .
    Please let me know the solution how to delete the data while updating to the target.
    Thanks
    Regards,
    Sai

    Hi,
    in deleting the records in PSA table difficult and how many you will the delete.
    you can achieve the different ways.
    1. creating the DSO maintain the some key fields it will overwrite the based on key fields.
    2. you can write the ABAP logic deleting the duplicate records at info package level check with the your ABAPer.
    3.you can restrict the cancellation records at query level.
    Thanks,
    Phani.

  • Disgust and Exasperation with BT "Customer Service...

    I am posting this here as really a final attempt to see if anything helpful will actually be done by BT, but I think also as more of a warning to others, as I truly have ben a “victim” of their so called customer service.
    To make clear, I don’t really use my landline, the only reason that I even have a landline is for my broadband which I get from another supplier, as I need this for work, it is rather essential, so when there is a problem with the line it causes me great stress as it threatens my ability to work and make money and pay bills etc. Generally the only time I use the phone is if I have to call a free phone number or a number which is chargeable from a mobile.
    Over a year ago now, back in July 2011, I had just finished dealing with someone from BT’s head office as I had been forced to go there due to surprise surprise BT not adequately dealing with a complaint, that time due to charges on my bill for calls I hadn’t made. The man I was speaking to, fixed all the problem, re-set up my quarterly direct debits and said if there were ever any issues again to come straight back to him.
    Cut to the end of August this year. I happened to pick up the phone to try and call a free phone number when I discovered that the phone could not make outgoing calls. At this point I have had NO communication with BT of ANY kind, calls, emails, texts or letters. Since dealing with their head office the previous year. When I eventually get through to someone, Im informed that the line has been restricted due to non payment of the bill. I asked if there has been a problem with the most recent payment or has a payment bounced and I am informed that in fact BT haven’t taken a payment in a year!!!!! I ask how this is possible, and also how has no one from BT got in contact with me about it, I mean they are supposed to be a Communications company, yet they seem to be severely lacking in communication, as the only reason I knew there was a problem was that I happened to pick up my phone. After speaking to around 3 different people in one of BT’s non English as a first language speaking call centres, various promises of a  callback which funnily enough never happened, and god knows how much cost on my mobile phone bill, I finally managed to speak to a manager to try and figure out what had happened and how we could get this fixed.
    I was told by the Manager that they honestly had no idea how firstly they weren’t taking direct debit payments, and secondly how this could have been allowed to run for a year without BT really contacting me about it or even taking any action like restricting the line after the first time they didn’t take a direct debit. I was informed that the balance of the account was over £400. I made the point and the manager agreed that asking a customer to make that kind of payment in one go with no warning, particularly in these circumstances was unacceptable and a solution had to be reached. I said I was happy to pay it off in installments or work something out that way, and the manager also said they would need to check as perhaps some of the bill may have even been supposed to be covered as compensation for part of the previous complaint and due to an oversight may have caused the rest of the year to go untouched, as otherwise she wasn’t really sure how this could have occurred. The Manger then told me that she was going to go away and thoroughly investigate this and speak to the person who had originally set up my direct debit to see if there was any issue there. She told me that she would be looking into this and would then come back to me with the answers to how this happened and also a solution to paying it off. Also while she was looking into this she would restore my line fully, as this was obviously a larger problem at BT’s end. This seemed to be a fair agreement and I told her I looked forward to hearing back from them when they had it sorted out and we could get this cleared up. How foolish I was.
    Cut to the end of last month, I had family members in New York and New Jersey on holiday at the time of the hurricane hitting there. One night I picked up the phone to try and get in touch with them to make sure they were okay and I discovered that once again my line had been restricted for outgoing calls. To be clear here, the last time I had any contact with BT was when speaking to the manager at the end of August as described above. As you can imagine, having my line suddenly restricted and considering the circumstances I was particularly angry. I called in the next day, and despite asking what was going on and what had happened to the investigation into my account, instead all I got was a wall of “The account has been restricted due to non payment”. I would respond, yes I get that, but BT were supposed to be resolving the matter and coming back to me with a way to pay off the balance. Again the only response I would be given was “The account has been restricted due to non payment”. No other information, just that statement. I asked to speak to a  manager and was promised a callback from one. It never materialized. I called back in gain, asking for someone to call me about this as I wanted to get it resolved, was promised one but again never received one.
    Then last Monday, the  12th of November, I finally called in AGAIN at my expense, and spoke to someone who actually seemed to understand the term “Customer Service”. She took the time to look at the notes, saw that I was supposed to have been called about this but that no one had, and that in fact no one had even bothered to look into my account or even do anything with it. In fact I believe I was told that no one had even accessed my account since the last time I spoke with BT, back in August. I asked her if it should really be this hard for me to set up some sort of payment plan, I mean Im asking a company to let me give them money but they don’t seem to be interested. She apologized and said that she was going to personally pass this to her manager, that she would fully investigate the matter, sort it out and come back to me with the solution so we could resolve the matter and put it to bed. She gave me her word that her manager would be calling me within 48 hours. And guess what? That’s right, I never received any call whatsoever.
    So Wednesday this week, 2 days ago, I call back into BT, to ask why this manager hasn’t called me back as promised and what exactly is going on. At this point I get more of the stonewall “The account has been restricted due to non payment”. However also at this point get told that my line is going to be terminated fully this coming Saturday. Again I will point out that no one from BT had communicated this to me in any way, no warning, no letter, text, email or call, from this global telecommunications company. However I am then informed that someone had called and spoke to me the previous Saturday, had given me this information and I had “agreed” with it. I informed the agent that this hadn’t happened, no one from BT had spoke to me on Saturday, and certainly not at the time of 11:30am as it was noted on my account, as I had been out the previous night and had only got in at 8am Saturday morning and went straight to sleep. This didn’t seem to bother them or they just didn’t care as now all that I could get from anyone was “The account has been restricted due to non payment and we are cancelling it on Saturday”. No offer of sorting out to get it paid, no explanation as to what had gone on or why no one had done anything, just  a set response that felt like I was talking to a computer with only one programmed response. I was also informed that my account had now been ring-fenced by a particular department and only they would deal with it and they had no interest in my complaints or issues, they only cared about the bill in full and if not paid then it would be cut of Friday. I pointed out that I had not been given any notification of their action of any kind. The response verbatim I was given was,
     “We don’t have to inform you if we are going to restrict or cancel your account, we can just do it”
    Also they didn’t seem to care about the fact that someone in their company had blatantly lied and put information on my account saying they had spoke to me about this to inform me of it and I had agreed with it!!!!!! So fraudulent activity by BT and they don’t even seem to care. I asked for the details of the person who had left this note as I wished to complain, but was simply brushed a way with
    “Oh we wont give that to you, we will just take care of it internally, you don’t need to worry about it”
    I don’t need to worry about false information being put on my account???? I think BT doesn’t really have an understanding of what concerns the average customer, as someone falsifying information on their account is kind of a HUGE deal. At this point I had tried several times by phone and email to contact the person who had dealt with my account last year and had set up the supposed direct debit but surprise surprise, they never responded to one of my attempts, not even a polite message to say they had received it or that someone else might be dealing with it, nothing, not a peep.
    At the end of the day with my head ready to explode I finally managed to get a number for a manager in BT’s head office. I called their office line and got to speak to them. I explained the above and they were very sympathetic and apologized, and agreed that the way it had been handled was wrong, and asking someone to pay £400+ without any notification and also when they had previously told me they would be sorting out a payment plan was unacceptable. He then told me he would be passing my information to an executive level complaints operative and that they would call me back the very next day to discuss the problem and get it resolved. Again I pointed out that I didn’t think it would be this much hassle for a person who is trying to set up payments to get it sorted. I then left this call, feeling a lot better as it seemed I was finally going to get this sorted.
    However, the next day not only did I not receive a call, but instead I got an email from the person who the matter had been passed to, which simply said, ‘We haven’t had a payment in a year, the direct debits haven’t been taken, we have now sent you duplicate bills so you have a copy of them and you have been informed that the account will cease on Saturday (conveniently leaving out the fact that I was only informed of this the day previously). That was it. I called and left 2 voicemails and responded by email saying that could she please call me as her email has not in any way dealt with any of my issues or even tried to resolve this, and being as one of my biggest issues was that for 3 months I have been constantly calling BT and not one person has been bothered to call me, and the response to my speaking tp a manager at BT’s head office was for her to send me an email that as far as she was concerned I might not even get due to current restrictions on the line. I never received any call from her that day.
    That evening I managed to get back in touch with the person from the head office I had spoken to the previous day. I expressed my exasperation that with a major issue where one of the main problems is BT’s seeming inability to call me back when promised, the person who as supposed to be looking into this hadn’t even bothered to call me to find out the issues and what the complaint details were!!!!! I was again promised that he would get her to call me first thing Friday. She did, I spoke with her about an hour ago, and from the fact that I have felt compelled to write this should tell you exactly how helpful she was.
    When I answered the phone, the first thing she said to me was, “The only reason for this call is merely a courtesy, it doesn’t matter what you say or what has happened it will not effect the decision to terminate your line tomorrow” If that doesn’t just sum up the entire BT experience for the average customer Im not sure what could. Not only that but she claimed that BT had tried to contact me numerous times in regards to this yet mysteriously could not provide me with a single precise date of any of these supposed communications. I was called a “liar” as she said that I must have noticed that the quarterly direct debits hadn’t come out. This is despite the fact that the entire point of a direct debit is that you don’t have to check it, it just pays it, its how I pay my rent, gas, electricity, broadband, mobile phone and I assumed my phone line. Also if there has ever been an issue, the company involved is usually very quick and good about getting in touch, as its money you owe them/ Not BT though it seems. I said that all I’ve been wanting to do for the last 3 months is get something set up to pay this off. However I’m told that they wont do that that they NEVER allow payment plans (a blatant lie)and that even though I’ve only had 2 days notice and even then nothing in writing, they don’t have to inform me anyway, they can just do what they want.
    I tried to point out the effect this would have, I even made it clear that I was perfectly happy that while I was making payments to clear the debt that they could keep the line restricted, but at least still active as otherwise I cant work, I cant make money, I cant pay my rent, I lose my flat, I cant afford to buy food and in essence it royally messes up my life. The response was that they didn’t care and unless the full amount is paid then tough.
    However the most disgusting, Blatant and downright underhanded moment (and bear in mind at this point Ive been openly called a liar) came, when I brought up the fact that there is false information on my account, that someone had lied and put fraudulent information on my account. Her response, and I still have trouble accepting this was
    “Well I don’t think one of our agents would do that, so Im not even going to look into it”.
    Despite the fact that she could confirm that there was no call in under 5 minutes she refused to check it. I asked her to go get the call recording as there wouldn’t be one, and if she wasn’t going to help with my account at least please fix this, someone in BT has put false info on my account and you can check this yourself, it will take you no time, just confirm it. She however again refused to even look into it as she didn’t “THINK” that someone would do that. She also refused to go and listen to or check the calls I had back in August with the manager who had promised to sort out a payment plan and investigate, she refused to check or listen to the call from last Monday where an agent had confirmed that the previous manager was supposed to have done this but hadn’t done anything with it. She refused to do anything in any way that might mean she would have to change the position she had come on the phone to me with and had made clear she didn’t want to change. So in essence this person who is supposed to be trained in customer service and conplaint resolution, didn’t even bother her backside to speak to the customer making a complaint to find out the issues, just decided to check a  few notes, not pay any real attention and sho a complete lack of respect to me. I mean she openly accused me of being a liar on the call and in the same breath refused to go and check if one of BT’s agents had lied themselves about calling me and me “agreeing” to all this. Funny, I was sure one of BT’s slogans was “Its good to talk”
    So here I am, Im told my account will be terminated tomorrow and it seems that no one at BT cares, or even wants to solve the problem. Also they don’t care that this is going to have a massive effect on me and my life, without my internet access I cant work, and if I cant do that then I lose my livelihood, my home, the food on my plate and everything I have. Oh and look, just in time for Christmas. I have been asking for 3 months to get this paid off in a sensible way and for 3 months I have been assured they would take care of it, then fobbed off nad forgotten about. And now BT have made it abundantly clear that they really have no interest or concern for their customers in any way.
    I write this in the vain hope that someone might be able to help me here, however being as there is less than 12 hours till Saturday I doubt it.  I think to be honest its more so that other people are aware of just how shockingly bad BT’s service really is, and that watch yourselves and not only will they lie, abuse, insult and cause you great trauma, but that they will also refuse to accept any responsibility for their words, their action, their promises, and especially their mistakes and faults, as as far as they are concerned they don’t make any, and wont even look into seeing if they have. Truly a company that doesn’t care

    Its quarterly billing, and on direct debit, so the whole point there is it takes care of itself. 
    It aso didnt hurt that as I said, I had no communication from BT in that year, no calls, emails, texts, letters nothing. They sent me no letter to say that there had been a missed payment, they took no action due to this, still something at this point that no one has been able to explain how that happened. Also the direct debit was set up by someon from their executive level complaints deaprtment, so you would think it would work ok. But apparantly 3 months later they didnt take a payment, and kept not taking payments or getting in touch with me about it, they just did notning. Then after a year, again without any warning or notification restricted my line, which as it turnds out was an automatic process, no one had any clue about what had been going on. Hence why the first manager I spoke to about it said she was going to have to investigate how this happened and obviously work out a repaymnt package. Though as par for the course from that point on I never received a callback from BT at any point, I called them often enough, but they never could be bothered it seemed to get back in touch.
    Also my bills arent exaclty large, as I say the only reason I even have a landline is for my internet access for work so its not as if its a huge amount and its every 3 months so not something really on your radar. Again thats the point of DD and what you assume is a professional and capapble company. 

  • When new record instance not firing on Purchase Order form

    I query a purchase order and click on the shipment lines button. There are 2 shipment lines in this example. I am using CUSTOM.pll to inject some specific code to restrict the cancel functionality. One line I want to restrict the cancel functionality and the other line I don't want to restrict. The problem arises when I click between the two rows on the Org or Ship to fields. No event or trigger gets fired that I can see; hence, the CUSTOM.pll code does not get injected and the user will be able to cancel both lines. Any ideas? Thank you for your time,
    -Kevin

    What does that mean? In the middle of creating a record?
    But how come system allows me to go to the 2nd tab when it goes to the last record and doesnt allow me to go the 2nd tab when i create in middle of the record
    Seems that there is some difference in the data of the two records, maybe one record passing validation and the other one not.Validations are same, both the scenario it just creates a new record.

  • Can we dynamically change the file name in dst file in Report 6i, Urgent!

    I am calling dst file to generate file with diffenet format.
    but name of the pdf file should generate dynamically everytime i call dst file,
    is there anyway to set the desname in dst file in Report 6i? Any solution,
    Thanks for your help

    Hi Roshan,
    Create two RKF's one for Normal Invoices and another for canceled invoices, for doing this you should have some characteristics or some status value which will identify the normal and canceled invoice.
    In the Normal Invoice RKF simply restrict the key figure with status restriction as Normal and pull the invoice amount as key figure. And in case of Canceled key figure you will set the status restriction as "canceled" and pull the invoice amount, now for canceled invoice key figure to show the negative value do the following,
    Go to RKF properties of canceled invoice and mark the check box +/- Reverse sign, which will show the negative amount.
    Regards,
    Durgesh.

  • Problem with Ship to and Org fields on Purchase Order form

    I query a purchase order and click on the shipment lines button. There are 2 shipment lines in this example. I am using CUSTOM.pll to inject some specific code to restrict the cancel functionality. One line I want to restrict the cancel functionality and the other line I don't want to restrict. The problem arises when I click between the two rows on Org or Ship to fields. No event or trigger gets fired that I can see; hence, the CUSTOM.pll code does not get injected and the user will be able to cancel both lines. Anyone know of any patches that deal with this problem? Thank you for your time,
    -Kevin

    Hi Pankaj
    You can not set item values on Panes (Tabs) that are not visible. You have to show the pane before you can set the value.
    <b>Here is a sub-routine in VB.Net that you can try:</b>
    Private Sub doSetShip(ByRef oForm As SAPbouiCOM.Form, ByRef sShip As String)
                Dim oEdit As SAPbouiCOM.EditText
                Dim oItem As SAPbouiCOM.Item
                Dim iPane As Integer
                Try
                    oItem = oForm.Items.Item("92")
                    oEdit = oItem.Specific
                    oForm.Freeze(True)
                    iPane = oForm.PaneLevel
                    oForm.PaneLevel = oItem.FromPane
                    oEdit.Value = sShip
                    oForm.PaneLevel = iPane
                    oForm.Freeze(False)
                Catch ex As Exception
                    'Handle your errors
                End Try
    End Sub

  • SQL-Tuning Tips

    Hi there,
    i need some general (i can't supply you with an execution plan) advice in tuning this statement running in 9i CBO mode:
    SELECT
          TAB_C1.CLIENT_NR, TAB_C1.DD_NR, last_day(trunc(TAB_C1.BELEGDAT)),
          0, TAB_C2.VALUE_DIM ,
          nvl(SUM(DECODE(TAB_A.FOLGBU || TAB_A.ZUABNEUT,'0A',0,'1A',0,'0Z',1,'1Z',0) * TAB_C2.VALUE),0) ,
          nvl(SUM(DECODE(TAB_A.FOLGBU || TAB_A.ZUABNEUT,'0A',1,'1A',0,'0Z',0,'1Z',0) * TAB_C2.VALUE),0) ,
          nvl(SUM(DECODE(TAB_A.FOLGBU || TAB_A.ZUABNEUT,'0A',0,'1A',0,'0Z',0,'1Z',1) * TAB_C2.VALUE),0) ,
          nvl(SUM(DECODE(TAB_A.FOLGBU || TAB_A.ZUABNEUT,'0A',0,'1A',1,'0Z',0,'1Z',0) * TAB_C2.VALUE),0) ,
          0 ,max(TAB_C1.ROWSEQ * 1000) + TAB_C2.BLENDTYPE * 100 + TAB_C2.VALUE_DIM
      FROM TAB_C1,
           TAB_A,
           TAB_C2,
           TAB_C3,
           TAB_B
    WHERE TAB_C1.ACC_TYPE = 'N'
           AND TAB_C1.CANCEL = 0
           AND TAB_A.CLIENT_NR = TAB_C1.CLIENT_NR
           AND TAB_A.ACC_MODE = TAB_C1.ACC_MODE
           AND TAB_C3.CLIENT_NR = TAB_C1.CLIENT_NR
           AND TAB_C3.ACC_TYPE = TAB_C1.ACC_TYPE
           AND TAB_C3.ACC_NR = TAB_C1.ACC_NR
           AND TAB_C3.POS = TAB_C1.POS
           AND TAB_C3.ACC_DAT = TAB_C1.ACC_DAT
           AND TAB_C2.CLIENT_NR = TAB_C1.CLIENT_NR
           AND TAB_C2.ACC_TYPE = TAB_C1.ACC_TYPE
           AND TAB_C2.ACC_NR = TAB_C1.ACC_NR
           AND TAB_C2.POS = TAB_C1.POS
           AND TAB_C2.ACC_DAT = TAB_C1.ACC_DAT
           AND TAB_B.CLIENT_NR = TAB_C2.CLIENT_NR
           AND TAB_B.AMOUNT_KEY = TAB_C2.VALUE_DIM
           AND TAB_B.AMOUNT_TYPE = 0
    GROUP BY TAB_C1.CLIENT_NR,
              releasetype,
              releaseid,
              releasegrp,
              releaseseq,
              last_day(trunc(TAB_C1.BELEGDAT)),
              blendtype,
              VALUE_DIM;
    Table           Rows     PK
    TAB_A          300     CLIENT_NR, ACC_MODE
    TAB_B          600     CLIENT_NR, AMOUNT_KEY
    TAB_C1          200.000     CLIENT_NR, ACC_TYPE, ACC_NR, POS, ACC_DAT
    TAB_C2          1 Mio.     CLIENT_NR, ACC_TYPE, ACC_NR, POS, ACC_DAT, COL_BP, VALUE_DIM, COL_BT
    TAB_C3          350.000     CLIENT_NR, ACC_TYPE, ACC_NR, POS, ACC_DAT, COL_RI, COL_RT, COL_RG, COL_RS, COL_RLIn my opinion i should try to avoid the function calls (nvl(sum...), but i dont't have an idea how to realize this the best way. Maybe you can give me some advice in solve this or point me out some other options to improve performance. The view is used to fill a table.
    Thank you in advance
    Kind regards
    Matthias

    I would be really surprised if changing anything in the select list would improve performance much. The Oracle built-in functions are for the most part about as fast as selecting the column without using a function.
    I would concentrate my efforts on the from and where parts, which is the part that causes all of the I/O, which is generally the most expensive and time consuming part of the query. Without looking too closely at your query, and without knowing anything about your data, I notice that tab_b and tab_c3 are not used in your select list, and only tab_b has a selective predicate against it. Are you sure you need these two tables?
    Can you add more selective predicates against some or all of the tables without changing the results of the query? For example, does the tab_b.amount_type = 0 imply anything about perhaps a date range or account range in the other tables.
    You say that
    the restrictions:
    TAB_C1.CANCEL = 0
    TAB_B.AMOUNT_TYPE = 0
    have very low selectivity so that indexing one of these columns seems to be not very helpfulbut you also have a predicate on TAB_C1.ACC_TYPE = 'N' AND TAB_C1.CANCEL = 0. Is that combination more selective?
    The list goes on, but as others have said, without more information we are only guessing.
    John

  • Whr we do the business completion other than in IW32

    Dear PM Gurus,
    my client requirement is Accounts / Finance departments do the Settlement for TECO orders, after settlement clients requires Business completion should done by Accounts department. How i have to give this authorization i know CO99 which should used to Collective Closing of the orders. Is there any other t.code ? In IW32 we can give authorization but is there any choice to operate only Business completion action only? is it possible can we restrict for other activities? and one more thing i want to restrict to cancel the TECO and Business completion is it possible ? if possible in which way we can restrict this functionality? its mandatory for my business.
    thanks in advance to all PM Experts
    regards
    jalu

    hi
    create one role with following values and assign to finance users.it will allow only to do completion.also check with your securiy team as well if anything missing.
    Authorization object:I_VORG_ORD(PM: Business Operation for Orders)
    Field name:BETRVORG
    Field value-BABS(Complete)

  • IPad still locked with passcode after restoring from computer

    I set a restrictive passcode on my iPad, bought an iPad 2 and moved my content from iTunes to the new iPad. Now I can't access the passcode restrictions to cancel the passcode. I have already tried a full restore from my computer/iTunes. Is there a way to clear the passcode through a "backdoor"?

    You can unlock it on another computer though the content will be wiped and I think that you need to put it into DFU mode first e.g. post https://discussions.apple.com/message/15385719#15385719 in thread https://discussions.apple.com/message/15385641#15385641
    From http://support.apple.com/kb/HT1212 :
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.

  • Is there any Possibility for Reversing Invoice Validation

    Dear Members
    By mistakenly invoice validation program is executed. My doubt is there any Possibility to Reverse Invoice Validation.
    Regards
    Padarthy
    Edited by: padarthy on Oct 23, 2009 11:06 AM

    Hi,
    Please see if these documents help.
    Note: 309030.1 - Is there Any Restrictions To Cancelling Invoices That Are Partially Accounted And Matched To PO?
    Note: 729985.1 - R12: How Do You Reverse PO Matched, Invoice Distributions?
    Note: 580014.1 - R12 Invoices FAQs
    Note: 579970.1 - R12 Invoice Matching FAQs
    Regards,
    Hussein

  • After installing Firefox then closing it, I cannot open it, PC says it has been cancelled due to restrictions on my computer

    I have run Firefox for over a year now. However I ended up with various pop-ups recently though they were easy enough to remove and didn't effect Firefox in any obvious way. In the past few days every time I have attempted to open Firefox, even right-clicking on the .exe file a warning pops-up saying "the operation has been cancelled due to restrictions in effect on this computer. please contact your system administrator".
    I uninstalled and reinstalled Firefox and it worked fine, only to return to that warning message after I closed and re-opened it. This has also effected Google Chrome in the exact same way even though I never owned Chrome until all this business began. Internet Explorer, which I'm on now has suffered no problems.

    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • Keyboard no longer works in finder

    my keyboard works in any application except finder, mouse still works, just can't type anything, such as re-naming a folder. Dual 1GHz Mirror   Mac OS X (10.4.3)  

  • Fans Wont Turn On

    The fans on my macbook lately seem to not be turning on at all. My computer gets very hot and most of the time just turns off totally without any warning and it takes some tries to get it back on. I installed smc fan control to try and fix it and eve

  • How to call Plsql function in discoverer

    Hello, Can anyone tell me how to call plsql fuunction in Oracle Business Intelligence Desktop Discoverer? what i was doing here is i am able to register my function in Administration but i dont know when i need to make call and where i need to pass p

  • Isnumeric function is giving wrong output

    please check the code below. before converting I am validating the value is isnumeric or not. The Logic is giving isnumeric = 1 and when i am trying to convert to numeric it is giving me the error. declare @CustPhone varchar(max) set @CustPhone = '30

  • How to display paragraph marks in a JEditorPane?

    Hi guys I'm looking for a way to to display contol chars such as paragraph marks or witespaces in a JEditorPane. I'm thinking about the way word processing software does it. You know, these inverted "P"s or dots for whitespaces. I didn't stumble acro