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

Function module

Former Member
0 Likes
523

Hi,

How to move the stock value from one storage location to another storage location within a plant.

Using MB1B t-code with 311 movement type.

i need function module for that.

2 REPLIES 2
Read only

anup_deshmukh4
Active Contributor
0 Likes
490

Try and use bapi for the following transaction BAPI_GOODSMVT_CREATE

Read only

Former Member
0 Likes
490

Hi,

Yes Anup is right, you can create transfer posting, goods movement by using BAPI 'BAPI_GOODSMVT_CREATE'

You need to pass the following values to BAPI

1. Header data

2. Movement Code

3. Itam data

For tranfer posting goods movement code shold be 03 and for goods issue it should be 04.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

GOODSMVT_HEADER = W_GOODSMVT_HEADER (Posting adte, document date and other required header data)

GOODSMVT_CODE = LV_CODE

IMPORTING

MATERIALDOCUMENT = W_MATERIALDOCUMENT

MATDOCUMENTYEAR = W_MATDOCUMENTYEAR

TABLES

GOODSMVT_ITEM = I_GOODSMVT_ITEM (itam data table)

RETURN = I_RETURN.

Please read the documentation of 'BAPI_GOODSMVT_CREATE' for more details.

Regards,

Mrinal