Formatted Search - Purchase Order Lines, Price Field

Hello Experts,
I have wrote this formatted search for Purchase Order Lines, Price Field
The problem is that i gets 0...
What is wrong in it?....
select
case
when T2.[ItemCode] Like N'u05D7u05DC%%' AND U_Thickness >= 1 AND U_Thickness <=3 then U_Contour*2.17
end
FROM OITM T0
INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN POR1 T2 ON T0.ItemCode = T2.ItemCode
WHERE T2.itemcode = $[$38.1.0[
Thank You,
Meital

Hi.....
Try this
select
case
when T2.[ItemCode] Like N'u05D7u05DC%%' AND U_Thickness >= 1 AND U_Thickness <=3 then U_Contour*2.17
end
FROM OITM T0
INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN POR1 T2 ON T0.ItemCode = T2.ItemCode
WHERE T2.itemcode = $[$38.1.0]
Regards,
Rahul

Similar Messages

  • Formatted Search - Calculate GP Base Price for Non Inventory Items

    Hi Experts,
    On one of our customer's 8.8 PL 15 installation, requirement was to calculate GP for Non Inventory Items (on SO screen). Since SAP does not automatically calculates it we proposed and implemented following solution.
    1. Have all Non Inventory Items to be costed at Standard cost so that you can manually enter the cost in the Item Master.
    2. Write following formatted search on GP Base Price field so as to calculate the GP Base Price for the Non Inventory Items only. The formatted search must not make any changes to Inventory Items as we want system to calculate the GP automatically (just in case cost changes from SO to Delivery or Invoice).
    DECLARE @II AS nVarchar(1)
    DECLARE @COST AS Numeric(19,2)
    SET @II = (SELECT OITM.InvntItem FROM OITM WHERE OITM.ItemCode = $[RDR1.ItemCode])
    SET @COST = (SELECT     (OITW.AVGPrice * $[RDR1.NumPerMsr]) FROM     OITW WHERE     OITW.ItemCode = $[RDR1.ItemCode] AND
         OITW.WhsCode = $[RDR1.WhsCode])
    IF (@II = 'N')
    BEGIN
    SELECT @COST
    END
    3. Formatted search achieves what was originally required however if a user overwrites the Item Code (Inventory Item) in the SO then above formatted search clears the GP Base Price field and sets the GP basis for the item as "Manual". By obverwrite means user first selected item A0001 on line 1 and then entered A0002 on same line i.e. Line 1.
    My question here is what is wrong in the formatted search that is resulting in this behaviour.
    Any questions please let me know.
    Thanks in advance.
    Regards
    Devinder

    Hi Gordon,
    Thanks for taking out time to help me however Key requirement here is
    Write formatted search on GP Base Price field so as to calculate the GP Base Price for the Non Inventory Items only.
    Your query sets the base price for GP Base Price for Inventory Item to ZERO and Base Price By to Manual.
    Note that my Formatted search has a problem only when an Inventory Item line is overwritten. I am not sure if this is a problem with SAP itself rather than my query.
    Any other ideas please?
    Regards
    Devinder

  • 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

  • Purchase order Line item Excise Details

    Dear All..
                    In purchase order line item Excise Details Basic price and Excise 14% and 2%cess and 1%Se.Cess And cst 4% Are Stored in Which table.. or any standard report available for this.. Please Resolve this.
    Usefull Threads will Be Rewarded..
    Thanks & Regards
    Kumar

    for excise check table J_1IEXCHDR for header
    J_1IEXCDTL  for item excise
    The Table name used to find the Tax Values are
    KOMV: Pricing Communications-Condition Record
    KONV: Conditions (Transaction Data)
    From the above tables you can refer the fields below.
    KAWRT
    KBETR
    Fetch the corresponding records based on the field
    KNTYP
    hope it help
    regards
    kunal

  • User Exit for Purchase Order Line Items.

    I have been trying to search for a User Exit for Purchase Order Line Items and have been unable to do find anything.  I need to overwrite the Net Price and Pricing Condition on a certain type of material based upon the Pricing Condition for that Line Item which is on the Sales Document.  Any direction you can point me into would be greatly appreciated.  Thanks.

    Thanks for pointing me in the right direction.  I was able to create my first BADI using the PROCESS_ITEM method.  The following link was also very helpful: Re: BADI ME_PROCESS_PO_CUST Method:PROCESS_ITEM

  • Which table stores the condition values of a purchase order line item?

    Hi,
    Please let me know the table that stores the condition values of purchase order line items(when we click on conditions tab after selecting an item then we can see the condition types and there is a corresponding condition value for that condition type.
    My requirement is to get the actual price for a purchase order line item(it can be seen in the last line and it is calculated after considering all the condition types) and display this value in a custom report.
    Thanks,
    Ravindra

    Hi Ravindra
    You can find the conditions data for PO in TAble KONV.
    KONV-KSCH is the condition type
    KONV-KWERT is  the cond value
    KONV-KNUMH is the condition doc no. which is there in EKKO field KNUMH.
    So u have to make a link between KONV-KNUMH and EKKO-KNUMH.
    Thanks
    Vijeta

  • In Purchase Order Line item Maintaining Serial Numbers for Material Codes

    Dear Gurus,
    We have a business process in legacy system for Purchase Order like in PO line item, Material code with description, Quantity, unit of Measurement, Serial Number Start and Serial Number End is maintained, for example for Material code when we enter the data AXMLN00001 in Serial Number Start column, if the Qty 500 is maintained, by default system will calculate AXMLN00500 in Serial Number End column. 
    We understand that in standard SAP we donu2019t have this option of maintaining Serial Number Start and End in Purchase order Line item. Please let us know how this can be mapped and is it advisable to create two Z fields in EKPO table or else can we make any development.
    Suppose if this is not possible in SAP for PO then in Banks if we want to place a order for Cheque books how we can maintain Start and End Serial Numbers to print in cheque books.
    Also client is not agreeing to maintain manually Serial numbers in item text.
    regards,
    Dhanu

    Aamir,
    When the PO Item was created say for example Material had Valuation category "Y" and latter you wanted to change the category to "Y". Now system would have check for all open PO's etc...based on this you must have set Deletion Indicator to this Line Item to allow valuation category change in material master. Now when this Item got created in the table level (EKPO), system updates the valuation category "Y". Currently this valuation category is not active so it would not allow you to perform removal of deletion indicator as program cannot automatically nor you have an option to manually update the valuation category to this Item.
    Regards,
    Prasobh

  • Free of Charge indicator in Purchase Order / Line item

    Dear All,
    Is there a table where i could locate if a particular purchase order / line item has the FOC tick maintained. I went through quite a few tables and am unable to locate the same.
    Or is there any other logic from which i could derive if a particular Purchase Order / Line item is FOC or not.
    Shall await a reply
    thanks
    shabeen buhary

    Dear,
    The 'Free Items' indicator in the overview is only used to facilitate the switching off of the Inv.Receipt flag and the GR-based IV flag.
    Note that the 'Free Items' indicator is not stored on the PO item table EKPO.
    The Inv.Receipt flag (and the GR-based IV flag) are the fields that really controls if an item is 'free' or not.
    So, the field is initiated based on the values in those fields rather than from input from the user.
    When an invoice is expected it's not a free-item. This indicator invoice receipt is chosen from the main-item and also from the
    customization maintained for item category 0 in table T163.
    Regards,
    Syed Hussain.

  • Service purchase order, with price 0.

    Hi again,
    I have tested to create or modify a purchase order using (BAPIs CREATE1 and CHANGE) using the FREE_ITEM flag, but it doesn't work. There is a SAP note that explain that is not possible.
    Anybody know any way to uptade a service purchase order line with price 0,
    Thanks
    BR
    Jorge

    hello,
    please check with following code. this code works in SAP46C.
    DATA: gs_ekpo TYPE ekpo.                           
    DATA: gt_return TYPE TABLE OF bapiret2.            
    DATA: gs_return TYPE bapiret2.                     
    DATA: gt_bapimepoitem TYPE TABLE OF bapimepoitem.  
    DATA: gt_bapimepoitemx TYPE TABLE OF bapimepoitemx.
    DATA: gs_bapimepoitem TYPE bapimepoitem.           
    DATA: gs_bapimepoitemx TYPE bapimepoitemx.         
    parameters: P_EBELN like ekpo-ebeln.
    parameters: P_EBELP like ekpo-ebelp.
    CLEAR: gs_ekpo,             
           gs_return,           
           gt_return[],         
           gs_bapimepoitem,     
           gs_bapimepoitemx,    
           gt_bapimepoitem[],   
           gt_bapimepoitemx[].  
    SELECT SINGLE * FROM ekpo INTO gs_ekpo              
    WHERE                                               
          ebeln = p_ebeln AND                    
          ebelp = p_ebelp.                         
    IF sy-subrc = 0.                                    
      gs_bapimepoitem-po_item = gs_ekpo-ebelp.          
      gs_bapimepoitem-free_item = 'X'.                  
      APPEND gs_bapimepoitem TO gt_bapimepoitem.        
      gs_bapimepoitemx-po_item = gs_ekpo-ebelp.         
      gs_bapimepoitemx-free_item = 'X'.                 
      APPEND gs_bapimepoitemx TO gt_bapimepoitemx.      
      CALL FUNCTION 'BAPI_PO_CHANGE'                             
        EXPORTING                                                
          purchaseorder                = gs_ekpo-ebeln           
    *   POHEADER                     =                           
    *   POHEADERX                    =                           
    *   POADDRVENDOR                 =                           
    *   TESTRUN                      =                           
    *   MEMORY_UNCOMPLETE            =                           
    *   MEMORY_COMPLETE              =                           
    *   NO_MESSAGING                 =                           
    *   NO_MESSAGE_REQ               =                           
    *   NO_AUTHORITY                 =                           
    *   NO_PRICE_FROM_PO             =                           
    * IMPORTING                                                  
    *   EXPHEADER                    =                           
       TABLES                                                    
         return                       = gt_return                
         poitem                       = gt_bapimepoitem          
         poitemx                      = gt_bapimepoitemx         
    *   POADDRDELIVERY               =                           
    *   POSCHEDULE                   =                           
    *   POSCHEDULEX                  =                           
    *   POACCOUNT                    =                           
    *   POACCOUNTPROFITSEGMENT       =                           
    *   POACCOUNTX                   =                           
    *   POCONDHEADER                 =                           
    *   POCONDHEADERX                =                           
    *   POCOND                       =                           
    *   POCONDX                      =                           
    *   POLIMITS                     =                           
    *   POCONTRACTLIMITS             =                           
    *   POSERVICES                   =                           
    *   POSRVACCESSVALUES            =                           
    *   POSERVICESTEXT               =                           
    *   EXTENSIONIN                  =                           
    *   EXTENSIONOUT                 =                           
    *   POTEXTHEADER                 =                           
    *   POTEXTITEM                   =                           
    *   POPARTNER                    =                           
      READ TABLE gt_return INTO gs_return WITH KEY type = 'E'.   
      IF sy-subrc EQ 0.                                          
    *- errors                                                    
        WRITE:/ 'E', gs_ekpo-ebeln, gs_ekpo-ebelp, 'BAPI',       
        gs_return-message.                                       
      ELSE.                                                      
    *- success                                                   
        IF p_test IS INITIAL.                                    
          CLEAR: gs_return,                                      
                 gt_return[].                                    
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'    
    EXPORTING                                      
       WAIT          = 'X'                             
           IMPORTING                                 
             return        = gs_return.              
    If you have made a single test in SE37; the update doesnot work as it needs a exclusive <b>commit work</b>.
    Hope this helps.
    Best Regards, Murugesh AS

  • Purchase order line item block

    Hi,
    Need to understand in what circumstance Purchase order line item gets blocked automatically. I have a situation in which net price is 0.01 and line item has got blocked automatically. This is through conversion objects(using BAPI_PO_CREATE). When manually created this works fine. Where can i see this standard behavior in customization. Any additional inputs will be helpfull.
    Regards,
    Kishan

    A BAPI is just a program that cannot do anything if it does not get filled with data.
    How does it get the data? What is made with the data in a framework program before the BAPI is called? This is were you or you ABAPer has to start analyzing. Of course the BAPI is not changed, but the data has to be read from a source and need to be transferred to a internal table which is then transferred to the BAPI. This all happens in a program that is developed by a programmer. Or do you call the BAPI via SE37 ?
    SAP does not set an item block by itself, SAP gives you an error message and stops you from saving, or gives a warning message and you confirm that you read it and can continue.

  • Query regarding Purchase Order Lines stored in database?

    Hi Friends,
    While i extract Purchase Order details ,i found that in demo database,some Purchase order lines are stored in seperate entries in POR1..
    eg: if <b>21</b> A00001 is ordered,then the purchase Order line for 20 item is stored in a row and purchase order for 1 item of that same item 'A00001' is stored in a seperate row in POR1..
    In wht criteria SAP B1 take it as a seperate row for a single item order while storing in POR1--Purchse Order Lines
    Thanks in Advance
    regards
    Sooriyakala.P

    Hi,
    Could be that 20 items come from a Sales Order (and line), and 1 from another one? If isn´t this data, could be any diffent one.
    Then in the SBO GUI there is a field in the left botton of the item matrix called "summary type" (or something similar, I´m translating). Here you can say to summ all the items in one row, or not to make any summary.
    Regards,
    Ibai Peñ

  • 2LIS_02_ITM enhacement add EKPO-BUKRS but we get Purchase Order Line for 2

    Hi All
       We have active extractor 2LIS_02_ITM, This exctractor has an enhacenment, we add field EKPO-BUKRS before activate this extractor...
       Now... in Production system we look that we have the combination of SAPR/3- purchase order - line item - company code diferent...
      We load the information into ODS with key:
      Technical Name of R/3
      Purchase Order
      Line Item
      Company code
       So, at this moment If we receive:
    R/3      Purchase Order       Item     Company code
    DFE1   788888                    1         0444
    DFE1   788888                    1         0875
       These record can´t be over write because company code is part of key in table...
       This purchase order como from one instance (SAP R/3)...DFE1..
        I review directly in R/3 system and the record only exist for compañy code 0444...
        I don't understand in which moment the system sent the Purchase order for other company code that doesn't exist in source system.
        Do you hace any idea??
         Thank you a lot!
    Al

    Hi....i explain you.....you have two scenarios ....
    First....document number ranges are specified and configured in R3 and depends of this configuration if it can be repeated by Year, Company Code or Sales Office.....in the Configuration!...
    Appears like the codes for purchase orders depends on Company code.....it means that...for every comapny code you will have a different range....independent of each other.....in this case you will have document number 001 for company A and document 001 for company B and both documents are totally different....you will not overwrite the documents you receive....because are differents...
    Second one....the Company Code was changed in a document ...in this case you must put off this field from the key of the ODS....
    I hope this helps you...
    Regards

  • Purchase Order released date field and table name

    Hi,
    Please tell me the  Purchase Order released date field and table name.
    Regards
    Deepak

    Hi,
    Table : EKKO.
    Fields : FRGKE,FRGZU.
    You can get release date of PO from CDHDR  table.
    give object value as your po number and check.dont forget to give leading zeros.
    The udate will be date field and transaction will be me29n for relaesed po.

  • Deleting Purchase Order Line items

    Is it possible when you delete a purchase order line item using ME22n to have the corresponding purchase requisition line item marked as closed or deleted? 
    Currently when we delete the PO line item we get the message that the "Requisition quantity XXXX open again" .  We have purchase requisitions converting to purchase orders via ME59N on a schedule batch job,  so the req gets converted to a PO again if it is not deleted quick enough.

    Hi Gary,
    In MRP related PR to PO or without MRP also, whenever you convert a PR to PO and then delete an item from PO, the corresponding PR gets opened automatically - and its standard. This is logical also, because sometimes the person creating PR is different from the person creating PO. And If a PO item has been created synchronous to PR item, then its deletion must also be sysnchronous.
    I hope this answers your querry.
    Regards,
    HKV...

  • One inspection lot for multiple materials of purchase order line items

    Hi All,
    My client requirement is one inspection lot for multiple materials of purchase order line items.
    Please share your thoughts.
    Thanks in advance for early reply.
    Regards,
    Jishu

    I totally agree with Amol.
    I don't think I would touch that development nor would I ever tell a client it could reliably be done through development.
    Knowing what I know about the table structures, I don't think you could create any development for this that could use a significant amount of the existing tables and functionality.  I think you'd have to create all your own Z tables and basically rebuild the functionality.  Tying it back in with SAP data will be difficult.
    You're even looking at all custom screens for your results recording and UD as well.  And if you have follow-on functions like batch classification requirements, batch determination, COA publication, results copy functions, use of DMR and sampling procedures, physical samples, quality notifications, etc. etc.. you could be looking a whole lot of development.
    Craig

Maybe you are looking for

  • Large Memory Usage and Frozen [thread dump attached]

    Hi, SQL Developer (Version 2.1.1.64, WinXP Pro, Java 1.6, Oracle 10g R2) always uses at least 550MB of memory, if left open, for more than a day, it invariably goes up to 700-800MB. If I close all windows and connections, virtually no memory is recla

  • Moving library from one computer to another, music on external hard drive

    Purchased 60GB iPod and imported approx. 50 GB of music into the library/iPod on Laptop 1. The music sits on an external hard drive (100mb). Laptop 1 only has 20gb drive. Everything was working fine, was able to import CD's listen to music everything

  • Calling a method from another Java file.

    I think I'm doing this right, but I'm obviously going wrong somewhere. In order to not have one big long java file, I've created one main one to execute the program, and another to do some of the functions. I'm using eclipse, btw. In the main file, I

  • Since I upgraded to iOS 5 Itunes opens up constantly on my Windows 7 PC and won't stay closed.

    How do you stop Itunes from opening up automatically on your computer?  I close it and it pops right back up within a minute or two. This started after I updated to 10.5 for Itunes and upgraded my Iphone 4 and Ipad Original to  iOS 5 .   Surely there

  • Cgi not producing a valid error

    Hi I browsed the forum and found several threads discussing that error. But I couldn't find a solution. The error in admin server is: failure ( 3658): for host trying to GET /https-decimal/bin/index, cgi_scan_headers reports: HTTP4044: the CGI progra