cancel
Showing results for 
Search instead for 
Did you mean: 

Cache refresh policy does not work for my model

Former Member
0 Kudos

Hi to all.

I have an application which contains two MBOS ( order and orderitem) made by only a RFC Function getlist.

The function retuns two tables: order and item. In my model order MBO is related 1->N with oderitem

My goal with this application is create or modify orderitems for a created order in R3.

Order MBO contains a operacion type CREATE which have a import estructure order, a table orderitem and a order_id like export parameter. My cache group policy is "update cache after the create" and the MBO is included in set to scheduled once a day.

My problem is that when I execute the method CREATE from my device and I add for example two orderitems, the cache is not update so Other devices can not see the operation in their devices until the cache refresh is runned( once a day).

My two question are:

- Cache refresh policy ( update cached) does not work for childs MBO??

- In this case, Can I use DCN to update the cache after a order is updated in R3??? In this case? Is possible to update the two related MBO with the same message DCN ( by URL)??

Thanks and regards

Accepted Solutions (0)

Answers (1)

Answers (1)

clemens_gantert
Active Participant
0 Kudos

Hello,

I had a similar problem. I was not able to map the result of an RFC to more than one MBO. In my opinion you have to use DCN. Yes, you can update several different MBOs within the same DCN post (but the MBOs must be deployed in the same package).

I had a similar Order/Item problem. To create an order from the device I have a create operation on the item that takes many items (all of the same order to be created) as input (header data like BP info is redundantly passed in each item). The order is created in the backend and I create the corresponding order header MBO through DCN.

I just today created a post on DCNs in Code Exchange (project "SUP Apps"): https://cw.sdn.sap.com/cw/docs/DOC-146641

Hope this helps,

Clemens