Goods receipt with changed amount
Hi there,
I am wondering if it possible to create a goods receipt and in here change the prices.
Ex. One item has been ordered for a fixed price (the item would be a catalog item, but without any price on it). Then the item is delivered, but something is missing or not the quality expected. We want to keep the item but does not want to pay full price.
Does anyone know how to carry out this proces. (I now that it is possible to change quantity - but that is not possible if 1 item is ordered!).
Please advice!
Kind regards
Line
Hi Line,
GR does only work with quantity.
You cannot change price at GR step.
You will have to handle price deviation in the logistic invoice verification step.
If you order services and you want to receive a % of the service done, you can chnage the way to order :
Instead of ordering 1 service (quantity) of 10000 euros (value), you can order 10000 (quantity) of 1 euro (value).
This way, you can do partial payment related to partial reception.
Kind regards,
Yann
Similar Messages
-
Price change for material with Goods Receipt with out Order reference?
hi all,
Our client company have some finished products produced from raw materials. But we are not using Production planning module. So in MM we are receiving these products with Goods receipt with out order reference(521).
The issue is, the price for this product will change monthly. This new price will affect the existing stock as moving average price calculation.
ex:
Quantity Price Value
Stock balanace 100To 2.00/To 200
Newly produced 100To 2.20/To 220
after the GRN for newly produced is done. The price also need to change as below.
Total 200To 2.10/To 420
This is easy if we receive goods with PO price, as moving average price will updae in the master record.
But here no reference. So only quantity updated with existing price.
So how to achieve the change of price ? Please help.
Thanks,
AravindHi Bijay,
Thanks for the reply. I will use the posting method suggested by you.
but how you are arriving newly produced material quantity & price!
The reply for your comment is,
Every month My client company revise the price of the produced material based on various factors including the
raw material purchase cost.
The price will be fixed for the whole month.
While posting the GRN, the accounts updated are,
Dr Material account
Cr Production Cost
Please let me know what you have asked is answered or not.
So that i can brief more. This is my initial project. So your feedback is very helpful to me.
Thanks,
Aravind -
Good Receipt with Scheduling agreement
Dear
We are creating scheduling agreemant & delivery Schedule.
Is there any posiblity to take good receipt with reference to SA perior to delivery date mentioned in the delivery schedule?
Schedule line 26.06.2009
Good Receipt 25.06.09
Thanks,
SAmir BhattHi,
I dont think so it is possible, But Still i can check with the change of some settings, before that you jst telme clearly wy do u have requirement? What was the reason?
Hari Prasad -
Creating goods receipt with refernce to PO number using BAPI_GOODSMVT_CREAT
Hi Gurus,
I have a requirment where in, I need to create a goods receipt with reference to a PO number which has been created by BAPI_PO_CREATE1, using another BAPI BAPI_GOODSMVT_CREATE. How can I do this? what are all the values that I need to fill in GOODSMVT Create BAPI.
Please help its very urgent... Need to submit by EOD.
Thanks,
Sumahi
hope this code will help you,.
Reward if help.
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.
check the BAPI_GOODSMVT_CREATE.
Functionality
You can use this method to create a material document for a goods movement.
You can only create one material document each time you call up the method.
You can use a simulation function before posting the goods movement to check how the data is updated in the database. The standard system is configured so that the goods movement is posted immediately without simulating beforehand.
Ensure that you transfer the data in the same way as it is run in the database, for example,
Material number 18-figure with leading zeros
Batches with uppercase letters
Note that for all transactions/events listed below, the posting date is entered in the header data of the material document. In the BAPI2017_GM_HEAD_01 interface, fill the PSTNG_DATE (import structure GOODSMVT_HEADER) field.
Notes
Authorization check check
In the MM Inventory Management component, the method does not execute any authorization checks.
Note that during a posting of a goods movement, depending on the business transaction of the system, authorization objects of other applications can also be checked.
Transfer
The following information about the material document that is to be created is transferred to the method:
a structure with header data
a structure with the code for the movement
a table with the item data
a table with the serial numbers
The posting is carried out in the SAP R/3 via the MB_CREATE_GOODS_MOVEMENT function module.
Confirmations
Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.
Further Information
The method can only carry out your function if no error messages were generated in the Return table. This is the case if the header data and all the items were processed successfully.
Transaction control is not implemented. The calling program therefore has to execute the Commit Work itself after this method has been successfully called (in other words, if no errors were reported in the Return parameter).
Which fields have to be filled during the various transactions/ events?
The following sample scenarios demonstrate which fields have to be filled for which business transactions/events (code).
There are the following types of transactions/events:
1. GM_Code 01: Goods receipt for purchase order
2. GM_Code 02: Goods receipt for production order
3. GM_Code 03: Goods issue
4. GM_Code 04: Transfer posting
5. GM_Code 05: Other goods receipts
6. GM_Code 06: Reversal of goods movements
7. GM_Code 07: Subsequent adjustment to a subcontract order
Entering the movement indicator
Depending on the transaction, you must enter the following in the movement indicator:
GM_Code 01 (Goods receipt for purchase order): B
GM_Code 02 (Goods receipt for production order): F
For all other transactions, you leave the field blank.
For 1: GM_Code 01: Goods receipt for purchase order
Purchase order known
The following fields have to be filled:
Purchase order
Purchase order item
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry or
quantity proposal
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if it has been configured like this in the system)
Reason for movement (if it has been configured like this in the system)
Batch (if the material is handled in batches and batch numbers are not assigned automatically)
Storage location (if a storage location has not been specified in the purchase order item)
The following fields can be filled (incomplete listing):
Stock type
Item text
Unloading point
Delivery completed indicator
You cannot fill the following fields (incomplete listing):
Account assignment fields (account assignment is adopted from the purchase order)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
In the case of a purchase order item with the "subcontracting" item category, only the GR item in the interface is to be transferred. The system automatically determines GI items.
Purchase order unknown: Shipping notification known
The following fields have to be filled:
Delivery
Delivery item
Movement type
Other fields, such as those under "Purchase order known". The system determines the relevant purchase order item via the delivery/delivery item.
Purchase order unknown: Purchase order should be created automatically
The following fields have to be filled:
Material number
Plant
Storage location
Vendor
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if it has been configured like this in the system)
Reason for movement (if it has been configured like this in the system)
Batch (if the material is handled in batches and batches are not assigned automatically)
The following fields can be filled (incomplete listing):
Stock type
Item text
Unloading point
You cannot fill the following fields (incomplete listing):
Account assignment fields (automatic creation of purchase order items with account assignment is not supported)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Purchase order unknown: A purchase order should not be created
The following fields have to be filled:
Material number
Plant
Storage location
Vendor
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if it has been configured like this)
Reason for movement (if it has been configured like this)
Batch (if the material is handled in batches and automatic assignment of batch numbers is not set)
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Unloading point
Goods recipient
The following fields cannot be filled (incomplete listing):
Account assignment fields (automatic creation of purchase order items with account assignment is not supported)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Receiving/issuing batch
The input combinations listed above for the GM_CODE 01 can be combined within an input table so that they can be posted in a material document. Items can also be posted for different purchase orders, provided that all the purchase orders refer to the same vendor.
Transfer of subcontracting components
During the posting of the ordered material of a subcontract order with movement type 101, for the transfer of the subcontracting components, the filled unique identification of the document line (LINE_ID) is also required.
More information on LINE_ID and PARENT_ID
The following fields have to be filled for the components:
Unique identification of the document line
Identification of the immediately superior line
Material number
Plant
Storage location
Quantity in unit of entry
The following fields can be filled for the components:
All other fields in the method that are included in this list.
The following fields cannot be filled for the components:
All fields that are not included in the list above. The movement indicator must be initial.
Additional fields in goods-receipt-based invoice verification
When you post a goods receipt to purchase order with movement type 102, an issue with reference to a previously posted goods issue, the following fields must also be transferred:
REF_DOC_IT (LFPOS): Item of a reference document
REF_DOC (LFBNR): Document number of a reference document
REF_DOC_YR (LFBJA): Fiscal year of a reference document
Only when you transfer these fields is it guaranteed that the reference to the original goods movement stay the same.
For 2 GM_Code 02: Goods receipt for production order
The following fields have to be filled:
Order
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry or
quantity proposal
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if the system has been configured like this)
Reason for movement (if the system has been configured like this)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
Storage location (if storage location has not been specified in the order)
The following fields can be filled (incomplete listing):
Order item (co-product)
Stock type
Item text
Unloading point
"Delivery completed" indicator
The following fields cannot be filled (incomplete listing):
Account assignment fields (the account assignments are adopted from the purchase order)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Receiving/issuing batch
For 3 GM_Code 03: Goods issue
Goods issue without reference to a reservation
The following fields have to be filled:
Material number
Plant
Storage location
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Special stock (e.g. sales order, project, vendor etc.)
Shelf life expiration date (if the system is configured like this)
Reason for movement (if the system has been configured like this)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
Account assignment fields
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Unloading point
Goods recipient
The following fields cannot be filled (incomplete listing):
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Receiving/issuing batch
Goods issue with reference to a reservation
The following fields have to be filled:
Reservation number
Reservation item
Record type of the reservation
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if this has been configured in the system)
Reason for movement (if this has been configured in the system)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
Storage location (if not planned in the reservation)
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Unloading point
Goods recipient
The following fields cannot be filled (incomplete listing):
Movement type
Material
Plant
Account assignment fields
For 4 GM_Code 04: Transfer posting
Transfer posting without reference to a reservation
The following fields have to be filled:
Material number
Plant
Storage location
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Receiving material
Receiving plant
Receiving storage location
Receiving batch (if material is handled in batches and you want to change batches)
Receiving/issuing special stock (e.g. sales order, project, vendor etc.)
Shelf life expiration date (if this has been configured in the system)
Reason for movement (if this has been configured in the system)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Account assignment fields (for automatic posting lines: Expense/income from stock transfer)
The following fields cannot be filled (incomplete listing):
Reservation
Transfer posting with reference to a reservation
See goods issue with reference to a reservation
For 5 GM_Code 05: Other goods receipts
Other goods receipt without reference to a reservation
See goods issue without reference to a reservation
Other goods receipt with reference to a reservation
See goods issue with reference to a reservation
For 6 GM_Code 06: Reversal of goods movements
You can use the Cancel method to reverse goods movements. But you may also want to cancel a goods movement without referring to a material document (see the Cancel method).
If you want to work without referring to the document, you have to fill the field BAPI_GM_ITEM_CREATE-XSTOB in the interface (import table GOODSMVT_ITEM). In this case, the system converts the movement type assigned in the interface to the reversal movement type. Alternatively, you can set the reversal movement type in the interface. In this case, the BAPI_GM_ITEM_CREATE_XSTOB field must be transferred blank.
If you want to cancel a goods movement with reference to a reservation (without using the Cancel method) you can only transfer the field BAPI_GM_ITEM_CREATE_XSTOB if it is filled. Movement types are not transferred when you post with reference to a reservation, as the movement type is contained in the reservation item.
For 7. GM_Code 07: Subsequent adjustment to a subcontract order
Ordered material of subcontract order
The following fields have to be filled:
Unique identification of document line (can be assigned to anything)
Posting date in document header
Document number of purchasing document
Item number of purchasing document
Material number check
Plant check
Movement type (select movement type 121)
Movement indicator (must be O)
Further entries are not allowed. The entry quantity for the ordered material of a subcontract order must be zero.
Components
The following fields have to be filled:
Unique identification of document line (can be assigned to anything)
Identification of the immediately superior line
Plant
Material number check
Quantity in unit of entry; can also be negative
The following fields can be filled:
Storage location
All other fields in the method that are included in this list.
The following fields may not be filled:
All fields that are not in the list above. The movement indicator must be blank.
More information on LINE_ID and PARENT_ID
Additional fields in goods-receipt-based invoice verification
When you post a subsequent adjustment, the following fields must also be transferred:
REF_DOC_IT (LFPOS): Item of a reference document
REF_DOC (LFBNR): Document number of a reference document
REF_DOC_YR (LFBJA): Fiscal year of a reference document
Only when you transfer these fields is it guaranteed that the reference to the original goods movement stays the same. -
Goods receipt with migo?
hi
when i am doing goods receipts with respect to purchase order(movement type-101)the following error
message come.
Balancing field "Business Area" in line item 001 not filled
could anyone provide the solution for that.
regards
sanjayHi,
If you have set the required field for business area through field status of the GL account while hit during GRN entry e.g.
Exp. GL Account 100
GR/IR clr A/c 100
If you donu2019t need to have business are field required, then change the field status of expense GL account. If this is not the case then check your cost center master data may be business area is not entered there, or if you are using MIGO for asset then check asset master data that cost center is entered or not.
If this will not solve your problem, please give us the detail of your PO transaction.
Thanks
Javed -
Good receipt with reference to outbound delivery document
Hello Gurus,
Could someone please help with the following scenario?
Article 1234 has base unit of measure pc, altenative measure box, 1 box = 12 PC
In the purchase order (stock transfer order from one site to another site) 4 box of article 1234 is ordered. Outbound delivery created with reference to the above purchase order (stock transfer order) has quantity of 4 boxes (this is copied from PO). And then an transfer order is created with reference to the above outbound delivery and quantity requested is 4 boxes (copied from outbound delivery), but in the transfer order confirmation the confirmed quantity is 14 pcs (this is now confirmed with base unit of measure). And now if we check the outbound delivery doc, the confirm quantity is 14 pcs (1,167 box )
But when creating good receipt with reference to the outbound delivery document, the quantity confirmed is now 14.004 pcs (this is calculated with unit of measure conversion table, i guess). But actually good receipt quantity should be 14 pcs instead of 14,004 Pcs!
What can we do in order to have 14 pc in good receipt?
Thanks in advance for your great help.
Br, AilleenHi,
Thanks a lot for both of your answers. But if is there a way to receive 14 pcs instead of 14.004 pc although the system did the right calculation according to the conversion rules!
But in this case the supplying plant has issued 14 pcs but receiving plant has received 14,004 pcs and now there is discrepancy! Is there some enhancement or user exit could fix the situation or do I have to change the coding in order to solve this problem!
Thanks again for you helpful advice!
Br, Ailleen -
Cancellation of Goods Receipt with Credit Memo Transaction Issue
Dear SAP Expert and Guru,
Normally cancellation of goods receipt cannot be done when invoice has been issued. Cancellation of Goods receipt can only be done when there is the credit memo being issued in MIRO.
The problem now is that is there any table that can tracked the linkage between Credit Memo and the Cancellation of Goods receipt?
The goods receipt with the invoice linkage can be found in both table EKBE and BKPF. But not the credit memo and cancellation of Goods receipt.
Thank you
Regards
Leonard TanDear Jeya and SAP expert and Gurus,
You are correct, but with the document number, how am I going to get the Cancellation of GR document?
In table BKPF and EKBE. With the invoice number (34*******) then pass it to table BKPF to get the invoice number (52*******),
Then get the invoice number (52*******) pass it to table EKBE to get the Goods Receipt document (61*******).
However, this only can track the transaction goods receipt and Invoice but not the credit memo with cancellation of goods receipt.
Kindly asvise on that.
Thank you
Regards
Leonard Tan
Note : Do not quote previous reply every time,simply reply for member you want to respond.
Edited by: Jeyakanthan A on Jul 8, 2011 3:23 PM -
Goods Receipt with respect to Handling Unit (Transaction u0096 MIGO)
Hi All,
A delivery is created for stock transport order for goods movement from Plant XXXX (Storage Location YYYY) to Plant XXXX (Storage Location ZZZZ).
Handling Units are packed on delivery and delivery is post goods issued from Plant XXXX (Storage Location ZZZZ).
While posting goods receipt (Transaction MIGO) without selecting Via Handling Units system populates the packaging material line item whereas when Via Handling Units is selected (in other words when tried to post Goods Receipt with respect to Handling Units) system doesnt populate the associated packaging material.
Requirement is to populate packaging material line item while posting Goods Receipt with respect to Handling Unit.
Plz guide me.
SatishHi Vatcan,
Chek the Inbound Delivery 1st weather you refer the right PO in it
You can also chek in PO i
1 Me23n Go to confirmation tab here you can see the Inbound delivery quantity
2 Chek which reference document you recived the goods, (i.e You recived the goods with reference to PO or Inbound delivery)
2 Coz if you refer the inbound delivery then syestem will deafult show the inbound quanity
And yes the actual quanity will update in inbound delivery if you refer the inbound deivery while reciveing the goods -
Goods Receipt with respect to sales order
hi,
goods receipt with respect to sales order ,that sales order is prepared with reference to quotation
erroer is
Account assignment cannot be carried out because of different origin no.
Message no. V1134
Diagnosis
The sales document to which you want to refer is based on sales document 20000005 and item 000010. Therefore, the settlement and possibly inventory management are carried out using the number of the preceding document.
System Response
This entry is not allowed.
Procedure
Enter the document and the item number of the preceding sales documentHi,
Refer the sales quotation number for GR instead of the sales order number.
Regards,
Ravi Kumar C. -
Create Goods Receipt with an Inbound Delivery
Hi,
Can you anybody help me, how to create a Goods Receipt with correspond to Inbound Delivery.
Which FM or BAPI avaliable for this. Anybody did it before please pass to me with details?
Thanks in Advance
Cino C B
Edited by: Cili on Feb 11, 2008 8:19 PMCheck BAPI_GOODSMVT_CREATE
Look at the documentation if you want to make a goods issue or a good receipt for purchase order or production order, etc.
Inbound delivery only means is going to enter the plant (ie. mvt 101) -
Find a bapi for Creates a Goods Receipt with correspond to Inbound Delivery
hi expert!
exist a bapi for tcode:MIGO_GR ( Goods Receipt with correspond to Inbound Delivery)
i know one bapI BAPI_GOODSMVT_CREATE can Creates a Goods Receipt,
but i can't know to use it to Creates a Goods Receipt with correspond to Inbound Delivery.
or other bapi exist for MIGO_GR?
Best Regard!Hi Vatcan,
Chek the Inbound Delivery 1st weather you refer the right PO in it
You can also chek in PO i
1 Me23n Go to confirmation tab here you can see the Inbound delivery quantity
2 Chek which reference document you recived the goods, (i.e You recived the goods with reference to PO or Inbound delivery)
2 Coz if you refer the inbound delivery then syestem will deafult show the inbound quanity
And yes the actual quanity will update in inbound delivery if you refer the inbound deivery while reciveing the goods -
Error in goods receipt with PO
Hi experts,
I am getting the following error,when trying goods receipt with Purchase Order using BAPI_GOODSMVT_CREATE.
"No goods receipt possible for pruchase order XXXXXX".
What may be the reason for this,its urgent please help.
Thanks & Regards
KarthikI just got the error message in the email. Here is a sample code for movement type 122. Replace all the XXXX values with values from your system.
Also as a sanity check make sure that the PO/Item you are testing with can be returned back to the vendor - use MB01 to make sure this movement type is successful for your PO/Item.
DATA: w_goodsmvt_header LIKE bapi2017_gm_head_01,
w_goodsmvt_code LIKE bapi2017_gm_code,
i_return LIKE bapiret2 OCCURS 0.
DATA: BEGIN OF i_goodsmvt_item OCCURS 0.
INCLUDE STRUCTURE bapi2017_gm_item_create.
DATA: END OF i_goodsmvt_item.
DATA: w_extnumber TYPE bal_s_log-extnumber.
DATA: w_goodsmvt_headret LIKE bapi2017_gm_head_ret,
w_materialdocument LIKE bapi2017_gm_head_ret-mat_doc,
w_matdocumentyear LIKE bapi2017_gm_head_ret-doc_year.
CLEAR: w_goodsmvt_header,
i_goodsmvt_item,
i_goodsmvt_item[],
i_return[].
MOVE sy-datum TO w_goodsmvt_header-pstng_date.
w_goodsmvt_code = '01'. "MB01
i_goodsmvt_item-material = 'XXXXXX'. "material number
i_goodsmvt_item-plant = 'XXXX'. "Plant that originally recieve this PO
i_goodsmvt_item-stge_loc = 'XXXX'. "Storage loc
i_goodsmvt_item-entry_qnt = 1.
i_goodsmvt_item-entry_uom = 'XXX'.
i_goodsmvt_item-entry_uom_iso = 'XXX'.
i_goodsmvt_item-po_number = 'XXXXXXXXXX'.
i_goodsmvt_item-po_item = 'XXXXX'.
i_goodsmvt_item-move_type = '122'.
i_goodsmvt_item-mvt_ind = 'B'.
i_goodsmvt_item-move_reas = '1'. "or whatever reason allowed for 122
APPEND i_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = w_goodsmvt_header
goodsmvt_code = w_goodsmvt_code
testrun = 'X' "turn this off once I_RETURN comes back empty
IMPORTING
goodsmvt_headret = w_goodsmvt_headret
materialdocument = w_materialdocument
matdocumentyear = w_matdocumentyear
TABLES
goodsmvt_item = i_goodsmvt_item
return = i_return.
BREAK-POINT. -
PO Goods Receipt with Serial / Batch number with DI API
I am creating PO Goods Receipt with DI API. This works fine. But when i have items with serial numbers and batch numbers in the same PO, then i am getting either of the following errors:
1. [OITM]Item has no serial number management
2. [OIBT] Invalid Item Code.
I debugged the code and the values i set seems to be correct. I am using VB.Net and SAP 2004 with Patch 23.
Thanks
AnandAnand,
When you are working with a Serialized item in the first scenario, have you tested working with the item in the Business One application itself? Have you tried to have the system assign a serial number for the item when issuing a Goods Receipt? Do you get the same issue through the Business One interface. With respect to working with Batches, have you setup the Batches for inventory items through the Business One interface yet? If you have not setup Batches, this would be why you would not have any data in the OIBT table.
HTH,
Eddy -
Goods Receipt with serial numbers
Hello everyone
I'm having problems when i try to add a goods receipt with serial numbers
Code:
OReceipt = oCompany.GetBusinessObject(BoObjectTypes.oInventoryGenEntry)
OReceipt.Series = 18
OReceipt.DocDate = Date.Now
OReceipt.TaxDate = Date.Now
OReceipt.Lines.ItemCode = "MP.PP.241"
OReceipt.Lines.Quantity = 1
OReceipt.Lines.SerialNumbers.InternalSerialNumber = "SN-01"
OReceipt.Lines.SerialNumbers.ManufacturerSerialNumber = "SN-01"
OReceipt.Lines.AccountCode = "_SYS00000000109"
OReceipt.Lines.WarehouseCode = "MPfabrik"
OReceipt.Comments = ".NET"
res = OReceipt.Add()
Any help will be greatly appreciated!Hi Nestor
All forums on SCN contain a description of what the forums is for. This forum's Overview page:
Looking at the overview, I suspect you want to post your query elsewhere? Perhaps one of Microsoft's forums?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Inbound IDOC to post goods receipt with inbound delivery as reference
Kindly let me know the message and IDOC type for
Inbound IDOC to POST GOODS RECEIPT with inbound delivery as reference
I tried using WMMBXY but it didn;t work.
Pls let me know asap.Your help is appreciated.
Thanks and Regards
Priti
Edited by: Priti Adukia on Feb 11, 2008 4:48 AMHi Nicole,
What I've to do is quite the same as the case. Outbound and Inbound are in the same SAP system. If I've good understanding, I must set partner profile as follows :
INBOUND - Parter LI with
Message DESADV
Operation code DELS
OUTBOUND - Partner KU
Message DESADV
Operation code ???
Please advise
Suchart
Maybe you are looking for
-
Login error in 11.5.10.2
Hi: We have 11.5.10.2 on unix with 10g db. I can access all instances but not this one. After login click on any form, I got or this time when I enter my login infor got error as below: Error Page You have encountered an unexpected error. Please cont
-
Am I limited with my ibook G4?
I have a 1.33 iBook with the Tiger OS. The computer won't die, which is a good thing (sort of). I want to buy an iPhone, but I'm waiting for the one that is rumored to be coming out this summer. I know the iPhone is compatible with my computer, but m
-
Sql help please with, finding all zip codes within a given radius.
I have a table which contains zip, city, state, latdec, longdec, latrad, longrad. From search screen, if user want, zip code's within 10 mile radius of his zip code, what is the sql. I came up with following sql but it is not correct: first, find his
-
HI Guys, I wanna work on PI 7.1 from now .Please let me know what are pre-req,TCODES required and process to complete WS-Sender as well as receiver. Thanks Prabhakar
-
LabVIEW error code3: Could not load front panel.
Hi I am getting second time the "LabVIEW error code3: Could not load front panel." when working with the development environment of LabVIEW 2009 SP1. It is really annoying as I loose time as I have to revert to saved previously code. Does anybody k