Hi Guys
I have built an android app that connects to SAP to fetch data based on the user login in SAP. The RFC uses sy-uname to find who I am and responds with the relevant data. To make this happen, I have designed an MBO with runtime credentials set using in-built personalisation parameters aka username and password. When I synchronise the android app, I get a mobilink server error that says com......RfcGetException: Username or Password incorrect. JCO_LOGON_ERROR_FAILURE with error code 401.
This ofcourse means the username and password I use for the SAP system is wrong. But NO, the uid/pwd is correct and I have correctly set it in the code using personalisation parameters. To further debug the problem, I changed the MBO and removed the runtime credentials and allowed a hard coded value for connection to SAP. I removed the personalisation paramters code from android app and synced the app. It worked like a charm!
I am able to get data to the device. If I switch back to runtime credentials on the MBO and use personalisation parameters it fails with the same error (401). I am absolutely sure that I set the user name and password correctly.
Another problem I noticed is when I set sync paramters before calling the first synchronise, the code raises an exception saying "Illegal Key generated exception: Key not generated for synchrnoisation" {My mbo also has a sync parameter to fetch data but this is not mapped to any load parameter}.
However if I change the MBO as I said above i.e remove the peronalisation paramaters; I am able to sync successfully even with the sync parameter.
System Environment:
Android 2.3.3 + ADT 16.0.0
SUP 2.1.2
ECC 6.0
The android simulator appears online in SCC, I can see that it is susbcribed under replication tab in the MBO as well. How can I check the default personalisation parameters I PASS to SUP in SCC?
PS: Iam able to execute the RFC from an iOS device via SUP succesfully.
Regards
LNV