cancel
Showing results for 
Search instead for 
Did you mean: 

Planning Area initialization

Former Member
0 Kudos

Guys,

I am currently using APO 4.1, and wanting to automate the re-initializing of planning area via background jobs. The intention is to re-initlaize the planning area every month, thereby ensuring the timestream exists from the current month +12 monts (for example). However there are 1 or more key figures that I only need to extend + 6months rather than 12. I relaise there is the option called Maintain Key Figure horizons, but how to you maintain these in a variant that want to dyamically calculate the start and end dates. has anyone done this?

regards

Paul

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Paul,

Can you check the fields P_KEYHO and P_PROCID in the variant attributes for report /SAPAPO/TS_PAREA_INITIALIZE. These are new fields and looks to be relevant for the keyfigure and the time horizon for that.

I have not tried it out but hope this works.

Actually looking through the report code and OSS notes to dig further.

Thanks,

Somnath

Former Member
0 Kudos

Somnath,

I have looked at these fileds, the problem is I cannot currently figure how to populate so it does what I require.

As you have determined, I have let's say 10 key figures in my planning area. 9 of these key figures will be re-initialised by the dynamic date determination of the variant, however 1 key figure needsonly to be re-initialised for a short period, however this needs to be maintained dynamically as well, not sure how to populate using table tvarv, if you find any documentation please add to this thread.

Regards

Paul

Former Member
0 Kudos

if the period by which you roll the intitialization of the planning area is the same as the initialization of the keyfigures you want to maintain separately then it will automatically do so

in the program PA initialize make sure you DONT check the "do not automate Adj period" checkbox

then for KF 9 set up the first pereiod

this will automatically roll the KF along with the rest of the plannign area

for instance

Planning Area (All KF except KF9) = 01 jan 2007 to 31 12 2007

KF 9 = 01 jun 2007 to 30 nov 2007

new initialization = 01 feb 2007 to 01 Dec 2007

then

KF 9 = 02Jul2007 to 29Oct2007 (i might have the dates wrong but basically add 31days and subtract 30 from the end)

Check if your periods can be rolled using the available choices of Dynamic variants. Else post what kind of rolling you want to happen and we can look at solving that

if i am not wrong, you need to write an ABAP program to update the table TVARV that updates the date fields everyday based on current system date

Former Member
0 Kudos

Harish,

Firstly thanks for the reply.

I am looking at program /SAPAPO/TS_PAREA_INITIALIZE, via se38, and I cannot see the checkbox 'do not automate Adj period', where should i be looking for this?

cheers

Paul

Former Member
0 Kudos

sorry

my mistake. this is an SCM5.0 feature.

I am not sure if 4.1 has this.

Are you sure you can do a different PA period for some Kfs?

Former Member
0 Kudos

Hi Paul

according to the help , the individual KF can be initialized from 4.0 onwards

check the help below... if you go to the screen with Key figure view you should be able to have different Periods

though you dont have the checkbox as in 5.0 it should function the same way... rolling with similar periods as the planning area... so if you have some KF with 6 months and the others with 12 months it should roll the same way and keep the 6 and 12 months

http://help.sap.com/saphelp_scm41/helpdata/en/4a/6feee700bb11d5b3000050da385632/content.htm

here is some info on the TVARV table..

http://help.sap.com/saphelp_scm41/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm

Former Member
0 Kudos

Harish,

thanks for confirming we can use from version4 onwards, like I said I am on 4.1. I have doen some basic testing, and when initalizing within MSDP_ADMIN the program performs correctly. However when I try to initialise via background process, the key figure date are overwritten by the to and from dates, so I have a question,

1. If you open the variant and view the paramters to save, I have selected Start/End date, dynamic calculation 01/01/07 to 31/12/07. There is a field name P-KEYHO does this need to be populated or not?

If not the program when executing is overwriring my key figure dates with the overall start and end dates.

If unclear Harish, I can send you screen shots and we can discuss and add to the forum as soon as there is an answer.

cheers

Paul

Former Member
0 Kudos

Harish,

ignore my last response, it seems it was user (me) error. The way I have managed to get it working is as follows. I have on the first occassion initialised the planning area via /SAPAPO/MSDP_ADMIN.

then set up a background process via se38 for /SAPAPO/TS_PAREA_INITLIZE, saved the variant and added the dynamic date calculation in the field start/end date to determine an overall start and end date for the time series horizon. However as long as the start and End date of the specific KF are within the start/end date of the values calculated in the star/end date field, then it should roll forward as expected.

I will add a new message to this thread if there are any more discrepancies.

cheers

Paul

Former Member
0 Kudos

great. never tried to initialize KF individually. So thanks for sharing

Answers (1)

Answers (1)

keiji_mishima
Active Contributor
0 Kudos

Hello Pual

Just some remark using key figure specific horizon furing re-initilization.

This function contain some bugs, so you have better to check following SAP Notes. These notes are related to SCM4.1.

SAP Notes 993572 / 963312 / 939270

Best Regards

Keiji

Former Member
0 Kudos

Keji,

thanks, as you were probably replying, I have just found the same OSS notes. the problem I have is that we are on SP13, but some of these notes so not seem to have been applied.

Cheers

Paul