cancel
Showing results for 
Search instead for 
Did you mean: 

Pass Input Parameter to MBO

0 Kudos

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");

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

0 Kudos

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?

Former Member
0 Kudos

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

Answers (0)