Skip to Content
avatar image
Former Member

Key figure for Initial Stock...

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 09, 2007 at 02:40 PM

    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...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Nov 09, 2007 at 04:03 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded