Unit price validation in Purchase Order, Goods Receipt PO and A/R Invoice

Hello!
I want to have validation of the Unit Price field in Purchase Order, Goods Receipt PO and A/R Invoice documents.
This means that user has to get some kind of message if she/he do not enter the Unit price in above mentioned documents.
I can not use the price lists for this, to get the field populated automatically, because I do not have all the prices...
I am no longer newbie when it come to SAP, but this really puzzles me
Thanks,
Dejan

Hello guys,
I have tried to add this code to check if the field Unit Price was empty in the Purchase Order form (Object ID 22)
But it gives me an error message - Error converting data type varchar to numeric (CINF)
I am getting the same error message even if I have some value in the Unit Price field...
I am really confused - what is wrong with it???
Here is the code from the Transaction notification
IF (@object_type = N'22' AND @transaction_type in (N'A', N'U') )
     BEGIN
          IF EXISTS (SELECT T1.DocEntry FROM OPOR T0 inner join POR1 T1 on T0.DocEntry = T1.DocEntry
          WHERE (T1.PriceBefDi IS NULL OR T1.PriceBefDi = ' ') AND T0.DocEntry = @list_of_cols_val_tab_del)
               BEGIN
                    Set @error =1
                    set @error_message = 'Unit Price cannot be blank'
               END
     END
Thanks,
Dejan

Similar Messages

  • Problem of Query of Module Purchase Order, Good Receipt PO, Good Return

    Hi,
    I would like to seek for assistance regarding double entries of documents,  I have used the query and found out lately the it has a problem, Please refer to thread "Query of Module Purchase Order, Good Receipt PO, Good Return" for details.
    You help is very much appreciated.
    Regards,
    Clint

    Hi Clint,
    Try this one:
    SELECT DISTINCT 'GRPO' AS TYPE, T1.DOCNUM
    'GRPO/RET#', T3.DOCNUM 'PO#',T1.CARDCODE,
    T1.CARDNAME , T1.DOCDATE, T0.ITEMCODE, T0.QUANTITY,
    T0.PRICE, T0.LINETOTAL
    FROM DBO.PDN1 T0
    INNER JOIN DBO.OPDN T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN DBO.POR1 T2 ON T0.BASEENTRY = T2.DOCENTRY
    INNER JOIN DBO.OPOR T3 ON T2.DOCENTRY = T3.DOCENTRY
    WHERE T1.DOCNUM = '[%0]' AND T0.ITEMCODE IS NOT NULL
    UNION ALL
    SELECT DISTINCT 'RETR', T1.DOCNUM,T3.DOCNUM,
    T1.CARDCODE, T1.CARDNAME , T1.DOCDATE, T0.ITEMCODE,
    T0.QUANTITY, T0.PRICE, T0.LINETOTAL
    FROM PDN1 T0
    INNER JOIN OPDN T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN RPD1 T2 ON T0.TRGETENTRY = T2.DOCENTRY
    INNER JOIN ORPD T3 ON T2.DOCENTRY = T3.DOCENTRY
    WHERE T1.DOCNUM = '[%0]' AND T0.ITEMCODE IS NOT NULL
    If you still have duplicates, let me know any differences in those lines.
    Thanks,
    Gordon

  • Query of Module Purchase Order, Good Receipt PO,  Good Return

    Hi,
    Like to ask assistance regarding Module Purchase Order, Good Receipt PO,  Good Return under Purchasing A/P.
    I have a hard time to linking the tables above:
    PO Module have table : OPOR and OPOR1
    GRPO have table : OPDN and PDN1
    Good Return have table : ORPD and RPD1
    Its very mind bubling linking this 6 tables can anyone please can assist regarding the situation, a query that shows that they are connected to each other.
    Thank very much!
    Clint

    Clint,
    Like Suda said, this query assumes your have normal business practise.
    One more thing to mention, the lower part of union all needs some other change.  Here is the complete query:
    SELECT     DISTINCT 'GRPO' AS TYPE, T1.DOCNUM "GRPO/RET#", T3.DOCNUM PO#,T1.CARDCODE, T1.CARDNAME , T1.DOCDATE, T0.ITEMCODE, T0.QUANTITY, T0.PRICE, T0.LINETOTAL, T0.TOTALFRGN, T0.RATE
    FROM         PDN1 T0
    INNER JOIN OPDN T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN POR1 T2 ON T0.BASEENTRY = T2.DOCENTRY
    INNER JOIN OPOR T3 ON T2.DOCENTRY = T3.DOCENTRY
    WHERE    T1.DOCNUM LIKE '[%0]'
    UNION ALL
    SELECT     DISTINCT 'RETR', T1.DOCNUM,T3.DOCNUM, T1.CARDCODE, T1.CARDNAME , T1.DOCDATE, T0.ITEMCODE, T0.QUANTITY, T0.PRICE, T0.LINETOTAL, T0.TOTALFRGN, T0.RATE
    FROM         PDN1 T0
    INNER JOIN OPDN T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN RPD1 T2 ON T0.TRGETENTRY = T2.DOCENTRY
    INNER JOIN ORPD T3 ON T2.DOCENTRY = T3.DOCENTRY
    WHERE    T1.DOCNUM LIKE '[%0]'

  • Purchase Order Goods Receipt quantity tolerance setting not working.

    Team,
    We are using the IS-Oil solution, ECC 6.0 REL 605 SP LEVEL 009 .
    The issue that I have is as follows:
    Purchase Order Goods Receipt quantity tolerance setting not working, I had set up a 10% tolerance on QTY received in the GR process via the PIR and also the Purchase Value Key in the  material master and also changed the message to a warning in OMCQ for message number M0722.
    I  had performed a similar configuration and master data maintenance on a different NON IS-OIL client install and it worked fine.
    I believe it is the IS-OIL component in the Inventory update portion of the GR process that is causing the error.
    I have searched for OSS notes, however they mention that there is no solution.
    Setting the PO line item as Unlimited will not be best practice for the business and will not be used.
    Has anyone come across this issue? and how was it resolved, your help and guidance will be greatly appreciated.
    Thanks

    Hello,
    Please check the Tolerance levels in O588 
    Also you can use the BAdI OIB_QCI_ROUND_QTY: A new method, CHECK_TOLERANCE
    Best Regards,
    R.Brahmankar

  • Purchase order & Goods Receipt

    Helloe Experts ,
    I am New to the MM .As part of the case study In my project i need to configure MM as explained below
    1)There are 2 vendors A & B
    2) A suppllies material X & B suppllies material  Y
    3)I need to configure the blank Client system for Creation of Purchase order.
    4)Then for the same i need to configure Goods issue through MIGO.
    Could any one send me the steps to configure for the same.
    Please note that i have given a blank client.
    All enterprise settings needs to be done
    Thanks in advance
    regards
    sagar

    Hi,
    Refer to this link where will find configuration doc based on industry specific.
    http://help.sap.com/bp_bblibrary/600/BBlibrary_start.htm
    Regards
    Ravi Shankar.

  • Purchase Order Good Receipt and Invoicing

    Is there a easy way to see all the Purchase Orders that have been received in the system but not invoiced? I have tried to use SE16N amd ME2K bu these transactions do not seem to help. Im trying to see what Purchase Orders have been placed that we have received in but have not invoiced. If possible I like to narrow it by material group. Thank you for your time.

    Hi,
    Look into MB5S ,uncheck the "Cleared items too " check box and execute this will list out all the POs with GR but due for Invoice. Besides  browse the table EKBE in SE16N,choose PO History category as E ,GR/IR clearing value = 0,Delivery Completed as X and execute ,the list of POs will be available which are due for Invoice.
    Dhruba

  • Subcontract Purchase Order + Goods Receipt + Requirement reduction

    Hi all,
    I have the prob that SOMETIMES after a GR for a subcon PO the requirement for the components is not reduced.
    Can this be controlled by the flag "Ind. rqmnts reduction" for MVT543??? In a SAP-Book I found the statement: This only works for MVT 101...
    Is that true? What are the settings in a SAP-Standard system for this flag for this both MVTs??
    So I continued search for the cause in OSS and found out note 115899. Does anybody know this report and has any experiences?
    Regards
    Thomas

    Hi
    SOMETIMES after a GR for a subcon PO the requirement for the components is not reduced.
    check that user is not manually removing tick of components while doing GR of final product
    This only works for MVT 101...
    I dont Think so
    you can check other goods issuing movemnts in which yo will find this tick for reducing the requirement as it is to be happen.

  • Purchase Order - Goods receipt processing time (User Exit)

    Hi All,
    I would like to know if there is any User Exits available for this scenario.
    In the Delivery tab of PO, we see GRPT & Planned Delivery Time, this information is picked up from the material master. In my case i have included the transport time in the GRPT time, so i have kept the GRPT = 25 days as the material is sent by sea. But in certain cases the material might be sent by air & the GRPT will then only be 5 days. So i want to use the Shipping instr field, where i select Shipping Instr1 & i want the system to force the GRPT time to be 5 days instead of the normal 25 days, when the PO is saved. Is this possible?
    Alternatively if there is a better solution, kindly advice me.
    Vivek

    Dear Vivek,
    Thanks for recognising me,and also serch for you some document i am giving sap  library link below.and also availble in first thread.
    http://help.sap.com/saphelp_46c/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
    Hope this will helps you.
    Prem.

  • Excluding price of last purchase order from cost estimate

    Good morning,
    we have the issue described below:
    we would like to exclude a price of some purchase orders from valuation in cost estimate in case of valuation is made by price from purchasing info record.
    In this case valuation considers price of last purchase order even if there is a valid agreement used.
    Our customer would like to have valuation with price of purchasing agreement and not price of the standard purchase order closed, but if agreement is older and during creation of standard PO is setted the "InfoUpdate" flag, system updates the inforecord and in CK11N during cost calculation it uses this price for subcontracting.
    We have done some tests...Is there a standard SAP solution to have price of valid purchase agreement?
    Many thanks.
    Giusy Castiglione
    Accenture Outsourcing

    Hi,
    Your requirement seems to be very unique and hence you need to try out through by selecting the valuation through user exit where we can request the system take the po price from purchase agreement instead of purchase orders. This selection deftly resolve this unique requirement instead of searching for a std solution.
    Trust this helps much!
    Regards,!
    Ashok Singh

  • BADI for MIGO ( Material document change for Production Order goods Receipt

    Hey experts,
    I am actually stuck up with MIGO BADI.
    There are many BADI's available but i dont think any one would suit my requirement.
    here goes my requirement.
    When a Production Order is created in transaction CO01 , the system picks the value of the moving  material and multiplies it with the quantity .
    But when the production order is being confirmed thru CO11N , again the system picks the present moving price of the material and multiplies it with the quantity. This goods receipt is done through MIGO transaction by selecting goods receipt for order that is 101 movement type. I have been asked to get the value of the material at the time of production order create and then change the dmbtr value of MSEG table, this can be done in the badi at the time of creation of material document number but the BADI's MB_DOCUMENT_BEFORE_UPDATE,  MB_DOCUMENT_UPDATE do not allow me to change the values .
      The BADI MB_DOCUMENT_BEFORE_UPDATE does not allow any changes to be made for XMSEG table
    and MB_DOCUMENT_UPDATE is passed by value and hence the changes are not affected after it comes out of the method.
    Guys please help me as this creating a hell lot of problem here and i would surely reward the max points if answered.
    here is the example to be more precise.
    Material : Pen
    Quantity : 10.
    date : 01.06.2008.
    TYransaction co01.
    lets say at the time of creation the value of the material was 5 rs
    a material document would be created with the value  : 50 rs.
    Now for this prod. order goods receipt is being done on 01.07.2008.
    Let the value be 4 rs now.
    so the Material document would be created with a value of 40 rs.
    I need to make this 50 rs.
    I have got all the data to do it but i am not gettin the coreect BADI, i just want the BADI name to change the DMBTR value at the time of creation of material Document.
    Thanks in Advance.

    User-exit /BADI to change mseg during migo
    https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=5435559
    try this links

  • Goods receipt number and purchase invoice nubember info objects

    hi experts
    i have the requirement to build the report with the  info objects of goods receipt number(document) , purchase invoice numbers and purchase document numbers from standard cubes or ods.i have checked in inventory management and purchasing cubes&ods i am not success got the purchase document number it is from ods   (0PUR_O02)  the InfoObject  is 0OI_EBELN(purchasing document number),like this i want InfoObject  for Goods receipt number and purchase invoices from where can i get these fields.
    if u need any more information i will provide.
    thanks and regards
    Sreenivas.

    Hi Ahamed,
    thanks for your reply,do u have any information about purchase invoice number.
    i need one more help from you, how to find out Debtors turnover ratio from Acceount Receivables(AR) (or)G/L (General ledger account).is there any standard queries from Business content,i was checked and i was failed,if you have any solution for this please let me know.
    thanks and regards
    Sreenivas.

  • Production Order Goods Receipt  in Mass

    Hi Frds,
    My client need production order Goods Receipt  in mass i e at time number of production orders with batch creation,
    Could any light on this issue,
    Thanks
    Mohan M

    Dear,
    There is no T. code to do the GR in mass you need to use the BAPI BAPI_GOODSMVT_CREATE.
    Regards,
    R.Brahmankar

  • Amount for production order goods receipt

    How does the system determine the amount of the product order goods receipt for make to order product that uses variant configuration?
    Meaning during sales order, the components are selected to make up that product.

    It is using Sales Order cost estimate because it is only calculated when the items are selected in sales order.
    If there are changes to the sales order, e.g. options are removed or added...
    how do I make sure the GR take the new value?
    I did the following test in QAS:
    - Production order is created but work not started. Production order deleted.
    - Make changes in sales order.
    - Re-do cost estimate in sales order. I do see that the calculated cost has changed.
    - Recreate production order and as per normal production steps
    - When do production order goods receipt, the value remains the old value and not the new one.
    Did I missed out or do the wrong step?
    However, that also does not help to explain why the value ended up as only $0.01 as same as MM costing view.

  • Fetching the price of the purchase order and charge it in my SO

    Dear, gurus
    I am doing services mto and even Repair services of customers machinery. I would like to fetch the price incase of purchase order and charge the customer for that purchase in my Sales Order. Is there a way to automatically fetch the price? Or how can I cover this scenario?
    Ex: I receive customers machine and in my plant or workshop I do not have the tool needed or a specialist so I hire someone for the job so I buy or rent it or him from a vendor and in return I want to charge my customer for that purchase.
    Any Ideas?
    P.S. this is not a 3rd party sale scenario its just a simple Sales Order. I was able to fetch the price from the production order with condition type EK02. Is there any condition type for purchase order price fetching?
    Thanks

    Amitesh
    How did the outcome come out as? meaning did that user exit price fetch appear in a condition type in the billing document? If so which one?
    Also, where is the relationship or linkage made from PO to SO? Like how in the world would your sales order know that a purchase order was done. I mean it really is a weird process I mean first the SO should be created then that should trigger the PR and that gets converted to a PO as rightly stated in book terminology. But in this case of first a regular sales order, then out of sap we give our requirement to mm purchasing dept and tell them we need such and such. Once they buy it there is a price which in return we need to charge our customer. Everything can be done manually.
    From my own logic of looking at what you described in the user exit. I presume that from abap side they will only pull a table and field data and populate it where I want it?
    In the PR there is a place where you can assign acct cat C to the sales order and item line what exactly is this for? GL acct are assigned for which purpose or What is it doing? Also, the purpose of that cost center?
    Edited by: Muhammad Ali Lozada on May 31, 2010 12:14 PM

  • Price changes in Purchase order Line Items its displaying as"WF-BATCH"

    Hi Experts,
    I need some Information about Price changes in Purchase order Line Items,In PO Documents Price changes through this wf-batch has  changed the value of this row to xxx.xx USD, which does not correspond the invoice.
    If  i selected the Item changes in the Purchase Order its displaying as"WF-BATCH".
    So please try to clarify where this batch originates from.
    Brgds,
    RK

    Hi Jurgen,
    Thanks for your reply.
    But how i can check this in Purchase orders,on what basis this price changes information is recorded in PO Line Item level.
    can you pls guide me some steps to check the price changes through WF-BATCH.
    Brgds,
    RK

Maybe you are looking for

  • I have an Apple id and an icloud idea, do they work together?

    I just got a new laptop, I downloaded icloud and it told me to make an icloud acount. My apple account is just a user name not an e-mail. icloud wnated me to use an e-mail for the username so now I have two accounts, and apple id and an icloud id. Ca

  • The best way to get reports 6i output into Excel 97

    Hi there, I have a number of graphical reports that have a few group levels. These generate HTML or PDF output ok. I want to get the output to look as close to the HTML/PDF output from Report Server or Runtime into Excel 97. Outputting as HTML and im

  • WLS 8.1 hanging when using XA

    I am having an issue with BEA 8.1 hanging when using XA. I have configured it on several other Windows 2000 machines and not seen an issue. This particular machine seems to hang and then give a time out error. ANy suggestions would be appreciated. Be

  • Linked lists problem -- help needed

    Hello again. I've got yet another problem in my C++ course that stems from my use of a Mac instead of Windows. I'm going to install Parallels so I can get Windows on my MacBook and install Visual Studio this week so that I don't have to deal with the

  • Using media buttons in itunes on Equium P200

    Is it possible to use the media buttons on my Equim P-200 notebook in itunes when its not the open window? They work if ive got it open but not if its not. This doesnt really help me much because i could just hit space. Are there some setting somewhe