2015 Dec 24 3:02 PM
Dear Folks,
Greetings !!
I have created a custom lock object using a data dictionary structure (ZPROJ) as Primary Table (taken reference of standard lock object EC_PROJ that uses PROJ_ENQ structure as a primary table). This ZPROJ structure initially had only 2 fields in it.
This created the enqueue / dequeue function modules and everything is working fine with this.
However, for some requirement I have to add a new field in my custom structure ZPROJ. I have added a third field in the structure and activated it, expecting that the new field will show up in the 'Lock Parameter' tab of my custom lock object. However the 'Lock Parameter' tab does not show this newly added field. Moreover there is no button/menu to manually add a new parameter in the Lock parameter tab.
Could anyone here guide me how do I add this new field in my custom lock object?
PS: I tried creating altogether a new lock object with the modified structure, but this new object also does not show the newly added field, somehow it is picking up only the old 2 fields.
Appreciate your advise..
Thank you.
Regards,
Sud
2015 Dec 24 3:57 PM
Solved it !!
I knew that all the KEY fields in a database table are shown up automatically in the 'Lock parameter' tab of the lock object. However, mine was a structure ZPROJ instead of a database table.
I was not aware that DDIC structures in SAP also have keys. The 3rd field which I added was not marked as a key parameter in the structure and that is the reason it was not showing the lock object.
I switched on the key attribute for the structure from Extras -> DB Attributes -> Key On/Off. Then marked the 3rd field as key and that's it !!!
Closing the thread
Dear Folks,
Greetings !!
I have created a custom lock object using a data dictionary structure (ZPROJ) as Primary Table (taken reference of standard lock object EC_PROJ that uses PROJ_ENQ structure as a primary table). This ZPROJ structure initially had only 2 fields in it.
This created the enqueue / dequeue function modules and everything is working fine with this.
However, for some requirement I have to add a new field in my custom structure ZPROJ. I have added a third field in the structure and activated it, expecting that the new field will show up in the 'Lock Parameter' tab of my custom lock object. However the 'Lock Parameter' tab does not show this newly added field. Moreover there is no button/menu to manually add a new parameter in the Lock parameter tab.
Could anyone here guide me how do I add this new field in my custom lock object?
PS: I tried creating altogether a new lock object with the modified structure, but this new object also does not show the newly added field, somehow it is picking up only the old 2 fields.
Appreciate your advise..
Thank you.
Regards,
Sud
2015 Dec 24 3:57 PM
Solved it !!
I knew that all the KEY fields in a database table are shown up automatically in the 'Lock parameter' tab of the lock object. However, mine was a structure ZPROJ instead of a database table.
I was not aware that DDIC structures in SAP also have keys. The 3rd field which I added was not marked as a key parameter in the structure and that is the reason it was not showing the lock object.
I switched on the key attribute for the structure from Extras -> DB Attributes -> Key On/Off. Then marked the 3rd field as key and that's it !!!
Closing the thread
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |