BAPI for Goods receipt Movement type 921
Hi Gurus,
can you please tell which BAPi will support Goods receipt Movement type 921(MIGO) and Goods Issue movement type 201.
Thanks
Rajeev
Hi,
This BAPI can be used for both good receipt and good issue purposes.
Please give it try ...
Regards,
Ferry Lianto
Similar Messages
-
BAPI for goods receipt for subcontracting PO
Dears,
I Just want to confirm that whether BAPI "BAPI_GOODSMVT_CREATE " will do the goods receipt for the subcontracting PO. SInce I will be passing only 101 mvy type in BAPi, will the system automatically call 543 mvt type and post the consumption.
Require suggestions
Regards
KameshHi,
Yes, BAPI_GOODSMVT_CREATE will work for subcontracting GR as well.
It all depends on the parameters you pass to the BAPI.
Example give below:
*Item Parameters to be passed:
Ordered (Subcontracting) Material:
Parameter Field Description Value
GOODSMVT_ITEM MATERIAL Material Number 100-200
PLANT Plant 1000
ENTRY_QNT Quantity in Unit of Entry 0.000
MOVE_TYPE Movement Type 121
PO_NUMBER Purchase Order Number 4500000007
PO_ITEM Item Number of Purchasing Document 00010
MVT_IND Movement Indicator O
LINE_ID Unique identification of document line 000001
PARENT_ID Identifier of immediately superior line 000000
Note: Quantity of ordered material must be zero.
Component Material 1:
Parameter Field Description Value
GOODSMVT_ITEM MATERIAL Material Number 100-100
PLANT Plant 1000
ENTRY_QNT Quantity in Unit of Entry 2.000
LINE_ID Unique identification of document line 000002
PARENT_ID Identifier of immediately superior line 000001
Note: LINE_ID should be incremented for each component and the PARENT_ID remains same for all the components of an ordered material. Component negative quantity can be given in case of Under Consumption.
Component Material 2:
Parameter Field Description Value
GOODSMVT_ITEM MATERIAL Material Number 100-100
PLANT Plant 1000
ENTRY_QNT Quantity in Unit of Entry 3.000
LINE_ID Unique identification of document line 000003
PARENT_ID Identifier of immediately superior line 000001 -
Bapi for Goods Receipt - Outbound Delivery
Hello all,
I am looking for a Bapi for <b>Goods Receipt for Outbound Delivery</b>.
I have searched the forum but found BAPIs only for GR for Inbound Delivery, GR for purchase order etc. But not for GR for Outbound Delivery.
Can someone guide?
Thanks and Regards,
ReenaHi Reena,
use this code....
*& Report ZSAN_BAPI_GOODSMVT_CREATE *
REPORT ZSAN_BAPI_GOODSMVT_CREATE .
DATA: GOODSMVT_HEADER LIKE BAPI2017_GM_HEAD_01,
" Material Document Header Data
GOODSMVT_CODE LIKE BAPI2017_GM_CODE,
" Assign code to transaction for BAPI goods movement
MATERIALDOCUMENT LIKE BAPI2017_GM_HEAD_RET-MAT_DOC,
" Number of Material Document
GOODSMVT_ITEM LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER LINE,
" Create Material Document Item
RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE
" Return table for messages
*Fill values in header
GOODSMVT_HEADER-PSTNG_DATE = '20030825'.
GOODSMVT_HEADER-DOC_DATE = '20030802'.
*Fill GOODSMVT_CODE
GOODSMVT_CODE-GM_CODE = '05' .
*Fill Item Table
GOODSMVT_ITEM-MATERIAL = '100-100'.
GOODSMVT_ITEM-PLANT = '1000'.
GOODSMVT_ITEM-STGE_LOC = '0001'.
GOODSMVT_ITEM-MOVE_TYPE = '501'.
GOODSMVT_ITEM-ENTRY_QNT = '50'.
GOODSMVT_ITEM-ITEM_TEXT = 'Test Sanket'.
*GOODSMVT_ITEM-COSTCENTER = '1000'.
APPEND GOODSMVT_ITEM.
*Create Good's movement
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = GOODSMVT_HEADER
GOODSMVT_CODE = GOODSMVT_CODE
IMPORTING
MATERIALDOCUMENT = MATERIALDOCUMENT
TABLES
GOODSMVT_ITEM = GOODSMVT_ITEM
RETURN = RETURN.
*Commit BAPI
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
*Display Goods movement number
FORMAT COLOR 6 INVERSE ON.
READ TABLE RETURN WITH KEY TYPE = 'E'.
IF SY-SUBRC = 0.
WRITE: /,'ERROR! Goods movement not created'.
ELSE.
WRITE: /,'Goods movent number',MATERIALDOCUMENT COLOR 5,
'posted for material',GOODSMVT_ITEM-MATERIAL.
ENDIF.
FORMAT COLOR OFF INVERSE OFF.
If useful reward me with points.
Thanks
Sanket. -
HI All,
Am new to this MM module. I created purchase order and goods receipt for that purchase order now i want 3 BAPIs.
1. Get list of Goods Receipt (Am using BAPI_GOODSMVT_GETITEMS is it correct or not)
2. Confirm Goods Receipt
3. Maintain Stock at a particular Storage Location
Anybody can tel me pls Confirm Goods Receipt means what?
Thanks,
ArunDear Arun,
Please find detail information from this URL explaining good receipts.
http://help.sap.com/saphelp_47x200/helpdata/en/4d/2ba31643ad11d189410000e829fbbd/frameset.htm
=> Good Receipts
Best Regards,
ian, Wong Loke Foong -
Is there any BAPI for Goods receipt that uses LIKP and LIPS tables?
Hi experts
I want to pull info for a given delivery note(DN) by joining LIKP and LIPS tables. Is there any existing BAPI that can give my info by using the two tables?
Please help
Thanks
GopalCheck the above link and reward points if helpful
http://help.sap.com/saphelp_nw04/helpdata/en/b0/dad2b40b3611d2a55a0060087832f8/content.htm -
Re: Goods Receipt Movement Type
Dear all,
For a PO, GR has been performed. However, how come in ME23N, under PO History tab, how come I can see that the Mvt Type is 105 for the full amount and 103 for zero amount. What does it mean?
Isn't the right Mvt Type should be 101 - where we are receiving stock into the warehouse instead?
Hence, is this GR completed? How can I confirm? Where can I check there is a increase in stock if received?
Thanks.Hii,
For Blocked stock value will not be updated.
Only after releasing the blocked stock the Inventory value is updated.
This is nothing but the Two step process
If it is one step process i.e nothing but the 101 Mvt Type stock & inventory value will be updated.
Blocked stock can be seen in all the Stock reports i.e MMBE & MB52
Kumar
Edited by: Kumar Rayudu on Feb 28, 2008 2:43 PM -
BAPI needed for Goods Receipt Purchase Order(Transaction : MIGO)
Hi all,
We have a requirement where in we need to post the documents throuh BAPI for Goods receipt Purchase order(Transaction: MIGO).
Any inputs on this..is highly appreciable...
thanks in advance...
regards..
prathima.Hi,
use 'BAPI_GOODSMVT_CREATE'
Check this sample.
code
REPORT ZRICH_0001 .
Structures for BAPI
DATA: GM_HEADER TYPE BAPI2017_GM_HEAD_01.
DATA: GM_CODE TYPE BAPI2017_GM_CODE.
DATA: GM_HEADRET TYPE BAPI2017_GM_HEAD_RET.
DATA: GM_ITEM TYPE TABLE OF
BAPI2017_GM_ITEM_CREATE WITH HEADER LINE.
DATA: GM_RETURN TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
DATA: GM_RETMTD TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
CLEAR: GM_RETURN, GM_RETMTD. REFRESH GM_RETURN.
Setup BAPI header data.
GM_HEADER-PSTNG_DATE = SY-DATUM.
GM_HEADER-DOC_DATE = SY-DATUM.
GM_CODE-GM_CODE = '04'. " MB1A
Write 971 movement to table
CLEAR GM_ITEM.
MOVE '412' TO GM_ITEM-MOVE_TYPE .
MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
MOVE '3800533484' TO GM_ITEM-MATERIAL.
MOVE '1' TO GM_ITEM-ENTRY_QNT.
*MOVE 'PC' TO GM_ITEM-ENTRY_UOM.
MOVE '1060' TO GM_ITEM-PLANT.
MOVE '0007' TO GM_ITEM-STGE_LOC.
*MOVE '0901' TO GM_ITEM-MOVE_REAS.
MOVE 'P203601001' TO GM_ITEM-WBS_ELEM.
MOVE 'P203601001' TO GM_ITEM-VAL_WBS_ELEM.
APPEND GM_ITEM.
Call goods movement BAPI
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = GM_HEADER
GOODSMVT_CODE = GM_CODE
IMPORTING
GOODSMVT_HEADRET = GM_HEADRET
MATERIALDOCUMENT = GM_RETMTD
TABLES
GOODSMVT_ITEM = GM_ITEM
RETURN = GM_RETURN.
IF NOT GM_RETMTD IS INITIAL.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ELSE.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ENDIF.
WRITE:/ GM_RETMTD.
LOOP AT GM_RETURN.
WRITE:/ GM_RETURN.
ENDLOOP.
[/code]
Also check the Bapis
BAPI_PO_CREATE --> To create Purchase Order
BAPI_PO_CHANGE --> To change Purchase Order
BAPI_PO_GETDETAIL --> Todisplay Purchase Order
Regards,
Raj. -
Creation of new movement type for Goods Receipt
Is it possible to create a new movement type same as 101 (goods receipt)? We need to create a separate movement type of 101 for the purpose of separating G/L account to be used for local and importation purchases. Or is there any other way to separate the G/L account for GR of local and importation purchases without creating a new movement type?
You can create new Mvt type by copying Mvt type in OMJJ trxn ..
Please follow the following steps
Check whether you can use the preset movement types.
If not, define new movement types as follows:
1. Once you have carried out the activity, the system displays a dialog
box for field selection. In this, you can restrict the movement
types you work with to various fields. To copy a movement type,
select the field Movement type and choose Continue. The dialog box
Define work area appears.
2. In the dialog box Define work area, enter the movement type you want
to copy in the From: field. In the To: field, enter the name of the
new movement type you want to create. To go to the overview of the
selected movement types, choose Continue.
3. Select the movement type you want to copy, and choose Edit -> Copy
as.
Overwrite the selected movement type with the new movement type
(beginning with 9, X, Y, or Z) and copy all dependent entries.
The system copies all control indicators from the reference movement
type to the new movement type.
4. Check all views for the new movement type and, if necessary, change
the control indicators. Please note that some views have a detail
screen.
5. Copy the reversal movement type and enter it in the view
Reversal/follow-on movement types.
6. Save your settings. -
BAPI for Goods Issue (MIGO) movement type 351 with reference to PO
Hi,
Is there an BAPI for Goods issue in MIGO with reference to PO movement type 351, i tried using "BAPI_GOODSMVT_CREATE", but there is no PO field in this, is there any other BAPI's available for the same?
Thanks in Advance,
Santoshfor goods mvt type , the available is that itself . for 351 mvt type Po number is not required .
if its a must , create a Z bapi with additional field for PO and make it as reference . -
To find movement type for goods receipt
Hi,
Can someone tell me how to find the movement type for all the special stocks for goods receipt except 101. I am searching manually from MB5B tcode for all the special stock for specific client but its too hectic process to find manually all the goods receipt in this way .
Any table / way to find the movement type used for goods receipt please suggest.Hi,
I don't think MB5B the best report to analize goods movement...
1. Try MB51 and set "not empty" for special stock indicator. Which movement means GR and which does not...good question...
You should know what you are looking for...(see point two)
2. Using SE16 + MSEG you can analize your goods movement: MSEG-BWART (movement type) and MSEG-SOBKZ can be used to select relevant goods movement.
In MKPF you will find two indicators: MKPF-BLART and MKPF-BLAUM (GR against PO is identified by MKPF-BLAUM""WE") - you can use these somehow...but in my opinion the best is if you collect all the movement types that means GR at your comapny and put them in MSEG-BWART as selection criteria...
(if you want to use MKPF and MSEG you have to build a query in SQVI or in SQ01/SQ02).
Regards,
Csaba
Edited by: Csaba Szommer on Jul 12, 2009 5:27 PM -
Good Receipt (movment type : 161) for a PO (PO with Return items) -- Error
Hi,
When i post a good receipt (movment type : 161) for a PO (PO with Return items), i have this Error Message :
" Account 61522200 requires an assignment to a CO object "
Note : in this GR i have already : Profit center, Funds center and Order (CO objects)
So please what could be the reason ? and how to resolve it ?
Please advise
Regards.Please check first the field status of the account in FS00. If this account requires CO object as mandatory then check whether a cost element is created or not , this error normally occurs when CO object is mandatory but relevant cost element is not created.
(or)
Goto OKB9 : The u201CChage View u201CDefault account assignment: Overviewu201D appears. Enter the company code, cost element, and default cost object. The cost object could be a cost center, internal order or profit center.
Edited by: m_n_novice on Sep 2, 2009 5:51 PM -
O/p type for good Receipt Note
Hi.
what is the output type for Good Receipt Note?
How can we assign it?Hi,
1. Use transaction MB03, Enter the material document and material year.
2. click button 'DETAILS FM ITEM'.
3. Now Click button MESSAGES.
4. Here you have to assign a output type.
5. Click further data, select value 'Send with application own transaction' to field 'DISPATCH TIME'.
6. Use transaction MB90, give the output type assigned for the material document and year, u will get the printable output format for goods reciept.
Output type WE01, WE02, and WE03 can be used. -
Hi guys,
Can any one lemme know what is the output type we can use for goods receipt- for generating a goods receipt smartform output?
and can u also lemme know the standard print program also.
if u have written any zprint program plz send it ASAP.
thanks n regards,
Bhargava.u can see the output types for Goods Receipt in Transaction NACE. Application M1
Output type Name
CHKL Count List ( Program RTCHECKL, form RT_CHECK_LIST)
GRPL Pallet Sticker ( Pro RTCHECKL, form RT_PALLET_LABEL)
The Form names mentioned are SAPSCRIPTS not smartforms.
Also Bhargava, chk out with ur Consultant wat output type suits ur requirement coz there r multiple options as u can see for urself in NACE under Applications M1/ME.
Hope it helps.
Regards,
Bikash
Message was edited by: Bikash Agarwal
Message was edited by: Bikash Agarwal -
Problem for Goods Receipt for Subcontracting Purchase Order
Dear all,
Presently, we are using SAP version 4.6C and we need to introduce GR for
Subcontracting Purchase Order. We have developed a ABAP program to handle
subcon Goods Receipt by uploading flat-files from our subcontractor. The
scenario is as follows :
Goods Receipt for Subcontracting Purchase Order
1. In the ABAP program, function BAPI_GOODSMVT_CREATE will be used for goods
movement.
2. Data provided to the function are as follows :
- Posting date
- Document date
- Material number
- Plant
- Storage location
- Batch
- Movement type (101)
- Quantity
- Purchase order number
- Purchase order item
- Movement indicator (B - Goods receipt for purchase order)
3. The function will do data verification and automatically determine GI
item for subcon stock:
- Movement type (543)
- Special stock (O - parts prov. vendor)
- Material
- Quantity
- Plant
Our problem is that :
Only the GR item in the interface is to be transferred and the GI item is
determined by the system. So, the quantity for subcon stock cannot be
changed using this BAPI. Then the system will continue processing the goods
receipt and create material document.
Manually, by using transaction code MIGO, the user can display the subcon
stock data and then change the quantity.
By using transaction code MB01, after the user fills in all the GR fields,
the system comes to line item 002 (subcon stock data) and then quantity can
be changed.
As per user requirement, quantity for GI item must be same with the quantity
that has been transferred to subcon vendor in Delivery for Subcon
(transaction code VL02N).
We cannot achieve this requirement by using the BAPI mentioned above. Would
appreciate any valuable help from anyone who is able to help us on this
matter. Are there any other BAPI's that can help us to achieve the same
result ?
Thank you in advance and best regards.As far as i understood the problem I suggest u to create the
BDC according to user actions that are performed in he manual
operation.
I can't say that the BAPI performs the exac solution what you want.
I have done some BDC work using MB01 and suggest you to be careful
and try to keep the complete in the logic as some chages in rows in BDC will
change the complete scenario.And throw correct quantity val in correct
material
row.
This methodology will help u even in mass uploads.
Or in case of automation u can perform the call transaction BDC in
background mode.
so As per my understanding bdc program is the solution. pls try and let me
know. -
What is the field for good receipts?
hi friends
i got the requirement to create the goods receipts
what is the field for good receipts
plz tell me how to create it
thanks in advance
Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:33 PMadapt this to your own requirements.
Structures for BAPI
data: gm_header type bapi2017_gm_head_01.
data: gm_code type bapi2017_gm_code.
data: gm_headret type bapi2017_gm_head_ret.
data: gm_item type table of
bapi2017_gm_item_create with header line.
data: gm_return type bapiret2 occurs 0.
data: gm_retmtd type bapi2017_gm_head_ret-mat_doc.
clear: gm_return, gm_retmtd. refresh gm_return.
Setup BAPI header data.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_code-gm_code = '01'. " MB01
Write 551 movement to table
clear gm_item.
move '101' to gm_item-move_type .
move '000000000040001234' to gm_item-material.
move '1' to gm_item-entry_qnt.
move 'EA' to gm_item-entry_uom.
move '0004' to gm_item-plant.
move '4000' to gm_item-stge_loc.
move '201' to gm_item-move_reas.
Determine cost center per plant
case xresb-werks.
when '0004'.
move '0000041430' to gm_item-costcenter.
when '0006'.
move '0000041630' to gm_item-costcenter.
when '0007'.
move '0000041731' to gm_item-costcenter.
when '0008'.
move '0000041830' to gm_item-costcenter.
endcase.
append gm_item.
Call goods movement BAPI
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gm_header
goodsmvt_code = gm_code
importing
goodsmvt_headret = gm_headret
materialdocument = gm_retmtd
tables
goodsmvt_item = gm_item
return = gm_return.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
Maybe you are looking for
-
SRM 5.0 with XI 3.0
Hi , Can I integrate SRM 5.0 with XI 3.0. Thanks & Regards, krian. Edited by: Kiran Ponnam on Jan 14, 2008 8:57 PM
-
Error message when importing photos from iPhoto
I have been trying to import pictures from iPhoto and when I try to set the duration to about 7 seconds with 240 photos, it says ERROR DURING IMPORT The file could not be imported: There is not enough disk space left to import Macintosh HD/Users/....
-
Problem in sending a attachnment or photo using javamailapi
Hello Sir, My program is perfectly when i'm sending simply a text message but problem is arised when i want to send an attachment. MY Code is import javax.mail.*; import javax.mail.internet.*; import java.util.*; import java.io.*; import javax.activa
-
I own a zen micro 5gB 3 months, and was satisfied of it, but now it begins to...disapoint me a little...Sometimes it just froze on startup screen, or when the "zen micro" logo was displayed, so the only thing to do was to remove the battery then rebo
-
I want to abap-hr programing and concept plz send usefull links and materia
hi plz , i want to learn abap-hr programing and concepts and faqs, so, plz send usefull links or material or pdfs which helps me and i hope , thank u,