Update close reason in AS_OPPORTUNITY_PUB.Update_Opp_Header is not happenin

When i try to call api AS_OPPORTUNITY_PUB.Update_Opp_Header and update close_reason to 'BUYING DEFERRED'' it is not happening. tried all status, it is happening only ig i give close_reason as 'WON'
<code>
headerRec.lead_id := leadId;
--headerRec.status :='WON';
--headerRec.status_code :='WON';
headerRec.owner_salesforce_id := resourceid;
headerRec.owner_sales_group_id :=salesGroupid;
headerRec.status :='Dropped';
headerRec.status_code :='Dropped';
headerRec.close_reason:='BUYING DEFERRED';
headerRec.last_update_date := lastUpdatedDate;
headerRec.last_updated_by := FND_GLOBAL.USER_ID;
-- dbms_output.put_line (headerRec.last_update_date );
AS_OPPORTUNITY_PUB.Update_Opp_Header(p_api_version_number => '2.0',
p_commit => fnd_api.G_FALSE,
p_header_rec => headerRec,
p_check_access_flag => 'Y',
p_admin_flag => 'N',
p_admin_group_id => null,
p_identity_salesforce_id => resourceid,
p_partner_cont_party_id => null,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
x_lead_id => x_lead_id);
DBMS_OUTPUT.put_line('--' || x_return_status);
IF (x_return_status != 'S') THEN
IF (fnd_msg_pub.count_msg > 0) THEN
FOR i IN 1 .. fnd_msg_pub.count_msg LOOP
fnd_msg_pub.get(p_msg_index => i,
p_encoded => 'F',
p_data => x_msg_data,
p_msg_index_out => x_msg_count);
DBMS_OUTPUT.put_line(x_msg_data);
END LOOP;
</code>

Hi
I have solved it myself. the solution is given below.
http://programmerslounge.blogspot.com/2011/08/close-reason-with-value-does-not-exist.html

Similar Messages

  • Adobe Reader Updater has been 'downloading' for over a week now...it is preventing me from signing out and closing my mini Mac, can't close down.  The window will not close ever, just keeps spinning around...help!

    How can I stop the 'Adobe Reader Update' from constantly trying to download?  It's been over a week now, preventing me from signing out of my computer and other issues too. Can you help please? thanks!

    Hi! The version is OS X 10 8 5...not sure what that means lol but it makes a difference obviously! 
    I did what  you said now and it has worked, thanks so very much for getting back to me.  I really appreciate your help!!
    Can I ask you questions in the future or do I just do that through the forum?\
    Thanks again, Jennie 
          From: Anubha Goel <[email protected]>
    To: rubyrose1950 <[email protected]>
    Sent: Sunday, April 26, 2015 10:42 PM
    Subject: You have been mentioned by Anubha Goel in Re: Adobe Reader Updater has been 'downloading' for over a week now...it is preventing me from signing out and closing my mini Mac, can't close down. The window will not close ever, just keeps spinning around...help! in Adobe Community
    |
    You have been mentioned
    by Anubha Goel in Re: Adobe Reader Updater has been 'downloading' for over a week now...it is preventing me from signing out and closing my mini Mac, can't close down. The window will not close ever, just keeps spinning around...help! in Adobe Community - View Anubha Goel's reference to you  Hey rubyrose1950, Could you please let me know what version of OS are you working on.You might try uninstalling Reader and install it again from the below mentioned link:Adobe Acrobat Reader DC Install for all versions Let me know how it goes. Regards,Anubha 
    Participate in the conversation by replying to this email
    To stop receiving these messages whenever you are mentioned, go to your preferences and disable notifications for direct social actions. |

  • FROM WINDOWS (VISTA) A PROBLEM HAS CAUSED THE PROGRAM TO STOP WORKING CORRECTLY. WINDOWS WILL CLOSE THIS PROGRAM AND NOTIFY YOU IF THERE IS A SOLUTION. FIRE FOX UPDATED TO THE LATEEST, I WOULD RATHER NOT HAVE AUTO UPDATES.

    FROM WINDOWS (VISTA) A PROBLEM HAS CAUSED THE PROGRAM TO STOP WORKING CORRECTLY. WINDOWS WILL CLOSE THIS PROGRAM AND NOTIFY YOU IF THERE IS A SOLUTION. UPDATED TO THE LATEEST, I WOULD RATHER NOT HAVE AUTO UPDATES. [email protected] edit

    You may select how and whether Firefox updates, although like most software it may be sensible to keep it up-to-date, it is more likely to remain secure and compatible with other software whilst up to date.
    * for information on the options available see [[Updating firefox]] <--- clickable link ---

  • HT1349 before i do updates for my iphone(to 5.0.1) i close my SIM card, i can not complete the update proccess  becouse SIM is closed also i can not activate iPhone becous the SIM must be opened. when i try to open it , the networks does not appear (no se

    before i do updates for my iphone (to 5.0.1) i close my SIM card, i can not complete the update proccess  becouse SIM is closed also i can not  activate iPhone becouse the SIM must be opened. when i try to open it , the networks does not appear (no service).

    Its a serious problem and many people are facing the same issue on both locked and factory unlocked phones.
    I wonder when Apple will address to this issue. After all it is losing all its reputation!
    See this thread, many users are encountering the same issue:
    https://discussions.apple.com/thread/3425746?start=75&tstart=0
    I believe its a software issue and could be solved asap Apple fixes it!

  • TS1574 The video and sound was working on my computer two days ago (and has ALWAYS worked on my computer since purchasing it in 2010) but now for some reason I can't play video and there is no sound.  I updated software today.  Still sound & video not wor

    The video and sound was working on my computer two days ago (and has ALWAYS worked on my computer since purchasing it in 2010) but now for some reason I can't play video and there is no sound.  I updated software today.  Still sound & video not working.
    Please help.

    One of the following steps should help.
    1. Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Restart computer. Relaunch Safari.
    2.  Enable Plug-ins
        Safari > Preferences > Security
        Web Content:
        Click in the box for "Enable Plug-ins".
    3. Check  whether you are currently  in  YouTube HTML 5 trial.
         http://www.youtube.com/html5
        At the bottom  left of the page  uncheck the box for
       "You are currently in the HTML5 trial".
    4. Reset Safari.
        Click Safari in the menu bar.
        From the drop down select "Reset Safari".
        Uncheck the boxes next to all items.
        Check the box next to "Remove all website data".
        Click "Reset".
    5. Turn off Extensions/Plug-ins if any that may interfere with Flash working properly.
        Safari > Preferences > Extensions
    Best.

  • AS_OPPORTUNITY_PUB.Update_Opp_header Error

    Hello,
    I am trying to update the opportunity using API. I am using API: AS_OPPORTUNITY_PUB.Update_Opp_header.
    I am passing Lead_id, Close_reason, Win_probability, Sales_stage_id, decision_date, status..
    I am getting the following error.
    "Another user has updated Opportunity header record. please re-query to see the changes."
    I am sure there is no other user updating this opportunity, but iam still getting this error.Not sure how to get rid of this error.
    Any help on this is greatly appreciated.
    Thanks,
    Ram

    I have fixed the problem..
    here is the solution:
    API is trying to validate the last_update_date and if the last_update_date for opportunity is not eqaul to the last_update_date that we are passing, then its giving the error. The last_update_date must be the last_update_date of the opportunity we are updating.
    Thanks,
    Ram
    Edited by: user6591295 on Sep 18, 2009 2:12 PM

  • Update Row into Run Table Task is not executing in correct sequence in DAC

    Update Row into Run Table Task is not executing in correct sequence in DAC.
    The task phase for this task is "Post Lost" . The depth in the execution plan is 19 but this task is running some times in Depth 12, some times in 14 and some time in Depth 16. Would like to know is this sequence of execution is correct order or not? In the out of the Box this task is executed at the end of the entire load. No Errors were reported in DAC log.
    Please let me know if any documents that would highlight this issue
    rm

    Update into Run table is a task thats required to update a table called W_ETL_RUN_S. The whole intention of this table is to keep the poor mans run history on the warehouse itself. The actual run history is stored in the DAC runtime tables, however the DAC repository could be on some other database/schema other than warehouse. Its mostly a legacy table, thats being carried around. If one were to pay close attention to this task, it has phase dependencies defined that dictate when this task should run.
    Apologies in advance for a lengthy post.... But sure might help understanding how DAC behaves! And is going to be essential for you to find issues at hand.
    The dependency generation in DAC follows the following rules of thumb!
    - Considers the Source table target table definitions of the tasks. With this information the tasks that write to a table take precedence over the tasks that reads from a table.
    - Considers the phase information. With this information, it will be able to resolve some of the conflicts. Should multiple tasks write to the same table, the phase is used to appropriately stagger them.
    - Considers the truncate table option. Should there be multiple tasks that write to the same table with the same phase information, the task that truncates the table takes precedence.
    - When more than one task that needs to write to the table that have similar properties, DAC would stagger them. However if one feels that either they can all go in parallel, or a common truncate is desired prior to any of the tasks execution, one could use a task group.
    - Task group is also handy when you suspect the application logic dictates cyclical reads and writes. For example, Task 1 reads from A and writes to B. Task 2 reads from B and writes back to A. If these two tasks were to have different phases, DAC would be able to figure that out and order them accordingly. If not, for example those tasks need to be of the same phase for some reason, one could create a task group as well.
    Now that I described the behavior of how the dependency generation works, there may be some tasks that have no relevance to other tasks either as source tables or target tables. The update into run history is a classic example. The purpose of this task is to update the run information in the W_ETL_RUN_S with status 'Completed' with an end time stamp. Because this needs to run at the end, it has phase dependency defined on it. With this information DAC will be able to stagger the position of execution either before (Block) or after (Wait) all the tasks belonging to a particular phase is completed.
    Now a description about depth. While Depth gives an indication to the order of execution, its only an indication of how the tasks may be executed. Its a reflection of how the dependencies have been discovered. Let me explain with an example. The tasks that have no dependency will have a depth of 0. The tasks that depend on one or more or all of depth 0 get a depth of 1. The tasks that depend on one or more or all of depth 1 get a depth of 2. It also means implicitly a task of depth 2 will indirectly depend on a task of depth 0 through other tasks in depth 1. In essence the dependencies translate to an execution graph, and is different from the batch structures one usually thinks of when it comes to ETL execution.
    Because DAC does runtime optimization in the order in which tasks are executed, it may pick a task thats of order 1 over something else with an order of 0. The factors considered for picking the next best task to run depend on
    - The number of dependent tasks. For example, a task which has 10 dependents gets more priorty than the one whose dependents is 1.
    - If all else equal, it considers the number of source tables. For example a task having 10 source tables gets more priority than the one that has only two source tables.
    - If all else equal, it considers the average time taken by each of the tasks. The longer running ones will get more preference than the quick running ones
    - and many other factors!
    And of course the dependencies are honored through the execution. Unless all the predecessors of a task are in completed state a task does not get picked for execution.
    Another way to think of this depth concept : If one were to execute one task at a time, probably this is the order in which the tasks will be executed.
    The depth can change depending on the number of tasks identified for the execution plan.
    The immediate predecessors and successor can be a very valuable information to look at and should be used to validate the design. All predecessors and successors provide information to corroborate it even further. This can be accessed through clicking on any task and choosing the detail button. You will see all these information over there. As an alternate method, you could also use the 'All/immediate Predecessors' and 'All/immediate Successor' tabs that provide a flat view of the dependencies. Note that these tabs may have to retrieve a large amount of data, and hence will open in a query mode.
    SUMMARY: Irrespective of the depth, validate
    - if this task has 'Phase dependencies' that span all the ETL phases and has a 'Wait' option.
    - click on the particular task and verify if the task does not have any successors. And the predecessors include all the tasks from all the phases its supposed to wait for!
    Once you have inspected the above two you should be good to go, no matter what the depth says!
    Hope this helps!

  • For some reason my 09' pages will not view documents created in Word 10'  any suggestions?

    For some reason my 09' Pages will not open any documents from 10' Word.  It simply opens up blank.  Any suggestions?

    I updated my pages and os.  I am currently running 09' pages and os 10.6.7.  The link I gave you earlier was not correct.  I have attached one I just opened up with microsoft word on another computer.  My pages opens up but is blank.  The link is below:
    https://www.vendorportal.ecms.va.gov/FBODocumentServer/DocumentServer.aspx?Docum entId=191194&FileName=VA-255-11-RP-0197-0004000.doc
    The only other thing is that word opened it up in compatibility mode and said that the document originated from the internet.  Could this be something that is causing pages to not open?  Thanks for all of your help.

  • HT204152 I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.many times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc.

    I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.Many a  times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc....Using ! phone 6plus  .IOS8.3

    What do you mean by 'refusing from the system', if you are getting an error message then what does it say ?
    For a credit card to have a chance of being accepted it needs to be registered to the same name and address (including format and spacing etc) that you have on your iTunes account, and have been issued by a bank in the country where you and your iTunes account are. If it is and if you are getting a 'declined' message then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes Support (these are user-to-user forums) and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If when trying to download you are getting a message about a 'problem with a previous purchase' then that implies that iTunes wasn't able to collect the money for your last purchase. If that is the case then you won't be able to download anything else (including app updates) until you've paid off what you owe : Pay an unpaid balance in the iTunes Store - Apple Support
    If you aren't getting the 'problem with a previous purchase' message then try logging into your account (not when trying to download something) and see if you get the 'none' option so that you can remove the card's details and be able to download updates to your apps : Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support

  • How can update the "Reason" in tcode CRMD_ORDER

    Hi,
    I've done the below customizations to change the "Reason" for the service ticket status:
    1. Define Catalog:
    IMG > CRM > Basic Functions > Catalogs, Codes and Profiles > Define Catalogs
    2. Define Code Groups and Codes
    IMG > CRM > Basic Functions > Catalogs, Codes and Profiles > Define Code Groups and Codes for Catalogs
    3. Define Code Group Profiles
    IMG > CRM > Basic Functions > Catalogs, Codes and Profiles > Define Code Group Profiles
    4. Define Subject Profiles
    IMG > CRM > Basic Functions > Catalogs, Codes and Profiles > Define Subject Profiles
    Also, assigned the Subject profile to the status profile.
    But i'm not able to update the "Reason" for the service ticket status in the transaction code CRMD_ORDER.
    Can any one let me know what is the BAPI / FM which will do this?
    Thanks,
    Shamim

    Hi Srikanth,
    Yes, I did so.
    In the transaction code, CRMD_ORDER, when i enter a transaction no.
    There's a label called "Reason" which has to be updated with the correct reasons as per the status.
    Example: For the service ticket status, "New Message", reason status must also be updated whenever a new mail arrives.
    I think there must be a BAPI / FM which would definetly update this?
    Thanks,
    Shamim

  • Updating the reason of rejection for line item in sales order

    Hi
    I am updating the reason of rejection field (ABGRU) using the function module VERKBELEG_WRITE_DOCUMENT.
    there is no error that is thrown but the field is also not getting updated.
    I have populated the VBAP old and new structure. where the difference is only in the ABGRU field. in the old VBAP struct its missing where as in new it has a value
    if anyone has any idea what is that i might be missing, do let me know.
    Regards
    Nikhil

    Hi
    we need to maintain the username of the person who has triggered this process through XI .
    I BAPI we cannot instruct the BAPI to maintain a specific username.
    that is why i am using this FM because this will allow us to maintain the change history with the username we want
    Regards
    Nikhil

  • In the "About Firefox" window, the "Restart to Update" button is always shown, but does not work.

    If i press it it will restart Firefox, but will not have updated it. I always have to manually upgrade Firefox, but even then About Firefox screen says Restart to Update

    I had this same problem and discovered today that the reason is because I do not often log on as Administrator and it appears Firefox won't update from my non-administrator ID. (I have a separate Administrator account set up on my computer so I don't inadvertently do something terrible.)
    When I logged on as Administrator and went to Firefox>Help>About Firefox (for me, 16.0.0.2), it had already started updating itself to 17.whatever. Restart to Update appeared again, and when I clicked it, Firefox updated itself to 18.0.1 and now shows a Check for Updates button, which returns that Firefox is up-to-date.
    I hope this helps some of you.

  • HT4623 unable to update to 6.1.1; keeps saying not connected to internet when in fact i am

    unable to update to 6.1.1; keeps saying not connected to internet when in fact i am

    This is what worked for me: Double tap your home button to bring up the programs running in the back ground, press and hold so they show the red close option and close all programs.  After that shut your iphone down and power back on.  Immediately go to General>Software Update and it should work.  Good Luck

  • Why does firefox update itself even when i tell it not to? Everytime it updates itself it messes up and crashes, make it stop. I like firefox but if I keep having to unistall and reinstall it ever month to every other month I am going to be done with it

    Fire Fox updates itself even after I tell it not to. The new version it updates to crashes, adobe flash player doesn't work on it and it takes forever to load when it does work. I have used fire fox for years now but if this keeps up I will find something else to use.
    == This happened ==
    A few times a week
    == When you came out with fire fox 6.6 or whatever

    I also have this problem of Firefox updating by itself even when I turn off auto-update.
    For whatever reason, there are situations where you do not want to update or download a large file, because you're working offline, have a slow connection, or have a very low download allowance etc. Usually the update doesn't work and cause Firefox to crash. After that it cannot be started again. This is with Firefox Portable but I think I've had this problem the normal Firefox. With the portable version I can just back up a single folder but it is still time wasting and annoying.
    I've noticed that when I start Firefox with auto-update turned off, it changes the options to auto-update, it also does this periodically. So every time I start Firefox I have to turn off auto-update, and I have to do this from to time because Firefox will by itself turn back on the auto-update.

  • New Update didn't fix the "You're Not Connected to the Internet" problem.

    So I downloaded the new Front Row update yesterday, hoping the "Your Computer is not connected to the internet" problem for the iMac would be resolved, but no dice. Still says that when I try and view trailers. The only fix I've found is to create a new internet login manually that exactly mimics the "automatic" setting. However, when I do that I lose my video iChat capabilities. There's gotta be a way to have my cake and eat it too. Anyone else having this issue? Anyone find a fix? Anyone have any suggestions?

    Sorry, I have an iMac and it is a mid 2011 model. I have 231 gb free. 2.5 GHz Intel Core i5, 4 GB 1333 MHz DDR3, Mac OS X Lion 10.7.5 (11G63)
    Yes my data is backed up. I installed the latest iTunes and now the program opens and immediately becomes unresponsive. The reason I tried to install the latest version was because it stopped connecting to the radio and to the store. I thought maybe the software update option was somehow related since they were both telling me I was not connected to the internet. Disabling the firewall doesn't make any difference, either, for the record.
    Thanks again.

Maybe you are looking for