cancel
Showing results for 
Search instead for 
Did you mean: 

Complete the buffer without leaving planning folder when reexecuting PFunct

Former Member
0 Kudos

When i use a planning function in a planning folder, the reference data are read on the infocube and written into an internal data bufferdirectly after the read access.

If the function is called again, the reference data are read from this buffer without having to read data from BW.

My problem is that i need to read the infocube again about these reference data because they should have been changed by the use of another application. I suppose that a FM exist to do so, read the infocube again and complete the red data in the buffer.

Thanks a lot.

JF

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi JF,

You can clear the buffer using function API_SEMBPS_REFRESH. make sure that you save the data from buffer to cube before calling this function.

Hope it will help you.

Thanks & Regards

Tarun

Former Member
0 Kudos

Thanks for your help but i don't want to clear the buffer but to complete it without having to leave my folder. In fact i need to read the cube again to insert in my buffer new records created with another buffer. Moreover the FM you gave me, can only be used in the BPS0 and not in another end user interface like folder or web interface.

thanks

JF

Former Member
0 Kudos

Hi JF,

you need to create a 'Exit' type planning function.

In the user exit of this planning function you need to call few APIs in sequence.

First Call API_SEMBPS_SETDATA and API_SEMBPS_POST to save the data from buffer to cube. then clear the buffer by calling API_SEMBPS_REFRESH. after this you can call API_SEMBPS_GETDATA to get the new data from the cube into buffer.

you can call this exit planning function in folder or in web application.

Regards

Tarun

Former Member
0 Kudos

sorry to join in this thread.

It ried to put in place the solution from tarun.

I receive the follow error :

I_area parameter missing .

Do you have to export some values?