GR-Based IV Purchase order issue
Hi all,
When i am creating the purchase order in the item level.
Invoice tab--> GR-Based IV check box has to be uncheck.
How can i do this.. is there any settings ...
The purchase order we are creating for one vendor. in vendor master in control already i had uncheck the GR-based Inv verification..
Please Advice... its very urjent
Thanks in advance
Regards,
LAkshma
Hi,
You have to modify the value in the user exit.
Write this type of code inside the include ZXM06U43 . I have given you the sample code, make use of the bold part, you need to modify the POT table and modify the internal table for your logic.
DATA v_cnt TYPE i.
DATA char(50) VALUE '(SAPLMEPO)POT[]'.
DATA: i_ind TYPE TABLE OF bekpo,
wa_ind LIKE LINE OF i_ind.
create/change purchase order
IF sy-tcode EQ 'ME21' OR sy-tcode EQ 'ME22' OR
sy-tcode EQ 'ME21N' OR sy-tcode EQ 'ME22N' OR
sy-tcode EQ 'ME23' OR sy-tcode EQ 'ME23N'.
CLEAR wa_ind.
FIELD-SYMBOLS <f1> TYPE ANY.
Move memory of internal table POT to field symbol f1.
ASSIGN (char) TO <f1>.
Move content of f1 to internal table i_ind
i_ind[] = <f1> .
LOOP AT i_ind INTO wa_ind.
IF wa_ind-pstyp = '9'. " Service PO - item category
IF PO Line item has History per Purchasing Document as 'D'
Set indicators on, for the line item.
CLEAR v_cnt.
SELECT COUNT( * ) INTO v_cnt FROM ent5100
WHERE ebeln = wa_ind-ebeln
AND ebelp = wa_ind-ebelp
AND bewtp = 'D'.
IF sy-subrc = 0.
wa_ind-wepos = 'X'. " Set Goods Receipt Indicator
wa_ind-webre = 'X'. " Set GR-based IV Indicator
wa_ind-lebre = 'X'. " Set Srv-based IV Indicator
ELSE.
wa_ind-wepos = ' '. " Clear Goods Receipt Indicator
wa_ind-webre = ' '. " Clear GR-based IV Indicator
wa_ind-lebre = ' '. " Clear Srv-based IV Indicator
wa_ind-xersy = ' '. " Clear ERS Indicator
ENDIF.
MODIFY i_ind FROM wa_ind INDEX sy-tabix.
ENDIF.
ENDLOOP.
<f1> = i_ind[].
ENDIF.
Hope this helps.
Thanks,
Senthil
Similar Messages
-
Down payment request based on purchase order
Dear all,
How to make down payment request(F-47) based on purchase order(not line item wise) ?,
Currently in F-47 it is asking to enter amounts purchase
order line item wise,because downpayment is made only for entire purchase order value not line item wise.
How to solve this issue ?
JeyakanthanHi,
This is SAP standard functionality. you have to specify line item, though you specify line item system will check for whole PO. and while posting invoice you will get information of the down payment.
Regards,
Raj -
Invoice based on purchase order no
Hi Experts,
how i can get invoice no based on purchase order no
thanks in advance
narendraHello Narendra
Call BAPI_PO_GETDETAIL1 with your purchase order number.
TABLES parameter POHISTORY returns you the purchase order history.
These records have a field HIST_TYPE ( PO history category ) with the following values (value table T163B):
1 AAf Down Payment Req.
2 AAfV DP Request Clearing
3 AnzV Down Payt Clearing
A Anz Down payment
B NAbr Subseq. settlement
C NeuR Miscell. provision
D Lerf Service entry
E WE Goods receipt
F BzWE Delivery costs
G BzRE Delivery costs
I BzKP Del.costs acct.maint
J RLfs Return delivery
K KtoP Account maintenance
L Lfs Delivery note
M BzRe Del. costs log. inv.
N NB-L Subs. deb. log. IV
O LB Subcontracting
P NB-B Subs. deb. dl. costs
Q RE-L Invoice receipt " <<<
R RE Invoice receipt " <<<
S Sped Subs.deb.: forwarder
T VRe Parked invoice
U WA Goods issue
W NeuB Revaluation log. IV
X NB Subs.deb.: general
Z Zahl Payment
Presumably you are interested in categories 'Q' and 'R'.
Regards
Uwe -
Posting to different GR/IR account based on purchase order type
We are implementing cross company stock transport orders that require an AP invoice to be posted against the goods receipt. Our AP department does not want the GR/IR postings to go to the account used for traded AP. I cannot determine a method using OBYC to specify a different account based on purchase order type. Is there a way to do this?
Hi Jud
You should make these posting to a cost center then..The only way you can control account postings via PO type is having a account assignement category. You can make this as mandatory filed for this PO type..
Please let me know if your requirement is different..
CHeers
R K Bolla -
Error adding Goods Receipt PO based on Purchase Order
I am working on an add-on that was working against a 2005A version of SAP Business One and I am upgrading it to run against a 2007A Company (PL41)
I am receiving strange errors when testing the add-on.
I can add a Purchase order not based on a Goods Receipt PO without any problems but as soon as I specify a base type, entry and line I get either -1 General Error, or the Tried to Read/Write Protected Memory Error. The error I receive seems to arbitrarily change between the two.
I have read a few notes on the forums about this but none of them have proven useful in solving my problem. I have checked the DI-API version on my PC and it is definitely using 8.0.177.0 which matches the version of SBO that I am running. I have re-installed the DI etc without any success.
The following is the code snippet which I am using to test: I have verified that the referenced purchase order is open, contains the correct item, customer etc
int iResult = -1;
string sResult = string.Empty;
string sOutput = string.Empty;
try
sOutput += Environment.NewLine + "Connecting to company...";
sbocoy = new SAPbobsCOM.Company();
sbocoy.Server = "<insert server name here>";
sbocoy.CompanyDB = "<insert database name here>";
sbocoy.LicenseServer = "<insert server name here>:30000";
sbocoy.UseTrusted = true;
sbocoy.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005;
sbocoy.UserName = "manager";
sbocoy.Password = "<inser sap user here>";
iResult = sbocoy.Connect();
sOutput += Environment.NewLine + "Connected";
SAPbobsCOM.Documents PO = (SAPbobsCOM.Documents)sbocoy.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders);
SAPbobsCOM.Documents GoodsReceiptPO = (SAPbobsCOM.Documents)sbocoy.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes);
sOutput += Environment.NewLine + "Get Purchase Order";
PO.GetByKey(1402);
sOutput += Environment.NewLine + String.Format("DocNum: {0}; DocEntry: {1}; ItemCode: {2}; LineNum: {3}", PO.DocNum, PO.DocEntry, PO.Lines.ItemCode, PO.Lines.LineNum);
GoodsReceiptPO.CardCode = PO.CardCode;
GoodsReceiptPO.CardName = PO.CardName;
GoodsReceiptPO.Lines.ItemCode = PO.Lines.ItemCode;
GoodsReceiptPO.Lines.ItemDescription = PO.Lines.ItemDescription;
GoodsReceiptPO.Lines.Quantity = 1.0;
GoodsReceiptPO.Lines.BaseType = int.Parse(PO.DocObjectCodeEx); // If I comment out this and the next two lines the document will add
GoodsReceiptPO.Lines.BaseEntry = PO.DocEntry;
GoodsReceiptPO.Lines.BaseLine = PO.Lines.LineNum;
sOutput += Environment.NewLine + "Adding Goods Receipt...";
iResult = GoodsReceiptPO.Add();
sResult = sbocoy.GetLastErrorDescription();
sOutput += Environment.NewLine + string.Format("Result [{0}] {1}", iResult, sResult);
catch (Exception ex)
sOutput += string.Format(Environment.NewLine + "Exception: {0}{1}SBOError: {2}", ex.Message, Environment.NewLine, sbocoy.GetLastErrorDescription());
The results when I try and reference the purchase order are:
Connecting to company...
Connected
Get Purchase Order
DocNum: 301396; DocEntry: 1402; ItemCode: SEANTESTITEM; LineNum: 1
Adding Goods Receipt...
Exception: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
If I comment out the 3 lines that reference the base document the Goods Receipt Adds and the following is the output...
Connecting to company...
Connected
Get Purchase Order
DocNum: 301396; DocEntry: 1402; ItemCode: SEANTESTITEM; LineNum: 1
Adding Goods Receipt...
Result [0]
The above code will work correctly if we base a Delivery Note on a Sales Order so it appears to be specifically related to the Purchasing Documents.
Edited by: Sean Archer on Feb 2, 2009 2:23 PMHi Ganesh,
Thank you for the reply.
I ran the add-on against another database and it is working.
I also verified that the document was failing to create if done via the Data Transfer Workbench so it would appear the issue affects the DI-API irrespective of add-on.
I will need to do more testing to confirm whether this is a bug with PL41 of 2007A or a corrupt database as you suggest.
Cheers,
Sean -
Intercompany Text-Based Standard Purchase Order from Production Order
We have a business scenario where a material is made in a plant and then another plant performs a service on that material. The customer wants the purchase requisition that is created from the production order from the producing plant to apply a vendor that is an intercompany vendor.
The issue is, these purchase orders are text based purchase orders. This process works perfectly when there is a material master.
Scenario:
Plant X = Production Order to make Material A
Plant X = Production Order creates a purchase requisition in Plant X; Intercompany Vendor is assigned
Buyer = Creates the purchase order from the purchase requisition
Error Message: SAP issues an error message that this vendor cannot be used.
We are looking for a way to create a text based purchase order (that represents a service) and assign to a intercompany vendor.The exact error message we receive is:
Diagnosis
You are entering an ordering transaction involving a vendor to whom a plant has been assigned. Normally, materials would be supplied by one plant to another in such a transaction.
This process involves a delivery and billing document in the SD system. The PO for this appears directly in the delivery due list of the issuing plant (vendor) and therefore does not need to be transmitted.
However, items without a material master record cannot appear in the delivery due list.
Procedure
Items without a material master record can only be ordered from vendors without a plant assignment.
The point is if we create a vendor without a plant assignment, how can the inter-company posting be accommodated. -
Dear All,
I am working on SAP 2007 B PL 10. Now I am making a Purchase Order for Item1 Qty as 100.
Now based on this Purchase Order I prepare GR PO of Qty 100. Now manually my production Team does Inspection and hence after inspection i get 10 Qty as Rejected.
Hence I make A/P Invoice of 100 Qty and based on this A/P invoice I make A/P Credit Memo of 10 Qty.
But the Problem is that the Purchase Order gets Closed although I had made a A/P Credit Memo of 10 Qty.
Please guide
Regards
Hitesh ParsawalaHi Neetu,
I complete the GR PO as soon as i receive qty through Challan. But when I send my material for inspection some Qty gets rejected based on Quality Parameters. Hence I make A/P Invoice for all the Qty but then based on this A/P Invoice I make A/P Credit Memo for the Rejected Qty.
Now the reason for keeping the PO as Open because I get to know how much OK Qty is still Pending to be received from the Vendor within that Particular Puchase Order.
Regards
Hitesh Parsawala -
Difference between Goods receipt based IV / Purchase order based IV ?
Hallow all !!!
Can anybody please explain the difference between GR based invoice verification and Purchase Order based invoice verification in brief ?
Thanks in advance !Hi,
PO-based invoice verification
In PO-based invoice verification, items are settled with reference to the purchase order. Settlement can be carried out with respect to all items, irrespective of whether or not deliveries have yet been received.
GR-based invoice verification
In GR-based invoice verification you can effect settlement with regard to each GRs relating to a purchase order separately. In the PO history, each invoice item can be assigned to precisely one GRs.
for more follow the links
http://www.sap-hefte.de/download/dateien/1067/083_leseprobe.pdf
http://www.finance.utoronto.ca/fast/qrg/purch/ir/pocreate.htm
Regards,
Biju K
Edited by: Bijay Kumar Barik on Apr 16, 2008 8:41 AM
Edited by: Bijay Kumar Barik on Apr 16, 2008 2:23 PM -
Changing the layout in sapscript based on purchase order group
Hi all,
My requirement is as follows:
I have a SAP script which prints the PO. Based on the purchase order group I need to add empty space on the top of the output.
Suppose if PO group(EKKO-EKGRP) is 'ABC' i need to add 6cm of space. Other than ABC I neednot add space.
Could you please tell me how to achieve this?
Thanks in advance.
Regards,
Aravind.Hi Prabhu,
Thanks for your reply.
If i create a window the space will always be present irrespective of PO group right?
For PO group ABC i need a space of 6cm on the top pf the output,it means i have to drag all the subsequent windows down by 6 cms. How is this possible dynamically? For other PO group it needs to be as it is.
IF i Create a window by callng different paragraph formats will the other windows size change dynamically? -
MIRO based on purchase order and delivery note
Hi
It seems I can do a supplier invoice based on PO or some POs.
I can also do a supplier invoice based on delivery note or some delivery notes.
But I can not do MIRO based on delivery note AND purchase order.
Business scenario: I need this when I have supplier invoice with a lot of lines based on a lot of different PO and different PO lines. The delivery note consolidate together all this different lines. Together with these lines I want to add another item of non good receipt item, so there is no delivery note.
I want to add this item with a reference to the PO line in addition to the lines that were created with a reference to a delivery note.
Thanks
OferThanks,
I want to use PO reference for specific PO and delivery note for other PO in the same invoice.
The problem is I cant use delivery note for the other PO cause there is no MIGO there.
Thanks
Ofer -
Dangerous Goods checks in transfer order (based on purchase order)
Dear,
We have defined a process to transfer products from one plant of our company to another plant of our company based on a purchase order (Transfer order), a delivery and a shipment.
Problem: the delivery and shipment could be checked in a Dangerous Goods standpoint but nothing seems to be available in standard to check the process at the first step : at purchase order step.
My question is : do you know if a standard feature exist on purchase order to ensure a "non frustating process" as soon as possible ?
Many thanks for your help
Best regards, JérômeDear Jerome
DG Set up is only related to SAP SD process (e.g. check SAP EHS online help), Therefore DG checks are not available in the purchase part. And your scenario it quite standard; Normally the DG check part starts in Sales process, then in delivery and then in shipment. If you use SAP TM again you can use DG checks there.
C.B.
PS: e.g. SAP GTS and SAP EHS SVT are integrated in purchase process by standard. But is is not a good idea to "misuse" these modules for DG perspectives in MM process.
PPS. may be check: Blocking Hazardous Materials for Purchasing with HSM,
System-Internal Stock Transfer Using Stock Transport Orders - Integration of Transaction Data - SAP Library -
How to get sales order number based on purchase order
hi,
what is the transaction code to find the sales order number based on the purchase order number
Regards,
MuraliHi,
Go to Se16 (data browser), see the table VBKD, enter the PO number, if any, execute.
Prase -
Purchase Order - Issue storage location set mandatory entry
Hello All,
When create subcontracting PO, want to set the field of Issue storage location as mandatory.
I tried to find configuration "Materials Management>Purchasing>Purchase Order-->Define Screen Layout at Document Level", but there is not entry "Issue storage location" to set the screen layout field.
I searched previous threads, but only find some to mention issue storage location for STO. Now, I just use subcontracting PO that is same as NB document type.
Please your kind suggestion or any method to set Issue storage location as mandatory in PO.
Thanks very much!
MagHi ,
Please, could you re-check it again, I have found storage location and issue storage location fields under define fields for fields selection group.
Under Field selection group NBF Purchase order
Selection group supplying plant
Issue storage location required entry chose
Under Field selection group NBF Purchase order
Selection group Basic data item
Storage location required entry chose
After this setting, I can be find this storage location fields as Mandatory.
Regards,
Thiru -
FM to find Sales Order based on Purchase Order Number
Hi All,
I have a Purchase Order number and based on this I want to find out the corresponding Sales Order Number.
Can anyone help me find any FM for this (I have tried RV_ORDER_FLOW_INFORMATION but its not of much help).
Regards,
ShoebCheck my reply here.
Re: Purchase order number from Sales order -
INDIVIDUAL PURCHASE ORDER ISSUE
Hello Every body,
I have an issue in Individual purchase order. Created sales order with an item category TAB.
Just i tried delivery note VL01n: picking tab it is allowing picking quantity.
I am wondering, how system will accept.
i am not created any special stock: and again am verified delivery item category controls.
Could you please guide me, is't i have to verify any other controls
waitaing for your replies
Prasad.
Edited by: pilla.varaprasad on Aug 19, 2010 10:29 AMFor individual Purcahse order i have prepared document which might usefull for u.
http://www.scribd.com
search ---
15806527-Individual-purchase-order-Configuration-document-ERP-SAP-ECC
15806698-Individual-Purchase-Order-End-user-Document-ERP-SAP-ECC
possibilities: Check in OPJJ avaialble check and checking rule
Maybe you are looking for
-
It's important to remember that DEFAULT values are only used when a column isn't specified in an INSERT or MERGE, or when the DEFAULT keyword is used. If you don't explicitly declare a DEFAULT value, Oracle implicitly defines the default value to be
-
Can you use an iPad charger for the iPhone 4S?
I would like to use the charger for my iPad to connect/charge my iPhone 4S. Will it work?
-
Best External hardrive for video for MacBook Pro?
I have a MacBook Pro - 2009. I have put a lot of video on my computer and it's getting full so I need to clear content off to make some room. What is the best and easiest external drive for holding video? Also, I want it to be super easy to access
-
Shared Objects: How to store and read multiple instances
Hi, Can we store multiple instances of Shared Objects in memory and read the desired instance. e.g If i execute the below program twice then also it will create only a single instance in the memory. Can we create a memory object with a key and then r
-
Suddenly today, I can not send e mail?
"[email protected] is incorrect" nothing has changed, why am I getting this?