Quantcast
Channel: SCN : Unanswered Discussions - SAP for Mobile
Viewing all 5512 articles
Browse latest View live

Synchronization using the username and activation code in android native app

$
0
0

Hi ,

 

My question is that is it possible to synchronize if we are using only user and activation code for login instead of using the SCC credentials (supAdmin and s3pAdmin) ?

 

I developed an android native application in which I am able to synchronize when I login to the application with the SCC login credentials (supAdmin and s3pAdmin).

 

Code used:

try {

 

                                        ConnectionProperties connProps = app.getConnectionProperties();

                                        connProps.setServerName(HOST);

                                        connProps.setPortNumber(PORT);

  ApprovalDB.setApplication(app);

                                        LoginCredentials loginCredentials = new LoginCredentials(

                                                            USERNAME, PASSWORD);

                                        connProps.setLoginCredentials(loginCredentials);

 

                                                  if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED) {

 

 

                                                            app.registerApplication(600);

                                                  } else {

                                                            app.startConnection(600);

                                                  }

                                        } catch (Exception e) {

                                                  returnMsg = e.getMessage();

                                        }

 

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

 

But when I login to the application with manually created user and activation code I am not able to synchronize. Login happens successfully and the device comes online in the SCC.

The error is "The synchronization failed because Mobilink returned authentication status 4 with value 4000"

 

Code used:

 

try {

 

                                        ConnectionProperties connProps = app.getConnectionProperties();

                                        connProps.setServerName(HOST);

                                        connProps.setPortNumber(PORT);

  ApprovalDB.setApplication(app);

                                        LoginCredentials loginCredentials = new LoginCredentials(

                                                            USERNAME, PASSWORD);

                                         connProps.setActivationCode(PASSWORD);

                                        connProps.setLoginCredentials(loginCredentials);

 

                                                  if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED) {

 

 

                                                            app.registerApplication(600);

                                                  } else {

                                                            app.startConnection(600);

                                                  }

                                        } catch (Exception e) {

                                                  returnMsg = e.getMessage();

                                        }

 

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

 

Finally the code used for synchronization is

 

ConnectionProfile connectionProfile = ApprovalDB

                                                  .getSynchronizationProfile();

                                                  connectionProfile.setServerName("server ip");

                                                  connectionProfile.setPortNumber(2480);

                                                  connectionProfile.setNetworkProtocol("http");

                                                  connectionProfile.setAsyncReplay(true);

                                                  connectionProfile.setDomainName("default");

                                                  connectionProfile.save();

                                                  PersonalizationParameters param = ApprovalDB

                                                  .getPersonalizationParameters();

                                                  param.setPK_CODE(1234);

                                                  param.save();

 

 

                                                  Log.d("Subscribe", "Start");

                         ApprovalDB.subscribe();

                                                  Log.d("Subscribe", "End");

                           ApprovalDB.submitPendingOperations();

 

 

 

                   ApprovalDB.disableChangeLog();

                   ApprovalDB.synchronize();

                                        SynchronizationGroup sg = ApprovalDB

                                                            .getSynchronizationGroup("SynchronizationGroup1");

                                        sg.setEnableSIS(true);

                                        sg.save();

                   ApprovalDB.synchronize();

 

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



Can anyone give a solution.


Adding Mobile Services to an existing BOE 4.0 installation

$
0
0

Have an existing BOE. 4.0 SP4 Patch-5 installation and want to install Mobile Services on a separate server.  Can the CMS Mobile add-on be added to the existing CMS server without disrupting the existing environment/functions .  (as opposed to adding additional languages which requires a full re-installation)

How to connect iOS app to SUP 2.1.3 through relay server

$
0
0

Hi all,

 

I have successfully configured Sybase Hosted Relay server in my SUP 2.1.3 Server but in iOS frontend, m encountering the below error when trying register my app to SUP 2.1.3 through Relay Server. 

 

onConnectionStatusChanged: status = 105, code = 571, message = Error: 571 Detail: Session failed Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1024.

 

then

 

[65874:5d03] onHttpCommunicationError: errorCode = 404

 

 

 

While trying to register application.I am doing as follows:

 

   SUPApplication* app = [SUPApplication getInstance];

 

app.applicationIdentifier = @"MyApp";


        CallbackHandler *acb = (CallbackHandler *) [CallbackHandler getInstance];
        [acb retain];
        [app setApplicationCallback:acb];
       
       
        SUPConnectionProperties* props = app.connectionProperties;
        [props setServerName:@"relayserver.sybase.com"];
        [props setPortNumber:80];

        [props setNetworkProtocol:@"http"];
        [props setUrlSuffix:@""];
        [props setFarmId:@"Rehan.FarmMBS"];


        SUPLoginCredentials* login = [SUPLoginCredentials getInstance];


            login.username = @"rehan";
            login.password = nil;
            props.activationCode = @"123";
            props.securityConfiguration = @"admin";


        props.loginCredentials = login;
               
            [app registerApplication:800];

        if(![MyApp1DB databaseExists])
        {
            [MyApp1DB createDatabase];        

  
             [MyApp1DB generateEncryptionKey];
            [MyApp1DB closeConnection];


            SUPConnectionProfile *cp = [MyApp1DB getConnectionProfile];
            [SUPPOApprovalVault setString:@"encryptionkey" withValue:[cp getEncryptionKey]];
            [cp.syncProfile setDomainName:@"default"];
           
            [cp setAsyncReplay:NO];
           
            [cp setServerName:@"relayserver.sybase.com"];
            [cp setPortNumber:[portno intValue]];
            [cp setNetworkProtocol:@"http"];
            [cp setNetworkStreamParams:@"trusted_certificates=;compression=none;url_suffix=/ias_relay_server/client/rs_client.dll/Rehan.FarmRBS"];
           
            [cp setUser:@"rehan"];
            [cp setPassword:@"mypassword"];
           
           
            [cp enableTrace:NO];
            [cp.syncProfile enableTrace:YES];
           
           
           
           
        }

 

Please guide me where m doing wrong.

New to BO MObile

$
0
0

Hi -

 

I have recently got an ipad 3.

Pls let me know how to download BO Mobile into the iPad.

 

Thanks,

BPMishra

Loading failed error in SAP BI app

$
0
0

Hello everybody,

 

I have this problem. Everytime i open a particualr dashboard that has around 3000 rows of data, that was created in Xcelsius, in SAP BI app in the ipad, I get this error that says "Loading Failed: The dashboard is too complex". I have to have so many rows of data since it is important part of the dashboard.

 

This error often pops up for other dashboards too and after two three times the dashboard loads. This time its not loading at all in the ipad.

 

Are there any row limitations for the ipads to work properly?

 

Thanks in advance

 

Regards

 

Varshini Ranganathan.

Clear form data from HWC application

$
0
0

HI,

 

I created Mobile Workflow application. In Save operation the data successfully saved in database also. I am trying to add new record immediately then the create screen has bind with previous entered data, I need to clear the previous entered data while second time creation what can I do?

 

Thanks in Advance.

ERP order notes

$
0
0

HI all.

 

May you please advice on how one captures notes on the device for ERP orders.

The functionality seems to be disabled for this action and it is a requirement that we capture notes when capturing an order on the device. both at item level and header level.

Please assist.

submitPending operation issues in SUP 2.1.3

$
0
0

Hi community experts,

    I am developing an iOS application by referring sybase 2.1.3 documentation. In background i am connecting an iOS device using a native app based on SUP object API's to connect to SUP and SUP connects to SAP backend.

The MBO's are built from SAP functional modules.

In sybase unwired workspace, I have created the MBO with operation and the operation type is "OTHER" and data source specified is SAP. Input / output parameters are selected and code is generated for iOS

The operation flow is like this

 

      // Instantiate header and operation

       ITEM_BAPI_CREATEOperation* createOp = [[ITEM_BAPI_CREATEOperation alloc] init];

          createOp.itemNo  = @"001";

 

       ITEM_BAPI_HEADEROperation* header = [[ITEM_BAPI_HEADEROperation alloc] init];

          header.itemQTY = [NSNumber numberWithInt:1];

 

        ITEM_AddComponent * operation = [[[ITEM_AddComponent alloc]init]autorelease];

        [operation addComponentsWithMethod:createOp withHeader:header];

        [operation save];

        [operation submitPending];

 

While executing above operation it gives me the error as itemQty is NaN (not a number) though i am assigning a number value into the header.itemQTY variable and flow of program execution stops by crashing over  [SUPAbstractEnityRBS submitPending]. The same operation is working correctly on android side and giving error on iOS side. Please give me the valuable suggestions.

 

I will be very thankful if anyone could could suggest me what might be going wrong and how to fix these kind of issues.


Custom Thumbnails for dashboards on IPad

$
0
0

Hello

 

How do I give a custom image as a thumbnail for dashboards in Ipad? I use BOBJ 4 and SAP BI app 4.4 and iOS 6.0.1 .

 

Thanks

 

Varshini.

Geomap popup parameter passing is not getting reflected on the second report

$
0
0

Hi,

 

I have SAP BO 4 with SP4 and the latest SAP BI Ipad  version 4.4.18 installed.

I am trying to open a report by clicking a POI from Geomap in IPAD, I get a Pop with a hyper link Icon but the report opened on clicking the same is not refreshed for the POI i.e I am getting the entire dumb of data present in the second report.

I am using the Opendoc concept and has gone through the entire Opendoc threads in this discussion forum, but nothing has helped me fix this issue.

Please help me fix it.

Also, PFB the syntax that I have used for the opendoc function.

 

="iDocID=AfY6K81WRehImRNbr9e9loE&sIDType=CUID&sType=wid&sReportName=POC&sRefresh=Y&sReportPart=TABLE&lsSState:="+[State]

 

Thanks in advance!

 

Regards

Priya

CRM Sales 2.0 - Is there any way to configure Sync completion Message

$
0
0

Hi,

 

Would like to know is there any configration in SCC to configure Sync completion message or is any progress indicator while syncing an CRM Sales 2.0 [RBS] App form iPhone or iPad. Bcz users are not able to know when the sync is competed and the wheel spins even though thye sync is done.

 

Reagrds, Lokesh.

GeoMap - Use of Filters, Order of Measures, and Bug!

$
0
0

Hi,

 

Running version 4.4.18 with BO4 SP5 (no patch).

 

Two questions with regards to GeoMaps.

 

Problem 1 - When I setup my webi table with just the one dimension in it, the map displays perfectly showing the data without any filtering (i.e. with no dimension selected as a filter). I can then select from the dropdown to filter as required. When I add a second filter to the table the report selects one of the values (seemingly randomly) from this new dimension to automatically filter the report upon initial open. The original dimension remains unselected. 

 

This has the impact of filtering my data so that only a subset of my POI's are displayed when the report is first opened, which is not what I want. I do notice the behaviour of the filters when there are multiple dimensions is that only one can be used to filter by at any one time, but not both. This is fine, as long as I have the option to choose no filters, which it seems I cannot. (I do recall seeing a screenshot in documentation somewhere that indicated this was possible).

 

I also notice that now that I've removed the 2nd dimension which I had added above, that it is now forcing a selection on my original dimension by default, which it wasn't doing before!

 

Any ideas?

 

 

Problem 2 - My webi table has multiple measures but the order that these are displayed in the dropdown on the map appears to be random. I need to move the measure columns around in the webi table a nuimber of times to get them to display in the order I need, rather then simply ordering them from first to last. Anyone know the secret behind the ordering?

 

I have also setup my report so that when you tap on the POI the initial popup displays all available measures, but these display in a different order again to my drop downlist! Head scratching.

 

Any ideas?

 

 

Bug 1 - Big fan of this product, its wowing execs. However I thought it is worth pointing out this 'feature' to developers, something I stumbled on during a demo unfortunately. I am using a world map with a large number of countries mapped. When I tap on Norway, the popup shows Sweden. When I tap on Sweden, it shows Norway. Strange I thought. Did a bit more digging and have discovered that POI's with the same Latitude seem to get muddled (the lowest Longitude value seems to get the prize i.e. Sweden before Norway, Brazil before Peru, etc.). Not a massive problem and easily fixed by adding a minute/second or two to your location), but certainly worth knowing about.

 

 

Thanks in advance.

Date field is not populating to android native app.

$
0
0

Hi,

 

I have an MBO in which there are two fields with datatype "date".

 

Pic_77 Jan. 23 11.57.jpg

 

When I write android native code how can I manage it?

I am able to bring other fields to the device but the date fields are null.

Given below is the code used in the android.

 

for(Past_Substitutions itemheader : Past_Substitutions.findAll())

                                {

                                          item = new PastSubstitutionsBO();

                                          item.setEMAIL(itemheader.getEMAIL());

                                          item.setEND_DATE(itemheader.getEND_DATE());

                                          item.setPHONE_NUMBER(itemheader.getPHONE());

                                          item.setSTART_DATE(itemheader.getSTART_DATE());

                                          item.setSUBSTITUTE_NAME(itemheader.getSUBSTITUTE_NAME());

                                          item.setSUBSTITUTE_POSITION(itemheader.getSUBSTITUTE_POSITION());

                                          item.setSUBSTITUTE_USER_NUMBER(itemheader.getSUBSTITUTE_PERNR());

                                          items.add(item);

                                }

 


I debugged the same even in the object "itemheader" the date field is null. If it was present them I would have converted those to date fields.

 

How we can solve this issue?

 

Thanks

Midhun

MBO deployment error

$
0
0

I deployed my MBOs in local unwired server. It was successfull.

When I try deploying the same MBOs in Remote Server(shared by other teams ) I get the below error.

Unknown error in server runtime: loader constraint violation when resolving method "com.sybase.afx.jdbc.DataSourceInfo.setDataSource

Screen Shot err.png

Different screen sizes: SUP background image

$
0
0

Hello,

 

we are using SUP version 2.1.3. In our company we have different devices with different screen sizes / aspect ratios (4:3, 16:9). iPhones, iPads, Samsung Android mobile phones, Samsung Galaxy Tab 10.1 and we are creating lightweight applications.

 

What is the best practice to handle those different screen sizes and provide the right background image for the devices? Small images for phones, big images for tablets?

 

We don't want a repeating image, we want the image displaying with the full height and width of the device. And this not on all screens, primary on the start screen.

 

What is the best way to solve this? Some CSS with media querys for screen sizes? Custom.js?


odata security.

$
0
0

Hi All,

        could any one explain me the ways to secure & Encrypt the ODATA? Currently we are consuming ODATA for Android mobile, We don't have any certificate therefore our communication is only on HTTP from device to Relay. Will the transaction still be secure & encrypted? Because when I read MBS it says the communication is always encrypted, Likewise Does SUP do any thing while acting as Proxy for ODATA transaction?

Thanks

-Arun

PhoneGap with SUP without HWC

$
0
0

Does anyone have experience in creating an app using PhoneGap directly with SUP, without using the SUP HWC?  Is this something that would be an issue from the point of view of Sybase/SAP support?

SAP 9 XALAN Error

$
0
0

I use a SAP B1 9 with Crystal Reports. Every time a save a Report the SAP Business one.exe crashes down and in the Eventlog I find errors from the Xalan C++ Libary.

 

Name der fehlerhaften Anwendung: SAP Business One.exe, Version: 9.0.46.0, Zeitstempel: 0x50b7776a

Name des fehlerhaften Moduls: Xalan-C_1_10_b1.dll, Version: 1.10.0.0, Zeitstempel: 0x4ec60708

Ausnahmecode: 0xc0000005

Fehleroffset: 0x0000000000003ac5

ID des fehlerhaften Prozesses: 0x11e4

Startzeit der fehlerhaften Anwendung: 0x01cdf981ca3334f3

Pfad der fehlerhaften Anwendung: C:\Program Files\SAP\SAP Business One\SAP Business One.exe

Pfad des fehlerhaften Moduls: C:\Program Files\SAP\SAP Business One\Xalan-C_1_10_b1.dll

 

Anyone an idea how to fix?

Upload file from mobile app

$
0
0

Hi,

 

We are trying to upload a .XLS or .CSV file from a mobile app.
So far we are exporting the file content as XSTRING from mobile to a custom RFC that calls function SCMS_XSTRING_TO_BINARY to get the binary.

 

The issue is that the binary_tab doesn't came with binary content, it throws the same xstring data.
We guess it could be the structure type, I have read several post and use the following types without luck:

 

x255

x

any

solix

solix_tab

sdok_sdat
sdokcntbin

sdokcntascs

Any idea to solve this, or to upload a file from iOS device?

 

Regards,
Francisco Silva

Get HWC connection settings from workflow app

$
0
0

Hi all,

 

I need to get the Device user name (which we configured in HWC connection settings) from workflow app.

 

I found similar kind of query in this link http://scn.sap.com/thread/2124967

 

getURLParam("supusername"); in api.js is used to get user name of the stored credential details not the device username or sup username.

 

I want to get the device username.

 

and in SUP 2.2 there is library file hwc-api.js, through this library file we can able to get the connection setting details of hwc.

 

So, I hope there should be some other way to get the username in SUP 2.1.3 workflow app.

 

Please share if any one have idea.

 

Thanks in advance.

 

Regards

Yokesvaran.K

Viewing all 5512 articles
Browse latest View live




Latest Images