on 08-31-2010 6:59 PM
Hi,
I need to create an unique ID every time when the BLS will be executed because I wish to use this Unique ID within the BLS. Is there any way to create the unique ID (based on some custom specification like PO0002GI, PO0003GR etc) within MII.
Or is there any way to assign dynamic value to Transaction or Local variable.
Thanks in Advance
Chandan
Hi Chandan,
In the Link Editor, in the Expression Editor, there is a function called guid. I have not used it, but I think it will fulfill your needs. You may want to combine it with a datetimestamp.
Regards,
Mike
Edited by: Michael Appleby on Aug 31, 2010 8:17 PM
Edited by: Michael Appleby on Aug 31, 2010 8:18 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
guid function in MII (12.1.8.32) works incorrectly
for example some guid generated in a cycle
Java version 6 update 31
Hi
Another possiblity:
if you have installed SAPMEINT or uploaded the the custom action sap.com~xapps~aciton~actions.mii~actions.jar, you will be able to use Get Unique ID.
I used it because it looks more numeric 🙂
regards
Hi, Michael!
Yes, they certainly unique but if to execute sample transaction again that will see that the right part at all guid always identical (ff92ac111fb0). And this considerable decrease quantity the unique ID...
Regards
I have also used the datetime as my GUID generator many times, but it is not necessarily unique. I have never run into problems, so would probably do so again in the future even without SAPMEINT or the custom action jar. But I usually use it as a file naming convention rather than something which might occur more frequently.
To each his own, I guess.
Regards, Mike
Hi Oleg,
I saw that, but it still does not affect the goal of a unique ID. I suspect that the last part of the guid relates to your particular machine or MII instance and keeps the guid unique from other machine guids. I tested it on 12.1 and 12.2 systems and they behave the same way.
Regards, Mike
Wikipedia has a good technical discussion (and references) of how the GUID is generated:
http://en.wikipedia.org/wiki/Globally_Unique_Identifier
The last block of data (6 Hex bytes) is keyed from the computer's network card MAC address as a base. But the GUID is about as unique as you can generate for a single instance.
Regards,
Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure what you trying but I assume you are trying to create some kind of Batch Numbers and may be even looking to send to SAP
I would try these options,
1) Generate unique id's from Javascript and then send to BLS
2) Use SQL to do that job and fetch in BLS
3) Lastly create a separate BLS which generates unique id using some logic and whenever u call, it should return the ID you needed.
If you trying something different please share more details to help you.
Hope this helps!!
Regards,
Adarsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
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.