Issue with CRM_STATUS_CHANGE_EXTERN - Not updating user status immediately

Hi Everyone,
I need to set a user header status in CRM based on the delivery block selected in ECC sales order. for example, If the delivery block is A2 then user status should be E0008(Image review) etc. For this to happen in the transaction CRMD_ORDER, in save userexit I am reading the shipping data and based on the delivery block, I set the user status using FM "CRM_STATUS_CHANGE_EXTERN".
When I open the sales order again using CRMD_ORDER, I could see the old status still remaining but when I go to change mode, the user status is reflecting correctly. Can someone pls help me how I can fix this i.e status should change to correct one soon after I open the sales order in CRMD_ORDER.
Thanks,
Dharmendra G

After call of CRM_STATUS_CHANGE_EXTERN you need to call BAPI_TRANSACTION_COMMIT.
call function 'CRM_STATUS_CHANGE_EXTERN'
    exporting
        objnr               = iv_guid
        user_status         = iv_status
    exceptions
        OBJECT_NOT_FOUND    = 1
        STATUS_INCONSISTENT = 2
        STATUS_NOT_ALLOWED  = 3
        OTHERS              = 4
if ( sy-subrc = 0 ).
    call function 'BAPI_TRANSACTION_COMMIT'
        exporting
            wait  = ABAP_TRUE
else.
    "!+ Handle error
endif.
Best regards,
Tomas.

Similar Messages

  • Issues with OABs not updating

    We are running 2 exchange 2010 servers (1 for client access, 1 for mailboxes) Recently we set up GALsync to pull a bunch of users over from a partner company and they now show up in our AD as contacts. 
    The issue is when running outlook in cached mode, they don't show up.
    When not in cached mode they do show up. 
    I've forced updates on the OAB in exchange and downloaded new GAL from outlook however neither has worked.
    When I go into Exchange management Console, and go to Organization Configuration-Mailbox-Offline Address Book it says that the OAB has been updated with todays date, however when I go to the local files on the server they haven't been updated since the 4th
    of Jan. 
    *Note-GALsync was set up and contacts were brought over on the 15th of Jan. 

    This is just a matter of troubleshooting OABGEN (Offline Address Book Generation) issues.  You might want to start with the following:
    Confirm that the OAB Generation server is up-to-date with Exchange 2010 SP3 RU4
    OAB Generation server is properly running on the server (http://technet.microsoft.com/en-us/library/bb125184(v=exchg.141).aspx)...maybe even move it to the other server
    Confirm that the OABGen distribution is working properly (http://technet.microsoft.com/en-us/library/bb123710(v=exchg.141).aspx)
    Make sure that the users are not trying to use an old or invalid Offline Address Book.  Most environment just use 1 OAB and set it on all Mailbox Databases (http://technet.microsoft.com/en-us/library/aa996345(v=exchg.141).aspx)
    Open Exchange Management Shell and run the following commands.  If you see any warnings, fix the object!
    (Get-Mailbox -resultsize unlimited).count
    (Get-DistributionGroup -resultsize unlimited).count
    (Get-MailContact -resultsize unlimited).count
    Turn up diagnostic logging for the Offline Address Book generation (http://technet.microsoft.com/en-us/library/dd335139(v=exchg.141).aspx) and then update the OAB (http://technet.microsoft.com/en-us/library/aa997684(v=exchg.141).aspx)
    Review the event logs on the generation server and look for any reason why the OAB would not generate
    This is just the start...but usually points you in the right direction for what the issue is.
    Good luck

  • When is the next ios update and will it fix/address the issue with photos not being shown in chronilogical order?

    when is the next ios update and will it fix/address the issue with photos not being shown in chronological order?

    All of us here are users just like you. We have no inside info of when Apple products or operating system updates/upgrades will be released. The next iOS may not even change the issue you have.
     Cheers, Tom

  • HT4623 My computer is not taking the new update from itunes. It states that i do not have the requirements to finish the Install and that it was Installed incorrectly. I have never had any issue with any previous update regarding iTunes. What is the issue

    My computer is not taking the new update from itunes. It states that i do not have the requirements to finish the Install and that it was Installed incorrectly. I have never had any issue with any previous update regarding iTunes. What is the issue?

    Hi there Double2D,
    You may find the troubleshooting steps in the article below helpful.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    -Griff W. 

  • Hello Gurus..... ISSUE with child Table update

    I have an issue with child table update
    I have created a GTC with one parent table and two child tables. I'm able to update the parent table and the values are found in db, but the ISSUE is the child Table values are not updating the db.
    please give me a solution
    regards
    Srikanth

    If you are keeping referential integrity in the database, not in the application, it is easy to find the child and parent tables. Here is a quick and dirty query. You can join this to dba_cons_columns to find out on which columns the referential constraints are defined. This lists all child-parent table including SYS and SYSTEM users. You can run this for specific users of course.
    select cons1.owner child_owner,cons1.table_name child_table,
    cons2.owner parent_owner,cons2.table_name parent_table
    from dba_constraints cons1,dba_constraints cons2
    where cons1.constraint_type='R'
    and cons1.r_constraint_name=cons2.constraint_name;

  • Issue with Calendar not syncing with iPhone 3g

    Issue with Calendar not syncing with iPhone 3g.
    Solution
    Create backup of your entire mailbox before starting (THIS IS IMPORTANT)
    Create offline folder (.pst file) Check windows help on how to do this for your version.
    Open folders view on Outlook
    Right click on Calendar in tree view and 'copy to' offline .pst folder
    Go back to main calendar view and delete all entries in your calendar.
    Create simple cal entry and sync test with iphone
    If this works then start dragging cal entries back from the offline folder into the main calendar then sync after each step....
    I moved events in this order
    -Yearly recurrences (ie Birthdays)
    - Monthly recurrences
    - weekly recurrences
    - Daily recurrences
    All appointments from the beginning of this year >> to the end of time!
    If all these sync then the issue is with an older cal item and you have to decide if you actually need these in you current calendar.
    I chose to leave these in the offline cal and if i need access them from there.
    If at any point the sync fails then you know you have a corrupt cal entry in the block you just transferred. Move the offending items back into the offline folder and try again in smaller chunks until you identify the offending items and delete them and manually recreate them in your real calendar.
    Also smart to run the inbox (.pst /.ost ) repair tools for your OS/Outlook version.
    Fixed so far
    XP Pro / Outlook 2008
    XP Pro /Outlook 2003

    I just updated the firmware to iPhone 2.0.1 and the syncing works great both ways.

  • User Exit to update user status at VA01/VA02

    Hi Expert
    Please help identify any User Exit to update User Status stored in tables (JSTO/JEST), at time of sales order (Business Object 2032) creation / change.
    Requirement is to set check mark on a specific user status in case of a material master is missing HTS code.
    Regards-Aamir

    Hi,
    If your requirement is to set the check the HTS field in the material master, you can make the field as Mandatory without which the  Material cant be saved
    You can make this field mandatory in OMS9 transaction code with field status as 89 and the field is MARC-STAWN
    Please revert if you need more details
    regards,
    santosh

  • 10.4.11 Has Apple addressed/fixed issues with the latest update to Tiger?

    Like many of you, I installed the 10.4.11 update last weekend with disastrous results. I eventually had to Archive and Install and my machine seems to be recovered. Has anybody had this problem and gone on to try the update a second time with better results ?? Any words of wisdom?? or had some sort of feedback from Apple to indicate they have or are going to resolve the problems with this update.

    +I just posted this on the thread that seemed geared to those who "had success" (many more than half had issues) with the recent update after pi55ing and moaning due to crashing several times while trying to post there. Subsequently I found this thread and a bit of absoultion. I have eliminated the links, thinking them redundant but they are posted to that thread.+
    "If stupidity got us into this mess, then why can't it get us out?" "
    - Will Rogers (1879-1935)
    A little story, when I first tried to install Jaguar on my then Beige (Yeah, remember them!) G3 MT, it took me a full six months to get that "Darn Cat" in that house! Oh, how I sweated and swore, you talk about "legacy", I waved every "dead chicken" that was suggested to no avail. Ended up that before I bought the unit someone had switched out the CD/ROM for one from one year later, still Apple issue, mind you. I sent to OpAmp and got an original and "The Cat" slid in as quick as grease through a goose. That's how tightly wound Apple was and still is in many ways and is why they stopped the clones. This was one of a slew of many little things you had to get used to in "Mac Land".
    One other small thing you used to do a "clean install", you still can, but under OS 9, after you were satisfied (Conflict Catcher made things ever so easy!) all was peachy, you could simply trash your Previous System Folder and get back some valuable disk space. Well not to long after my success with the install of Jaguar and still not understanding OS X at all, I was still working mainly in OS 9, I did a Clean Install on my OS X, horsed around with settings which was difficult without Conflict Catcher and bravely trashed my Prev Sys Folder. Don't ever, EVER do that. What is a seemingly empty shell but for redundant Apps and meaningless abbreviations, is indeed a necessary if gigabyte eating Albatross you are doomed to carry!
    My point with these two parables is that we are creatures of trust and habit, living on borrowed time. We have been blessed with a computer system that is virtually foolproof given certain caveats, caveats if adhered to even marginally would guarantee success. I my self have gotten into some very bad habits of late and think that this may be the cause of my computers malaise.
    Drop to your knees and be grateful you don't have a PC (shudder!)! Yes Virginia, there is an Insanity Clause! I just installed WinXP on an Intel Mac, and after it was over all I wanted was a stiff drink and a shower!
    +There's always something worse than he77, there's always Vista!+
    Message was edited by: fla_cracker

  • Performance issues with latest iTunes update

    Hello everyone,
    I'm having somewhat of an issue with the latest update for iTunes (10.5), ever since the update was installed the 'AppleMobileDeviceService.exe' is using all my processing power.
    Now I know my laptop isn't the latest spec, but before this was never an issue. The only way I can still work with it is when I turn off the service via the Task Manager.
    When I launch the iTunes programme it gets even worse, another service called 'APSdeamon.exe' is eating up the processor aswell, albeit they both consume 50% now. As a result I cannot access the iTunes Store or do much else.
    I do have to mention all my music is stored on an external HDD which is connected via USB to my laptop, but this was never any different.
    I've reïnstalled all Apple components twice already, one including a specific deletion of all Apple program folders manually.
    Since I can always turn off the services manually it isn't a big issue, but does anyone have any suggestions or ideas how this could be resolved?

    Hello Mauricio,
    Thank you for the details of the issue you are experiencing with installing the latest iTunes update.  I recommend following the steps below:
    Resolution
    Follow these steps to resolve the issue:
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    When you get to the step to uninstall iTunes, it is important to uninstall iTunes and the related components in the order listed in the link for that step. 
    You can find the full article here:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How do I fix issue with computer not authorized yet when authorized it indicated already authorized?

    How do I fix issue with computer not authorized yet when I go to I-Tunes to authorized it indicated already authorized?

    I updated to iOS 5.0.1 days ago and didn't receive that notification until just now...
    This time I synced new photos I took yesterday, and it gave me the:
    "iTunes Sync: 54 items could not be synced. See iTunes for more information"
    Perhaps it kicks off when new items get synced.
    I've decided to rent a movie yesterday. Once it gets deleted, I'm curious to see if it jumps to 55 items.

  • When will Apple resolve its issue with Adobe so iPad users can use flash?

    When will Apple resolve its issue with Adobe so iPad users can access flash?

    That isn't going to happen. Adobe has not only given up on iOS, they have given up on all mobile device now.
    Why do you think you need Flash?
    Allan

  • *** is up with itunes not updating my info??

    *** is up with itunes not updating my info. the problem I am still having after 3 weeks is I can not update my credit card/debit card info because itunes says my billing information does not match my bank records. I know this is lunacy because the info I put in is completely correct, i even contacted my bank 3 times to make sure they had my info correct. so obviously something is completely ******** with itunes/iphone in which I cant update my info. **** I cant even download a free app, because it says my info has changed, and I need to change it. when i do, it gives me that stupid message about my info not matching my bank records. Something needs to be done asap.

    does itunes support ever respond to these forums??
    Since these are user-to-user forums, no they don't.
    See this -> iTunes Store Account and Billing

  • STATUS_UPDATE error to update USER STATUS - Update termination error

    Hi All,
    I am using status_update FM in sales order user exit MV45AFZZ in a perform routine for updating user status in line item for sales order. There are 4 custom statuses created for the sales order line item. 1,2 3, and 4 by configuration. My job is to select one of those based on user selection.
    Scenario: During change order process using  VA02, I have to change the existing status to a third status when user selects the second one. That is for example, in VA02, user selects status 4 from previous status 3, and save, I have to make the status 4 inactive and save the new status 2 instead of 3 though user selected 3. How do I achieve this.?  ????Any programming example is really appreciated. Thanks!!!
    I am right now using STATUS_READ and reading the existing status 4. Then making it inactive using status_update FM. And updating the new status 2 as active one and 3 as inactive again. Two inactive updates and one active update is throwing an update termination error while saving the sales order.
    Any help is really appreciated. 
    Thanks
    Ricky

    Hi ricky,
    For saving any changes you need to have a Z-table.
    In programs we can't store the user selection. In your case you can create a z-table and store the status there and delete the last status. The process would be faster as you will always have one record in the table.
    . One more advantage is you can even track the changes through the Z-table(User who is changing it.)
    Hope this solution will surely help you.
    Cheers
    Suvi

  • Are there any known issues with the latest update to iTunes on Windows 7 maxing out the processor and nearly bringing the system to a hault.

    Has anyone experienced an issue with the latest update to iTunes (11.2.0.115) for Windows where iTunes pegs out the processor at 97%, 98%, and holds there for maybe 15 minutes before dropping to 50%. During that time, the system is basically useless. You just have to ride it out. I'm running Windows 7 Home Premium.

    Hi OnceBeforeIDie,
    Welcome to Apple Support Communities!
    Take a look at the article below, it has some some tips that will resolve a performance issues like the one you described.
    Apple software on Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/ts4123
    -Jason

  • Issues with Ipad software update.

    i'm currently experiencing issues with trying to update the software on my Ipad 2 (brand new). For instance:
    1. when i try to update the software for my Ipad 2, the download doesn't go through, when i'm connected to the internet (which i've checked constantly).
    2. when i try to update any of my applications (when there's an update available), none of the downloads go though, when i'm connected to the internet (which i've checked constantly).
    i have had no problems BEFORE, whenever it came down to updating applications, etc. on my Ipad 2. i've tried updating more than five times and still the same problem. it's getting very frustrating, please fix this!!!
    p.s. - when i tried to update, a box pops up and says:
    when that popped up, i even checked my network settings, etc. and reset everything, and then tried updating. but the problem is still their!!!

    The eaiest solution is to download the update file directly from the links listed here:
    http://osxdaily.com/2011/10/12/ios-5-download-available/
    These are links to the Apple servers.
    Pick the file that matches your device and dowload it. Connect the device to iTunes, and Option-Click the Update button (Shift-Click for Windows). This will give you a dialog to navigate to the file you downloaded.
    Hope this helps

Maybe you are looking for

  • Error while I try to cancel an order

    Hi, When i try to cancel an order I got the next errror. The problem appear only in some computers, in others I can cancel the order succesfully. If someone can help me, thanks in advance. <8/05/2012 02:59:57 PM COT> <Error> <oms> <BEA-000000> <autom

  • Rtd calibration labview labjack

    Hello my name is mike and i'm a student in London Ontario, I'm taking an instrumentations class and was recently given an assignment to complete: Objectives: The instrumentation project consists of taking a sensor and implementing a computer interfac

  • Z3 Compact scenes not working in manual camera mode

    Hi. That's my problem: when I use manual camera, the scn button is grey and not working, so the HDR. They worked when I bought the phone, at Christmas... No mod root etc. Please help me! Solved! Go to Solution.

  • Loading scripts - what's the difference between loading into edge via script window and including a script in the html document?

    I have a html page that loading in two edge compositions and an external custom javascript file. The javacsript file includes the bootstrapCallback so I can store references to the loaded compositions and can communicate with them. This seems to work

  • RTMFP/Stratus support in Flash CS4?

    Hi, I am considering adding some P2P chat in an existing flash application. The only issue is that my app is built in AS3 using Flash CS4. All documentation mentioned Flex 3 being required for RTMFP, but I don't see any reason why Flash wouldn't work