Application Development and Automation 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: 
Read only

Difference for BAPI

Former Member
0 Likes
511

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 ,

2 REPLIES 2
Read only

Former Member
0 Likes
411

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.

Read only

Former Member
0 Likes
411

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