6 Replies Latest reply: Jul 31, 2008 12:05 PM by Rajini Rajuladevi RSS

BAPI to get the Material in Stock

Kuldeep Verma
Currently Being Moderated

Hi Experts,

     I have requirement in which I have to call the function module(RFC Enabled) or BAPI which give the following fields as listed below

1.Plant

2.Material

3.Material description

4.Batch number

5.Material type

6.Basic unit of measure

7.Storage location

8.Unrestricted quantity (not consignment)

9.Reserved quantity

10.Quantity under inspection,

11.Blocked

12.Returns

13.Stock in transit

 

Please help me out soon.

 

 

Thanks and regards,

Kuldeep Verma

  • Re: BAPI to get the Material in Stock
    Currently Being Moderated

    hi check this..

     

    BAPI_MATERIAL_SAVEDATA

  • Re: BAPI to get the Material in Stock
    Aparna Gaikwad
    Currently Being Moderated

    Hi,

     

    You can use 'BAPI_MATERIAL_AVAILABILITY' to find available stock of material.

     

    You can get reservations and reserved quantity from table RESB.

     

    Regards,

    Aparna Gaikwad.

  • Re: BAPI to get the Material in Stock
    Suresh Babu S
    Currently Being Moderated

    Hi Friend,

     

    Pls check the following

    BAPI_MATERIAL_STOCK_REQ_LIST

     

    Regards,

    Suresh.S

  • Re: BAPI to get the Material in Stock
    Pritam Ghosh
    Currently Being Moderated

    use the link:

     

    http://www.sapbapi.com/bapi-list/

     

    With luck,

    Pritam.

  • Re: BAPI to get the Material in Stock
    Rajini Rajuladevi
    Currently Being Moderated

    Hi,

     

    BAPI_MATERIAL_AVAILABILITY is the correct BAPI to get the details.

     

    here is the sample code:

     

    REPORT  ZREPORT_MAT.

    data: ENDLEADTME type BAPICM61M-WZTER,

          AV_QTY_PLT type BAPICM61V-WKBST,

          DIALOGFLAG type BAPICM61V-DIAFL,

          RETURN type BAPIRETURN,

          WMDVSX type table of BAPIWMDVS,

          WMDVEX type table of BAPIWMDVE.

     

     

    CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'

      EXPORTING

        plant                    = '1100'

        material                 = '000000000300000292'

        unit                     = 'EA'

    •   CHECK_RULE               =

    •   STGE_LOC                 =

    •   BATCH                    =

    •   CUSTOMER                 =

    •   DOC_NUMBER               =

    •   ITM_NUMBER               =

    •   WBS_ELEM                 =

    •   STOCK_IND                =

    •   DEC_FOR_ROUNDING         =

    •   DEC_FOR_ROUNDING_X       =

    •   READ_ATP_LOCK            =

    •   READ_ATP_LOCK_X          =

    •   MATERIAL_EVG             =

    IMPORTING

       ENDLEADTME               = ENDLEADTME

       AV_QTY_PLT               = AV_QTY_PLT

       DIALOGFLAG               = DIALOGFLAG

       RETURN                   = RETURN

      tables

        wmdvsx                   = WMDVSX

        wmdvex                   = WMDVEX

              .

     

    break developer.

    write:/ AV_QTY_PLT.

     

    Reward points if useful.

Actions