2013 Oct 25 9:47 AM
Hi
I am using
BAPI_GOODSMVT_CREATE
for transfer order of 311 Q.
i am passing these values to bapi
But am getting Error enter the Purcharse Order
*to update picklsit no in doc header text of MIGO
lv_code = '04' ..
lv_header-pstng_date = wa_mat_issue-issued_date.
lv_header-doc_date = wa_mat_issue-issued_date.
clear var_listno.
var_list = wa_mat_issue-rslistno.
shift var_list left deleting leading '0'.
concatenate 'Offcut trans pk lst' var_list into var_listno separated by space.
lv_header-header_txt = var_listno.
clear var_listno.
it_goodsmvt_item-res_type = ' '.
it_goodsmvt_item-stge_loc = wa_mat_issue-lgort.
it_goodsmvt_item-move_stloc = wa_mat_issue-rlgort.
it_goodsmvt_item-gr_rcpt = wa_mat_issue-aufnr.
it_goodsmvt_item-entry_uom = wa_mat_issue-meins.
it_goodsmvt_item-entry_uom_iso = wa_mat_issue-meins.
it_goodsmvt_item-res_item = wa_mat_issue-rspos.
it_goodsmvt_item-entry_qnt = wa_mat_issue-issued_qty.
it_goodsmvt_item-move_type = wa_mat_issue-bwart.
if wa_mat_issue-charg is not initial.
it_goodsmvt_item-batch = wa_mat_issue-charg.
endif.
it_goodsmvt_item-spec_stock = 'Q'.
it_goodsmvt_item-wbs_elem = wa_mat_issue-posid.
it_goodsmvt_item-mvt_ind = 'B'.
append it_goodsmvt_item.
2013 Oct 25 10:03 AM
Dear Arun,
You need not to set the movement indicator.
Code = 04 - as you selected for transfer posting
* GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
* 02 - MB31 - Goods Receipts for Prod Order
* 03 - MB1A - Goods Issue
* 04 - MB1B - Transfer Posting
* 05 - MB1C - Enter Other Goods Receipt
* 06 - MB11
Indicator should be Blank without reference
* Goods movement w/o reference
* B - Goods movement for purchase order
* F - Goods movement for production order
* L - Goods movement for delivery note
* K - Goods movement for kanban requirement (WM - internal only)
* O - Subsequent adjustment of "material-provided" consumption
* W - Subsequent adjustment of proportion/product unit material
since you said 'B' it is looking for PO
Chane your code as
it_goodsmvt_item-mvt_ind = ' '. "remove B
REgards,
Venkat
2013 Oct 25 9:49 AM
2013 Oct 25 9:51 AM
Hi nabheet
This is for TransferOrder - Others Catergory in MIGO
PO Number is non mandatory one.
I need to create without PO Number.
2013 Oct 25 9:56 AM
Then can you please check via debugging where is this message thrown. Can you please paste the message id and number
2013 Oct 25 10:05 AM
2013 Oct 25 9:56 AM
it_goodsmvt_item-mvt_ind = 'B'. "Change this
Movement indicator "B" is for movement against Purchase order ,so change this.
Regards
2013 Oct 25 10:03 AM
Dear Arun,
You need not to set the movement indicator.
Code = 04 - as you selected for transfer posting
* GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
* 02 - MB31 - Goods Receipts for Prod Order
* 03 - MB1A - Goods Issue
* 04 - MB1B - Transfer Posting
* 05 - MB1C - Enter Other Goods Receipt
* 06 - MB11
Indicator should be Blank without reference
* Goods movement w/o reference
* B - Goods movement for purchase order
* F - Goods movement for production order
* L - Goods movement for delivery note
* K - Goods movement for kanban requirement (WM - internal only)
* O - Subsequent adjustment of "material-provided" consumption
* W - Subsequent adjustment of proportion/product unit material
since you said 'B' it is looking for PO
Chane your code as
it_goodsmvt_item-mvt_ind = ' '. "remove B
REgards,
Venkat
2013 Oct 25 10:08 AM
KI - 180 - You must
enter a company code for transaction Goods Movement
this is the message when i removed Movement Indiactor and left it blank
Then i passed werks
But am getting error -
Check
table XMRES: entry 0000000000 0001 does not exist
2013 Oct 25 10:19 AM
2013 Oct 25 10:25 AM
| M7 | 1 | ID Num MessageCheck table XMRES: entry 0000000000 0001 does not exist |
2013 Oct 25 10:27 AM
Have you tried created transfer posting through MIGO first by using values which you are passing through BAPI?
2013 Oct 25 10:31 AM
Please post material document manually in MIGO by passing your BAPI values. If it's posting successfully obviously there is no problem with the data.
-Venkat
2013 Oct 25 10:32 AM
Also, why are you passing this?
it_goodsmvt_item-res_item = wa_mat_issue-rspos.
Are you creating transfer posting with reference to reservation. If not, remove the above line. Also go through the documentation of BAPI which describes the required fields that need to be passed on basis of header code '04'.
GM_Code 04: Transfer posting
Transfer posting without reference to a reservation
The following fields must be populated:
The following fields can be populated (this is not a complete list):
The following fields cannot be populated (this is not a complete list):
Transfer posting with reference to a reservation
2013 Oct 25 10:37 AM
Hi Guru's
Thanks For Replies.
The Mistake I did was passing
mvt_ind = 'B'
res_item = rspos.
I removed Both and left those Blank which solve my problem and posted Succesfully.
2013 Oct 25 10:44 AM