cancel
Showing results for 
Search instead for 
Did you mean: 

XTH_DATA does not contain whole BPS Buffer

Former Member
0 Kudos

Dear all,

I'm facing the following issue in BPS.

I have a planning folder with a Planning Layout and a global sequence.

The global sequence is executed on data save. The global sequence is executing

an exit function in order to do some minor data adjustments before saving.

Next to this I have several variables to restrict the values.

I'm starting the layout having selected a Location A (entry in variable of type User-defined-values).

Then I'm entering some amount to the key figure columns.

At next I'm changing the selection of the Location to B and I'm entering some amounts again.

If I'm now pressing the save button, my global sequence is executed, but unfortunatelly the table

XTH_DATA does only contain the changed values of my selection B. The changed values of my selections A are missing.

If I'm locking into the Cube after saving the data, I can see, that all the values changed (both selection A and selection B) are written to the database, but unfortunatelly my selection A has not been adjusted by my global sequence.

My question is now, how can I read the whole buffer in order to have all changed data available in my global sequence?

Thank in advance for any help!

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi,

in the settings for the planning function you determine the "fields to be changed". Ensure you get all the data in one block by marking all fields as "to be changed".

hope this helps,

kr thom

Former Member
0 Kudos

Hi,

I have all fields of the planning layout selected as fields to be changend.

I have a Sel_Variable for the Location, which has to filled by the user.

If the user selects Location A and enters data and then he change the Location to B without saving.

At next he is entering data for Location B. If he is now pressing the save-button, my exit function

contains only the values of Location B, I'm missing the values of Location A.

Regards

Marc

Former Member
0 Kudos

Hi Marc,

When the user enters A as the location, the buffer gets a new record with the location as A. However, when the user changes the location to B, in the buffer, the same record is updated with the location as B. So, in the whole course, the buffer has lost the location A.

What I suggest is, instead of changing the location from A to B, create a new record with location B. So, in this case you will ahve 2 records, one with A and the other with B.

Thanks,

Nilanjan

Former Member
0 Kudos

Hi,

thanks for your suggestion, but I have a lot more Variables, the user is allowed to change.

I only wrote a litle example in order to describe my problem.

I really need a solutions of how to get the whole buffer, which means the current and all previous

selections.

Regards

Marc

0 Kudos

Hi,

this is not a problem of the planning buffer but how you parameterize the planning package you are using in the planning sequence for your exit function. As always the planning packages determines the data the planning function will get in change mode (xth_data). If you are using the same variable in the package as in the layout (maybe even the same package in the sequence and the layout) the you will get the last value, of course. I think you can use an exit variable that collects the variable values set in the layout. When the sequence is called replace the exit variable by the list of all used values.

Regards,

Gregor

former_member210676
Participant
0 Kudos

Hi Marc,

If I understand the situation correctly, you are first entering values for location A and then adding a new line and then entering values for location B. If this is the case then both A and B values will be coming to the exit planning function in X_TH_DATA. One thing to notice is that exit planning function is executed for every record according to the grouping based on fields to be changed! Suppose that you don't have any characters in fields to be changed! So for first execution X_TH_DATA will contain location A values and during the next execution X_TH_DATA will contain B values. I assume you know about this! So try to debug and see if this occurs.

If i have not understood your scenario completely please elaborate

Regards,

Ares.

Former Member
0 Kudos

Are you saving layout after entering the values for location A and before changing the location to B?

Former Member
0 Kudos

No the layout is not saved between the selection has been changed.

It is saved at the end.

Former Member
0 Kudos

Hi,

If my understanding is correct, the layout is saved once for both the locations, A and B.

Ideally, the buffer should hold both the data and XTH_DATA should also have those data.

Please check the following:

a. After entering data for A, change the location to B and enter data for that and then again come back to A and verify if you are able to see the data for A or not.

b. In your function, check whether you are capturing all the data or not. Whether you are capturing A or not. Additionally, in your function module, go to the import tab and verify whether the planning level and package has been included properly or not. Check the restrictions in parameter also if any.