BAPI ' 'BAPI_GOODSMVT_CREATE''
Hi All,
I am using BAPI ''BAPI_GOODSMVT_CREATE' for posting goods receipt for 161 movement tpye.
with this BAPI , Material document is generated, but Qty in delivery note and Unit is not getting updated. When i see MIGO in display mode it is showing 1) Qty in delivery note as
'0.000' and unit is blank even if i am passing both paramters to item level.
Following is the code
Data : p_meins(3),
p_ENTRY_QNT like BAPI2017_GM_ITEM_CREATE-ENTRY_QNT.
wa_goodsmvt_item-entry_qnt = p_ENTRY_QNT.
wa_goodsmvt_item-entry_uom = p_meins.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = goodsmvt_header
goodsmvt_code = goodsmvt_code
TESTRUN = ' '
IMPORTING
GOODSMVT_HEADRET =
materialdocument = g_mblnr " materialdocument
MATDOCUMENTYEAR =
TABLES
goodsmvt_item = goodsmvt_item
GOODSMVT_SERIALNUMBER =
return = return1
Please give me solution . Tell me which parameters should i pass for Qty in Del note & unit.
Regards.
ulhas
Please take a look at this links for sample coding of BAPI_GOODSMVT_CREATE.
http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
http://www.4ap.de/abap/bapi_goodsmvt_create.php
Check out the following program,
BAPI_GOODSMVT_CREATE to post Goods Movement
code*BAPI TO Upload Inventory Data
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
Domain: KZBEW - Movement Indicator
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
report zbapi_goodsmovement.
parameters: p-file like rlgrap-filename default
'c:\sapdata\TEST.txt'.
parameters: e-file like rlgrap-filename default
'c:\sapdata\gdsmvterror.txt'.
parameters: xpost like sy-datum default sy-datum.
data: begin of gmhead.
include structure bapi2017_gm_head_01.
data: end of gmhead.
data: begin of gmcode.
include structure bapi2017_gm_code.
data: end of gmcode.
data: begin of mthead.
include structure bapi2017_gm_head_ret.
data: end of mthead.
data: begin of itab occurs 100.
include structure bapi2017_gm_item_create.
data: end of itab.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
data: begin of pcitab occurs 100,
ext_doc(10), "External Document Number
mvt_type(3), "Movement Type
doc_date(8), "Document Date
post_date(8), "Posting Date
plant(4), "Plant
material(18), "Material Number
qty(13), "Quantity
recv_loc(4), "Receiving Location
issue_loc(4), "Issuing Location
pur_doc(10), "Purchase Document No
po_item(3), "Purchase Document Item No
del_no(10), "Delivery Purchase Order Number
del_item(3), "Delivery Item
prod_doc(10), "Production Document No
scrap_reason(10), "Scrap Reason
upd_sta(1), "Update Status
end of pcitab.
call function 'WS_UPLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
if sy-subrc 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = sy-uname.
gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
loop at pcitab.
itab-move_type = pcitab-mvt_type.
itab-mvt_ind = 'B'.
itab-plant = pcitab-plant.
itab-material = pcitab-material.
itab-entry_qnt = pcitab-qty.
itab-move_stloc = pcitab-recv_loc.
itab-stge_loc = pcitab-issue_loc.
itab-po_number = pcitab-pur_doc.
itab-po_item = pcitab-po_item.
concatenate pcitab-del_no pcitab-del_item into itab-item_text.
itab-move_reas = pcitab-scrap_reason.
append itab.
endloop.
loop at itab.
write:/ itab-material, itab-plant, itab-stge_loc,
itab-move_type, itab-entry_qnt, itab-entry_uom,
itab-entry_uom_iso, itab-po_number, itab-po_item,
pcitab-ext_doc.
endloop.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gmhead
goodsmvt_code = gmcode
TESTRUN = ' '
IMPORTING
goodsmvt_headret = mthead
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
tables
goodsmvt_item = itab
GOODSMVT_SERIALNUMBER =
return = errmsg
clear errflag.
loop at errmsg.
if errmsg-type eq 'E'.
write:/'Error in function', errmsg-message.
errflag = 'X'.
else.
write:/ errmsg-message.
endif.
endloop.
if errflag is initial.
commit work and wait.
if sy-subrc ne 0.
write:/ 'Error in updating'.
exit.
else.
write:/ mthead-mat_doc, mthead-doc_year.
perform upd_sta.
endif.
endif.
FORM UPD_STA *
form upd_sta.
loop at pcitab.
pcitab-upd_sta = 'X'.
modify pcitab.
endloop.
call function 'WS_DOWNLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
endform.
End of Program[/code]
http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
Take a look at the sample code provided by Rich in the thread below
Re: BAPI_GOODSMVT_CREATE
Please award points if found helpful.
Similar Messages
-
How to post Excise Invoice in GR using BAPI BAPI_GOODSMVT_CREATE ?
Hi,
I want to post Goods Receipt job (MB01) through BAPI 'BAPI_GOODSMVT_CREATE'.
But is there any parameter to post 'Excise Information' through (this/any) BAPI ?
Pls...... answer me soon.
thanks by advance.SEE THE FOLLOWING EXAMPLE
report zbapi_goodsmovement.
parameters: p-file like rlgrap-filename default
'c:\sapdata\TEST.txt'.
parameters: e-file like rlgrap-filename default
'c:\sapdata\gdsmvterror.txt'.
parameters: xpost like sy-datum default sy-datum.
data: begin of gmhead.
include structure bapi2017_gm_head_01.
data: end of gmhead.
data: begin of gmcode.
include structure bapi2017_gm_code.
data: end of gmcode.
data: begin of mthead.
include structure bapi2017_gm_head_ret.
data: end of mthead.
data: begin of itab occurs 100.
include structure bapi2017_gm_item_create.
data: end of itab.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
data: begin of pcitab occurs 100,
ext_doc(10), "External Document Number
mvt_type(3), "Movement Type
doc_date(8), "Document Date
post_date(8), "Posting Date
plant(4), "Plant
material(18), "Material Number
qty(13), "Quantity
recv_loc(4), "Receiving Location
issue_loc(4), "Issuing Location
pur_doc(10), "Purchase Document No
po_item(3), "Purchase Document Item No
del_no(10), "Delivery Purchase Order Number
del_item(3), "Delivery Item
prod_doc(10), "Production Document No
scrap_reason(10), "Scrap Reason
upd_sta(1), "Update Status
end of pcitab.
call function 'WS_UPLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = sy-uname.
gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
loop at pcitab.
itab-move_type = pcitab-mvt_type.
itab-mvt_ind = 'B'.
itab-plant = pcitab-plant.
itab-material = pcitab-material.
itab-entry_qnt = pcitab-qty.
itab-move_stloc = pcitab-recv_loc.
itab-stge_loc = pcitab-issue_loc.
itab-po_number = pcitab-pur_doc.
itab-po_item = pcitab-po_item.
concatenate pcitab-del_no pcitab-del_item into itab-item_text.
itab-move_reas = pcitab-scrap_reason.
append itab.
endloop.
loop at itab.
write:/ itab-material, itab-plant, itab-stge_loc,
itab-move_type, itab-entry_qnt, itab-entry_uom,
itab-entry_uom_iso, itab-po_number, itab-po_item,
pcitab-ext_doc.
endloop.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gmhead
goodsmvt_code = gmcode
TESTRUN = ' '
IMPORTING
goodsmvt_headret = mthead
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
tables
goodsmvt_item = itab
GOODSMVT_SERIALNUMBER =
return = errmsg
clear errflag.
loop at errmsg.
if errmsg-type eq 'E'.
write:/'Error in function', errmsg-message.
errflag = 'X'.
else.
write:/ errmsg-message.
endif.
endloop.
if errflag is initial.
commit work and wait.
if sy-subrc ne 0.
write:/ 'Error in updating'.
exit.
else.
write:/ mthead-mat_doc, mthead-doc_year.
perform upd_sta.
endif.
endif.
FORM UPD_STA *
form upd_sta.
loop at pcitab.
pcitab-upd_sta = 'X'.
modify pcitab.
endloop.
call function 'WS_DOWNLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
ENDFORM. -
Error while doing PGI for Outbound delivery using BAPI BAPI_GOODSMVT_CREATE
Hi All,
I am getting an below error while doing PGI for outbound delivery using the BAPI BAPI BAPI_GOODSMVT_CREATE:
Goods movement not possible with mvmt type 601
Can anyone suggest me what will be the solution for it?
Regards,
Raghuraman.kI tried with the above BAPI but it is not working.
In my case a delivery has one line item with batch split and other line item without batch split.
Below is my code :
DATA : gwa_header_data TYPE bapiobdlvhdrcon,
gwa_header_ctrl TYPE bapiobdlvhdrctrlcon,
lv_delivery TYPE bapiobdlvhdrcon-deliv_numb,
git_item_data TYPE STANDARD TABLE OF bapiobdlvitemcon,
gwa_item_data TYPE bapiobdlvitemcon,
git_item_ctrl TYPE STANDARD TABLE OF bapiobdlvitemctrlcon,
gwa_item_ctrl TYPE bapiobdlvitemctrlcon,
git_return TYPE STANDARD TABLE OF bapiret2,
gwa_return TYPE bapiret2.
*Header data
gwa_header_data-deliv_numb = '0808000002'.
*Header Control data
gwa_header_ctrl-deliv_numb = '0808000002'.
gwa_header_ctrl-post_gi_flg = 'X'.
*Delivery Number
lv_delivery = '0808000002'.
*Item data and its corresponding control data
gwa_item_data-deliv_numb = '0808000002'.
gwa_item_data-deliv_item = '900002'.
gwa_item_data-dlv_qty = 4.
gwa_item_data-dlv_qty_imunit = 4.
gwa_item_data-fact_unit_nom = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb = '0808000002'.
gwa_item_ctrl-deliv_item = '900002'.
gwa_item_ctrl-chg_delqty = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
gwa_item_data-deliv_numb = '0808000002'.
gwa_item_data-deliv_item = '900003'.
gwa_item_data-dlv_qty = 6.
gwa_item_data-dlv_qty_imunit = 6.
gwa_item_data-fact_unit_nom = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb = '0808000002'.
gwa_item_ctrl-deliv_item = '900003'.
gwa_item_ctrl-chg_delqty = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
gwa_item_data-deliv_numb = '0808000002'.
gwa_item_data-deliv_item = '000020'.
gwa_item_data-dlv_qty = 10.
gwa_item_data-dlv_qty_imunit = 10.
gwa_item_data-fact_unit_nom = 1.
gwa_item_data-fact_unit_denom = 1.
APPEND gwa_item_data TO git_item_data.
gwa_item_ctrl-deliv_numb = '0808000002'.
gwa_item_ctrl-deliv_item = '000020'.
gwa_item_ctrl-chg_delqty = 'X'.
APPEND gwa_item_ctrl TO git_item_ctrl.
BREAK-POINT.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
EXPORTING
header_data = gwa_header_data
header_control = gwa_header_ctrl
delivery = lv_delivery
TABLES
item_data = git_item_data
item_control = git_item_ctrl
return = git_return.
BREAK-POINT.
IF git_return IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF. -
Error while using BAPI BAPI_GOODSMVT_CREATE for Momvent type 321
Hi Guys,
We trying to transfer material from Inspection to Un.Stock by using momvent type 321...In SAP we do QVM1 and do stock postion.
We are using BAPI BAPI_GOODSMVT_CREATE getting this error " E QA 495 Change the inspection stock of material 11036125 in QM only".
Any one have any idea how to overcome this issue.
AtulHi Sachin,
Pass the Item Number of Reservation to GOODSMVT_ITEM-RES_ITEM .
Regards
DKS -
Error while using the Bapi BAPI_GOODSMVT_CREATE
Hi all,
I am using the BAPI BAPI_GOODSMVT_CREATE to Upload the Data in MB01 and for creating the MATERIAL DOCUMENT for Multiple Lineitems at a time.
But i am getting the error as * NO ITEMS WERE TRANSFERRED*
I am using two separate intenal tables One for Header records and One for Line item records
and passing the tables in the BAPI.
Please Solve my issue and if possible please send me the sample code along with the flatfile or excel sheet.
Thanks and Regards
ajayCheck the below link for a sample code.
[http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm|http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm]
Hope this helps.
Thanks,
Balaji -
Creation of GR from Contract using bapi BAPI_GOODSMVT_CREATE
Hi,
As per requirement I need to create a GR for Contract line item. I tried to create using BAPI BAPI_GOODSMVT_CREATE but It returns the error message. I tried with GM_CODE '05', so could you please let me know which are the parameters I need to pass to create GR?
Thanks,
Nishad ShahHi,
Populate header, code, item and return table
In header populate PSTNG_DATE ,DOC_DATE ,PR_UNAME(if u have additional information then pass those also)
In Item table MOVE_TYPE ,MVT_IND ,PO_NUMBER ,MATERIAL,PLANT ,STGE_LOC ,PO_ITEM = POITEM-PO_ITEM,ENTRY_QNT .
MVT_IND filed u can leave it as blank as GM_CODE is 05.
Regards,
Sajith -
Getting error while using BAPI 'BAPI_GOODSMVT_CREATE'
Hi,
I am using the BAPI 'BAPI_GOODSMVT_CREATE' in program for goods issue i.e code 03.I am providing all details. the quatity is in KG and i am also providing ISO code i.e KGM but still getting error that Deficit of BA Unrestricted-use 32,900 KG .what would be the problem.Hi There,
Please check if the PO in question has GR-based IV set to active. In this case please refer to the SAP note 109396 which explains how the IDoc segment has to be filled in order for the posting be successful. The IDoc has to be filled as described in the note when try to post with this particular constellation (i.e. GR-based IV active, more than one goods receipt for the line item, first goods receipt already reversed). Normally when posting in dialog the user has to choose the correct line item to reverse. In the case of IDoc/BAPI processing this is not possible so these particular fields have to be filled at the interface so that the system finds the correct document to reverse.
I hope this helps,
Best Regards,
Elaine. -
Update field LSMNG in MIGO transaction using bapi bapi_goodsmvt_create
Hi ,
I am using bapi bapi_goodsmvt_create for creating goods receipt against purchase order in which I have to update field LSMNG i.e. Del. Note Qty. But this field is not there in BAPI input parameters/table fields.
How i can update this field using the same bapi
Thanks and regards
Deepak SharmaHi,
Can I update this field using BAPI bapi_goodsmvt_create.
thanks
Deepak -
How to update j_1ipart1 j_1ipart2 by using bapi BAPI_GOODSMVT_CREATE
i want to update records in j_1ipart1 , j_1ipart2 , rg1 as it gets updated when posting in MIGO with refer to excise incoice.
i want to do the same by using the bapi BAPI_GOODSMVT_CREATE. Any one who can help me out , for what are the steps involved .
thanks in advanceHi,
Refer the following SAP notes.
1. Note 485557 - BAPI_REQUISITION_CREATE: 'EXTENSIONIN' customer enhancements
2. Note 584902 - BAPI_REQUISITION_CHANGE: ExtensionIn not connected
3. Note 792132 - EBAN, EBKN: user-defined fields are not filled
Regards,
Harish -
How to get serial number in bapi BAPI_GOODSMVT_CREATE
hi everyone
im using the bapi BAPI_GOODSMVT_CREATE to create goods receipt for a PO but its giving me an error 'Maintain serial numbers for total quantity' and I really dont know how to get the serial number data, i know the table GOODSMVT_SERIALNUMBER should be populated with the serial number data but i dont know where to get the data
can anybody help me plz?Hi,
Please check the following code
DATA: lw_header TYPE bapi2017_gm_head_01,
lw_headret TYPE bapi2017_gm_head_ret,
lw_goodsmvt_item TYPE tw_goodsmvt_item,
lt_goodsmvt_item TYPE tt_goodsmvt_item,
lw_return TYPE tw_return,
lt_return TYPE tt_return,
lt_zprefg TYPE tt_zprefg,
lw_zprefg TYPE tw_zprefg,
lw_errorlog TYPE tw_errorlog,
lt_zprefg_temp TYPE tt_zprefg,
lw_afs_goodsmvt_sku TYPE /afs/bapi_gm_sku,
lt_afs_goodsmvt_sku TYPE STANDARD TABLE OF /afs/bapi_gm_sku.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = lw_header
goodsmvt_code = '04'
TESTRUN = ' '
IMPORTING
goodsmvt_headret = lw_headret
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
TABLES
goodsmvt_item = lt_goodsmvt_item
GOODSMVT_SERIALNUMBER =
return = lt_return
afs_goodsmvt_sku = lt_afs_goodsmvt_sku.
IF sy-subrc EQ 0.
COMMIT WORK AND WAIT.
ENDIF.
LOOP AT lt_return INTO lw_return.
IF lw_return-type EQ co_msgtyp_e OR
lw_return-type EQ co_msgtyp_a.
lw_errorlog-msgtype = lw_return-type.
lw_errorlog-msgid = lw_return-id.
lw_errorlog-msgno = lw_return-number.
lw_errorlog-message = lw_return-message.
APPEND lw_errorlog TO gt_errorlog.
ELSE.
UPDATE zprefg FROM TABLE lt_zprefg_temp.
ENDIF.
ENDLOOP.
Pls mark points if helpful
Line Turbin -
Problem using BAPI--BAPI_GOODSMVT_CREATE
Hi Gurus,
I am trying to use the BAPI--BAPI_GOODSMVT_CREATE for performing goods reciepts but it is giving the Error "No stock posting possible for this material", When i try to use the MIGO for the same the posting is done. Can any one please suggest me what is the problem with the BAPI and how to correct it?
Thanks in advance
AnoopHi Jurgen,
I have done that still it is giving the same error, any other suggestions??
Regards
Anoop -
Regarding : bapi BAPI_GOODSMVT_CREATE
Hi Experts,
I have to use bapi BAPI_GOODSMVT_CREATE with GOODSMVT_CODE = 04. for the transfer posting of articles from unrestricted to block status.
The movement type for customer return is 252 and i have to execute the 344 movement type for such articles using this bapi.
Can anyone help me as to how to use this bapi, how to populate the item table etc.
Thanks,
NaveenHi,
Check the links
[http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm]
[http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm]
They will give you idea.
and please resolve your post as soon as they are answered. Keeping more than 10 unresolved post is against the rule of engagement. Moderator may lock your thread or account.
Name: Naveen Sharma - View user's Business Card
Registered: Mar 1, 2007
Total Posts: 39
Total Questions: 35 (34 unresolved)
Forum Points: 0
Reagrds,
Anirban -
Field to MIGO cert.enclosed in the BAPI BAPI_GOODSMVT_CREATE
Hi All,
I am doing Good Receipt for Purchase Order.
In MIGO we have Cert.enclosed (Quality) value Yes or No.
I want to insert the Cert.enclosed (Quality) using BAPI BAPI_GOODSMVT_CREATE.
Please let me know which field in BAPI_GOODSMVT_CREATE, I can insert the Cert.enclosed (Quality) value.
Thanks in Advance.
Debopriya GPlease take a look at SAP KBA- 0001718791. Kindly mark if helpful.
SAP Knowledge Base Article
Symptom
There is no import parameter in BAPI_GOODSMVT_CREATE that you can use to confirm the QM certificate.
Environment
SAP Release Independent
Reproducing the Issue
1. In T-code SE37, execute the function module BAPI_GOODSMVT_CREATE
2. In the import tab and tables tab, check all the parameters, there is no place to enter the QM certificate (COA)
Cause
Missing functionality in BAPI_GOODSMVT_CREATE
Resolution
Please use BDC (batch input) for MB** transactions (MB01, MB0A, MB1A, MB1B, MB1C, etc.) instead.
Keywords
QCERT_MIGO-ANSWER, QBCK_QM_GR_CHECK
Header Data
Product
This document is not restricted to a product or product version
References
This document refers to:
CSS SAP Notes
1718791 - Certificate of Analysis (COA) in BAPI_GOODSMVT_CREATE
Version 1 Validity: 05/15/2012 - active Language English
Released On 02/12/2013 02:32:24
Release Status Released to Customer
Component MM-IM-GF-BAPI BAPIs for Goods Movements
QM-CA Quality Certificates
Priority Normal
Category How To
304122 MIGO: Batch input and CATT not supported
Other Components -
Problem with BAPI "BAPI_GOODSMVT_CREATE"
Hi experts,
I am using BAPI "BAPI_GOODSMVT_CREATE" for posting goods issue document. I am Providing following fields in the BAPI(According as in my system) :
*GOODSMVTHEADER*_
PSTNG_DATE 27.02.2008
*GOODSMVTCODE*_
GM_CODE 03
and in tables:
*GOODSMVTITEM*_
MATERIAL PM-001
PLANT 0001
STGE_LOC 0001
MOVE_TYPE 261
ENTRY_QNT 9,000
ENTRY_UOM_ISO EA
RESERV_NO 0000000026
RES_ITEM 0003
But when i check through transaction "mmbe" it seems BAPI is not working. However there is no return message in BAPI. What could be the error. please help.
Thanks and Regards,
Vaibhav Tiwari.Hi Vaibhav,
Running a function module from SE37 is called test run. And a BAPI absolutely needs a COMMIT WORK after it runs because one of the fundamental rules of a BAPI is that there is no COMMIT done internally.
And to write the changes to database, you need a commit work,
Hence unfortunately you will have to call the function module BAPI_TRANSACTION_COMMIT.
Ok, to try it out, you can call BAPI_TRANSACTION_COMMIT immediately after the goods movement BAPI by:
Go to SE37 -> Shift + F8 -> Enter the two function modules in sequence (first goods movement then commit FM)
Then run and check.
Cheers
Edited by: Aditya Laud on Feb 28, 2008 5:18 AM -
Query in BAPI BAPI_GOODSMVT_CREATE
Hi,
I am usnig a BAPI BAPI_GOODSMVT_CREATE for creating good movement. I am succefully able to update the document flow. But when i try to delete the material through MIGO then not able to update the document flow.
If the goods movement is created through standard then i am successfully able to delete the material document and document flow is updated successfully.
I am passing the following parameters in the BAPI.
At Item Level: gs_item-move_type = '101'.
gs_item-mvt_ind = 'B'.
gs_item-po_number
gs_item-po_item
gs_item-deliv_numb_to_search
gs_item-deliv_item_to_search
gs_item-deliv_numb
gs_item-deliv_item
gs_item-entry_qnt
gs_item-entry_uom
gs_item-stge_loc
At Header Level:
gs_header-pstng_date = p_bldat.
gs_header-doc_date = sy-datum.
gs_code-gm_code = '01'.
Please suggest if i am getting wrong or have to pass some other parameters at header or item level so that when user delete the record through MIGO then also document flow will occur.
I have searched on SDN a lot for this but just found how to update document flow while creating... not while deleting through MIGO.
Regards,
Pankaj AggarwalHi,
please suggest how can i achieve.. -
Disable print output when using bapi BAPI_GOODSMVT_CREATE
Hello,
I am using BAPI BAPI_GOODSMVT_CREATE to post material documents in our programs.
I wish to prevent the print output of the documents created by the BAPI.
Meaning - when the user post good movement using MIGO, there will be a printout of the movement, but if the movement is created using BAPI_GOODSMVT_CREATE, no output will be printed.
I have tried sending blank values in fields VER_GR_GI_SLIP & VER_GR_GI_SLIPX in GOODSMVT_HEADER structure, but to no avail.
Is there a way to disable printing ONLY when using the BAPI?
Thank you very much.Hi,
We cant restrict the print preview or print out of the material document. Once the condition record has maintianed for the material document, it ll applicable for all the material doc . It would be manual Gr or BAPI GR.
In your case Print is coming automatically or user is taking the print !!
Regards,
Dhanush.
Maybe you are looking for
-
Data no longer available when SALV_WD_TABLE GET_MODEL called
Hello I created a view that retrieves data from one table to select a row in the table and proceed to the second view but I get an error like this: Data no longer available when SALV_WD_TABLE GET_MODEL called I did check the mapping between my view a
-
Multiple devices on one router (E1200)
Hello, I've been having this issue with my E1200 ever since I got it. It just can't handle more than one computer. With just my computer connected playing League of Legends, the connection is fine usually about 30-40 Mbps with 100 ping and no lag and
-
My daughter's iPad is backing up to my iCloud, which is how we set it up originally. Now she has her own iPhone with her own iCloud. How can I get her iPad to back up to her own iCloud? Her iPad is taking up 3.4MB of my 5MB. I need my space back!
-
Hi, I want to parse a xml file by plsql procedure and use it by xmldom package. It working perfectly when I use oracle 9.2.05, but I can't use file greater than 10926 bytes when I use oracle 10.1.0.3 because this error stack appear. ORA-31011: XML pa
-
How to create a container or library that is not send as a request.
Hi. I'm trying to create a library or container and the object is not created immediately, rather it is send as a create request to the administrador. I have tested this as a user with create privilege and even the orcladmin user. I have done this pr