on 2022 Jan 31 6:42 AM
Hi guys,
I have a requirement to set the flag for the 'Quantity Changed' field if in case any changes are made to quantity from S4 side. I need to display this on UI and POWL screen as well. There is already a batch program wherein it captures any changes done to this quantity. I just need to add the logic to set the flag in this program. I have created a function module for this. If I run this function module directly giving the tor_id and other details manually, it successfully executes and saves it in DB table ( it gets reflected correctly in UI and POWL screen as well ). But through batch program, function module executes till modify() successfully, but the save() does not execute successfully. It doesn't through any dump or error. But checking in DB ( /scmtms/d_torrot ) it is not reflected.
After going through other questions, I found out one solution, which is to use transaction: /bobf/cl_tra_trans_mgr_factory=>get_slave_transaction_manager( ).
But this was behaving the same way, saving successfully when running directly, but not through batch user.
Kindly suggest some other ways.
Request clarification before answering.
Hi, Saeed Salih.
You said that it succeeded update when you directly executed your function. If successful, I think it shouldn`t be a problem in executing the batch program as well.
It could be possible not to reflect your fields to the DB table in specific cases. Documents that you will update are locked by an end-user. BOPF can`t be updated if the end-user has an exclusive lock mode of the document.
If it`s not a lock issue, there might be another problem... then I need more information about your program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 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.