Skip to Content
Part 1 Part 2 Part 3 Part 4

Create PK and Generate Code

A Personalization Key is needed to pass input from device to SAP. This key will be used while developing native app to pass the input from mobile device to SAP server. “IDRANGE” is the load parameter (ie. RFC input) of the MBO. Right click on the folder “Personalization Keys”> New> Personalization key.

/wp-content/uploads/2014/02/c_385059.jpg

Give the below details in the personalization key window, click on Finish button after setting the values. Storage can be kept server or client in the case of native application. If server is selected the Personalization key value will be stored in the server and client option stores the Personalization key value in the device itself.

/wp-content/uploads/2014/02/9_385058.png

Map the PK “PK_CustomerInput” with the Load Argument of MBO.

/wp-content/uploads/2014/02/10_385060.png

Right click on the project and click on Deploy Project that deploys the project to Unwired Server. From SCC (Sybase Control Center) navigate to packages under default domain to see the deployed MBO package.

/wp-content/uploads/2014/02/13_385067.png

Generate Object API

The Sybase Unwired Platform Android Client Object API consists of generated business object classes that represent the mobile business object model built and designed in the Unwired WorkSpace development environment. The Object API representing the MBO model of “Customers” project can be generated from SUP workspace.

The Android Client Object API is used by device applications to synchronize and retrieve data and invoke mobile business object operations.

Right click the Customers project and select Generate code.

/wp-content/uploads/2014/02/14_385069.png

On the code generation configuration screen, click Next.

/wp-content/uploads/2014/02/15_385081.png

Make sure the Customer and Customers_List MBOs are selected, and then click Next.

/wp-content/uploads/2014/02/16_385094.png

Specify the given below values and click Finish.

/wp-content/uploads/2014/02/17_385095.png

The code will be generated in the Project path mentioned (\Customers\Generated Code). The error in the generated code can be ignored. This generated code will be used in the android application during development.

/wp-content/uploads/2014/02/18_385097.png

Next

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply