Skip to Content
0
Former Member
Jan 22, 2013 at 10:16 AM

Split Week issue in DP

109 Views

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.