on 01-19-2016 3:33 PM
Hi Personas gurus
we are currently building a script to jump from IW32 order change directly into IW42 to allow the order to be directly confirmed.
The scripted logic starts in IW32:
My issue here is that saving the order happens asynchronous, so if I immediately enter IW42, the backend will still have locked the order.
Of course I can just "pause" the script by some huge count as described here: URGENT! Personas 2.0 SP3: ME51N: copy data fail... | SCN
but maybe someone has a better suggestion, ideally testing the actual lock?
Thanks for any suggestions!
Merten
write script which calls your RFC where you check whether order is locked or not.
I am assuming that this might work:
call function 'ENQUEUE_EVVBAKE'
exporting
mode_vbak = 'E'
vbeln = YOUR_PASSED_ORDER_NUMBER
exceptions
foreign_lock = 1
system_failure = 2
others = 3.
if sy-subrc = 0.
"Order is Locked
endif.
How to call Remote Enabled ABAP Function Modules in Personas 3.0 - SAP Imagineering - SCN Wiki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use an RFC to determine whether the document was really saved and only continue with the processing after that.
You can do this by checking for a lock entry for the order.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.