cancel
Showing results for 
Search instead for 
Did you mean: 

Tutorial with screenshots Configuration of Mobile Administrator

Former Member
0 Kudos

Hello Everyone,

I followed this guide [https://cw.sdn.sap.com/cw/docs/DOC-36599] , I have Sap Nw 7.0 SP13 and I have to build applications with J2EE (JSP, Servlet, Abap4) as described in MDK 2.5.

But I have this problem: [http://farm5.static.flickr.com/4146/4841151013_29ee999b7a_b.jpg]

This is my configuration of System:

[http://farm5.static.flickr.com/4153/4841151005_d2cc77c726_b.jpg]

[http://farm5.static.flickr.com/4133/4841151009_935800f49a_b.jpg]

I used the wizard (type usage MI), the steps from MI_00 to MI_06 and NWA_01 to NWA_07

[http://farm5.static.flickr.com/4152/4841151025_d7da8684a9_b.jpg]

To follow all the steps shown in the screenshots:

Log-on [http://farm5.static.flickr.com/4109/4841151019_a703303530_b.jpg]

Creating a User Group for Synchronization

[http://farm5.static.flickr.com/4125/4841151031_50573b9753_b.jpg]

[http://farm5.static.flickr.com/4144/4841168195_b3f56464e8_b.jpg]

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

well, it seems your issue is not that difficukt - it should be the authorisation of the users.

As you did the setup of the landscape, you had to generate 2 users: MI_SERVICE, MI_ADMIN. As you went along, you had to generate several connections and services. In some of these you had to enter a user name. Because it is a service, I guess you have used MI_SERVICE for this. Well, this is the issue. MI_SERVICE is missing mandatory authorisations to do his job properly. Either you enhance authorisation of MI_SERVICE (SAP_ALL for the beginning should proove that this is the issue) or you use MI_ADMIN for these services instead. This should help.

Regards,

Oliver

Former Member
0 Kudos

Hi Oliver,

that's fine. I spent a lot of time on that problem - now you solved it - fine and thanks a lot. MI_SERVICE needs more rights then

those in T-SM690033 and in role SAP_MI_SERVICE.

That meens that the SAP Help is wrong ->

http://help.sap.com/saphelp_nw04/helpdata/de/434b9da161215f6be10000000a1553f6/frameset.htm . Thanks a lot Oliver!

Axel Arnold Bangert - Herzogenrath 2010

Former Member
0 Kudos

Hello ,

Please check through all the configurations again as these type of issues i.e.'Failed to get hierarchy group elements from middleware. Reason: Could not connect to middleware' occurs only due to a misconfiguration.

1. Deployment of SAP JRA connector

2. Configuration of JRA and RFC connections (portnumber,username,system number etc...)

3. Assigning rights.

Refer to the attached file Config.doc and restart after making any changes. Also test the service MGMT_CONTAINER_SYNC is working fine in Visual Admin.Please make sure that following RFC Auth Check(S_RFC) are added in the profile for your service admin user.

S_MI_MGMT

S_USER_GROUP

SYST

SGOO

SRFC

SYSU

SYSO

SUSO

SDIFRUNTIME

MEMGMT_DEVICE

MEMGMT_DEVICETEMPLATE

MEMGMT_F4HELP

MEMGMT_HIERARCHY

MEMGMT_MOBILE_CONTAINER

ME_CONFIG_INFO

ME_USER

MI_GROUP

MI_PACKAGE_GEN

ME_CENTRAL_TRACING

MEREP_INSTTK_MPC

MEREP_JAVACLIENT

BWAF_MW

BWAF_MOMO

BAPT

BWAF_INSTALLATION

ME_MON_SHLP

ME_QUEUE_MON

ME_TECH_MON

RFC2

SDDO

TCD

DEVICE_CONFIG S_MOMO

RFC1

S_RFC_ADM

Hope this should resolve your issue.

Thanks and Regards,

Ruchi.

Former Member
0 Kudos

Hello ,

In addition to this, please follow below steps -

Step 1 . JRA Configuration via Visual Administrator (VA)

a.start VA via go.bat file (and login to the J2EE system)

b.on the u201CClusteru201D tab go to: Server->Services->Connector Container

c.In u201CRuntimeu201D tab expand branch u201Csap.com/sapjra.raru201D.

c.Mark service u201Ceis/SAPJRAFactoryu201D and go to u201CManaged Connection Factoryu201D tab and then to u201CConnection Definitionu201D tab. Set there u201CMaximum Connectionsu201D to value higher than 0.

e.Save your changes with u201CDisketteu201D icon

f.now mark service u201Ceis/SAPJRAFactoryu201D and use clone icon (two paper sheets)

g. Enter name u201CSAPJRAFactory_ENu201D and press OK

h.Check whether cloning is successful or not.

i.Go to u201CManaged Connection Factoryu201D tab and then to u201CPropertiesu201D tab and check there if language fits to the factoryu2019s name. If needed adjust language settings and save your changes with u201CDisketteu201D icon all parameters in u201CPropertiesu201D tab must be u201CStringu201D type.Repeat clone step as many times as many languages you want to serve.

Step 2. Connection setup for self registering programs

To upload deployed mobile components to the ABAP Stack it is necessary that the EJB MobileContainerBean is registered as a program. Furthermore a RFC connection has to be created in ABAP stack to access the EJB. The access to the EJB will be performed when the function module MEMGMT_MOBILE_CONTAINER_SYNC is called. To ensure that the connection can be created the following tasks have to be performed once.

Creation of the JCo RFC Connection

1. Start the visual administrator of your J2EE.

2. And open the node of your server.

3. under Services -> JCO Rfc Provider Tab Runtime you are able to create a new connection.

4. create a connection with following parameter

a. RFC Connection

i. Program ID = MEMGMT_MOBILE_CONTAINER_SYNC

ii. Gateway host = <Gateway of your system>

iii. Gateway service = <the service of your gateway>

iv. Number of processes(1..20) = 5

b. Repository

i. Application server host = <the application server where the program should be registered>

ii. System number = <System number of your system>

iii. Client = <logon client >

iv. User = < Logonuser>

v. Password = <password of the logon user>

c. If you have a Unicode system mark Unicode

5. use the SET Button to save you settings

6. mark the new entry u201CMEMGMT_MOBILE_CONTAINER_SYNCu201D under available RFC destinations and choose start. If the start button is grayed out your Connection from J2EE side is established and the program is registered.

creating a RFC Connection in ABAP to access EJB

1. Logon to your middleware and start transaction sm59.

2. Mark the node TCP/IP connection and choose the create button

3. Choose an new name for your connection

4. set the connection type to u201CTu201D and enter a description

5. select the tab technical settings and mark the radio button Registered Server Program

6. enter as Program id u201CMEMGMT_MOBILE_CONTAINER_SYNCu201D

7. as Gateway host and gatewayserce enter the same values as you already did in the visual administrator

8. In Tab MDMP & Unicode select the type of system you have Unicode or Non-unicode

9. Save your settings and test the connection everything should work properly

Step 3: Register your RFC connection for uploading components

Start transaction sm30 and enter MEMGMT_J2EE_DEST as table name.

Under RFC Destination enter the RFC you created for accessing EJB and enter a short description.

Step 4: R/3 configuration to call transactions via Web GUI

Following parameters has to be configured within an R/3 system to enable Web GUI calls:

1. There are three port parameters in instance profile:

icm/server_port_0 = PROT=HTTP, PORT=50026, TIMEOUT=900

icm/server_port_1 = PROT=HTTPS, PORT=1443, TIMEOUT=900

icm/server_port_2 = PROT=SMTP, PORT=25026, TIMEOUT=900

2. To use SSL the following four parameters are necessary:

ssl/ssl_lib = $(DIR_EXECUTABLE)/<sec library> (eg. libsapcrypto.so)

sec/libsapsecu = $(DIR_EXECUTABLE)/<sec library>

ssf/ssfapi_lib = $(DIR_EXECUTABLE)/<sec library>

ssf/name = SAPSECULIB

Thanks and Regards,

Ruchi.

Former Member
0 Kudos

@Ruchi

Please check through all the configurations again as these type of issues i.e.'Failed to get hierarchy group elements from middleware. Reason: Could not connect to middleware' occurs only due to a misconfiguration.

1. Deployment of SAP JRA connector

2. Configuration of JRA and RFC connections (portnumber,username,system number etc...)

3. Assigning rights.

Refer to the attached file Config.doc and restart after making any changes. Also test the service MGMT_CONTAINER_SYNC is working fine in Visual Admin.Please make sure that following RFC Auth Check(S_RFC) are added in the profile for your service admin user.

S_MI_MGMT

S_USER_GROUP

SYST

SGOO

SRFC

SYSU

SYSO

SUSO

SDIFRUNTIME

MEMGMT_DEVICE

MEMGMT_DEVICETEMPLATE

MEMGMT_F4HELP

MEMGMT_HIERARCHY

MEMGMT_MOBILE_CONTAINER

ME_CONFIG_INFO

ME_USER

MI_GROUP

MI_PACKAGE_GEN

ME_CENTRAL_TRACING

MEREP_INSTTK_MPC

MEREP_JAVACLIENT

BWAF_MW

BWAF_MOMO

BAPT

BWAF_INSTALLATION

ME_MON_SHLP

ME_QUEUE_MON

ME_TECH_MON

RFC2

SDDO

TCD

DEVICE_CONFIG S_MOMO

RFC1

S_RFC_ADM

I checked the permissions of MI_ADMIN user, I noticed that this is a "Individual User", it has all the permits described here [https://cw.sdn.sap.com/cw/docs/DOC-18912] and here [https://cw.sdn.sap.com/cw/docs/DOC-16120].

Your RFC Auth are valid for a service admin user. Can be a problem?

@Oliver

well, it seems your issue is not that difficukt - it should be the authorisation of the users.

As you did the setup of the landscape, you had to generate 2 users: MI_SERVICE, MI_ADMIN. As you went along, you had to generate several connections and services. In some of these you had to enter a user name. Because it is a service, I guess you have used MI_SERVICE for this. Well, this is the issue. MI_SERVICE is missing mandatory authorisations to do his job properly. Either you enhance authorisation of MI_SERVICE (SAP_ALL for the beginning should proove that this is the issue) or you use MI_ADMIN for these services instead. This should help.

As you can see above, MI_SERVICE is only used for "Setting Up a Synchronization Service", for all other services I used the MI_ADMIN user.

Thanks and Regards,

CS

Former Member
0 Kudos

I reinstalled and configured from scratch, but the result is not changed

I extracted the log, can you tell me more?

Log -> [http://jump.fm/FQHXY]

Best Regards,

CS

Former Member
0 Kudos

Setting Up Administrator Users

[http://farm5.static.flickr.com/4125/4841846570_a1f9df81e0_b.jpg]

[http://farm5.static.flickr.com/4084/4841846578_de0ca80149_b.jpg]

Made I some mistakes? Please Help Me!

Regards,

CS

Former Member
0 Kudos

In addition to my above reply, please follow the below steps -

Step 1 . JRA Configuration via Visual Administrator (VA)

1.Visual Administration

2.start VA via go.bat file (and login to the J2EE system)

3.on the u201CClusteru201D tab go to: Server->Services->Connector Container

4.In u201CRuntimeu201D tab expand branch u201Csap.com/sapjra.raru201D.

5. Mark service u201Ceis/SAPJRAFactoryu201D and go to u201CManaged Connection Factoryu201D tab and then to u201CConnection Definitionu201D tab. Set there u201CMaximum Connectionsu201D to value higher than 0.

6.Save your changes with u201CDisketteu201D icon

7.Now mark service u201Ceis/SAPJRAFactoryu201D and use clone icon (two paper sheets)

8.Enter name u201CSAPJRAFactory_ENu201D and press OK

9.Check whether cloning is successful or not.

10.Go to u201CManaged Connection Factoryu201D tab and then to u201CPropertiesu201D tab and check there if language fits to the factoryu2019s name. If needed adjust language settings and save your changes with u201CDisketteu201D icon

Note : All parameters in u201CPropertiesu201D tab must be u201CStringu201D type.Repeat clone step as many times as many languages you want to serve. For example : - u201CSAPJRAFactory_DEu201D service has set up language as German.

Step 2. Connection setup for self registering programs

To upload deployed mobile components to the ABAP Stack it is necessary that the EJB MobileContainerBean is registered as a program. Furthermore a RFC connection has to be created in ABAP stack to access the EJB. The access to the EJB will be performed when the function module MEMGMT_MOBILE_CONTAINER_SYNC is called. To ensure that the connection can be created the following tasks have to be performed once.

Creation of the JCo RFC Connection

1. Start the visual administrator of your J2EE.

2. And open the node of your server.

3. under Services -> JCO Rfc Provider Tab Runtime you are able to create a new connection.

4. create a connection with following parameter

a. RFC Connection

i. Program ID = MEMGMT_MOBILE_CONTAINER_SYNC

ii. Gateway host = <Gateway of your system>

iii. Gateway service = <the service of your gateway>

iv. Number of processes(1..20) = 5

b. Repository

i. Application server host = <the application server where the program should be registered>

ii. System number = <System number of your system>

iii. Client = <logon client >

iv. User = < Logonuser>

v. Password = <password of the logon user>

c. If you have a Unicode system mark Unicode

5. Use the SET Button to save you settings

6. Mark the new entry u201CMEMGMT_MOBILE_CONTAINER_SYNCu201D under available RFC destinations and choose start. If the start button is grayed out your Connection from J2EE side is established and the program is registered.

creating a RFC Connection in ABAP to access EJB

1. Logon to your middleware and start transaction sm59.

2. Mark the node TCP/IP connection and choose the create button

3. Choose an new name for your connection

4. set the connection type to u201CTu201D and enter a description

5. select the tab technical settings and mark the radio button Registered Server Program

6. enter as Program id u201CMEMGMT_MOBILE_CONTAINER_SYNCu201D

7. as Gateway host and gatewayserce enter the same values as you already did in the visual administrator

8. In Tab MDMP & Unicode select the type of system you have Unicode or Non-unicode

9. Save your settings and test the connection everything should work properly

Step 3: Register your RFC connection for uploading components

Start transaction sm30 and enter MEMGMT_J2EE_DEST as table name.

Under RFC Destination enter the RFC you created for accessing EJB and enter a short description.

Step 4: R/3 configuration to call transactions via Web GUI

Following parameters has to be configured within an R/3 system to enable Web GUI calls:

1. There are three port parameters in instance profile:

icm/server_port_0 = PROT=HTTP, PORT=50026, TIMEOUT=900

icm/server_port_1 = PROT=HTTPS, PORT=1443, TIMEOUT=900

icm/server_port_2 = PROT=SMTP, PORT=25026, TIMEOUT=900

2. To use SSL the following four parameters are necessary:

ssl/ssl_lib = $(DIR_EXECUTABLE)/<sec library> (eg. libsapcrypto.so)

sec/libsapsecu = $(DIR_EXECUTABLE)/<sec library>

ssf/ssfapi_lib = $(DIR_EXECUTABLE)/<sec library>

ssf/name = SAPSECULIB

More information about Deploy and Config JRA and Creation of RFC connection -

Deploy SAP JRA connector

1. Launch Deploy Tool - C:\usr\sap\<J2EE Instance ID>\<JCO ID eg JC30>
j2ee\deploying\DeployTool.bat.

2.Create a new project

3.Click. OK.

4.Now click on the Deployer Tab. Next to Project a new menu item DEPLOY will become visible. Click on Deploy->Load Module.

5.Goto C\usr\F20 (j2ee instance)\SYS\global\ra\

6.In RHS pane sapjra.jar will appear. Select it and click Ok.

After the JRA file has been deployed, open the Visual Administrator.

Click on Cluster -> Server -> Services -> Connector Container.

1. In RHS pane under node CONNECTOR 1.0 there will be a node called sap.com/sapjra.jar. Expand that node.

2. Click on eis/SAPJRAFactory. In RHS pane click on u2018Managed Connection Factoryu2019 tab.

3. Click on u2018Properties tabu2019.

4. Add following properties and values :

 Language

 MessageServer

 UserName

 SAPClient

 SystemID

 Password

Make sure the type is always java.lang.string.

5.Save this. Click on eis/SAPJRAFactory and click on clone button .

6.Enter SAPJRAFactory_EN as value in the popup box. And change the value of language property to EN. Save it.

Clone it once again and give Name = SAPJRAFactory_DE and language = DE.

7.Under Services in LHS pane click on JCo RFC Provider

8.In right most pane enter PROGRAM ID = MEMGMT_MOBILE_CONTAINER_SYNC.

9.For rest of the fields enter data for the ABAP system you wish to connect Admin UI .

Creating TCI/IP type RFC Connection -

1. Login to the ABAP system.

2. Launch transaction sm59. Create new TCP/IP type RFC connection.

3. Enter some name for the RFC destination. Give program ID = MEMGMT_MOBILE_CONTAINER_SYNC.

4. Enter appropriate gateway service and host (same as you entered in Visual Admin). Test Connection.

5. Launch transaction sm30.

6. Open table MEMGMT_J2EE_DEST . Create a new entry. Enter the name of RFC destination that you created in SM59 in u2018RFC Destinationu2019 field. Enter some description.

7. Save the data.

Thanks and Regards,

Ruchi.

Former Member
0 Kudos

Configuration of Mobile Administrator

*Deploying the JRA for the Mobile Administrator *

[http://farm5.static.flickr.com/4152/4841812148_9b232ae489_b.jpg]

[http://farm5.static.flickr.com/4109/4841812156_42c766f1b0_b.jpg]

[http://farm5.static.flickr.com/4153/4841812162_302576252a_b.jpg]

[http://farm5.static.flickr.com/4109/4841812166_a03420b8d3_b.jpg]

[http://farm5.static.flickr.com/4126/4841812172_b647a74fd4_b.jpg]

[http://farm5.static.flickr.com/4127/4841812180_e068e7a33e_b.jpg]

[http://farm5.static.flickr.com/4127/4841818846_bd09ed7e6b_b.jpg]

[http://farm5.static.flickr.com/4105/4841818854_cea2cbac17_b.jpg]

[http://farm5.static.flickr.com/4127/4841818860_6edd0c7c67_b.jpg]

[http://farm5.static.flickr.com/4085/4841818874_bfae1cfb34_b.jpg]

Configuring and Copying the Service

[http://farm5.static.flickr.com/4108/4841818880_3b8ded005a_b.jpg]

[http://farm5.static.flickr.com/4083/4841818882_d5b124edbe_b.jpg]

[http://farm5.static.flickr.com/4146/4841824268_5d73b4477f_b.jpg]

[http://farm5.static.flickr.com/4107/4841824274_81ea61683a_b.jpg]

Enabling Mobile Component Uploads

[http://farm5.static.flickr.com/4125/4841824286_3746a8b1b8_b.jpg]

[http://farm5.static.flickr.com/4106/4841824292_b8d1fcbf08_b.jpg]

[http://farm5.static.flickr.com/4144/4841824296_0983b0b679_b.jpg]

Enabling Transaction Calls

[http://farm5.static.flickr.com/4113/4841824302_7b3be8b6f6_b.jpg]

[http://farm5.static.flickr.com/4147/4841837986_d5830eb10c_b.jpg]

[http://farm5.static.flickr.com/4085/4841838044_fee8168570_b.jpg]

Configuring Mobile Component Downloads

[http://farm5.static.flickr.com/4132/4841838050_4145a7ce29_b.jpg]

Activating Synchronization Monitors

With Service User for Administration I get this error. Then I used J2ee_admin (administrator J2ee Engine) and work. [http://farm5.static.flickr.com/4133/4841838058_e4c2da167f_b.jpg]

With Service User for Administration the function "Maintain JCO Destinations" is disable

[http://farm5.static.flickr.com/4125/4841838066_1d93f83e97_b.jpg]

With J2ee_admin user the function "Maintain JCO Destinations" is enabled

[http://farm5.static.flickr.com/4147/4841838070_fefbf02a0a_b.jpg]

[http://farm5.static.flickr.com/4131/4841226937_9dec8cf3da_b.jpg]

[http://farm5.static.flickr.com/4125/4841226949_d2eb0d74bf_b.jpg]

[http://farm5.static.flickr.com/4149/4841226955_848df57d89_b.jpg]

[http://farm5.static.flickr.com/4150/4841226965_6c601a247a_b.jpg]

Former Member
0 Kudos

Creating Service Users

Service Users for the Synchronization [http://farm5.static.flickr.com/4112/4841168203_0585f60637_b.jpg]

Service Users for the Synchronization [http://farm5.static.flickr.com/4151/4841168223_249a5704c7_b.jpg]

Service Users for the Synchronization [http://farm5.static.flickr.com/4092/4841168229_a7c9a4038c_b.jpg]

Service Users for Administration [http://farm5.static.flickr.com/4124/4841168239_cb38f5e721_b.jpg]

Service Users for Administration [http://farm5.static.flickr.com/4152/4841168247_3fb663c5e2_b.jpg]

Service Users for Administration [http://farm5.static.flickr.com/4129/4841791372_e357e534e3_b.jpg]

Checking Profile Parameters [http://farm5.static.flickr.com/4109/4841791378_56ef37440e_b.jpg]

Checking Profile Parameters [http://farm5.static.flickr.com/4105/4841791386_02b51fa752_b.jpg]

Setting Up a Synchronization Service

[http://farm5.static.flickr.com/4113/4841791388_b1bb55e4a3_b.jpg]

[http://farm5.static.flickr.com/4106/4841791394_19dbd06999_b.jpg]

[http://farm5.static.flickr.com/4152/4841791396_f04b2f7eeb_b.jpg]

[http://farm5.static.flickr.com/4091/4841191269_d8b938d3af_b.jpg]

Activating the Synchronization Service and Protocol

[http://farm5.static.flickr.com/4149/4841191279_3c21108567_b.jpg]

Reports for Scheduling Background Jobs

[http://farm5.static.flickr.com/4128/4841191283_b0f41c5b73_b.jpg]

[http://farm5.static.flickr.com/4107/4841191295_d4bd60718e_b.jpg]

[http://farm5.static.flickr.com/4151/4841191299_a5a6094327_b.jpg]

[http://farm5.static.flickr.com/4146/4841191303_4529563fe2_b.jpg]