2020 Mar 27 3:59 PM
Experts,
I read below posts by Horst Keller and Sandra Rossi where they had mentioned not to use INDX table for custom programs as this is meant for use by SAP programs.
https://wiki.scn.sap.com/wiki/display/ABAP/Warning+about+inserting+custom+data+in+the+INDX+table
https://answers.sap.com/questions/228371/comand-field-n.html?childToView=228607#answer-228607
I have a scenario where there are 2 user exits for delivery creation in which custom code for route determination has been written. I want value from user exit 1 that gets called first in user exit 2 which is called next. I exported the values to INDX table from exit 1 and consumed in exit 2. Worked perfectly for 1 delivery.
In PRD, when multiple deliveries are created in mass(in background), Basis team identified several locks generated in INDX table.
Question:
1) Is it good to created custom table ZINDX in this scenario and all the developers to use this going forward? In that case, won't we end up generating locks on this custom table?
2) What is a better practice for this scenario?
BR,
Aspire
Experts,
I read below posts by Horst Keller and Sandra Rossi where they had mentioned not to use INDX table for custom programs as this is meant for use by SAP programs.
https://wiki.scn.sap.com/wiki/display/ABAP/Warning+about+inserting+custom+data+in+the+INDX+table
https://answers.sap.com/questions/228371/comand-field-n.html?childToView=228607#answer-228607
I have a scenario where there are 2 user exits for delivery creation in which custom code for route determination has been written. I want value from user exit 1 that gets called first in user exit 2 which is called next. I exported the values to INDX table from exit 1 and consumed in exit 2. Worked perfectly for 1 delivery.
In PRD, when multiple deliveries are created in mass(in background), Basis team identified several locks generated in INDX table.
Question:
1) Is it good to created custom table ZINDX in this scenario and all the developers to use this going forward? In that case, won't we end up generating locks on this custom table?
2) What is a better practice for this scenario?
BR,
Aspire
2020 Mar 27 4:30 PM
I don't answer your question, but want to clarify the recommendation of using of ZINDX (it's only my point of view):
2020 Mar 27 4:36 PM
There are some SAP notes which give recommendations how to identify the cause of database locks, depending on the database you use. You could have a look at them.
Depending on the exact context how the user exits 1 and 2 are executed, you could maybe think to other solutions. If you want more help, you should give much more information. Currently, it's way too general.
2020 Mar 27 5:04 PM
Sandra,
Thanks a bunch for your quick reply. It's very helpful. Let me get back here with details about the exits from the developer.
BR,
Aspire
2020 Mar 27 5:38 PM
Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
2020 Mar 27 6:56 PM
By subsequent calls do you mean the two user exits are called in the same internal session? If they do, why do you involve persistence layer at all? Use a class implementing the singletion design pattern with setter-getter methods.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |