Run Process before Logout problem

Good Afternoon,
I have two pages that I am trying to run a process before logging out of the system. The code works sometimes on page 4, and not at all on page 8. I have delete process on linked to the logout button.
code below.
PROC_DEL_LOGOUT
begin
delete from email_atch upper(userid) = upper(':APP_USER');
commt;
end;
button code
button with URL Redirect
javascript: doSubmit('LOGOUT'); redirect('&LOGOUT_URL.');I have similar code for when the browser closes, except in that javascript I just have it doing a doSubmit() to delete the files. Same problem, works sometimes on page 4, but not on page 8.
Can you attach validations to logout buttons or closing the browser's window?
Thanks,
Mary

I think this is the best way to do that
01. Create a procedure and then add your delete commands to it and logout process as below
CREATE OR REPLACE PROCEDURE MyLogout                        
AS
BEGIN
  delete from email_atch upper(userid) = upper(':APP_USER');
  COMMIT;
  wwv_flow_custom_auth_std.logout(p_this_flow=>your application id ,p_next_flow_page_sess=>Your target page after logout);     
END;* Please see the document for "wwv_flow_custom_auth_std.logout" for further information about this function and parameters
02. Grant permissions to apex_public_user
GRANT EXECUTE ON MyLogout to APEX_PUBLIC_USER;03. Change the logout url of Authentication schema as below
#OWNER#.MyLogout* This will amke sure to execute your code whenever application try to logout
* If this answer is helpful the mark it accordingly

Similar Messages

  • Cats process before output problem

    Hi ,
       Can any one give me solution for cats?
    Actually i have taken the personal no and infotype  2001 and sty is Cl & i am creating the half day CL(4.5),
    total working hors is 9 hours.
    in my case problem is that when i enter with cat2 and gives the particular date its not effecting the half day . And if i am suppose to change that time (like 1, 2...4) at that time its throwing the error message (Already Cl leave is assigend that particular date ) and after that its updating.
    but my case is PBO (process before output) it should reflect.
    please Give me u r valuable suggestions .

    Hi,
    Elaborate your problem.
    Regards
    Team Member.

  • Problem Running Process Flow When Database Objects Deployed Outside of OWB

    Hi
    I am having a few problems running process flows that I'm deploying through OMB.
    My set up is as follows:
    All database updates are done outside of OWB (for version control purposes).
    Each object within OWB is exported to an MDL file, which is then imported into the production repository using an OMB Script.
    Once everything has been imported into my production version, I'm then deploying the process flows from within the OMB script.
    When I then go to run the process flow, I get the following error ...
    RPE-02075: Oracle Workflow failed to process the execution request for Activity LOAD_COUNTRY_PF:LOAD_COUNTRY. This may be because dependent objects have not yet been deployed.
    I can see through the Control Center, that the status of all the objects that the process flow is going to use are set to having a Design Status of 'New'. So obviously OWB doesn't realize that these objects already exist in the database, which is why the process flow errors.
    Is there any way around this? Can I somehow set the Design Status of all the objects to 'Unchanged' through OMB? Is there a way to fool the process flow into thinking that the objects do exist? Can I run the process flow outside of OWB?
    Any help would be appreciated.
    Thanks
    Liffey

    Hi Liffey,
    Is there any way around this?
    Can I somehow set the Design Status of all the objects to 'Unchanged' through OMB?
    Is there a way to fool the process flow into thinking that the objects do exist?of course you must deploy mappings before deploying processflow
    and as I know there is no legal method for avoiding this.
    Regards,
    Oleg
    PS. Look at this thread [Deploying without Deploy|http://forums.oracle.com/forums/thread.jspa?messageID=2655726&#2655726]
    It seems for OWB10gR1 exists method for manual modification OWB runtime repository tables for mark mappings as deployed

  • Costing problem while running Process order

    Hi,
    This is a  problem relating to costing of HALB material.. While doing process order for a fert material (BOM of FERT material contains a HALB and two ROH materials) a window occurs while saving ' Error when calculating costs, see log'. Why is this happening? I have checked the BOM , all components are subjected to cost relevancy (X). For HALB material no values are manually maintained in planned price 1,2,3 fields in Costing 2 view of material master. Do we have to manually maintain or will it be taken from the ROH materials in HALB BOM. For ROH materials values are comin in planned price 1,2,3 fields in Costing 2 view . If this has to be done what is the configuration. The ultimate issue is while running process order for FERT material no costing is happening for HALB material.Pls share your suggestions. Rewards assured.
    regards
    Ashok

    Hi,
    when you have raw semifinish and finish material as in sequence then first order of semifinish has to be created and it will capture raw material cost and other expences if incurred after confirmation of semifinish material you will be able to create a finish material production order b' cause that semi- finish material yo have to consume for finsh order.
    if at all first sfg order has updated the price of sfg (after settlement of order) then it will take correct price for finish material
    reward points if you find it useful.

  • Failed Item Validation = Process Before Headers isn't run? (APEX 2.2.0)

    Hi, all,
    I have an item validation that fails. When the page reloads, I see the following in the debug output:
    Do not run process "P41_BEFORE_HEADER", process point=BEFORE_HEADER, condition type=, when button pressed=If that process doesn't run, a flag I used to decide whether or not to display certain Page 0 regions never gets set properly, resulting in a mess.
    Is there a way around this? The only thing that I can think of is to run the same code in a failed validation that gets run in my process. Is there a more elegant way?
    Thanks!

    I ended up finding Page rendering process doesn't run after validation error which basically says to make a PL/SQL region with an empty template and put any display-related PL/SQL there. I set the PL/SQL region's display point to "After Header", which is before any of my other regions.
    I have a bunch of P0 regions that get conditionally displayed based on session state items set in the "Before Headers" process. All of the items are cleared by an application After Footer process. I don't want to rely on the session state, however, as the user might navigate using the browser buttons on a failed submit, and that might produce odd results. Unfortunately, I've realized that the application-wide processes don't get run either.
    It seems that my option is just to create a PL/SQL function
    FUNCTION SHOW_REGIONS
    THIS_REGION BOOLEAN := FALSE
    , THAT_REGION BOOLEAN := FALSE
    , THE_OTHER_REGION BOOLEAN := FALSE
    and call that function from my empty PL/SQL region, passing in true values for the regions that I want to show. Either this function would set application-level items, or other functions to get the individual flags could be called from each of the Page 0 region conditional display code. I think I will do the latter, unless there is some better way.
    Thanks!
    Message was edited by:
    Don_84
    CREATE OR REPLACE PACKAGE BODY
        TEST_PAGE_0_CONDITIONS
    AS
        my_flag_one BOOLEAN := FALSE;
        my_flag_two BOOLEAN := FALSE;
        PROCEDURE SET_DISPLAY_FLAGS
                FLAG_ONE BOOLEAN := FALSE,
              , FLAG_TWO BOOLEAN := FALSE
        IS
        BEGIN
            my_flag_one := FLAG_ONE;
            my_flag_two := FLAG_TWO;
        END;
        FUNCTION GET_ONE
            RETURN BOOLEAN
        IS
        BEGIN
            RETURN my_flag_one;
        END;
        FUNCTION GET_TWO
            RETURN BOOLEAN
        IS
        BEGIN
            RETURN my_flag_two;
        END;
    END;

  • Problem with AND process in daily running process chain

    Dear Friends,
    I am currently I am facing problem with AND process. In my daily running process chain, daily the process chain is failing at AND process. Currently I am workaround and manually repairing the AND process and loading the data with below (link) steps.
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    I need permanent solution for this reoccurring problem. Kindly share your thoughts and ideas to resolve this problem.

    Hi,
    The below are the job log. After this the batch job is failing.
    Job log overview for job:  BI_PROCESS_AND
    Job started
    Step 001 started (program RSPROCESS, variant &0000000190315, user ID MAESTRO)
    This AND process is not waiting for event RSPROCESS, parameter 475P4YTXTIIOA6IQ9GAZVEP24
    Job cancelled after system exception ERROR_MESSAGE

  • No code errors but before running. Plug-in problem??

    When I choose to run my app in Eclipse I choose the project I want, but immedliaty when I choose the project I get errors in the error log and I cant choose to run it.
    Both problems referes to the org.eclipse.ui in the column "Plug-in"
    Unhandled event loop exception
    It has no exception stack trace, it just says "An exception stack trace is not available."
    and
    java.lang.NullPointerException
    java.lang.NullPointerException
         at org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab.handleProjectButtonSelected(AbstractJavaMainTab.java:179)
         at eclipseme.ui.internal.launching.MidletTab.access$2(MidletTab.java:1)
         at eclipseme.ui.internal.launching.MidletTab$9.widgetSelected(MidletTab.java:439)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
         at org.eclipse.jface.window.Window.open(Window.java:796)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1086)
         at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:383)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:387)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:329)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:80)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
         at org.eclipse.core.launcher.Main.run(Main.java:977)
         at org.eclipse.core.launcher.Main.main(Main.java:952)Message was edited by:
    sandsater

    it is more an eclipseme topic than j2me topic...
    http://eclipseme.org/docs/troubleshooting.html#x3

  • Using ServletContextListener for background process in tomcat, problems?

    Hi, I am building a web app using mojarra 1.2, hibernate 3.2, mysql 5 and tomcat 6. Currently, there's a need to run a background process every hour to:
    1) query the database
    2) process information
    3) send emails to (big) list of individuals when matched
    4) update database
    5) must happen during business hour
    For now, my approach to this problem is to hook a Timer object inside a class implements ServletContextListener. So that every hour during business hour will process the steps above when Tomcat started until someone shut down shut down Tomcat or when it crash (hopefully that won't happen).
    I read a few articles, they claimed this is not a good approach because in a managed environment, background thread like this won't be in the scope of the container.
    Due to certain reasons, we can't deploy this part as a separate daemon (e.g: jsvc) yet. We'll need to wait for few other things to occur before can we deploy a full daemon services.
    The question for this post is: What are some of the potential problems we will be dealing with when running background thread like this in tomcat? What are some of the things we'll need to watch out for before real problems arise (e.g size of db connection, # of concurrent process, etc) what are some other pitfalls other experienced when deploying background thread in tomcat?
    We hope this solution will be able to handle what needs to be done until our daemon service is ready.
    Thank you for your opinions

    You can try this.. Which gives more grip... in making threads etc..
    Here is a class with a method that sets up a ScheduledExecutorService to beep every ten seconds for an hour:
    import static java.util.concurrent.TimeUnit.*;
    class BeeperControl {
    private final ScheduledExecutorService scheduler =
    Executors.newScheduledThreadPool(1);
    public void beepForAnHour() {
    final Runnable beeper = new Runnable() {
    public void run() { System.out.println("beep"); }
    final ScheduledFuture<?> beeperHandle =
    scheduler.scheduleAtFixedRate(beeper, 10, 10, SECONDS);
    scheduler.schedule(new Runnable() {
    public void run() { beeperHandle.cancel(true); }
    }, 60 * 60, SECONDS);
    }

  • IDoc ?? must be processed before IDoc ??? can be

    Hi all,
    I am trying to run IDOC of message type VLCCPO, Basic type VEHCLE01
    I am getting the error "IDoc 123 must be processed before IDoc 456 can be" (VELO158)
    but my problem is that IDOC 123 is already deleted.
    anyone?????
    Thanks naama

    Implement the note 1450511 Error VELO158 in IDoc Processing (Basic type VEHICL

  • Adding a Process to Logout

    Hi,
    I've read several threads on logout and how it works. I've found that it typically launces page 101, and calls a routine associated with your authenication scheme. I've also found that to add a process to logout I need to add a branch that executes a PL/SQL procedure with &LOGOUT_URL. (don't forget the period)as the target. (I could have some of this wrong. If so, I apologize.)
    I kinda understand all that, but not well enough to implement what I need to.
    I have an application that authenicates to Oracle. This is in the Logout URL of the authenication scheme:
    wwv_flow_custom_auth_std.logout?p_this_flow=&APP_ID.&p_next_flow_page_sess=&APP_ID.:1
    Does &LOGOUT_URL. automatically launch the wwv_flow.... process? Is that what it does?
    I need to run a SQL that sets several fields in a table to NULL when a person clicks logout.
    Where do I put that SQL? And, how do I get it to execute?
    I must be missing something. Logout isn't a button, so how do I get things to execute when it is clicked? And, how do I run the SQL without interfering with the Logout URL or the page 101 launching?
    In case you haven't already noticed, I'm confused. Err... and have a lot of questions. Sorry. :-)
    Any help is appreciated.
    Thanks, Tony

    Tony,
    It's all very simple, really. The built-in item LOGOUT_URL gives you access to the logout URL attribute of the current authentication scheme. In referencing it as &LOGOUT_URL. or v('LOGOUT_URL'), or as a bind variable, the resulting attribute will have had basic substitutions performed on it first, e.g., for &APP_ID. and &APP_SESSION., facilitating its typical use as the target of a Navigation Bar Entry. As you found, the standard logout URL (before substitutions) looks like:  wwv_flow_custom_auth_std.logout?p_this_flow=&APP_ID.&p_next_flow_page_sess=&APP_ID.:1If you hover over this link in your application, you'll see that it's a full URL (host:port/pls/DAD/...) with substitutions completed and that the result of using the link is to execute the wwv_flow_custom_auth_std.logout procedure through modplsql.
    Let's review the standard machinery:
    What does the logout procedure do?
    ...Not much: 1) unsets your application's session cookie (actually sets it to '-1') and 2) redirects to the after-logout page.
    How does it know what cookie to unset?
    ...The cookie name is also an attribute of the curent application's authentication scheme so it looks it up.
    How does it know what the current application is since the logout procedure is not run in a "page request context"?
    ...The current application ID is a input parameter to the logout procedure (&p_this_flow=&APP_ID.).
    How does it know what page to show after logout?
    ...That's the other input to the logout procedure (&p_next_flow_page_sess=&APP_ID:1 where the application and page to redirect to are both given).
    But it looks like it goes to page 101 (login page) after logout.
    ...Yes, but the instructions were to redirect to page 1 after logout and if page 1 requires authentication, you have to login first. After login, you'll go to page 1.
    Now Tony, what you want to do is execute some DML during the logout operation. A good way to do that is to change the logout URL in the authentication scheme to simply be a URL to a page in your application, say page 99:   f?p=&APP_ID.:99:&APP_SESSION.On page 99 create a before-header process to call your DML procedure (or do the DML in the page process directly). Then create a second process on the page (also an on-load vs. an after-submit process) that does:  apex_application.g_unrecoverable_error := true;
      wwv_flow_custom_auth_std.logout(
        p_this_flow=>:APP_ID,
        p_next_flow_page_sess=>:APP_ID ||':1');Scott

  • Call long running process and return immediately

    Hi everyone,
    Here' my problem : I am calling an onDemand application process when clicking on a button. It's a very long running process; and while waiting for the response my browser stops responding (white page).
    So, is there a way to call a process and return immediately to the javascript. The process will set a field to a given value when it finishes. In javascript side, I can then check in a while boucle the value of this field to know if the process has ended.But I dont know how to return just after the application process call ...
    Thanks and best regards,
    Othman

    I presume that you can achieve that by means of a batch job.
    You can use an automatic page reload every X seconds until a certain "flag" (or similar mechanism) changes state and check it in a before header process. In the meanwhile you can display some animated GIF for instance.
    Once the processing is completed you remove the reload timer from the header or you branch to a different page using a programmatic technique like procedure owa_util.redirect_url.
    Bye,
    Flavio
    http://www.oraclequirks.blogspot.com/search/label/Apex

  • SP3 Almost completes installation but freezes at the Finishing stage showing "Running processes after install"

    I have an HP Pavilion zd7000 laptop with Windows XP & SP2 update installed. Processor is Intel Pentium 4. My system is clean with no rubbish software running. I have several anti-malware & anti-spyware systems installed but they are dormant & not running during the attempted installation. SP3 almost completes installation but freezes at "Finishing" stage showing "Running processes after install". Anti-virus is of course switched off. The system then hangs fore-ever with hard disc activity showing intermittently but nothing else happening. Luckily, by holding down the laptop on/off switch I can always eventually restore to previous settings & recover full use but without SP3! This is annoying & frustrating. I have seen a lot of threads about this problem but no real answers. Can anyone help please?

    What is Shmrate.exe is not running?
     This can be read two different ways
    One well if you look at it like this
    User>shmgrate>Operating system>drivers>computer. Result is denied!
    If you have something like this
    User > User Account Control >Operating system>drivers>computer. Result is denied again!
    Note that an adminstrator is only a adminstrator and Computer Adminstrator can install Sp(s). Which I believe is tyour question. Which is my guess.
    Which is the reason some people reccommend installing from the "Adminstrator" account Which generally is not a User account. Yes some people add and modify there account access by using Subinacl.exe and reset.cmd, which bumps the account from adminstrator to Computer Adminstrator. An alternative is to boot into safe mode. Pressing the *F8* key before the windows welcome screen starts up. And selecting safe mode. Which is why more people report success with using the .ISO install.
      To add to your confusion. Windows Sp2 usually has windows installer 3.0, or windows installer 3.1
    Table us types of accounts. I wish windows 200 documentation had made it completely into Xps documentation. They had an excellent table with tthe types of accounts
    Limited user. Not able to run more then basic programs. Not able to ;install device drivers, not able to install progras, not able to install Sp(s)s
    Power user Able to run more advanced programs. IE Defragger.
    adminstrator. Mess with the operating system, back up things, able to install programs, add users.When Windows Xp is installed this is the type of user associated with adminstrator. NOT CA
    Computer adminstrator. Able to Install of all things Sp(s).
    Hopefully this helps you out. Of course there is the release notes, Xp solution center and of course things to do before installing Sp3.
    Keith

  • Major Logout Problems

    I am working with a school lab with 30 2 Ghz Intel Core Duo iMacs. They are all running 10.5.5. We have multiple logout and shut down problems -- they vary from one machine to another, sometimes you can shut or logout fine and sometimes weird things happen.
    Examples:
    This one is most common -- it has happened frequently on virtually every machine -- logout begins, then the top menu in the finder vanishes and nothing else happens. You can move the cursor around the desktop, but nothing is clickable. This will continue forever, for days if you let it, until you force the machine to shut down with the power button or pulling the plug.
    Sometimes logout or shut down is held up because programs like Safari won't let go. This is aggravating with thirty kids in the room.
    Also, many of the machines have power button problems. One simply would not work at all for weeks, the "magically" came back to life. Reminds me of the old days with the slot-loader G3 iMacs, where power button springs failed repeatedly.
    There are other issues as well, and I can't see any way out of this. Any help would be appreciated.
    -=-Ron-=-

    I am running into the same logout problems. While we wait for an Apple fix, instances of this are widely reported elsewhere (in suspicion of [smb connections|http://discussions.apple.com/thread.jspa?messageID=7801045] hanging, [launchd shortcomings|http://discussions.apple.com/thread.jspa?messageID=7503037&#793236 0], or [unknown reasons|http://discussions.apple.com/thread.jspa?messageID=8197295], etc.), so with all that info I'm trying to establish robust workarounds at this point. This is particularly problematic for me as interrupting the logout means they're still connected to our servers, and when they try later on a different machine, it denies them as logged in elsewhere. In any case, I'll post back with more info, especially if a reliable fix is found.
    As for problems powering up the machines, based on recent precedent, I'd venture that it isn't the actual power button mechanism. We had a recent rash of those symptoms after a before-hours 'brown-out' when the Macs had been left running. The Macs appeared off upon our arrival, but were utterly unresponsive. Suspecting they weren't really turned off, but rather 'almost off and crashed', we tried holding the power buttons, which is supposed to tell the power manager to forcibly cut power and reset itself. This, too, failed(!). In any case, unplugging them all from power for thirty seconds, plugging them back in, waiting another thirty seconds, and finally tapping the power buttons normally got them all back. I hope you're in the same boat. Good luck.
    Ciao for now, Joel

  • Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. This doesn't work because Firefox is not a running process so I can't close it.

    I don't use Firefox now because of this running problem. It started about a month ago. So when I access the task manager, Firefox does not show up in the running processes. Because of this, I can't end the task. I got tired and fed up of rebooting my computer just to use Firefox, so I just switched to IE8, and Opera and Google Chrome. I prefered Firefox but it also runs so so sooooo slowly now. IE is much much faster, as are the other browsers now. Once upon a time, I bragged to everyone about how fast Firefox used to be, where now I admit I don't use it because it's so slow now and it won't run anyway.

    See:
    * http://kb.mozillazine.org/Recovering_a_missing_profile
    * http://kb.mozillazine.org/Profile_in_use

  • GR/IR expenses not affected with the settlement rule run process in the GL

    <i><b>Please neglect by previous post with the same title</b></i>
    There is a problem I face while running the settlement rule process related to internal orders on the GR/IR expenses.
    According to the internal order settlement rule every expense associated to an Internal order no. whether its an account payable or manual journal accounts it should be settled (distributed) on the cost centers specified in each internal order after the monthly settlement run process is done through T.Code "KO8G", and this actually happens on the entries that are booked manually through T.Code "FB50", but the GR/IR entries is the biggest problem, it didn't reflect the settlement rule distributions in the GL it just gives me the original transaction once its was automatically created through T.Code "MIGO" they are only allocated to a one profit center with no cost center and without being distributed to a multiple cost centers according to the distribution strategy.
    After a long search I found that the cost center distribution occurred only on a secondary none GL account named A&P Settlement (720010), all GR/IR expenses was settled correctly only on this account not through the ordinary GL accounts (e.g. Gifts, printed materials) and of course the correct distribution didn't appear in the GL,
    So is there a transaction or any way to allocate the GR/IR expenses to there correct cost centers with the correct cost element in the GL?
    Is there anything to do with the GR/IR calculation that depends on quantity base not value base?
    <i><b>The Process as follows:</b></i>
    (<b>1) Creating Internal order with a settlement rule (E.g. Cost center 1 (50%) Cost center 2 (50%)</b>
    <b>2) Creating a purchase order associated to an internal order</b>
    <b>3) The Goods received and creating the GR transaction T.Code "MIGO"</b>
    Acc/DR Expenses accounts
    Acc/CR GI/IR Account 400301
    Profit enter ###### (eg. 111177)
    Cost Center <blank>
    Internal order no. ####### (e.g. 9810512)
    <b>
    4) Closing the GR/IR accounts when receiving the invoice T.Code "MIRO"</b>
    <b>When we receive vendor invoice:</b>
    Acc/Dr GI/IR Account 400301
    Acc/Cr Vendor Account
    Profit enter ###### (eg. 111177)
    Cost Center <blank>
    Internal order no. ####### (e.g. 9810512)
    <b>5) Performing the Internal order settlement rule run process</b>
    <b>(N.B.</b> By entering the report of the cost center (Actual/Plan/ Variance) T.Code S_ALR_87013611
    I found that GR/IR expenses was not charged on the concerned cost centers as shown in the GL <b>)</b>
    <b>Your Reply is highly appreciated</b>

    Thanks for your kind reply,
    But is there a way solve this problem?
    And what is the use of leaving a field in the account assignment tab for an internal order while creating a PO and it will not take advantage of the settlement rule????????
    And as you know the internal order settlement is a way to create a multiple account assignment
    Can we solve the problem by making an automatic fake transaction that reverse the value of the GR/IR and creating another transaction can apply on it the settlement rule??
    You know that settlement rule process is one of the best features in the SAP system it save time and effort to make distributions manually

Maybe you are looking for

  • How to connect my iMac 27" to a beamer?

    Hey there Is it right that i need a VGA to USB Cable to connect my iMac 27" with a Beamer. I see the beamer is VGA and my iMac has no other compatible inputs, so i think its VGA to USB. But i don't no if it works THX for any help!! hn*

  • Safari Crashes every time I open it, and many other programs are freezing..?

    I have not downloaded anything recently. I cannot think of anything out of the ordinary that I have done recently on my computer, either. Every time I open Safari, it either crashes or freezes. Other programs, such as photobooth, iphoto, and firefox

  • I can no longer login to my router web interface from Safari on iPad.

    I made a mistake today. After accidentally opening up the web interface login screen to my router in Safari, I just pressed cancel in the login box. Since then, Safari just hangs on 192.168.0.1 when I want to access the router and the login box no lo

  • Since upgrading to iOS 5 I can no longer add/edit email accounts

    Hello All, I am completly stumped here, Since Upgrading to iOS 5 on my ipad 2 I can no longer access the "Mail, Contacts, Calendars" tab in settings, meaning I can't add my other mail accounts or change settings, and I'm needing to sort this now. Bas

  • Need help restoring files

    I took my iMac OSX in for repair  at an Apple store. I am using CS3. Many of my newer Photoshop files  which were in folders on the desktop now cannot be opened. They had been  erased in the shop and then restored again. However, the original file  n