cancel
Showing results for 
Search instead for 
Did you mean: 

How to change bucket capacity for a certain date range (duration)?

Former Member
0 Kudos

Hi,

I need to update the bucket capacities of Resource at Vendor location in APO live cache for a particular period using BAPI_RSSRVAPS_CHANGEMULTI.

Here I am executing BAPI by passing -

Import Parameters:

LOGICAL_SYSTEM

COMMIT_CONTROL

PLANNING_VERSION

Tables:

RESOURCE_HEAD

(RESOURCE = Resource " Test123

LOCATION = Vendor Number/Loctaion

CAPACITY_A = 5000.000

NUM_OF_PERIODS = 001

PERIOD = 02 " Day Wise

UTIL_BUCKET = 100.000 )

RESOURCE_HEAD_X

(All corresponding fields X)

RESOURCE_QUANMODEL

(RESOURCE = Resource " Test123

VERSION = 01

ENDDA = 02/25/2011

BEGDA = 02/21/2011

QUANMODEL = 8000 )

RESOURCE_QUANMODEL_X

(All corresponding fields X)

[ I have a capacity variance:

Resource = Test123; Capacity Varient = 01; Valid From = 02/21/2011

Valid To = 02/25/2011; Bucket Util Rate = 100.000; Qty/Rate definition = 8000 ]

Now, while I execute /SAPAPO/RES01 to display Capacity for that resource-Location-PlanningVersion, Its showing that 'Bucket Capacity' and 'SNP Bucket Capacity' get changed into 5000. But this change happend for all the days and not only for the duration I passed into Bapi (From BEGDA to ENDDA).

How to change bucket capacity for a certain date range (duration)? Any help please.

Thanks

Roy

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Arghya,

I am also struck in the above requirement. Can you please provide further details ...

I want to change utilization % of the resource for a particular week. But the BAPI  BAPI_RSSRVAPS_CHANGEMULTI is changing for the entire duration.

How can we restrict for a particular week. Please respond ASAP.

Thanks,

Kiran

Former Member
0 Kudos

I did it myself. Hence closing the thread.

Solution:

1. Get RESUID from /SAPAPO/RESKEY table by passing Resource as NAME.

2. Call Function Module /SAPAPO/CRES_QUANPROF_UPDATE

3. Call Function Module /SAPAPO/CRES_SAVE_FROM_BT

For further help, change manually a single record in the 'capacity profile' in TXN /SAPAPO/RES01 and debug both the FM mentioned above.

BR

Roy

Former Member
0 Kudos

did you try changing capacities from capacity profile?

goto /n/sapapo/res01 --> select bucket profile --> goto capacity profile and in change mode change capacity for the required periods manually.....

Hope this helps...

Regards,

Harshil Desai