Skip to main content

Posts

Showing posts with the label physical stock

Logic to fetch physical stock in SAP EWM

We can use any of the below to fetch the physical stock of a material in EWM. CALL METHOD lo_stock->get_physical_stock                 EXPORTING                   it_matnr_r   = lt_matnr[]                   it_lgpla_r   = lt_lgpla[]                 IMPORTING                   et_stock_mon = DATA(lt_stock_mon). lo_mon_stock->get_physical_stock(       EXPORTING         iv_skip_resource = abap_true         iv_skip_tu       = abap_true         it_huident_r     = lt_huident_r         it_lgpla_r       = lt_lgpla_r       IMPORTING         et_stock_mon     = DATA(lt_stock_mon)         ev_error         = DATA(lv_error) ).