In a few months, SAP Community will switch to SAP Universal ID as the only option to login. I am thinking to use the standard FMs ENQUEUEETABLE and DEQUEUEETABLE while am working with it. IF lv_counter = zcl_XXX=>lock_wait_limit. Hello, I am updating/modifying/deleting the records from a Z table. _wait = abap_true "This should already wait 5 seconds. LOOP AT it_wbs_element ASSIGNING FIELD-SYMBOL(). Can you think of a better solution? METHOD wait_for_wbs_unlocked. My last option is to just add a fix WAIT UP to X SECONDS but I don't like the idea at all. The open database interface enables SAP BW to utilize database functionality from different vendors. If I execute slowly with the debugger everything works. and synchronization services (enqueue/dequeue). But surprisingly this is not working and the copy cost part is failing because of the data being locked or non-existing in the DB. Then I added the method below that uses the ENQUEUE_EC_PROJS function to ensure that the WBS is really not locked. After the call to the BAPI I execute the BAPI_TRANSACTION_COMMIT with the WAIT parameter set and I found out that this was not enought to ensure that all the changes are commited to the database. The cost can only be copied after the new WBS exists, which it's done with the BAPI_PROJECT_MAINTAIN. This method can be used for this purpose. Use ENQUEUE Appointments have to be locked by the user of this class. This method has an optional indicator to also copy the "Easy Cost Planning" or cost estimation from the reference WBS. ENQUEUE and DEQUEUE On this page Definition Use Definition Methods for locking and unlocking an appointment. I created a method to add a WBS element to an existing project from a WBS template project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |