on 11-15-2011 1:50 PM
Hi, Experts
I am now developing a sample iPhone App which call BAPI_COMPANY_GETDETAIL and get company data and show on it.
But I don't know how can i pass the company code as input parameter to call this BAPI from Objective-C program.
now I sat this MBO to online as cache policy, because company detail data is decided, only if company id is given.
maybe if I propagate company id as load parameter, this will be fine.
Please let me know.
Regards,
Hi, Experts
This is a self-reply.
Online cache policy is only for workflow, so on-demand is right for this case.
Regards,
Edited by: Takayoshi Osawa on Nov 16, 2011 11:36 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Finally I understood it.
Originally Native application's query is retrieved only from device local database. so all data you need should be cached before query.
I created two MBO and connected them by one-to-one relation.
the company id which is retrieved from list bapi is propagated to detail bapi then company detail data is retrieved, then I got all detail data.
BAPI_COMPANY_GETLIST
BAPI_COMPANY_GETDETAIL
Hi,
To add it to your answer, It might not be optimal in some cases to just create another MBO to just fetch the Company Code as in your example and connect it as an input to the other MBO. Creating an MBO will create a seperate Table with the MBO name as table name in the client(iphone) local database.
There are better ways to do it. You can create a personalization parameter in the SUP workspace and then link it to the company code in Load Parameters.
While in the code, you can create a personalizationKey Instance by [PersonalizationClassName getInstance] and then make use of the personalization key you defined and set it an appropriate value and then wait for the Notification to occur.
Hi kiranpk1988,
Thank you for your reply.
I also thought of the personalization key and the load parameter. but to change the personalization parameter effects asynchronous and does not change local cache soon.
I thought that the personalization key is not good for request-response base architecture, but good only for setting the limit of EIS data under asynchronous condition.
Regards
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.