on 12-19-2008 1:06 AM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you saving layout after entering the values for location A and before changing the location to B?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.