cancel
Showing results for 
Search instead for 
Did you mean: 

Split Week issue in DP

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

rajkj
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

rajkj
Active Contributor
0 Kudos

Hi Swagata,

Thanks for the information. It's interesting.

Regards,

Rajesh