PO cancelled even there is a partial quanitiy billed

Dear All
i have PO with Quantity 10 and received it then i billed it , after that the user's want to return the PO , and cancel it .
they did it .but what i want to disable the cancel from the PO if there is a billed quantity .
any help
best regards
Tareq Shelbayeh

be careful about what you are about to do
1. If the bill is paid then cancelling a paid PO will become a audit issue. Not sure if oracle will even allow this but since you are thinking personalization it will be a good test
2. If the a return is processed then why not issue do the adjustment using credit or debit memo whichever is applicable.
3. what about inventory -- the product is either returned or received (partial in your case) and now you are cancelling the PO lines that is tied to this inventory txn. this may again become an audit issue.
Perhaps I am over thinking it but wanted to make sure the implications are discussed.
Thanks

Similar Messages

  • Query optimization - Query is taking long time even there is no table scan in execution plan

    Hi All,
    The below query execution is taking very long time even there are all required indexes present. 
    Also in execution plan there is no table scan. I did a lot of research but i am unable to find a solution. 
    Please help, this is required very urgently. Thanks in advance. :)
    WITH cte
    AS (
    SELECT Acc_ex1_3
    FROM Acc_ex1
    INNER JOIN Acc_ex5 ON (
    Acc_ex1.Acc_ex1_Id = Acc_ex5.Acc_ex5_Id
    AND Acc_ex1.OwnerID = Acc_ex5.OwnerID
    WHERE (
    cast(Acc_ex5.Acc_ex5_92 AS DATETIME) >= '12/31/2010 18:30:00'
    AND cast(Acc_ex5.Acc_ex5_92 AS DATETIME) < '01/31/2014 18:30:00'
    SELECT DISTINCT R.ReportsTo AS directReportingUserId
    ,UC.UserName AS EmpName
    ,UC.EmployeeCode AS EmpCode
    ,UEx1.Use_ex1_1 AS PortfolioCode
    SELECT TOP 1 TerritoryName
    FROM UserTerritoryLevelView
    WHERE displayOrder = 6
    AND UserId = R.ReportsTo
    ) AS BranchName
    ,GroupsNotContacted AS groupLastContact
    ,GroupCount AS groupTotal
    FROM ReportingMembers R
    INNER JOIN TeamMembers T ON (
    T.OwnerID = R.OwnerID
    AND T.MemberID = R.ReportsTo
    AND T.ReportsTo = 1
    INNER JOIN UserContact UC ON (
    UC.CompanyID = R.OwnerID
    AND UC.UserID = R.ReportsTo
    INNER JOIN Use_ex1 UEx1 ON (
    UEx1.OwnerId = R.OwnerID
    AND UEx1.Use_ex1_Id = R.ReportsTo
    INNER JOIN (
    SELECT Accounts.AssignedTo
    ,count(DISTINCT Acc_ex1_3) AS GroupCount
    FROM Accounts
    INNER JOIN Acc_ex1 ON (
    Accounts.AccountID = Acc_ex1.Acc_ex1_Id
    AND Acc_ex1.Acc_ex1_3 > '0'
    AND Accounts.OwnerID = 109
    GROUP BY Accounts.AssignedTo
    ) TotalGroups ON (TotalGroups.AssignedTo = R.ReportsTo)
    INNER JOIN (
    SELECT Accounts.AssignedTo
    ,count(DISTINCT Acc_ex1_3) AS GroupsNotContacted
    FROM Accounts
    INNER JOIN Acc_ex1 ON (
    Accounts.AccountID = Acc_ex1.Acc_ex1_Id
    AND Acc_ex1.OwnerID = Accounts.OwnerID
    AND Acc_ex1.Acc_ex1_3 > '0'
    INNER JOIN Acc_ex5 ON (
    Accounts.AccountID = Acc_ex5.Acc_ex5_Id
    AND Acc_ex5.OwnerID = Accounts.OwnerID
    WHERE Accounts.OwnerID = 109
    AND Acc_ex1.Acc_ex1_3 NOT IN (
    SELECT Acc_ex1_3
    FROM cte
    GROUP BY Accounts.AssignedTo
    ) TotalGroupsNotContacted ON (TotalGroupsNotContacted.AssignedTo = R.ReportsTo)
    WHERE R.OwnerID = 109
    Please mark it as an answer/helpful if you find it as useful. Thanks, Satya Prakash Jugran

    Hi All,
    Thanks for the replies.
    I have optimized that query to make it run in few seconds.
    Here is my final query.
    select ReportsTo as directReportingUserId, 
    UserName AS EmpName, 
    EmployeeCode AS EmpCode,
    Use_ex1_1 AS PortfolioCode,
    BranchName,
    GroupInfo.groupTotal,
    GroupInfo.groupLastContact,
    case when exists
    (select 1 from ReportingMembers RM
    where RM.ReportsTo =  UserInfo.ReportsTo
    and RM.MemberID <> UserInfo.ReportsTo
    ) then 0  else UserInfo.ReportsTo end as memberid1,
    (select code from Regions where ownerid=109 and  name=UserInfo.BranchName) as BranchCode,
    ROW_NUMBER() OVER (ORDER BY directReportingUserId) AS ROWNUMBER
    FROM 
    (select distinct R.ReportsTo, UC.UserName, UC.EmployeeCode,UEx1.Use_ex1_1,
    (select top 1 TerritoryName 
    from UserTerritoryLevelView
    where displayOrder = 6
    and UserId = R.ReportsTo) as BranchName,
    Case when R.ReportsTo = Accounts.AssignedTo then Accounts.AssignedTo else 0 end as memberid1
    from ReportingMembers R
    INNER JOIN TeamMembers T ON (T.OwnerID = R.OwnerID AND T.MemberID = R.ReportsTo AND T.ReportsTo = 1)
    inner join UserContact UC on (UC.CompanyID = R.OwnerID and UC.UserID = R.ReportsTo )
    inner join Use_ex1 UEx1 on (UEx1.OwnerId = R.OwnerID and UEx1.Use_ex1_Id = R.ReportsTo)
    inner join Accounts on (Accounts.OwnerID = 109 and Accounts.AssignedTo = R.ReportsTo)
    union
    select distinct R.ReportsTo, UC.UserName, UC.EmployeeCode,UEx1.Use_ex1_1,
    (select top 1 TerritoryName 
    from UserTerritoryLevelView
    where displayOrder = 6
    and UserId = R.ReportsTo) as BranchName,
    Case when R.ReportsTo = Accounts.AssignedTo then Accounts.AssignedTo else 0 end as memberid1
    from ReportingMembers R
    --INNER JOIN TeamMembers T ON (T.OwnerID = R.OwnerID AND T.MemberID = R.ReportsTo)
    inner join UserContact UC on (UC.CompanyID = R.OwnerID and UC.UserID = R.ReportsTo)
    inner join Use_ex1 UEx1 on (UEx1.OwnerId = R.OwnerID and UEx1.Use_ex1_Id = R.ReportsTo)
    inner join Accounts on (Accounts.OwnerID = 109 and Accounts.AssignedTo = R.ReportsTo)
    where R.MemberID = 1
    ) UserInfo
    inner join 
    select directReportingUserId, sum(Groups) as groupTotal, SUM(GroupsNotContacted) as groupLastContact
    from
    select distinct R.ReportsTo as directReportingUserId, Acc_ex1_3 as GroupName, 1 as Groups,
    case when Acc_ex5.Acc_ex5_92 between GETDATE()-365*10 and GETDATE() then 1 else 0 end as GroupsNotContacted
    FROM ReportingMembers R
    INNER JOIN TeamMembers T 
    ON (T.OwnerID = R.OwnerID AND T.MemberID = R.ReportsTo AND T.ReportsTo = 1)
    inner join Accounts on (Accounts.OwnerID = 109 and Accounts.AssignedTo = R.ReportsTo)
    inner join Acc_ex1 on (Acc_ex1.OwnerID = 109 and Acc_ex1.Acc_ex1_Id = Accounts.AccountID and Acc_ex1.Acc_ex1_3 > '0')
    inner join Acc_ex5 on (Acc_ex5.OwnerID = 109 and Acc_ex5.Acc_ex5_Id = Accounts.AccountID )
    --where TerritoryID in ( select ChildRegionID  RegionID from RegionWithSubRegions where OwnerID =109 and RegionID = 729)
    union 
    select distinct R.ReportsTo as directReportingUserId, Acc_ex1_3 as GroupName, 1 as Groups,
    case when Acc_ex5.Acc_ex5_92 between GETDATE()-365*10 and GETDATE() then 1 else 0 end as GroupsNotContacted
    FROM ReportingMembers R
    INNER JOIN TeamMembers T 
    ON (T.OwnerID = R.OwnerID AND T.MemberID = R.ReportsTo)
    inner join Accounts on (Accounts.OwnerID = 109 and Accounts.AssignedTo = R.ReportsTo)
    inner join Acc_ex1 on (Acc_ex1.OwnerID = 109 and Acc_ex1.Acc_ex1_Id = Accounts.AccountID and Acc_ex1.Acc_ex1_3 > '0')
    inner join Acc_ex5 on (Acc_ex5.OwnerID = 109 and Acc_ex5.Acc_ex5_Id = Accounts.AccountID )
    --where TerritoryID in ( select ChildRegionID  RegionID from RegionWithSubRegions where OwnerID =109 and RegionID = 729)
    where R.MemberID = 1
    ) GroupWiseInfo
    group by directReportingUserId
    ) GroupInfo
    on UserInfo.ReportsTo = GroupInfo.directReportingUserId
    Please mark it as an answer/helpful if you find it as useful. Thanks, Satya Prakash Jugran

  • My ipad mini doesn't have a web browser! Help. I can't access the internet or iTunes or the app store. The web browser icon isn't even there.Anyone know what to do?

    My ipad mini doesn't have a web browser! Help. I can't access the internet or iTunes or the app store. The web browser icon isn't even there.Anyone know what to do?

    I'd maybe try doing a search for Safari on your iPad first (swipe to the left to search). If it shows up in that search you can go to Settings > General > Reset and choose 'reset home screen layout' which will put it back where it would be by default.
    All else fails? Restore it.

  • Camera roll usage is 6.9 GB even there is no photo there , it is happen after i dropped my iPhone , i don't use iCloud also .

    camera roll usage is 6.9 GB even there is no photo there , it is happen after i dropped my iPhone , i don't use iCloud also .

    Never mind. I got it working now

  • HT201250 I don't store any files on my computer, I store them on a hd. Can I restore docs from my hard drive if they were backed up using time machine? And will it restore if the hd isn't even there? Like what if it got stolen or destroyed.

    I don't store any files on my computer, I store them on a hd. Can I restore docs from my hard drive if they were backed up using time machine? And will it restore if the hd isn't even there? Like what if it got stolen or destroyed.

    ehphotograph wrote:
    Can I restore docs from my hard drive if they were backed up using time machine?
    Yes.  
    And will it restore if the hd isn't even there? Like what if it got stolen or destroyed.
    Also yes.
    Directly-connected external drives (ie, USB, FireWire, Thunderbolt) are not backed-up by default.  You must remove them from the exclusion list in Time Machine Preferences > Options to get them backed-up.  (Network drives cannot be backed-up.)
    And they must be formatted for a Mac -- any variation of Mac OS Extended.
    If the drive is connected, you can browse or restore normally -- just go to the folder or document in question and Enter Time Machine.
    If the drive is not connected, it's a bit different.  See #E3 of Time Machine - Troubleshooting.
    Message was edited by: Pondini

  • No error messages by Syntax Checker, even there a lot

    Our Design Editors (9.0.2.94.11) Syntax Checker gives never an error message, not even there are syntax errors. What can I do?

    Check your wireless router. For same strange reason my router locks up every time an iphone update is installed. To fix it, I have to disconnect it (Linksys WRT54G v.3) from my cable modem and clear all of its settings by holding in its reset button. I then have to log onto the router with the old default password (the one I set was cleared when I pressed reset) and then reset my wireless security, name, etc.. Then I restart my PC that is connected to the router and everything works again. iPhone and laptop can now connect to wireless.

  • Resultset next() return true even there's not record

    Here's the code:
    public Object getColumn(String s) throws SQLException {
    Object o = null;
    ResultSet r = db.select(s); // a db rpocess return a resulset
    int Columns = r.getMetaData().getColumnCount();
    if (Columns == 1) {
    Vector v = new Vector();
    while (r.next()) {
    v.add(r.getString(1));
    o = v;
    } else if (Columns == 2) {
    Hashtable h = new Hashtable();
    while (r.next()) { // <----problem in this line =============
    h.put(r.getString(1), ( (r.getString(2) == null) ? "" : r.getString(2)));
    o = h;
    return o;
    j2se 1.4.1 (with the Jbuilder8) and hsqldb 1.7.1
    actually, it works if we got records in the resultset, but the next() is true even there's not record returned.

    Nothing to do with your problem but this line could cause other problems
    h.put(r.getString(1), ( (r.getString(2) == null) ? "" : r.getString(2)));You are retrieving the same column twice. Some JDBC drivers throw an exception if you try doing this.

  • How to continue the loop even there is an error in plsql

    Hi Folks,
    I am using function in my sql query.i want to write this query in a cursor loop.
    the thing is function is not updatable and it errors out for few records. now when i use the same function in cursor and loop it,it will stop the loop when it errors out.
    can you guys please help me out if there is any way to continue the loop even there is an error in plsql .
    My Function is as below:
    Decalre
    Cursor
    select ***********************;
    begin
    loop
    fetch********************
    x:=function(**);
    end loop;
    Guys please help me on this. your help is high ly appreciated.
    Thanks!!
    Karthik T

    Decalre
    Cursor
    select ***********************;
    begin
    loop
      BEGIN
      fetch********************
      x:=function(**);
      EXCEPTIONS
        WHEN your_error THEN
          log_error;
      END;
    end loop;

  • I been using my iphone from japan for a month now which my sister gave to me even theres no sim inserted in it, but after downloading ios 6.0.1 i cant activate it even i connect it to itunes, it says i have to insert a sim in it....is there a possible way

    i been using my iphone4 from japan for a month now which my sister gave to me even theres no sim inserted in it, but after downloading ios 6.0.1 i cant activate it even i connect it to itunes, it says i have to insert a sim in it....is there a possible way that i can activate it even theres no sim inserted in it?pls help....

    No. All GSM iPhones require a valid sim be in the phone in order to activate. Until you get a valid sim, all you'll be able to do is look at it & make emergency calls.

  • Why cannot create delivery for Sales Ord in SAP, even there is enough stock

    Hello
    I am trying to create delivery for sale order. I did for some lines. But it shows meassage "An item with no delivery quantity is not permitted. Item will be deleted." for the other lines, even there is enough stock.
    Appreciate your comments:)
    BR
    Happy

    Hi Happy,
    Please refer following link for better understanding the concept and functionality :--
    Re: Schedule line control in sales order
    http://www.sapfans.com/forums/viewtopic.php?f=5&t=127586
    Re: Delivery without Sales order? If yes,how can we track those materials?
    Regards
    Rajesh

  • ITunes not even recognizing that my iPod is even there

    I connect my iPod classic to iTunes and it doesn't even recognize it is even there, but it shows in the iPod display screen that it is connected. Need to try to do a restore on the iPod, but cannot if iTunes doesn't even show that it is there. Any suggestions?

    Hello afirkowski,
    And welcome to Apple Discussions by the way,
    What have you tried so far? Have you tried using a different USB cable if at all possible? Tried plugging into different USB ports located directly on your PC? Maybe try resetting the iPod with it still connected to your computer. To do this, toggle the hold switch on and off, then press and hold the Select (Center) and Menu buttons together until the Apple logo appears.
    Otherwise, another suggestion, would be to force the iPod into *Disk Mode*. Doing so may at least help your iPod show up as a mounted drive in "My Computer" and possibly iTunes as well.
    [Putting iPod into Disk Mode|http://support.apple.com/kb/ht1363]
    Lastly, I would continue working through the other recommended troubleshooting steps for this situation outlined in this Apple support document.
    http://support.apple.com/kb/ts1369?viewlocale=en_us
    B-rock

  • Mail don't notified me even there's new mail.

    I don't know why Mail don't notified me even there's new mail in my inbox. For example, normally, when there's a new mail in my inbox, in the home screen on the mail icon, there's a red spot on the top right corner that indicates the number of new mail that I own. But in this case, this is not happened.

    Go To *Settings>Mail, Contacts, Calendar>*. Make sure that *Fetch New Data* is set to Push. Make sure Push is set to On and then set the interval to check the emails.
    Axel F.

  • Okay this is really making me mad!!! U tell me to go to itunes to download 10.5 abd then i go to itunes and its no even there i have checked! Get it Straight!

    okay this is really making me mad!!! U tell me to go to itunes to download 10.5 abd then i go to itunes and its no even there i have checked! Get it Straight! Come on Itunes i thought that u were better than that! Really its ******* me off! becuase i want to download pictures and songs  on to my iphone!

    You can download the current version of iTunes (i.e. 10.6.3) on your computer from here : http://www.apple.com/itunes/download/
    If you already have iTunes installed on your computer then you should be able to check if there are any updates available for it via 'Help > Check For Updates'

  • Deficit in quantity even there are quantity

    Dear Experts,
      this messgae apper for me :
    Deficit of BA Unrestr. prev. 1 EA : BRIGALX 1000 1003 LOT11-0002
    even there is stock for it and there are no sales order for it i even checked the stock requirment list and every thing is fine , I even looked at the table MCHB and found the entry of the stock and the batch
    Please Advice
    Best Reagrds

    HI,
    Check in MMBE whether it is returns material stock.If it is return material it still show as unrestricted
    use but it will be returns item.
    regards
    murugan

  • My iphone cannot get signal even there is a signal onsite

    Any suggestion what to do regarding the unit that cannot detect any signal from the carrier., even there is a strong signal in the area....

    Hey gonzalofad,
    I understand you are having cellular network-related issues with your iPhone 3GS. The following article is going to provide the best troubleshooting steps:
    iPhone: Troubleshooting No Service
    http://support.apple.com/kb/TS4429
    Symptoms
    iPhone may display one of the following symptoms in the status bar:
    - Displays No Service or Searching in an area of good coverage
    - Does not regain service when returning to an area of coverage
    Resolution
    If you encounter any of the above symptoms on your iPhone, try these steps to attempt to resolve the issue. Test after each step.
    1. Try turning iPhone off and then on again.
    2. Remove the SIM card and verify that it is a valid, carrier-manufactured SIM. Also verify that it is not damaged, worn, or modified. Then reinsert it.
    3. Check for a carrier settings update. Tap Settings > General > About while connected to a Wi-Fi network. If an update is available, a prompt should appear soon. If Wi-Fi is not available, connect your device to iTunes.
    4. Update your iPhone to the latest version of iOS.
    5. Restore the iPhone.
    If you're still experiencing No Service issues, contact your carrier to check for any network or account issues that could cause this issue.
    Thanks,
    Matt M.

Maybe you are looking for

  • Can FDM handle more than one year at a time?

    Hi, I'm trying to load a multi-load file through FDM with the target being an Essbase cube and the source being a text file. The file is for 36 months which crosses 3 years. The problem is Oracle support is saying FDM can only handle one calendar yea

  • CSS VIP Issues (Source Group with 'add destination service')

    I have a pair of Cisco CSS 11503 boxes with a ap-kal-pinglist applied to both virtual routers, as a Critical Service, on the Primary CSS.  When a link goes down, the VRRP fails over all traffic to the Secondary, as expected, but there is an issue wit

  • Where are the photos in the organizer located?

    When I put photos in the organizer, does the organizer make copies of the originals? Where are they located on the hard drive?

  • Editing in PS CS 5 / re-save edited version back to Aperture problems with image display

    I use Aperture and send images into CS 5 but since latest Aperture update the images don't always display the adjusted version.  A re-start of Aperture is required. Any suggestions appreciated.  Never had any issues before. 

  • CrystalReportViewer13 printing problems

    Hi, Recently I tried to upgrade my asp.net app that was using crystal report viewer 10 to 13 ..I have successfully deployed the ActiveX Control for printing on client machines. In client machines the preview windows looks perfect but when printing th