PO when Finally Closed not releasing funds

In 11.5.9; if we final close a PO using standard "po_actions.close_po" procedure, the PO used to get Finally Closed and corresponding Funds get released.
However, the same does not work in 11.5.10.
I would be glad if anyone can help me in this regard. Please note that we are using encumbrance feature; hence it is a very critical issue.
Thanks,
M. Geethanath
[email protected]

In 11.5.10 PO Final Close process works well only when we invoke PO_ACTIONS.CLOSE_PO procedure by passing PO Header-ID, Line-ID and Line Location-ID.
It is because of below code:
PO_DOCUMENT_FUNDS_PVT.do_final_close(
x_return_status => l_return_status
, p_doc_type => p_doctyp
, p_doc_subtype => p_docsubtyp
, p_doc_level => PO_DOCUMENT_FUNDS_PVT.g_doc_level_SHIPMENT
, p_doc_level_id => p_shipid
, p_use_enc_gt_flag => PO_DOCUMENT_FUNDS_PVT.g_parameter_NO
, p_use_gl_date => PO_DOCUMENT_FUNDS_PVT.g_parameter_NO
, p_override_date => p_action_date
, p_invoice_id => p_origin_doc_id
, x_po_return_code => l_return_code
, x_online_report_id => l_online_report_id
If the above call was to decide on Document Level based on the values held by below variables, it would have been more appropriate.
p_docid (PO Header ID)
p_lineid (PO Line-ID)
p_shipid (PO Line Location-ID)
Example:
IF p_shipid IS NOT NULL THEN
PO_DOCUMENT_FUNDS_PVT.do_final_close(
x_return_status => l_return_status
, p_doc_type => p_doctyp
, p_doc_subtype => p_docsubtyp
, p_doc_level => PO_DOCUMENT_FUNDS_PVT.g_doc_level_SHIPMENT
, p_doc_level_id => p_shipid
, p_use_enc_gt_flag => PO_DOCUMENT_FUNDS_PVT.g_parameter_NO
, p_use_gl_date => PO_DOCUMENT_FUNDS_PVT.g_parameter_NO
, p_override_date => p_action_date
, p_invoice_id => p_origin_doc_id
, x_po_return_code => l_return_code
, x_online_report_id => l_online_report_id
ELSIF p_lineid IS NOT NULL THEN
PO_DOCUMENT_FUNDS_PVT.do_final_close(
x_return_status => l_return_status
, p_doc_type => p_doctyp
, p_doc_subtype => p_docsubtyp
, p_doc_level => PO_DOCUMENT_FUNDS_PVT.g_doc_level_LINE
, p_doc_level_id => p_lineid
, p_use_enc_gt_flag => PO_DOCUMENT_FUNDS_PVT.g_parameter_NO
, p_use_gl_date => PO_DOCUMENT_FUNDS_PVT.g_parameter_NO
, p_override_date => p_action_date
, p_invoice_id => p_origin_doc_id
, x_po_return_code => l_return_code
, x_online_report_id => l_online_report_id
ELSIF p_docid IS NOT NULL THEN
PO_DOCUMENT_FUNDS_PVT.do_final_close(
x_return_status => l_return_status
, p_doc_type => p_doctyp
, p_doc_subtype => p_docsubtyp
, p_doc_level => PO_DOCUMENT_FUNDS_PVT.g_doc_level_HEADER
, p_doc_level_id => p_docid
, p_use_enc_gt_flag => PO_DOCUMENT_FUNDS_PVT.g_parameter_NO
, p_use_gl_date => PO_DOCUMENT_FUNDS_PVT.g_parameter_NO
, p_override_date => p_action_date
, p_invoice_id => p_origin_doc_id
, x_po_return_code => l_return_code
, x_online_report_id => l_online_report_id
END IF;
Anyways, it is not categorized as a Public API; so, no comments…
Please find below sample procedure that can be re-used.
PROCEDURE fclose_po (
p_po_header_id NUMBER,
p_po_line_id NUMBER DEFAULT NULL,
p_reason VARCHAR2,
p_close_date DATE
IS
CURSOR c_shipments
IS
SELECT po_header_id, po_line_id, line_location_id
FROM po_line_locations_all
WHERE po_header_id = p_po_header_id
AND po_line_id = NVL (p_po_line_id, po_line_id);
BEGIN
FOR c1 IN c_shipments
LOOP
IF (NOT (po_actions.close_po (p_docid => p_po_header_id,
p_doctyp => 'PO',
p_docsubtyp => 'STANDARD',
p_lineid => c1.po_line_id,
p_shipid => c1.line_location_id,
p_action => 'FINALLY CLOSE',
p_reason => p_reason,
p_calling_mode => 'PO',
p_conc_flag => 'N',
p_return_code => v_return_code,
p_auto_close => 'N',
p_action_date => p_close_date,
p_origin_doc_id => NULL
THEN
l_status := 'ERROR';
ELSE
l_status := 'SUCCESS';
END IF;
END LOOP;
END fclose_po;

Similar Messages

  • PO Final Close not releasing funds

    In 11.5.9; if we final close a PO using standard "po_actions.close_po" procedure, the PO used to get Finally Closed and corresponding Funds get released.
    However, the same does not work in 11.5.10.
    I would be glad if anyone can help me in this regard. Please note that we are using encumbrance feature; hence it is a very critical issue.
    Thanks,
    M. Geethanath
    [email protected]

    Final close will close once for all, you cannot make any transaction. If it's closed then you can make the transactions.
    Srini C

  • PO when Finally Closed does not release funds

    In 11.5.9; if we final close a PO using standard "po_actions.close_po" procedure, the PO used to get Finally Closed and corresponding Funds get released.
    However, the same does not work in 11.5.10.
    I would be glad if anyone can help me in this regard. Please note that we are using encumbrance feature; hence it is a very critical issue.
    Thanks,
    M. Geethanath
    [email protected]

    In 11.5.9; if we final close a PO using standard "po_actions.close_po" procedure, the PO used to get Finally Closed and corresponding Funds get released.
    However, the same does not work in 11.5.10.
    I would be glad if anyone can help me in this regard. Please note that we are using encumbrance feature; hence it is a very critical issue.
    Thanks,
    M. Geethanath
    [email protected]

  • Billing documents should not be created when it is not released to accounti

    Hi SD gurus,
    In some situation, billing documents are generated but it is not released to accounting which results in mismatch between FI value and SD value. We go to VFX3 and see the list of billing documents and take corrective action.
    Our requirement is that the billing document should not be generated when system is not releasing this billing document to accounting.
    Please suggest a solution for this.
    Regards,
    Senthil.

    Thanks giri.
    For the following reasons, the billing documents are not released to accounting.
    1. If the user wrongly chosen the billing type for the delivery.
    2. After creating condition type, it has to be assigned in COPA. If we forgot to do it, billing doc will not released.
    Our requirement is that if the billing document is not able create accounting document, the billing document itself should not be generated.
    Hope this will be suffice to understand my issue and suggest a suitable solution.
    Points will be rewarded.
    Regards,
    Kumar.

  • Final Invoice not releasing purchase order commitments

    Hi Experts,
    We recently upgraded from 4.6C to ECC6 and have had reports of commitments not longer being released when the Final Invoice is flagged on Service purchase orders.  This is causing many issues since they can no longer flag the last service entry as "Final" because the invoice has already paid.
    Out User's have become dependent on this process so please help.  I have looked in OSS but cannot find anything referring to this issue.
    Any help is greatly appreciated.
    Thank you in advance,
    Stella Cook
    Tesoro Companies Inc.

    Hi Kiran,
    I think that there is some user exit getting called in place where you have issues. Ideally the final invoice should never check the order as the order can be in teco during invoicing.
    I suggest you to debug it using your ABAPer as the signs are of some code inconsistency. The results are different when you directly click the final invoice and click after once seeing the account assignment,
    Regards
    Vivek Singh

  • PS Touch Android does not release memory when closed.

    I have to force closure with Task Manager on my Samsung Note 2 running JB 4.1. Why and when will it be fixed?

    Hi Ignacio,
    Sorry for the lack of information - I had typed more complete description, but had trouble posting it.
    The app is installed on a Samsung Galaxy Note 2 phone that is running Jellybean 4.1.1.
    The only way I can see to exit the application is by using the "back" soft key under the screen on the right. Some apps have an "exit" choice under the "menu" soft key, but that key is not active with PSTouch.
    I see the same issue with Google Chrome. The menu key is active with this app, but it does not have an "exit" choice.
    With both these apps, I have to go to the "Active Apps" tab of the Task Manager to release memory.
    There is one difference with PS Touch. Google Chrome always starts the same way whether or not I release it's memory. With PS Touch, if I release memory after closing with the back key, the next time I start it I get an initial royal blue screen with the PS Touch icon in the middle followed by a second screen with a menu in the middle titled "New Project From". If I exit at that point, it takes two presses of the back key to first close the menu and then exit the program and return to a home screen. If I do not release memory, the next time I start PS Touch, it goes directly to the second screen, but without the "New Project From" menu.
    I hope this gives you the information you need.
                      Pete

  • Error message when posting invoice : Day-end closing not defined

    Hi,
    In our training environment we migrated from FAGLFLEXT to FMGLFLEXT and activated fund management.
    Now when posting an invoice the system provides an error message: "FQ252 Day end closing not defined".
    There is no configuration related to F845 but we are prevented from posting the document due to this error message.
    Any idea of where this could come from and of what need to be done to prevent this from happening?
    Rgds
    Sophie

    Hi Sophie,
    Can you check if you have entries in either PSO43 or PSO43USER tables (can be accessed via F8O2 transaction)?
    Regards,
    Eli

  • How to restrict the user from Closing the PO when it is not matched yet

    Hi,
    Actually PO is finally closed in lines level without matching. Now the problem is how to restrict this in future so that the user can not finally close it when it is not matched.
    Thanks
    Kavya

    Kavya,
    Check the setup of Line Type . Check for Receipt Tolerance on the Line Type . It should not be 100%
    Please let me know if you have any questions
    Thanks
    Navin

  • Why firefox 3.6 downloads all of the files again after restartarting the browser from a website if the "clear history when Firefox closed" is not Enabled?

    We have a corporate website, we officially support FF3, FF4, IE8 and IE9. Our web site is quite big, so we really need browser caching, first time page load is around 15 seconds. With files in the cache getting new page is less than a second.
    Everything works perfect except with FF3. With FF4, IE8, IE9 if we are on the website, clicking everywhere is fast, the page is in the cache. If we restart the browser, it is still fast, it loads files from the cache.
    But with FF3 we have a problem. Every time we restart the browser, it is loading the files again from the server, instead of using the local cache (checked with Firebug). I can reproduce the problem anytime, it is the same with every FF3 instances. I double checked, the "clear history when Firefox closed" option is not enabled.
    Could you advise please how to use the local cache either after browser restart?
    Thank you!
    Chris

    Just read that the default memory storage on FF is set to 5 mbs. You can up that by clicking on tools, advanced and overriding the default and set it to 50 mbs (if you use lots of tabs) or 10 mbs (if you use just a few).
    I open a blank tab and clear the cache periodically, while I am working. I can have several tabs open and watch videos on Youtube, by doing this. Have you cleared your cache?
    Since I have an older computer, I've also used CCleaner for years. I use it often, but always before signing off. You can get it free...search for CCleaner, download from Pirifoam free. I didn't change any of the settings and it clears crap left behind from uninstalling programs, clears all browsers at once of: cookies, history, passwords, etc. I love it!
    I had freezing, before using the "open blank tab, clear the cache" thing. Now I have no problems. Plus, as I said...you can change the default memory usage for FF and that should help too.
    Hope this helps! Good luck! :)

  • When I close and reopen firefox, it restores my tabs, but it restores tabs from hours or days ago, not the ones that were open when I closed the window - why?

    I normally keep my Firefox window open for long periods of time because I have a lot of active tabs. When I close the window and reopen it, I am still able to restore tabs, but as of a few weeks ago, it has stopped restoring the most recent version. Normally, when I would close and reopen, the tabs would be the same ones that were open when I closed the window. Now, it restores to a version from a few days ago instead of the current version. I have to revert to pulling my more recent tabs out of the recent history. I checked my options and I can't figure out any way to control this. How can I fix it so that I can count on my Firefox window to restore the tabs that I actually care about?

    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created
    *http://kb.mozillazine.org/Session_Restore

  • Mail.jar is locked when sending a mail using servlet and not releasing

    Hi everybody,
    The mail.jar is locked in tomcat while sending the first message and not released until the tomcat get restarts.
    the problem is not recorded in any logs.
    1. Please create a servlet that sends mail
    2. Send a mail to any mailid
    3. then after the mail is send please try to delete the mail.jar or please deploy the same servlet again with some small changes (for redeploying take place only a few changes is there - please change any strings a little bit)
    then try to send mail using this servlet will not send mail becoause it will not redployed correctely.
    when i removed Transport.send(msg); from code it works fine. but ??
    please help me to recover from this issue. i don't want to turn on tomcat antiJarlocking and antiresourcelocking to true, becaouse this craete many other problems.
    please help me to recover from this issue.
    Thanks,
    Prasad.N

    hi friend
    I am using advanced version of jdk. i i have used many other jar files like mysqlconnector, logging, commonhttpclient, etc.... the only problem is with mail.jar. that locks are released when its use completed, but the lock holds until tomcat shutdown in mail.jar.
    what may be the reason?
    Thanks,
    Prasad.N

  • Invoice Document not released to Accounting -Period was closed

    Hi,
    SD Invoices are not released to Accounting.Those documents are from previous period and also also those periods were already closed.
    Now what should i do? if i want to release the invoice documents which are created in previous periods.Kindly advice me.
    Thanks
    Supriya

    Hi Supriya,
    Please open previous period for posting. Please follow the given below path:-
    SPRO  Financial Accounting  Financial Accounting Global Settings  Document  Posting Periods  Open and Closed Posting Periods
    Here you need to enter Posting Period Variant name assigned to company code and other detail like account number.
    To know the Posting Period Variant follow this path:-
    SPRO  Financial Accounting  Financial Accounting Global Settings  Document  Posting Periods  Assign Variants to Company Code
    Or else you can take help of some FI guy.
    Regards,
    Anand

  • Premiere Elements 13 issue with the mouse on When I select a clip of video and move to a different place in my time line, Premiere Elements 13, will not release the clip rom the mouse.    The clip follows my mouse movements and goes to other places in my

    Premiere Elements 13 issue with the mouse on MAC OSX Yosemite 10.10.1
    When I select a clip of video and move to a different place in my time line, Premiere Elements 13, will not release the clip from the mouse.
    The clip follows my mouse movements and goes to other places in my time line.
    I try to delete these extra insertions, but the mouse will not release the clip.
    Action I’ve taken: I’ve re-installed Premiere Elements 13. Problem remains.
    This issue has consumed too much of my time and does not go away.  It ruins my video.
    Help please.
    Thanks

    I tried using the Guest Account on my Mac. In the Guest Account, Illustrator works perfect!
    Then I started wondering what processes (tools/tweaks) I run by default on my account. Turned out the problem was called by a little background tool called RightZoom. RightZoom let's the green 'zoom' button always maximize your current window.
    So thanks! Problem solved!

  • Coherence objects not released when undeploying application?

    Hi
    Part of our continuous integration build is deploying our application to a Weblogic server and running some selenium test cases against it. We have usually about 15 builds running each day.
    Our problem is that we seem to be experiencing a memory leak in that process; each new build takes more and more memory until weblogic starts throwing out-of-memory errors (as a workaround we'r restarting weblogic every night).
    After spending some time using a profiler (we'r using YourKit Java Profiler) it appears that the calls to Coherence libraries cause references to our objects not being properly released and GC is not able to get rid of them properly. If the calls to the Coherence libraries are removed teh GC correctly releases all our application objects.
    To confirm this I have created this simle test scenario:
    1. Created an empty web application (war) that has only one class in it:
    package com.test;
    import javax.servlet.ServletContextEvent;
    import javax.servlet.ServletContextListener;
    import com.tangosol.net.CacheFactory;
    public class TestServletContextListener implements ServletContextListener {
         public void contextDestroyed(ServletContextEvent arg0) {
              CacheFactory.shutdown();          
         public void contextInitialized(ServletContextEvent arg0) {}
    2. Modified the web.xml to register the ContextListener:
    <listener>
    <listener-class>com.test.TestServletContextListener</listener-class>
    </listener>
    3. Created empty EAR that has only two libraries in it: coherence.jar & tangosol.jar (version 3.3.1)
    5. included the test web application in the EAR (no other classes, projects or libraries are included; no other configuration settings are adjusted from defaults)
    6. While using the profiler I was performing deployemnt and undeployment of teh EAR against the Weblogic server. With each new deployment a new set of com.tangosol* classes is created. Those classes are not released even when GC is forced from the profiler.
    I'm not able to attach a screenshot from the profiler to this post, but with each redeployment I can see the following objects created (ordered with number of objects created in a descending order):
    com.tangosol.util.Base$ComonMonitor: 1024 new objects
    com.tangosol.run.xml.XmlToken: 16 new Objects
    com.tangosol.util.ListMap: 11 new Objects
    com.tangosol.util.RecyclingLingedList$Node: 5 new Objects
    etc.
    Am I doing something wrong or is there really a problem with the object references not properly released in Coherence?
    thank you
    s.

    Hello Robert
    I have double checked that the two coherence libs don’t exist anywhere on the server class path. I have also tried calling shutdown from preStop instead of postStop but it made no difference.
    (Please note that I'm not really looking for the right place to shutdown Coherence; instead I'm trying to demonstrate that calls to Coherence libraries causes object references not to be released properly. I have chosen to use the shutdown method only because it's nicely visible when it's being invoked and also it is something that our application is calling during shutdowns).
    To make sure that I'm not overlooking something with the Weblogic setup I have tried it with Tomcat:
    1. Downloaded and installed Tomcat 6.0.14
    2. Create new WAR project and put coherence.jar & tangosol.jar in WEB-INF/lib
    3. Created one class:
    package com.test;
    import javax.servlet.ServletContextEvent;
    import javax.servlet.ServletContextListener;
    import com.tangosol.net.CacheFactory;
    public class TestServletContextListener implements ServletContextListener {
         public void contextDestroyed(ServletContextEvent arg0) {
              CacheFactory.shutdown();
         public void contextInitialized(ServletContextEvent arg0) {}
    4. modified web.xml:
    <listener>
         <listener-class>com.test.TestServletContextListener</listener-class>
    </listener>
    5. deployed the WAR to the tomcat server with profiler connected to it
    After that I have used Tomcat Web Application Manager (http://localhost:8088/manager/html/list) to Stop & Start the application repeatedly.
    The behavior is the same as on weblogic. Each stop of the application creates another set of tangosol objects that do not get released by GC.
    Am I correct when I say that there is some problem with the Coherence libraries causing memory leaks by not allowing GC to release old objects?
    Thank you
    s.

  • [svn] 2692: Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out .

    Revision: 2692
    Author: [email protected]
    Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
    Log Message:
    Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-227
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
    blazeds/branches/3.0.x/qa/build.xml

    Revision: 2692
    Author: [email protected]
    Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
    Log Message:
    Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-227
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
    blazeds/branches/3.0.x/qa/build.xml

Maybe you are looking for

  • The 0co_om_opa_6 ip in the process chains takes long time to run

    Hi experts, The 0co_om_opa_6 ip in the process chains takes long time to run around 5 hours in production I have checked the note 382329, -> where the indexes 1 and 4 are active -> index 4 was not "Index does not exist in database system ORACLE"- i h

  • Videos converted to MP4: can't get them onto iPod

    I have converted videos from YouTube via tubeget.com to a mp4 format using my PC.  They appear in the Documents --> Videos folder on the PC, a Windows Media program.  I can see the files in iTunes when I try to add them to iTunes using the "Add file

  • Adobe Reader And SharePoint Workflow: How To?

    Hi all, We are using SharePoint 2010 as our collaboration portal. Our Marketing department wants to use feedback workflows on PDF documents. The PDF documents can be commented and all reviewers should be able to do that in turn or parallel. We can st

  • How to remove the newline character at the start in the attachment ?

    Hi All, I have been trying to attach a .dat file generated at an external source and send it as an attachment by mail using UTL_SMTP, all things are working but the .dat file which comes attached in mail contains a newline character i.e. chr(10) at t

  • Credit management ECC 6.0 implementation

    Hi Experts/Gurus, One of our clients have done a technical upgrade from SAP 4.6c to ECC 6.0. Now they want to know what will be the timeline required for implementation of the Integrated credit management functionality of ECC6.0 in their SAP system i