on 06-25-2015 11:43 AM
I'm creating a custom object with it's own data model to govern in MDG.
I want the object to be in flex mode and need a temporary key to be assigned so I can then automate a proper key at the approval stage.
However I am receiving the following message:
Message No. USMD1586
A reuse active area must be specified for entity types with internal key assignments.
You cannot activate the data model.
Change the type of key assignment, or enter a reuse active area for data model ** or entity type ******.
How can I assign temporary keys for a flex entity?
I believe that "flex" will take care of generating internal keys. You don't need to worry about it if you don't care about the value of this internal key. You can then implement your own number range when the object is being activated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That would be ideal if it were the case. It's exactly what we're looking for.
However I can't seem to achieve this without entering a reuse area...is there something I'm doing wrong?
Have created a brand new model and entity type to test this out.
Storage Type: 1
No Edition
Internal Key Assignment Only
Error =
Model ZY, entity type TEST: Missing number range object
Model ZY, entity type TEST: Deletion of entities not allowed
Model ZY, entity type TEST: Internal key assignment; enter a reuse area.
Once I change Deletion to 'Not allowed' and specify a custom number range I'm left with the error
Model ZY, entity type TEST: Internal key assignment; enter a reuse area.
And the only other options are to not have internal key assignment which means we're back to the user inputting a key because entering a number range in here generates the following error:
Data model ZY, entity type GLOBIN: Number range assignments are not supported
I'm beginning to think it's not possible
I could do that, however because it is a key field the user would have to populate it with something in the first place, which would be confusing for them. I'm using Entity_Value2 as the webdynpro application so the initial screen is populating the key field and choosing the entity type and change request type (like with finance objects)
Is there any way I could default a value on the initial screen? Any BADI's that control the inital screen?
Hi, in standard, there is no way to set up a flex entity with internal numbering and/or a temporary ID.
IIRC, the method DERIVE_KEY of BAdI USMD_UI_EVENT2 (UI ENTITY_VALUE2) provides the possibility to change a key via custom coding (if the entity is set as with a changeable key).
But the user nevertheless needs to input a unique ID first, or you need to do some modification wherever.
Regards, Ingo Bruß
please check all the steps mention in the below link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks but that document doesn't even mention using internal keys.
It only outlines the basic set up of a data model using keys specified by the user which isn't suitable for our requirements.
We need to assign a temporary key at creation which will be converted to a real number on approval (again an automated number range).
However the system is not allowing us to set this up because it's claiming you can only do this for reuse entities. Ours needs to be a flex entity.
The model etc. all work fine.
The issue is we want an internal key assigned from a number range rather than a user entered one but in trying to have internal keys is where we have a problem because it's asking for a reuse area.
If it comes to it we'll have to create a reuse area instead of flex but this isn't ideal.
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.