on 01-22-2013 10:16 AM
Our requirement is to upload Sales Forecast data for split weeks to DP.
For example, the week 28-Jan-13 to 03-Feb-13 has a month end in the middle of the week. In that case, 2 sets of data should be uploaded in the APO system:
1. Forecast from 28-Jan-13 to 31-Jan-13;
2. Forecast from 01-Feb-13 to 03-Feb-13.
We get Sales Forecast data as IDocs which are processed using a custom Function Module. The BAPI BAPI_PBSRVAPS_CHANGEKEYFIGVAL2 is used to save the data into the system.
The problem is that this BAPI does not allow us to save the data in this split week format. It displays an error 'Time period 20130128000000 to 20130131235959 does not exist or cannot be changed' and updates the data for that week with the value in the second row (i.e., February).
Is there any other Function Module or any other approach that we can use to achieve our requirement? Please help.
-Regards,
Swagata.
Hi Swagata,
SAP standard functionality (either in SNP data view or product view) creates the forecast order with a time stamp of 00:00:00. Pl try to execute your BAPI with the following data streams
1st data stream: 20130128000000 - 20130131000000
2nd data stream: 20130201000000 -20130203000000
Thanks,
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rajesh,
Thanks for your input. The date is already being loaded in timestream format as otherwise none of the data would be updated.
I have found a few approaches to solve this issue:
1. Implement the BAdI /SAPAPO/SDP_SAVE to allow the split weeks.
2. Create a Fiscal Year variant similar to the Technical period 9ASTORAGE and use the same in the Planning Book and Data View.
3. Use the Function Module /SAPAPO/TS_DM_SET instead of the BAPI and use explicit commit control.
4. There is also an option to use 'External Time series mapping' data by maintaining table /SAPAPO/MAP_TSNW but I have not explored this option.
-Regards,
Swagata.
User | Count |
---|---|
8 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.