‎2007 Dec 21 2:31 PM
Hi All ,
Please tell me some documentation for BAPI_MATPHYSINV_POSTDIFF
BAPI_MATPHYSINV_COUNT
BAPI_GOODSMVT_CREATE
If poossible for providing some sample code then it really help .
Regards ,
‎2007 Dec 21 3:09 PM
This is an exemple for BAPI_GOODSMVT_CREATE (transaction MIGO, for MB01 - Goods Receipts for Purchase Order)
CLEAR: es_goodsmvthdr,
es_goodsmvtcod,
es_goodsmvthret.
REFRESH: it_goodsmvtitm,
it_return.
es_goodsmvthdr-pstng_date = sy-datum.
es_goodsmvthdr-doc_date = it_billing-bldat.
es_goodsmvthdr-ref_doc_no = it_billing-xblnr.
es_goodsmvthdr-gr_gi_slip_no = it_billing-xblnr.
es_goodsmvthdr-header_txt = text-001.
es_goodsmvtcod-gm_code = '01'.
it_goodsmvtitm-material = it_billing-matnr.
it_goodsmvtitm-plant = ti_selecao-werks.
it_goodsmvtitm-stge_loc = ti_selecao-lgort.
it_goodsmvtitm-move_type = '122'.
it_goodsmvtitm-entry_qnt = ti_selecao-menge.
it_goodsmvtitm-entry_uom = ti_selecao-meins.
it_goodsmvtitm-po_number = it_billing-ebeln.
it_goodsmvtitm-po_item = it_billing-ebelp.
it_goodsmvtitm-mvt_ind = 'B'.
it_goodsmvtitm-move_reas = 1.
APPEND it_goodsmvtitm.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = es_goodsmvthdr
goodsmvt_code = es_goodsmvtcod
IMPORTING
goodsmvt_headret = es_goodsmvthret
TABLES
goodsmvt_item = it_goodsmvtitm
return = it_return.
‎2007 Dec 21 3:12 PM
Take a look at Functional Group MB_BUS2028:
BAPI_MATPHYSINV_CHANGECOUNT
BAPI_MATPHYSINV_COUNT
BAPI_MATPHYSINV_CREATE
BAPI_MATPHYSINV_CREATE_MULT
BAPI_MATPHYSINV_GETDETAIL
BAPI_MATPHYSINV_GETITEMS
BAPI_MATPHYSINV_GETLIST
BAPI_MATPHYSINV_POSTDIFF
Check link for more details -
http://sapass.metro.client.jp/Bapi/BUS3016.htm
Reward points if helpful....
Cheers,
Rakesh