Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Start with dates from the past in the planning book

I want to maintain some figures from the last 14 days in the past.

And I want the planning book to show these 14 days, when I open the planning book.

(I do not want to scroll back).

In my Data view i have to define a Time Bucket profile for the future. (system demand)

This profile I has defined with one day.

The Time Bucket profile for the past are 21 days.

When I start the planning book with the view, I see only one column with todays date.

I want to see the past 14 days, and therefore I have to scroll back.

Is it possible to start with the last 14 days?

- By setting the Period information in the Data view tab?

- By other settings?

- By macro?

Former Member
Former Member replied

Hi Per,

You need to go for a developing an ABAP report. The development calls for updating the planning start date in the data view design mode.

You can use function modules /SAPAPO/MSDP_PB_READ_DVIEW and /SAPAPO/MSDP_PB_SAVE_DVIEW_TAB.

So the logic could be as follows:

1. First develop a FM which will determine the planning start date as per your requirements. This has to be with respect to the system date. So this Function module should in effect subtract 14 days from system date and store in a date field.

2. Using the FM /SAPAPO/MSDP_PB_READ_DVIEW, this date can be updated in the data view / PLanning start date field.

3. Using FM /SAPAPO/MSDP_PB_SAVE_DVIEW_TAB, you can save and generate the data view.

After developing the program you need to schedule this in background so that the planning start date is calculated and stored automatically.

You need to take care of one thing though. In case there are any macros developed in the data view/macro book, the start dates for macro execution will be changed as well. You need to tweak those as per your requirements.

Hope this helps.

Regards,

Ashutosh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question