cancel
Showing results for 
Search instead for 
Did you mean: 

Key figure for Initial Stock...

Former Member
0 Kudos

I understand that the function INITIAL_STOCK in used in Macro for calculation of "Stock on hand".

From where, does the function INITIAL_STOCK extracts the data ... I mean, does it extracts data from a key figure ? If so, which key figure is that... ?

It would really of great help to me...

My case is... I have to upload the stock for a product location combination by updating a key figure in APO system... For the scenario I am handling here, the stock cannot be transferred from R3.

Awaiting for early replies...

Thanks & Regards,

Kris

Accepted Solutions (0)

Answers (2)

Answers (2)

srinivas_krishnamoorthy
Active Contributor
0 Kudos

You should be able to directly load stock in APO using BAPI or also report /SAPAPO/CTMTESTDATACREATE.

The initial stock is picked up using ATP category group ST1 that consists of number of other ATP categories related with stock. You may want to create a Z ATP category group if you want ot deviate from the standard. The initial stock is setup on Location Master in the SNP tab under Stock Cat group field. Default is ST1. you can also influence the behaviour from the macro but is not recommended.

Former Member
0 Kudos

Hi Krishna,

INITIAL_STOCK macro function reads data from staock categroy group defined in Location master under SNP tab. If you didnt defien anything there by defult it reads CC category.

This will happen from version 4.1 onwards.

On your case, why dont you use Stock upload BAPI to upload stck for product / loaction combination into category CC. If you want to use BAPI is BAPI_STSRVAPS_SAVEMULTI2.

But if you want to do it through planning book, may be you need to look out for BADI.

Hope this helps you.

Regards,

Jagadeesh

Pls reward points if it is helpful...

Former Member
0 Kudos

Hi Jagdeesh.,

Thanks a lot for your reply...

I did try with this BAPI..

However, am not able to execute it successfully...

its asking me for Stock type and ATP category type...

ATP category i have entered CC

what should I enter as Stock type..?? (i can enter only two characters)

Thanks & Regards,

Krishna

Message was edited by:

V Krishna Anaparthi