2008 Oct 22 2:13 AM
Hi Xprts.
I'm trying to make a good movemente input troughout the BAPI_GOODSMVT_CREATE. This for fabrication orders, i've sent the info that the documentation of this bapi displays, but i've allways receive the following message : "|Order [NUMBER] not found or not permitted for goods movement". But this order number it's a right fabrication order, then if use the migo the proccess of saving the movement does'nt return any error message. Could anybody hpl me please.
Tnxs,
Steve.
2008 Oct 22 2:32 AM
Hi
Could you paste the values which you are passing in to the BAPI along with the field names....
Also, you should pass exactly the field length of the order number..
For example, the field length is 10 and order number is 20000,then you should pass it as 0000020000.
Regards,
Vishwa.
Hi
Could you paste the values which you are passing in to the BAPI along with the field names....
Also, you should pass exactly the field length of the order number..
For example, the field length is 10 and order number is 20000,then you should pass it as 0000020000.
Regards,
Vishwa.
2008 Oct 22 2:32 AM
Hi
Could you paste the values which you are passing in to the BAPI along with the field names....
Also, you should pass exactly the field length of the order number..
For example, the field length is 10 and order number is 20000,then you should pass it as 0000020000.
Regards,
Vishwa.
2008 Oct 22 2:59 AM
Hi frnd,
Here are my code :
Internal Tables
it_goods_mvt_header-pstng_date = sy-datum.
it_goods_mvt_header-doc_date = sy-datum.
it_goods_mvt_header-pr_uname = sy-uname.
I've an internal table called it_intbasc it's work area is wa_intbasc, this table contains the items to be inserted.
it_goodsmvt_item-material = wa_intbasc- it_goodsmvt_item-plant = 'PP10
it_goodsmvt_item-stge_loc = 'C001'.
it_goodsmvt_item-batch = wa_intbasc-charg.
it_goodsmvt_item-move_type = '101'. "(gestión stocks)
it_goodsmvt_item-entry_qnt = wa_intbasccant_pzas. it_goodsmvt_item-po_pr_qnt = wa_intbasc-cant_kg. it_goodsmvt_item-po_item = lv_item.
it_goodsmvt_item-orderid = wa_intbasc-aufnr.
it_goodsmvt_item-order_itno = lv_item.
it_goodsmvt_item-MVT_IND = 'F'.
it_goodsmvt_item-MOVE_REAS = 0.
it_goodsmvt_item-quantity = wa_intbasc-cant_pzas.
it_goodsmvt_item-base_uom = 'CJ'. "Unidad de APPEND it_goodsmvt_item.
it_goodsmvt_item_cwm-matdoc_itm = lv_item.
it_goodsmvt_item_cwm-quantity_pme = wa_intbasc-cant_pzas.
it_goodsmvt_item_cwm-base_uom_pme = 'CJ'.
it_goodsmvt_item_cwm-entry_qnt_pme = wa_intbasc-cant_kg.
it_goodsmvt_item_cwm-entry_uom_pme = 'KG'.
APPEND it_goodsmvt_item_cwm.
lv_item = lv_item + 10.
ENDLOOP.
Then the CALL FUNCTION
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = it_goods_mvt_header
goodsmvt_code = c_goodsmvt_code ("2" ASSIGNED)
IMPORTING
goodsmvt_headret = it_goodsmvt_headret
materialdocument = it_material_document
matdocumentyear = it_matdocumentyear
TABLES
goodsmvt_item = it_goodsmvt_item
goodsmvt_item_cwm = it_goodsmvt_item_cwm
return = it_return.
2008 Oct 22 3:06 AM
May be you missed this line
data: lt_return TYPE bapiret2.
I am sorry actually i want to reply to your other thread but i replied here
2008 Oct 22 3:14 AM
Hi
As I said earlier, just check if you are passing the exact values...I mean..the order number....just add the prefix 0's and check...The code looks ok to me.
Regards,
Vishwa.
2008 Oct 22 3:24 AM
Vishwa.
I've used the function of the data element of aufnr to convert it, the problem was solved, thank you very much.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |