on 12-09-2009 9:19 AM
Hello,
I tried to send various kinds registration requests via ICF to functional module REGISTER_DEVICE but without successs. I also tried to change registration criteria via TC "sdoe_dev_register" but it didn't help very much.
e.g. I checked two parameters as obligatory for registration: USER and PHYSICAL_ID and sent my request as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<registration>
<param name="PHYSICAL_ID" value="68F24C2FF4EBFF6C649C84174BE68FBE" />
<param name="RGSTRATN_CNF_ID" value="000C29DEFEEE02DDA6E69FA499A3D0EA" />
<param name="NAME" value="HARZER" />
</registration>
</asx:values>
</asx:abap>
The function module returned as follows:
DEVICE_ID <empty>
EV_X_XMLDOC <empty>
REGISTERED "X"
No exeption has been thrown.
Does anybody know any detailed documenation about S_MMW_ADM package or even about the devices' registration process on the application server? Besides, I know already the document "Integrating Custom Client with DOE" version 1.1
Here is the status of our System:
SAP_ABA 711 0003 SAPKA71103 Cross-Application Component
SAP_BASIS 711 0003 SAPKB71103 SAP Basis Component
PI_BASIS 711 0003 SAPK-71103INPIBASIS Basis Plug-In
ST-PI 2005_1_710 0003 SAPKITLQJ3 SAP Solution Tools Plug-In
SAP_BW 711 0003 SAPKW71103 SAP Business Warehouse
best,
Maciej
The XML looks fine. Except that you say you have made USER a mandatory parameter and you are passing 'NAME' instead (which actually refers to the Device's name).
EDIT: Also check the registration configuration ID. You should get identical values for the UUID in the table SMMW_DEV_REGISTR in the DOE system.
By the way, when you try to register a device, you must get the DEVICE_ID field that was assigned to it, along with a REGISTERED='X'. The response you are getting looks like a bug (because clearly the device is not getting registered, and you're getting an 'X' for registered).
Edited by: Arjun Shankar on Dec 9, 2009 10:33 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arjun,
yes, you're right, I passed NAME instead of USER. I just tried a lot of possible requests, therefore I gave another example in my post, It doesn't work when I pass the value for USER.
Do I have to register the deivce(s) via 'Data Orchestration Admin and Monitoring Portal' somehow bofore I call REGISTER_DEVICE api?
cheers,
Maciej
hi,
the xml message should be in the following format.
<?xml version="1.0" encoding="UTF-8" ?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<registration>
<param name="PHYSICAL_ID" value="68F24C2FF4EBFF6C649C84174BE68FBE" />
<param name="RGSTRATN_CNF_ID" value="000C29DEFEEE02DDA6E69FA499A3D0EA" />
<param name="NAME" value="DEVICENAME" />
<param name="LOGIN_NAME" value="SAPUSER" />
</registration>
</asx:values>
</asx:abap>
and also to make the DEVICE NAME as a registration parameter follow the below steps
in the mobile server goto transaction sdoe_dev_register. under attribute name column check for "NAME" and confirm whether it is checked for registration and mandatory
if it is not checked please check the fields and but clicking change configuration button after doing the changes click the freeze configuration
Here's all you should have to do in DOE system:
1. Set the mandatory parameters
2. Create a new (Initial) device, and 'Enable' it from Device Administration in NWMA
3. Regenerate RMM (Receiver Meta Model) just in case.
Here's all you should have to do in client:
1. Pass the correct configuration ID and the name value pair for the correct mandatory parameters along with a unique physical ID (make sure the device generates its own physical ID and that none of the already existing devices in DOE already use it)
Yep. If all this is done, you should have registration. If like you said you get registered = 'X' and a blank device ID, and no exception then there is a bug somewhere in the DOE, which you could report.
Hi Joseph,
I checked the fields "NAME" and "USER" in sdoe_dev_register as mandatory and passed following message:
<?xml version="1.0" encoding="UTF-8" ?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<registration>
<param name="PHYSICAL_ID" value="68F24C2FF4EBFF6C649C84174BE68FBE" />
<param name="RGSTRATN_CNF_ID" value="000C29DEFEEE02EDA8ADD01DD0D69946" />
<param name="NAME" value="HARZER" />
<param name="LOGIN_NAME" value="HARZER" />
</registration>
</asx:values>
</asx:abap>
I didn't receive device ID, got any exceptions and the export parameters of are:
L_XMLOUT <empty>
L_SMMW_GUID <empty>
L_REGISTERED "X"
I think, I'd rather open an OSS Call before I investigate further.
Thanks for your help.
Hello Ramanath,
alas! I haven't created any device on the DOE.
So, I did as you suggested, I registered a device via admin portal, enabled it, and passed my registration string once more and I was sucessfull:
<?xml version="1.0" encoding="utf-8"?>
<registrationresponse>
<devices>
<device>
<param name="DEVICEID" value="000C29DEFEEE02EDA8AEC2CD72FE4D35"/>
</device>
</devices>
</registrationresponse>
My intention is to register the device via REGISTER_DEVICE automatically.
Do I always have to register devices firstly on the DOE and after that via REGISTER_DEVICE?
Hi,
Whatever steps you have followed in DOE are for creating a device. Register_device API will simply map the logical device created by you with the physical device which is synchronizing.
Automatic creation of the device during registration process is not supported till now.
Regards,
Ramanath.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.