on 05-02-2016 7:27 PM
Friends,
Our users would like to have TUs go to Activated automatically when they are created in EWM. I have looked in SPRO (Configuration) but I do not see any way to set that to happen. I have looked at several BADis and Methods and I believe I can add some code in class "/SCWM/CL_SR_BOM" Method "SAVE_TU", but it could not be an Enhancement because I would want to change the values in lt_tu_new and lt_act_new tables before the TU is created. I would like to find out if anyone knows a better way before I make this change to the SAP code. Thank you!
Kevin
Hi Kevin,
I guess, it can be possible through PPF actions by creating new PPF action to activate the TU,once it is created.
it would required to create a new action under the action profile '/SCWM/TU'.
check the classic BADIs ' EXEC_METHODCALL_PPF' and 'EVAL_SCHEDCOND_PPF'.
against the new action definition ,maintain the processing time as immediately.
BR,
C K Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This took a while as I had not used PPF before and I had other things going. I was able to use PPF and finally got it to work when I changed a TU, but then the create TU began failing. I had to change it from Immediate Processing to Processing when saving document and it now is working fine. I believe that it was trying to change a database table record before the record was there from the complete and by changing to when saving it had the records in the tables to change and is happy.
Thank you very much!
Kevin
Hi!
PPF - is good solution. Also you can try to use badi /SCWM/EX_SR_SAVE, method AFTER_SAVE
BR, Alex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin
Keep a PPF at TU and execute the PPF to activate the TU.
You can control the TU status from Planned to Active in the program.
Cheers
Jobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
4 | |
3 | |
3 | |
2 | |
2 | |
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.