2012 Apr 23 7:17 PM
Hi all,
i am unable to create a material document instead an inbound delivery is getting created by this BAPI. the movement type is 501.
(the requirement is to create stock at a temporary storage location).
Please help me with this.
Thanks
2012 Apr 24 9:10 AM
see the following example
goodsmvt_item-material = VALDATAC_Z1-matnr.
goodsmvt_item-plant = VALDATAC_Z1-werks.
goodsmvt_item-stge_loc = VALDATAC_Z1-lgort.
goodsmvt_item-batch = VALDATAC_Z1-charg.
goodsmvt_item-move_type = '501'.
goodsmvt_item-val_type = VALDATAC_Z1-charg.
goodsmvt_item-entry_qnt = VALDATAC_Z1-clabs.
goodsmvt_item-entry_uom = VALDATAC_Z1-meins.
goodsmvt_item-move_mat = VALDATAC_Z1-matnr.
goodsmvt_item-move_plant = VALDATAC_Z1-werks.
goodsmvt_item-move_stloc = VALDATAC_Z1-lgort.
goodsmvt_item-move_batch = '0000'.
goodsmvt_item-move_val_type = '0000'.
append goodsmvt_item.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = goodsmvt_header
goodsmvt_code = goodsmvt_code
* TESTRUN = ' '
importing
MATDOCUMENTYEAR = MATDOCUMENTYEAR
materialdocument = materialdocument
tables
goodsmvt_item = goodsmvt_item
return = msg.
Hi all,
i am unable to create a material document instead an inbound delivery is getting created by this BAPI. the movement type is 501.
(the requirement is to create stock at a temporary storage location).
Please help me with this.
Thanks
2012 Apr 23 7:29 PM
I want to re-create MB1C......the goodsmvt_code passed is '05'...
Thanks
2012 Apr 24 8:13 AM
Hi Kartik,
I have used this BAPI for other Goods movements but not for 501 and it always worked as it should.
I suggest you to first try creating material document manually using MB1C tcode.
If it is created successfully there, note down all the inputs passed in transaction and pass the same to BAPI.
Also suggest you to read the documentation for this BAPI to get any helpful insights.
Regards,
SG
2012 Apr 24 9:10 AM
see the following example
goodsmvt_item-material = VALDATAC_Z1-matnr.
goodsmvt_item-plant = VALDATAC_Z1-werks.
goodsmvt_item-stge_loc = VALDATAC_Z1-lgort.
goodsmvt_item-batch = VALDATAC_Z1-charg.
goodsmvt_item-move_type = '501'.
goodsmvt_item-val_type = VALDATAC_Z1-charg.
goodsmvt_item-entry_qnt = VALDATAC_Z1-clabs.
goodsmvt_item-entry_uom = VALDATAC_Z1-meins.
goodsmvt_item-move_mat = VALDATAC_Z1-matnr.
goodsmvt_item-move_plant = VALDATAC_Z1-werks.
goodsmvt_item-move_stloc = VALDATAC_Z1-lgort.
goodsmvt_item-move_batch = '0000'.
goodsmvt_item-move_val_type = '0000'.
append goodsmvt_item.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = goodsmvt_header
goodsmvt_code = goodsmvt_code
* TESTRUN = ' '
importing
MATDOCUMENTYEAR = MATDOCUMENTYEAR
materialdocument = materialdocument
tables
goodsmvt_item = goodsmvt_item
return = msg.
2012 Apr 24 11:04 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |