How to create Zero Goods Receipt
Hi there world of SAP geniuses,
How do I create a zero goods receipt order?
My client's requirements demand that I create a zero goods receipt order.
The client has a progress payment requirement - every stage of GR a certificate will be issued indicating workdone.
This is important because there are two points of information to the GR - interfaced and manual entry. Retention is involved and will be indicated at the GR stage. This has to flow into the invoice.
E.G.
Month Work Done GR Cert
Jan 100 100 100
Feb 150 150 250
March 0 0* 250
So it all boils back down to creating a ZERO QUANTITY Goods receipt!
Thanks for all your help in advance.
Similar Messages
-
How to create a Goods receipt for Purchase order
Hi All,
How to create a GR for PO and then i need to invoice the PO
Please tell me ASAP.
Regards,
Sagar.Thanks for ur reply
I understood how to do it.
Can u please say me how to invoice a PO.
my mail id is:[email protected]
Thanks -
Problems in creating a Goods Receipt Draft
Hello,
I am trying to use the DI-API and the SDK to create a Goods Receipt Draft document and link it to an existing Purchase Order. When I try to add the draft object, I receive an internal error (-2010). Here is the code that I am using. Can someone see if anything is wrong with this, or does anyone have any insights into this type of error?
SAPbobsCOM.Documents draft = null;
draft = company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
draft.Reference1 = tempDocEntry;
draft.CardCode = tempCardCode;
draft.DocDate = DateTime.Now;
draft.NumAtCard = tempOrderNumber;
draft.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes; // Used so that the objType will be 20 for a Goods Receipt Draft
draft.Comments = "";
draft.Lines.BaseEntry = System.Convert.ToInt32(tempDocEntry);
draft.Lines.BaseLine = System.Convert.ToInt32(row["Line #"].ToString());
draft.Lines.BaseType = System.Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oPurchaseOrders);
draft.Lines.ItemCode = row["Item #"].ToString();
draft.Lines.Quantity = System.Convert.ToInt32(row["Qty"].ToString());
draft.Lines.Price = System.Convert.ToDouble(row["unit price (USD)"].ToString());
draft.Lines.WarehouseCode = "0" + row["Whse Code"].ToString(); // prepend with zero, if the code is of length 1
draft.Lines.Add();
result = draft.Add(); // Add the draft now
if (result != 0)
thisError = company.GetLastErrorDescription(); //*** THE ERROR RESULT IS RETURNED HERE...
I am hoping that someone can provide some feedback and direction on this one fairly quickly as I am on a pretty tight time constraint to implement this solution.
Thanks,
JonathanHi Jonathan,
I haven't tested your code but I notice that you are calling the Add method of the Lines child object incorrectly. It's a bit confusing but the Lines.Add method should be called first and then you use the SetCurrentLine method to access the properties of this line. To make it more confusing, a new instance of the Documents object automatically gets one, blank line so you only need to call Lines.Add when adding a second line (and each subsequent line).
For example, say I have a recordset of line details from a base PO that I want to add to a new, draft GRPO:
int lineIndex = 0;
while (!rec.EOF)
if (lineIndex > 0) draft.Lines.Add(); // Only need to add new line after first one
draft.Lines.SetCurrentLine(lineIndex); // Set focus to newly added line so I can set properties
draft.Lines.BaseEntry = System.Convert.ToInt32(rec.Fields.Item("DocEntry").Value);
draft.Lines.BaseLine = System.Convert.ToInt32(rec.Fields.Item("LineNum").Value);
draft.Lines.BaseType = System.Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oPurchaseOrders);
draft.Lines.ItemCode = System.Convert.ToString(rec.Fields.Item("ItemCode").Value);
draft.Lines.Quantity = System.Convert.ToDouble(rec.Fields.Item("Quantity").Value);
draft.Lines.Price = System.Convert.ToDouble(rec.Fields.Item("Price").Value);
draft.Lines.WarehouseCode = System.Convert.ToString(rec.Fields.Item("WhsCode").Value);
lineIndex++;
rec.MoveNext();
Kind Regards,
Owen -
Need BAPI for MIGO to create a Goods Receipt against PO &Outbound Delivery
Hi Friends,
GRNs (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
If PO Number = EKKO-EBELN GR against Purchase Order
= LIKP-VBELN GR against Outbound Delivery
Based on the above condition I need to create a Goods Receipt.
Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
The fields available are with us are...
Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number SLED
Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
Please provide sample code if possible.
Waiting for replies,
Thanks and Regards,
SudhaHi Friends,
GRNs (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
If PO Number = EKKO-EBELN GR against Purchase Order
= LIKP-VBELN GR against Outbound Delivery
Based on the above condition I need to create a Goods Receipt.
Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
The fields available are with us are...
Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number SLED
Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
Please provide sample code if possible.
Waiting for replies,
Thanks and Regards,
Sudha -
Call BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order
Hi,
I'm calling the bapi BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order, but the following code doesn't work. It doesn't give me any kind of error message but it does nothing as well...
Can anyone help me please?
Thank You
Hugo
Code
DATA: wa_goodsmvt_header LIKE bapi2017_gm_head_01,
wa_goodsmvt_code LIKE bapi2017_gm_code,
wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS 0 WITH HEADER LINE,
it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
wa_goodsmvt_header-pstng_date = SY-DATUM.
wa_goodsmvt_header-doc_date = SY-DATUM.
wa_goodsmvt_header-ref_doc_no = '4500000020'.
wa_goodsmvt_code-gm_code = '01'. "Goods receipt for purchase Order
it_goodsmvt_item-stge_loc = 'BPF2'.
it_goodsmvt_item-move_type = '101' .
it_goodsmvt_item-entry_qnt = 17.
it_goodsmvt_item-entry_uom = 'KG'.
it_goodsmvt_item-mvt_ind = 'B'.
it_goodsmvt_item-po_number = '4500000020'.
it_goodsmvt_item-po_item = '00010'.
it_goodsmvt_item-material = '50'.
APPEND it_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_goodsmvt_header
goodsmvt_code = wa_goodsmvt_code
IMPORTING
materialdocument = wa_bapi2017_gm_head
TABLES
goodsmvt_item = it_goodsmvt_item
return = it_return.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
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:/ 'Ok'.
endif.
endif.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = ' '.Hi,
Thank you for the asnwer! I'm a rookie at ABAP so please forgive my stupid questions
I've changed the code to:
DATA: wa_goodsmvt_header LIKE bapi2017_gm_head_01,
wa_goodsmvt_code LIKE bapi2017_gm_code,
wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS 0 WITH HEADER LINE,
it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
wa_goodsmvt_header-pstng_date = SY-DATUM.
wa_goodsmvt_header-doc_date = SY-DATUM.
wa_goodsmvt_header-ref_doc_no = '4500000020'.
wa_goodsmvt_code-gm_code = '01'. "Goods receipt for purchase Order
it_goodsmvt_item-plant = 'BP01'.
it_goodsmvt_item-stge_loc = 'BPF2'.
it_goodsmvt_item-move_type = '101' .
it_goodsmvt_item-entry_qnt = 10.
it_goodsmvt_item-entry_uom = 'KG'.
it_goodsmvt_item-mvt_ind = 'B'.
it_goodsmvt_item-po_number = '4500000020'.
it_goodsmvt_item-po_item = '10'.
it_goodsmvt_item-material = '50'.
APPEND it_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_goodsmvt_header
goodsmvt_code = wa_goodsmvt_code
IMPORTING
materialdocument = wa_bapi2017_gm_head
TABLES
goodsmvt_item = it_goodsmvt_item
return = it_return.
write:/ it_return-message.
And the return message is : Material document data and PO data do not match (Material)
Any idea of what might be the problem?
Thanks -
Creating a Good Receipt PO via DI API No matching records found (ODBC -2028)
Hi,
I trying to create a Good Receipt PO via DI API. It is working when the user I used to log in to SAP via the DI API is a Professional User but when I changed it to a Limited Logistics User, I'm receiving the No matching records found (ODBC -2028). I have already added the SDK Tools license to that user but still I'm receiving that error.
So is it that the DI API will only work with a Professional User license or I can still use a Limited Logistics User?HI J S L,
I get same error when I use different user that I just now add the SDK Tools without restarting the database server. But previous user that I added SDK Tools before restart, no error.
Today
User 1 - add SDK Tools, no restart, error
Last Wednesday
User 2 - add SDK Tools, no restart, error
Today - database server restarted this morning
User 2 - no more error
Both User 1 and 2 are Limited Logistics User.
Best regards,
Dennis -
Creating Inventory Goods Receipt (oInventoryGenEntry)
Creating Inventory Goods Receipt (oInventoryGenEntry) gives the error "The inventory account is not defined". But I do the same in SAP and the works.
What do I have to do in my code about accounts ?
I mean for sure I just give the item, the quantity and a bit of header information.Dear Marc Roussel,
Please try to set the AccountCode of Document_Lines then add it again.
Best Regards
Jane Jing
SAP Business One Forums team -
How to differentiate a Goods receipt ?
hello gurus
how to differentiate the Goods receipts which are done only against an Inbound Deliveries from that of direct POs.
Is there any table to check the same ?
Thanks in advanceHi,
There is no link anywhere for this,
You will have to refer to EKES,MSEG,EKPO or EKBE
Diwakar -
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 -
How to create the good received list before actual goods receipt?
Hi,
Current process at client's end.
1)Shipment arrives from vendor
2)Warehouse prints the reception note (with the system generated no.), based on the purchase order (usually referenced on package or vendor paperwork)
3)Warehouse confirms the correct product was shipped by the vendor and hand writes the quantity, lot #, and the zone/location where the material has been stored in the warehouse (they also write down if there are any problems with the shipment, etc)
4)The reception note, along with all of the vendor paperwork is transferred to the purchasing department, who then processes goods receipt based on the information written on the Reception note.
How to to map above in SAP?
(In SAP GR is printed after it is created, whereas client wants the printout before GR is created.)
Thanks in advance,
SanjogHi,
I wonder why purchasers should do GR...
The goods arive at the warehouse and WH staff checks / receives them, so normally the should do the GR.
If they do mistake, GR can be cancelled.
I think your client should revise its process...
What is the sense of giving a paper, with same details as the GR would have, to the purchaser who books the GR based on that paper w/o ever seeing the goods?
I just want to say that in your process the purchaser depends on the information provided by WH staff. Why cannot be the booking executed the WH? And why can purchaser book the GR using the same information?
In case of normal process (GR done by WH staff) purchaser could check the GR in SAP w/o a physical "paperflow"...
Please explain their reason not to do this way.
Regards,
Csaba -
How to create COGSuFF0Cwhen goods was returned from customer
Hi,
goods which deliveried from nonvaluated sales order stock was returned from customer and reduce revenue and AR.
so, we need do following process:
create returned sales order〉delivery note and goods receipted-〉billing
the goods can be receipted in sales order stock ,and can be invoiced .
but how to create COGS with returened sales order for nonvaluated sales order stock?Hi
T-CODE :MR21 ,It is used to change the standard price ,we are in the environment that make to order with nonvaluated sales order stock ,so donu2019t need do standard coting .
I konw : With a nonvaluated sales order stock, inventory changes are not reflected in Financial Accounting. The sales order stock is settled to Financial Accounting only after results analysis and settlement of the calculated values (results analysis data) .
for normal process , if billing was created ,then do results analysis and settlement of the calculated values ,COGS will be post in financial accounting
for returen prcoess :
1. created returen sales order and referenced origin billing document.
2. create delivery note and goods receipted in sales order stock which was deliveried to customer stock
3. create billing document and revenue posted in financial accounting
4. do results analysis with returen sales order ,the system show error message: W KJ 816 No object was selected
when used the orign sales order to do results analysis ,but without any change to save !
how to post COGS in financial accounting ,when goods was return from cusromer in the environment that make to order with nonvaluated sales order stock ? -
DI to create draft goods receipt
Hi,
I am trying to use the DI to create a draft goods receipt but am receiving the following error:
System.Exception: -5001 - Object type for draft is missing
Any ideas how to do this?
Thanks,
MichaelHi Michael,
Did you set the Object Type for the draft (property DocObjectCode) in your code?
Dim vDrafts As SAPbobsCOM.Documents
Set vDrafts = vCmp.GetBusinessObject(oDrafts)
vDrafts.DocObjectCode = oInventoryGenEntry
Kind Regards,
Friederike
SAP Business One Forums Team -
How to block the goods receipt of items mentioned in the PO
hi gurus,
My functional people requirement is, when he created a purchase Order of 1000 quantity and I have also done GR for 860 quantity against this PO. he wont be receiving remaining 140 quantity. So in order to avaid that he have checked del completed indicator in PO. But still this PO is allowing me to do GR of the remaining quantity. He got some functional help but he dont want to do taht thing. My question is how should I block the receipt of that quantity which I do not want to receive.
he want me to write exit or badi. so Is there is any EXit or badi to do that
PS: I do not want to change the PO quantity.change like this .. dup will get avoided
if required do message handling
CALL FUNCTION 'ME_EKPO_SINGLE_READ'
EXPORTING
pi_ebeln = is_mseg-ebeln
pi_ebelp = is_mseg-ebelp
* PI_BYPASSING_BUFFER =
* PI_REFRESH_BUFFER =
IMPORTING
po_ekpo = ls_ekpo
EXCEPTIONS
NO_RECORDS_FOUND = 1
OTHERS = 2
IF sy-subrc = 0.
CHECK ls_ekpo-elikz = 'X'.
CONCATENATE 'Delivery Already Completed for' 'Line item:' is_mseg-ebelp '-' 'Material:' is_mseg-matnr INTO message_var.
MESSAGE e002(sy) WITH message_var.
ENDIF.
About the St22 analysis i dont have much idea .. i think so roll back is happening.
May be others can help you regarding this.Try to post it as a new thread so that you will get better answers -
SRM PO - how to check Shipment/Goods Receipt/Payment
Dear Gurus,
I have to find if there is a shipment or goods receipt or payment against a SRM PO. My question is can I get these details in SRM or I have to come to ECC to check. If they are in SRM, please let me know where. If I have to come to ECC to get these details, please let me know any standard functions for this. Appreciate all your help.
Thanks,
GSMSynchronize invoice status
BBP_IV_UPDATE_PAYMENT_STATUS
You can use this report to synchronize the status of invoices in SAP SRM with the status in the back-end system. If an invoice in the back-end system has the status Paid, the status in SAP SRM is adjusted; that is, the status changes from Approved to Paid.
Note that invoices in SAP SRM with the status Paid cannot be canceled.
Check goods receipt for XML invoices
BBP_IV_AUTO_COMPLETE
This report checks for XML invoices with the status Waiting for Preceding Document, and whether appropriate documents have been posted in the meantime, and then attempts to post the relevant invoice
BBP_IV_UPDATE_PAYMENT_STATUS
via check status , user can see his documnet whether sc status, po created or not, gr done or not, invoice made or not.
br
muthu -
Error in R3 system when create the Goods receipt in EWM
Dear EWM expert,
I have an error in R3 system when I confirm the goods receipt in EWM for inbound delivery
the error in SMQ2 is:
PALLET is an auxiliary packaging material and cannot be used as pack.mate
PALLET is a packaging matirial type VERP that I've create in in R3 and I have transfer via cif it in EWM.
We have the new EWM 7 and i check some OSS note for a programm error in transfering of pakaging material during the GR but they are available only for EWM 5 and they are not available for EWM 7.
Could you explain me if this error coul be caused by some customising settings or by some master data field.
Thank you in advance for your help.
Best regards
Alessandro
Edited by: Alessandro Dapiaggi on Jan 29, 2009 5:11 PMHi
I am not sure of your problem since there may be quite a few reasons why this would happen. However just try one thing - change the Packing material category from "auxaliary packing material" to "packing material" in Define Packaging Material Types under logistics general--->HU Management ---> Basics for the packing material type you are using in VERP and then create a new packing material and try the inbound delivery. It may work
Thanks
DJ
Maybe you are looking for
-
Performance problems with jdk 1.5 on Linux plattform
Performance problems with jdk 1.5 on Linux plattform (not tested on Windows, might be the same) After refactoring using the new features from java 1.5 I lost performance significantly: public Vector<unit> units; The new code: for (unit u: units) u.ac
-
Short Dump while making a fields as required in BDT object screens
Hi, I'm making a field as "required" by checking the required button on that field in the BDT screen. But am getting a short dump when I'm trying to use that screen. It seems like some data is getting converted to bad format due to this (am not fully
-
I have a GUI with several subvis. I am using an LV project (LV 8.2). One of the subvis is used to construct a GPS string and hand it over to a RT (cFP-2120) deployed serial write vi using network variables. If I run the subvi standalone from the proj
-
Adobe Illustrator CC will not work
I subscribed to CC last week. I downloaded Illustrator along with a couple of programs. Whenever I try to open illustrator, I receive the error window "Adobe Illustrator has stopped working: Windows is checking for a solution to the problem." I hav
-
Report that works in CMS doesn't work in VB.
I'm trying to get the VB viewer code from wssdk_net_samples_12 working on a report (with 1 parameter) I created against a postgres database but I keep getting the following error: Message: "Failed to retrieve database logon info. Information is neede