on 07-01-2011 4:21 AM
I have a SAP BAPI (Y_GET_APPR_LIST), which takes an import paramter (USER) and returns a structure. I have created the MBO (GetApprList)
I have also generated a CREATE operation (setGetList) with the same input and out parameters.
I have generated the code for BlackBerry, imported the code into Eclipse.
My question is how do I pass the the input parameter and get the result set back in Eclipse.
GetApprList obj = new GetApprList();
obj.setGetListUSER("XXXXXX");
Hi please make sure you have done these steps before generating the code.
1.create the sync parameter and map that sync parameter to the your list field.
2. Please link this sync parameter to the load parameter(this is your input parameter ).
3. Generate your code.
in the generation code you can find the yourListSyncParameter Class.
Now in your blackberry application before calling the appDB.synchronize() method.
YourListSynchronizationParameters synParm=YourList.getSynchronizationParameters();
synParm.setSyncValue("value");
synParm.save();
appDB.synchronize("syncGroup");
Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.
I am having issues getting that the code to work.
GetEmpSynchronizationParameters param = GetEmp
.getSynchronizationParameters();
param.setSyn_User_Name("ABCDE");
param.setSyn_Work_Date(new Date());
param.save();
TimeCollectionMBODB.synchronize("myGroup");
Now assuming if this were to work, how do you get the records back from the BAPI?
Hi,
Once the synchronization is completed, data will automatically inserted in the device local db. Before that just check in the SCC your package cache group row count size. if it is greated then 0,some data is inserted in the CDB. Now use findAll() method of your mbo to retrive the data from the device local db.
Regards,
Ram
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.