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

BAPI

Former Member
0 Likes
498

HI

can any one plz give me the code for object done using BAPI method

regards venkat

4 REPLIES 4
Read only

Former Member
0 Likes
456

You can find a example here.

http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm

Regards,

Ravi

Note : Please mark the helpful answers

Read only

0 Likes
456

hi ravi

thank u

venkat

Read only

Former Member
0 Likes
456

****************************************************

  • local internal table *

****************************************************

data: begin of item occurs 1.

include structure BAPI2017_GM_ITEM_CREATE.

data: end of item.

data: begin of return occurs 1.

include structure BAPIRET2.

data: end of return.

****************************************************

  • local data *

****************************************************

data: header like BAPI2017_GM_HEAD_01,

code like BAPI2017_GM_CODE value '03',

doc like BAPI2017_GM_HEAD_RET-MAT_DOC,

year like BAPI2017_GM_HEAD_RET-DOC_YEAR,

l_before like mard-labst.

****************************************************

  • commands *

****************************************************

l_before = MARD-LABST.

header-pstng_date = header-doc_date = sy-datum.

header-pr_uname = sy-uname.

header-header_txt = 'LTD Daily Auto Issue'.

item-material = PARTDATA-matnr.

item-plant = PARTDATA-PLANT.

item-stge_loc = WORK-LOC.

item-move_type = c_move_type.

item-entry_qnt = QTYDATA-RECQTY.

append item.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

GOODSMVT_HEADER = header

GOODSMVT_CODE = code

  • TESTRUN = 'x'

IMPORTING

  • GOODSMVT_HEADRET =

MATERIALDOCUMENT = doc

MATDOCUMENTYEAR = year

TABLES

GOODSMVT_ITEM = item

  • GOODSMVT_SERIALNUMBER =

RETURN = return.

Regards,

Ravi

Read only

0 Likes
456

hi ravi

thank u

venkat