Saturday, July 2, 2011

How to generate Solman Key (without having Solman Server)

You might want to install SAP ECC 5 or SAP ECC 6 and been asking SolmanKey. What if you don't have Solman Server ? Then how would you generate solman key ? There are 2 ways (if you don't have Solman Server to generate solman key) :

1. Ask your friend which have Solman Server to generate it.
2. Use this simple script (VB Script) to generate it.

-------------------------------


''''''''''''''''''''''''''''''''''''''
'   Solution Manager Key Generator   '
'Save to SolManKeyGen.vbs and execute'
'                                    '
''''''''''''''''''''''''''''''''''''''
'-------------------------------------------------------
Dim SIDs, SNs, SERVs, msg, ENDs, KEYs
msg="System ID (3 chr.)"
SIDs=InputBox(msg,"Solution Manager Key Generator")
msg="System Number (2 dig.)"
SNs=InputBox(msg,"Solution Manager Key Generator")
msg="Server Name (max. 15 chr.)"
SERVs=InputBox(msg,"Solution Manager Key Generator")
KEYs=SolManKeyGen(SIDs, SNs, SERVs)
msg="Solution Manager Key"
ENDs=InputBox(msg,"Solution Manager Key Generator",KEYs)
'-------------------------------------------------------
Function SolManKeyGen(SIDst, SNst, SERVst)
 Dim SIDSNhex(5)
 Dim SERVhex(15)
 Dim reshex(5)
 SIDSNstr = UCase(SIDst) + UCase(SNst)
 SERVstr  = UCase(SERVst)
 For arrcnt = 1 To 5
  SIDSNhex(arrcnt) = Asc(Mid(SIDSNstr, arrcnt, 1))
 Next
 For arrcnt = 1 To Len(SERVstr)
  SERVhex(arrcnt) = Asc(Mid(SERVstr, arrcnt, 1))
 Next
 For arrcnt = Len(SERVstr) + 1 To 15
  SERVhex(arrcnt) = 0
 Next
 If (Len(SERVstr) > 0) Then
  If (Len(SERVstr) < 5) Then
   For arrcnt = Len(SERVstr) + 1 To 5
    SERVhex(arrcnt) = Asc(" ")
   Next
  End If
 End If
 If (Len(SERVstr) > 5) Then
  If (Len(SERVstr) < 10) Then
   For arrcnt = Len(SERVstr) + 1 To 10
    SERVhex(arrcnt) = Asc(" ")
   Next
  End If
 End If
 If (Len(SERVstr) > 10) Then
  If (Len(SERVstr) < 15) Then
   For arrcnt = Len(SERVstr) + 1 To 15
    SERVhex(arrcnt) = Asc(" ")
   Next
  End If
 End If
 For arrcnt = 1 To 5
  reshex(arrcnt) = ((((0 Xor SIDSNhex(arrcnt)) Xor SERVhex(arrcnt)) Xor SERVhex(arrcnt + 5)) Xor SERVhex(arrcnt + 10))
 Next
 reshex(1) = reshex(1) Xor 84  Xor 0
 reshex(2) = reshex(2) Xor 131 Xor 11
 reshex(3) = reshex(3) Xor 194 Xor 46
 reshex(4) = reshex(4) Xor 52  Xor 105
 reshex(5) = reshex(5) Xor 119 Xor 188
 hexstr = "0123456789ABCDEF"
 resstr = ""
 For arrcnt = 1 To 5
  hihex = reshex(arrcnt) \ 16
  lohex = reshex(arrcnt) Mod 16
  resstr = resstr + Mid(hexstr, hihex + 1, 1) + Mid(hexstr, lohex + 1, 1)
 Next
 SolManKeyGen = resstr
End Function


-------------------------------

Copy this script to your Windows PC and save it as SolManKeyGen.vbs and then execute it.
Just like that....and shit, now you have solman key....

28 comments:

  1. thank u man.....
    excellent...
    i want to know some more stuff like this .
    pls....

    ReplyDelete
  2. @blackknight123 :

    keep watching this blog and spread to your friends about my blog

    ReplyDelete
  3. Hi Dude

    Thanks u very much it worked like a charm... i stuck up in the installation process & it helped me a lot.
    Thanks a lot

    ReplyDelete
  4. its working thank you

    ReplyDelete
  5. Hi dude!

    Thanks a lot u saved us....

    ReplyDelete
  6. please tell me how to save on which format it notepad or wordpad please tell me on the processs guys

    ReplyDelete
  7. Fantastic- thank you very much...

    ReplyDelete
  8. WAS A CAKE WALK. THANKS

    ReplyDelete
  9. Wow, amazing...its so very simple.Thanks a ton for helping me out.And moreover, we would like more stuff like this to be shared with us.

    ReplyDelete
  10. wow man... your script is AMAZING.
    I can continue SAP Install without create new system on SOLMAN server.
    It's very usefull..

    ReplyDelete

  11. awesome,this script saves me, thanks for code to generate it, give us some mail contact, and please post helpulf posts like this again, thnks!!

    ReplyDelete
  12. hI MAN,

    u r really superb in SAP. it work like a charm.
    Nw i want an access key for abap development. Could u pls help for this..

    ReplyDelete
  13. wow, amazing, where did you get this? :)

    ReplyDelete
  14. Wow this is awesome works so easy !!!

    ReplyDelete
  15. OMG, this is awesome! Thank You!! very much!!

    ReplyDelete
  16. That's mind blowing ........ Thanks a lot ....

    ReplyDelete
  17. there is no word to say

    ReplyDelete
  18. Wow mana u r genious

    u saved me

    THANKS a lot it worked...

    ReplyDelete
  19. It works.
    Great job. You Rock
    Thanks a lot.

    ReplyDelete
  20. you are a cham.. man

    great script..

    but now i just installed my quality system ..but it didn,t ask any key the time of installation.

    Regards,
    Sanjiv

    ReplyDelete
  21. It's work like a charm. Thanks a lot :)

    ReplyDelete
  22. GENIUS!!!!! You are a legendary life save!

    ReplyDelete
  23. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor led live training in SAP Solution Manager , kindly Contact GRONYSA
    Click for SAP Solution Manager Course details SAP Solution Manager
    GRONYSA Offer World Class Virtual Instructor led training on SAP Solution Manager. We have industry expert trainer. We provide Training Material and Software Support. GRONYSA has successfully conducted 10,000 + trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Nitesh Kumar
    GRONYSA
    E-mail: nitesh.kumar@gronysa.com
    Ph: +91-9632072659/ +1-2142700660
    www.GRONYSA.com


    ReplyDelete
  24. you are such a genius bro..may krishna Bless you

    ReplyDelete
  25. Awosome brother it worked for me as well

    ReplyDelete