Inserting Data From Mobile to ECC using SUP Mobile Workflow Application
Hi everybody,I have created an Application where in you can enter Data from Mobile to ECC. Through this application the data that is entered in MOBILE will be stored in ECC. Below is the sample Application Screen Shots created by me named EMPDETAILS (RFC) and CREATE_EMP(SUP Application).
ZEMPLOYEE TABLE Structure
RFC should be Remote Enabled.
Import parameter WA_EMP referring the Table ZEMPLOYEE.
GT_EMPof type Internal Table referring ZEMPLOYEE table.
Below is the Coding on how to Create a Record in ZEMPLOYEE Table and once the Record is Created, using the SELECT Statement the Data can be Retrieved.
As part of creating the SUP Application firstly we have to Create the Mobile Application Project .
Click on File->New->Mobile Application Project.
Define the name of the Application in the Project name field.
Here i have given CREATE_EMPas name
After creating the Application create the MBO, right click on Mobile Business Object folder->New->Mobile Business Object.
Provide the name for MBO.
I have selected SAP as my Data Source type is sap. Whenever we select the Data Source the connection profile automatically displays, otherwise you can have an option to create the Connection Profile.
Here you will have to search the RFC or BAPI. Click on browse.
Provide the RFC name and click on search BAPIs/RFCs button.
We can select the RFC from the list that is displayed.
WA_RFCis import parameter which is already defined in RFC. Select the incheckbox.
To view the Ouputwe have to select the Internal Table GT_EMPwhich will display all the records.
Below is the Folder Structure displayed once the MBO is created.
Under the Structure folder, you can view EMPDETAILS_WA_EMP
EMPDETAILSis the name of the RFC,
WA_EMPis the import parameter.
Deploy the project.
Now we will have to create the Mobile Workflow Forms Editor.
Right click on the project->New->select Mobile Workflow Forms Editor.
Provide the name for Workflow Editor. And click next.
Select the first option Can be started, on demand, from the client.
When we create the MBO it will automatically open the Diagram Editor.
Otherwise right click on project and select open in Diagram Editor.
If you observe in the above screenshot there is no operations defined by MBO. Drag and drop the operation from the palette view to EMP_CREATE_MBO.
While creating operation we will have to select the create operation type.
You can give your choice of name for the operation. Once again select the data source and connection profile. Click next.
Search the BAPI/RFC operation
Sect the RFC and click ok.
Select the WA_EMPfor providing the input parameters and GT_EMPfor displaying the data.
Create operation was created, observe in this screenshot.
Double click on .XBW File, EMPCREATION is my .XBW in this example.
Drag and drop the EMP_CREATE_MBO in flow design page.
Double click on start screen. I have added a HTML view for displaying a sample text.
Add MenuItem and provide name Create Employee.
Provide the parameters as defined in this screenshot.
After this the Flow Design Page is looks like this.
Now double click on EMPCREATEMBOCREATE screen.
Click on create Menu Item and provide the properties defined in this screenshot.
Add Menu Item and provide name as details .
Select the details Menu Item and provide the parameters as defined below.
Final you save and deploy once again.
Go to start Screen Design page and click on Generate Mobile Workflow Package icon.
I am very excited to post this first blog of mine. I would request the viewers to share their views.
Just what SCN needs.
All the best,
Thank you Andy.
I am Planning to provide some more screenshots for how the output is displayed in android, windows mobile and blackberry simulators, but there is a upload limit upto 1 mb.
once again thank you.
what about using www.irfranview.com IrFranView (free) tool to resize the images ? For example 800x1200 will be about 60kb.
Have fun with your blogging this will be an interesting series.
Looking forward to the next installment.
Hiii Satya ,
Nice post but after create operation how can i get my return message back to mobile ???? i also have my ZBAPI which creates material but i am unable to get that return parameter same as your example you didn't explain how to get return data on to mobile after create operation.