Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

MB5B-Bapi or FM or logic

Former Member
0 Kudos

Dear Experts,

How to calculate opening stock & balance against material,plant,and month.any FM or BAPI ?.

i mean mb5b reports displaying corectly.pl tell me the logic.

regards,

raj a

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos

BAPI_MATPHYSINV_GETDETAIL

BAPI_MATPHYSINV_GETLIST

BAPI_RESERVATION_GETDETAIL1

5 REPLIES 5

Former Member
0 Kudos

Why not debug MB5B yourself to know the logic behind it?

Regards

Karthik D

Former Member
0 Kudos

hi friend

MARDH:Material Master Storage Location Segment: History

mslbh:Special Stocks at Vendor: History

Mseg:Document Segment: Material

RESB : Reservation/dependent

RKPF: Document Header: Reservation


  MATNR WERKS LGORT LFGJA LFMON LABST INSME SPEME  are the fields of MARDH.
  MATNR  WERKS  SOBKZ   LIFNR   LFGJA  LFMON   LBLAB  LBINS are the fields of MSLBH.

regards

surender

Edited by: SURENDER on Oct 14, 2009 11:25 AM

Former Member
0 Kudos

Hi,

Check out these:

bapi_material_availability

CBP_SOP_OPENING_STOCK_READ

Thanks,

Krishna

0 Kudos

Hi,

MB5B Logic -

As on date stock value is available in MARC(Material wrt Plant) and MARD(Material wrt Storage Location).

For getting stock value on a particular day, get the Quantity of Material transferred from that particular day to current day using MKPF and MSEG. Then add/subtract this value to as on date stock value to get the opening stock value on that particular day.

Regards,

Vipin.

former_member156446
Active Contributor
0 Kudos

BAPI_MATPHYSINV_GETDETAIL

BAPI_MATPHYSINV_GETLIST

BAPI_RESERVATION_GETDETAIL1