‎2009 Dec 08 5:21 AM
hi all,
when i am posting goods movement using BAPI_GOODSMVT_CREATE bapi i am getting error "PL Stock in transit exceeded by 200 UNT : 10000000125 3065 0005"
this is the code :
gs_gmhead-pstng_date = sy-datum.
gs_gmhead-doc_date = sy-datum.
gs_gmhead-pr_uname = sy-uname.
gs_gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
gt_bapiitab-move_type = 101.
gt_bapiitab-mvt_ind = 'B'.
gt_bapiitab-entry_qnt = gs_header-qty.
GT_BAPIITAB-MOVE_STLOC =
gt_bapiitab-stge_loc = gs_header-LGORT.
gt_bapiitab-po_number = gs_header-ebeln.
gt_bapiitab-po_item = gs_header-ebelp.
gt_bapiitab-VENDRBATCH = gs_header-licha.
gt_bapiitab-PLANT = gs_header-werks.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = gs_header-matnr
IMPORTING
OUTPUT = gt_bapiitab-material
.
gt_bapiitab-material = gs_header-matnr.
gt_bapiitab-ENTRY_UOM = gs_header-meins.
gt_bapiitab-ENTRY_UOM_ISO = 'EA'.
gt_bapiitab-PO_PR_QNT = gs_header-qty.
gt_bapiitab-ORDERPR_UN = gs_header-meins.
gt_bapiitab-ORDERPR_UN_ISO = 'EA'.
gt_bapiitab-ST_UN_QTYY_1 = gs_header-qty.
gt_bapiitab-ST_UN_QTYY_1_ISO = 'EA'.
gt_bapiitab-ST_UN_QTYY_2 = gs_header-qty.
gt_bapiitab-ST_UN_QTYY_2_ISO = 'EA'.
gt_bapiitab-QUANTITY = gs_header-qty.
gt_bapiitab-BASE_UOM = 'EA'.
gt_bapiitab-LINE_ID = '000001'.
gt_bapiitab-PARENT_ID = '000000'.
append gt_bapiitab.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gs_gmhead
goodsmvt_code = gs_gmcode
TESTRUN = ' '
GOODSMVT_REF_EWM =
IMPORTING
GOODSMVT_HEADRET = gs_mthead
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
tables
goodsmvt_item = gt_bapiitab
GOODSMVT_SERIALNUMBER =
return = gt_errmsg
GOODSMVT_SERV_PART_DATA =
EXTENSIONIN =
.
‎2009 Dec 08 8:10 AM
PL Stock in transit exceeded by 200 UNT : 10000000125 3065 0005"
the code does not matter, it is the process and the stock situation that does not allow the creation of the movement.
you cannot receive e.g. 200 from in-transit stock if you only have nothing in transit.
First the goods issue has to be performed in the shipping plant.