How to lock CRM orders considering the lock scope

Hello All,
I am currently using Function Modules CRM_ORDER_ENQUEUE and CRM_ORDER_DEQUEUE to lock and unlock these orders respectively. However, these two function modules do not take the lock scope into picture.
I need to use function modules which consider the lock scopes. I could use ENQUEUE_E_CRM_ORDER and DEQUEUE_E_CRM_ORDER directly but I do not wish to. (because of other objects such as CSL, pricing document et cetera).
Is there any other function module that I can use to lock / unlock the CRM order keeping into consideration the lock scope as well?
Thanks,
Mithun

if you want yo lock the object(order)  in bol programming do like this
data : lr_entity type ref to cl_crm_bol_entity.
if  lr_entiy->lock( ) = if_genil_Boolean=>true.
Regards
siva

Similar Messages

  • My iPod touch isn't being recognized by my pc. The lock button on it won't work due to water damage, and a friend of mine fixed the problem by restoring it on his computer. How do I restore it without the lock button?

    My iPod touch isn't being recognized by my pc. The lock button on it won't work due to water damage, and a friend of mine fixed the problem by restoring it on his computer. How do I restore it without the lock button?

    first try:
    iOS: Device not recognized in iTunes for Windows
    next
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • How do i get rid of the lock next to the battery on the display screen on top?

    How do i get rid of the lock icon next to the battery on the display screen on top?

    https://discussions.apple.com/message/18464264#18464264
    You should also consider spending a little bit of time with the manual to take advantage of All the Features of your Device.

  • How to find out what is the lock key for the computer

    How to find out what is the lock key for the computer?

    You don't.
    If you forgot or lost the password, all you can practically do is reset it.
    The manner in which you do so depends on what version of OS X you are running. The older versions utilize the reset password utility on your recovery/re-installation disk/drive.
    On Lion, you use the following technique to reset the Administrators password:
    Boot to your Lion Recovery Partition, by holding down the Option key while starting, and then selecting the Recovery HD as the boot choice.
    Once booted, at the top of the screen is a menu ..., select Utilities / Terminal from the menu bar.
    In the Terminal window, type “resetpassword” (without the quotes) and press return. A “Reset Password” window will open. Select your boot volume (your SSD drive) if it is not already selected. Select your administrators username from the menu labeled “Select the user account” if it is not already selected. Follow the prompts to reset the password. Restart the computer from the apple menu.

  • How to block an order if the price is too low?

    Hello,
    My problem is :
    How to block an order if the price is too low?
    I created a new type of condition ZMIN and an access by material.
    When the net price is below the minimum price the system must position the order on incomplete document for error of price.
    Thank you in advance.
    Frédéric Blaise
    e-Kenz S.A.

    Hello,
    you can enter a lower limit in the condition record:
    Lower limit of the condition rate/amount
    Indicates whether, during document processing, the system checks if manual changes fall short of the lower limit allowed for the corresponding condition record.
    Use
    When you maintain the scales in a condition record, the system checks whether the scale value falls below the lower limit.
    Or you can use the flag 'conditon update'.
    Condition update
    Controls whether limit values are relevant for pricing.
    E.g.: you can make the use of a particular condition record in the document dependent on a specified total value.
    This total value can be specified in the condition record.
    I hope that the information are helpful.
    With best regards
    Claudia Neudeck

  • How do I get rid of the lock screen on my Droid X2?

    I just got the Droid X2 and the lock screen is driving me crazy.  How do I get rid of it?

    you can't eliminate the lock screen, goes back to voyager days & before.
    in location/security, you can set the time before the lock engages, i choose 2 min in case i set the phone down & someone picks it up & tries to use it.
    i do have a 4 digit code that must be entered, after the swype to use or answer the phone.

  • How to make configurator not change the lock screen

    i manage about 300 ipad mini's for a school district and i use apple configurator once a month to manually update the ios and apps on the ipads. i have a grade level that uses pictures of the kids for the lock screen to identify whose ipad is whose. the issue is when i plug them into configurator to update them it always resets this lock screen, how can i make it so that the lock screen is not effected? All of my ipads are supervised, and i do not have the option of removing the supervision from that grade level.

    If the phone is locked the only call you can place is to 911 (or its local equivalent) without unlocking it.  You can also take a picture, but not review other photos.
    Market Information? Come read The Market Ticker!

  • How do I get notifications in the lock screen?

    I am not getting notifications in the lock screen even if my iPad 2 is on sleep mode, what has happened? How can I fix it?

    settings- notifications. Edit. Choose application, then click it and choose how you want to be notice

  • How to update user status in CRM Order depending the delivery status in R/3

    Hi All,
    In my scenario the partial delivery allowed to the customer while creating the CRM Order. But as per my requirement the status should be updated when the complete order and delivery takes place.
       Let me describe you clearly:
    Suppose I want to deliver 5 quantities products to the customer but initially I want to deliver only 3 quantities and rest 2 quantities later. When I do the post goods issue of 3 quantities in R/3 system the status should not change in CRM system. When I will do the rest 2 quantities in post goods issue in R/3 then the user status should change in CRM Order. But in current when I do the delivery of 3 quantities the user status is changing in CRM Order.
    I need the user status should change in CRM only when the entire deliverytakes place in R/3.
    Thanx
    Chinmaya

    Whenever an item is fully delivered, by standard, a "Completely Delivered" status will be updated into the item. If the I suppose by referring to that you will know an item is partial or completely delivered. When all items in the order is fully delivered, the standard header status will set to "Completed". So, you will also know if the whole order is partial or completely delivered.
    If you want to add a user status, the simplest, you can make use of the ORDER_SAVE Badi. Just call the function CRM_STATUS_MAINTAIN_OW. You can update both header and item status.

  • How to have DDL "wait" until the lock is free in 10g

    I saw this for 11g: http://www.scribd.com/doc/247954/Oracle-11g-DDL-Wait-Option-feature
    Moving to 11g is not an option. I have code that does partition maintenance (adds a new partition and drops an old one) at night. However, sql loader may be running and the table may be locked. This happened already. Is there anyway to get my code to wait until the lock is released?

    The is no DDL option on the partition operations that I know of to tell the DDL to wait if it cannot get a lock. You will have to implement a procedural fix such as updating a row with a value to indicate the sqlldr job is running or if the sqlldr task is controled via a external table take a user lock then execute the partition operations via stored code that checks the user lock first.
    HTH -- Mark D Powell --

  • On-Lock Trigger and Releasing the Lock

    I have a data block which has a View as a Datasource.
    I want to update some fields from that View so I use On-Lock and On-Update triggers.
    In the On-Lock trigger I use a select for update nowait to lock the row.
    My problem is that if I don't save the changes the lock is not released.
    My problem is reproduced with the Following steps
    1. Open two sessions of the form
    2. Update field in one session. (The On-Lock trigger is fired)
    3. Try to enter query in the Form.
    4. The message Do you want to save the Changes? appears.
    5. I answer No
    6. I go to the second session
    7. I try to update the same row and I get an error cause the Row is Locked.
    Should I code another trigger? Should I issue a rollback somewhere ?
    Thanks in advance.

    Francois wrote:
    Forms_ddl('ROLLBACK') will only rollback explicit SQL orders (Nothind done by Forms itself), so the risk is minimum because you lock the record when entering it then unlock it when exiting it.Is that documented anywhere? How can the Oracle database server tell the difference between row locks set by Forms automatic processing and locks expressly set by his "select for update"? Unless things have changed, a ROLLBACK removes everything... all locks, all posted changes, etc. You get a clean slate, ready to start over.
    Dimitris:
    I think you're going to have to re-think your application. I do not believe there is any way to unlock specific rows from one block, while preserving your uncommitted changes in others. Oracle and Forms simply do not work that way.
    ...unless you start setting savepoints each time the user goes in and updates a different block. Then you could potentially determine which savepoint was set, and do a rollback to savepoint. And managing that on a form with multiple updateable blocks could be a nightmare if the user bounces around from block to block making changes here and there.
    It would be easier to just stop the user when he decides to enter a new query. If he has updated any other blocks, or even made changes to the block in question, then he needs to first commit, or you need to clear the entire form with a CLEAR_FORM(NO_VALIDATE,FULL_ROLLBACK);

  • Availablity check in sales order considering the Raw material stock/procurement

    Hi Gurus,
    Our client Production process requires  the availability check at order level to consider the procurement time required for the Rawmaterial (BOM component of the FERT, whose sales order is taken) in cases when this RM is not available in the plant, and Availability check should not consider this procurement time when this RM is available in the plant.
    ie in first case, it should consider the total time for in-house production as well as the time required to procure the rawmaterials, along with all other times that we use like Gr processing time, packing picking etc.
    In second case it should not consider the RM procurement time, but only the inhouse production time and other times as applicable.
    To my understanding, Availability check at order level will only check the time given in the MRP view of the FERT, and it does not check anything about RM stock or RM procurement time.
    Can you please give me some suggestions to meet this requirement of the client (client is into Food Product Manufacturing).
    Your quick response will be very helpful

    You can try with user exits intended for ATP as recommended in the following note based on material type:-
    Note 1644443 - Documentation on User-Exits in the area of the availability
    That is as and when ATP runs for a sale order, with any of the exits listed out in the above note, you can validate for the material type which would be different for components and accordingly, write a coding in such a way not to consider such of those components.  But ensure that the user-exits are critical and should be tested carefully as cautioned in the note.
    G. Lakshmipathi

  • How to create planned order from the sales order for a processing item

    In the MTO sceanrio, assembly order is created directly from the sales order. I would like to create a planned order from the sales order.
    I tried the Planning strategy group 81 in the material master but it didnt work.
    Could you please let me know how to do it? Is it Schedule line config that controls whether planned order is created?
    Thanks
    Harish

    Narayana,
    Planning strategy 82 is the best & standard way of getting production order created on sale order create.
    just assign this strategy  in MRP 3 view under strategy group.
    If not then using sale order reqt type ( KMFA- Assembly with production order) & assigning this to your sale order item category is also another way to create prodcution order without using planning strategy in material master.
    Follow steps in SPRO-->Sales & dist --> basic functions >avail check &transfer of requirements> transfer reqts-->determination of reqt type using transaction
    Here you may select the item category you in sale orders & assign KMFA to your item category. this will then give option in sale order create to change reqt type to KFMA for assebly orders.
    If you need KFMA to be default assign it to Item cat/ MRP type ( PD) combo.
    Regards
    Ritesh

  • My gmail notifier has a lock on it now how do i get rid of the lock

    using FF3.6.13 and installed add on gmail notifier in taskbar now it has a yellow lock icon on it when itry to check mailit doesnt happen ihave to go to my browser start to open gmail any help on how to unlock notifier in taskbar

    Where are you seeing a secondary email address on Google.com? Did you create a Google+ profile? Is this related to an Android device?
    If you see your email address in Google ''search results'' for yourself, see this Google help article: [https://support.google.com/webmasters/answer/164133?hl=en Keeping personal information out of Google - Webmaster Tools Help]. Note: Google expects you to try to get the source site to remove the address before appealing to them.

  • HT5463 my incoming calls will not ring when locked. how do I get rid of the lock screen and passcode for good?

    I have mu phone set up on locked screen and passcode. I want to take this off. I am unable to receive calls in locked screen.
    I need to hear all my incoming calls.

    Double check settings - do not disturb - is off.

Maybe you are looking for

  • How can I retrieve my old messages

    How can I retrieve my old messages for iPhone?

  • Reg: IDOC Status Info Report

    Hi Experts I am trying to posting the products/internal orders data via IDOC/ALE. After the Data loaded into the target system,I required to display the below info: Initial Data Load Results Report Layout: Totals Total number of records read: Total n

  • How to use the 'Username' filed's value in form level scripting?

    Hi,     I have applied the Rights Management for a form. I wanted to use the 'Username' field's value, which is present in below image for the form side scripting. How can we get this value? Any script is there to extract this value in the form? Than

  • Getting Error in Execution of Interface in ODI

    Requirement: To transfer data from Oracle to SQL server. LKM Used : LKM SQL to SQL Getting Below Error In Executing the Interface. ODI-1226: Step --------INTERFACE NAME------ fails after 1 attempt (s).ODI-1240 :Flow --Interface Name--- fails while pe

  • Finder crashes when i plug in iphone

    I recently purchased an external hard drive to store my dropbox folders on, as they were taking up too much space on my macbook pro. I now have a problem that when i plug in my phone to the laptop (iphone6) the camera uploads folder opens and seems t