on ā2015 Jun 05 8:03 PM
Hi Experts,
I am aware of the post which uses implementation of custom logic to change work status from script logic by using the start badi command. I am interested to know if anyone has been able to achieve the same functionality utilizing standard BADIs, like BADI_UJW_WS_CHANGE and if an example of its use can be provided.
Also, I have read about UJW_LOCKOUT_SCHEDULE_BADI. Is this BADI also designed to change a particular data region work status from let's say status "started" to "submitted"?
I am trying to get the best approach for implementing systematic logic for changing work status either using the custom logic or standard BADIs.
Cesar.
Request clarification before answering.
Raghu - as Vadim is pointing out, the post How To: Change Work Status from Script Logic using BAdI works fine. We are using this sample code to achieve our objective. There is an important thing though that needs to be considered. The use of QUERY = ON seems to be less efficient than getting the application data in the BADI itself using the method run_rsdri_query. Please refer to , which expains this improvement in performance. You can decide which option works better for you depending on the volume of data you need your BADI to change work status to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim, in our case, we have the particular requirement of analyzing huge data regions to determine if we need to change the work status or not. Instead of passing the data region as *START_BADI parameters within a *FOR loop, we require to get the application transactional data within the BADI, evaluate some logic and if conditions are met, we change the work status. This is why we are using this approach.
Hi Cesar,
We also have same requirement, i would like to know if you have already started using the BADI BADI_UJW_WS_CHANGE
Best Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cesar,
BADI UJW_LOCKOUT_SCHEDULE_BADI doesn't change WS. It works instead of WS check. There is a sample implementation that's delivered with it.
For example, in the case described in the blog, author would be able to implement following logic. Connect somehow Entities that should be locked together, for example in MD.Ask user to lock just one Entity. Then when comes check for any entity BADI would check if the main Entity is locked and returns status correspondingly for all connected Entities. This makes WS table smaller and WS check runs faster.
Regards,
Gersh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.