Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to read data form livecache

Former Member
0 Likes
2,208

Hi,

This is probably not an appropriate forum, however I saw there are many active members hence posting this query.

Can anyone tell me how to read data form livecache (APO). How to know what is database structure, what is table content etc.

Thanks & regards

1 ACCEPTED SOLUTION
Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
1,579

So far in my 3 APO implementations, I never write my own codes to read/write live-cache. The com-routines to access data in live-cache are not similiar for all data. You have to look at each function modules individually. They are not like SAP transparent tables where you can use SELECT statement.

6 REPLIES 6
Read only

Former Member
0 Likes
1,579

liveCache is object oriented database not relative database. You can get data from it with special COM procedures. Use some ABAP functions for reading data.

Read only

0 Likes
1,579

Thanks for the info, but then how do I know what data is available. I saw some function modules in APO which uses commands like connect to livecache, execute procedure. My requirement is I need to get some additional field values, how do I get them? And if I don't know what is the structure, what is the field name, field type etc how can I extract/read the information.

Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
1,579

To read live-cache data in APO you should use SAP delivered function modules. The function modules are depending on the modules you are working on. For example, PPDS planned or production orders use different than DP/SNP. You can look at BAPI list to look at function modules you can use. For example, for DP and SNP you can use BAPI_PBSRVAPS_GETDETAIL to get key figures(in livecache) from a planning book.

Read only

0 Likes
1,579

Thanks for the info, does this mean we can't read data from live cache directly? We have to always use SAP standard function modules / BAPIs to read data?

Sorry for being too specific, but I just wanted a definite answer.

Cheers

Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
1,580

So far in my 3 APO implementations, I never write my own codes to read/write live-cache. The com-routines to access data in live-cache are not similiar for all data. You have to look at each function modules individually. They are not like SAP transparent tables where you can use SELECT statement.

Read only

0 Likes
1,579

Thanks again!

Regards