Fromatted Search on BOM to calculate Price and UDF

Hi All,
I'm trying to do a formatted search query on BOM line level. I'm using a UDF field (numeric19,6) and the unit price field. I get the individual amounts fine but I need to divide the two with each other. My syntax of query is:
DECLARE @A NUMERIC (16,2)
DECLARE @B NUMERIC (16,2)
SET @A=$[$3.4.0]
SET @B=$[ITT1.U_SG_BOM]
SELECT @A / @B
I have used both $[$3.U_SG_BOM.0] and the one used above.
Can someone please advise as to how I would be able to correct my query.
Regards,
Lou

change
DECLARE @A NUMERIC (16,2)
DECLARE @B NUMERIC (16,2)
SET @A=$[$3.4.0]
SET @B=$[ITT1.U_SG_BOM]
SELECT @A / @B
to
DECLARE @A NUMERIC (16,2)
DECLARE @B NUMERIC (16,2)
SET @A=$[$3.4.NUMBER]
SET @B=$[ITT1.U_SG_BOM.NUMBER]
SELECT @A / @B
Regards,
David

Similar Messages

  • Formatted search to get PR Info Price and Required Date

    Hi,
    When copy PR to PO, I would like to push the PR info price and required date to PO.  However these fields are not available at PO form settings.
    Thus I would like to create a UDF to fetch these info from PR.
    Kindly help me with the queries for these 2 requirement.
    Thank you,
    Annie

    Formatted Searches will be trigerred only when you use the Production Order screen by manually adding an Prod Order.  Since the Prod Order form is not opened there is no field change happening for your Auto Refresh to get activated.
    Therefore for all production orders created using the Order Reccomendation Report, you will need to manually Click Shift+F2 on the Prod Order for the formatted seach to work.
    Suda

  • Total calculation based on unit price and UDF field values

    Hi All,
    This is for a construction related company. Please find attached screen shot for details.
    My scenario is when we are creating sales order my client wants to calculate the total amount based on unit price towards the UDF fields defined. For example user will give the unit price  per sqft in Unit price ie 2800 as per screen shot column and constructed area in Sqft in he will enter the area like cons area in sqft =1500. So this 1500 need to calculate with unit price and will display in total. So in Total field it should show like 2800*1500= result. Like wise other amount values in udf needs to be calculated and displayed in total field  .
    Is this possible in SAP B1. Please help me with your valuable suggestions.

    Hi,
    Try this:
    SELECT ($[$38.U_Price.number]* $[ORDR.U_CArea.number)+ $[ORDR.U_EBexp.number]+ $[ORDR.U_RO.number]+ $[ORDR.U_Maintenance.number]+ $[ORDR.U_CorpFund.number]
    Thanks & Regards,
    Nagarajan

  • How to Calculate Freight and Acquisition Overheads on Material Price

    Hi Gurus,
    currently i am working in Product costing. my requirement is to calculate Freight and Acquisition overheads on Material Price.i have maintaind rates for condition types ZFRA , ZA2H and ZAOH  by using MEK1 transaction code. eventhough system is not calculating this overheads while running CK11n. system showing only material price no other oveheads.
    my intension is to estimate the cost for Purchased parts not for Manufacturted parts. for that i have given the priority in the Valuation Variant is Price from purchase record.
    can anybody resolve my problem?
    Thanks&Regards
    Prasad

    Hi
    Thanks for your reply.According to my clients requirement i need to do material cost estimates for purchased materials thru ck11n.for this i have given priority as price from purchase info record in the Valuation Variant. my mm  friends maintaind price in the purchase info record ME11.
    In additions to this i also maintained rates for Freight,Acquisition and Customs condition types in MKE1.
    Now if i run CK11n, system showing only Material Price which is in the Purchase inforecord but system not calculating any required overheads.
    I need to calculate Overheads thru Condition types not thru Costing sheet.
    If you see Price Simulation system calculating the Overheads accordingly.but same is not getting populating while running the CK11n.
    In Valuation Variant under the Deivery Costs tab I have assign all required Condition types to Valuation Variants and Controlling area accordingly.
    I hope that i explained my current problem clearly.can anybody give me the solution
    Thanks&Regards
    Prareddy

  • Creating order form and need Java Script to calculate unit price and quantity in Acrobat Pro.

    Hi,
    I am creating order form in Acrobat Pro , and I have
    code
    Order Quantity
    Unit price $
    201
    500
    $ 0.52
    201
    1000
    $ 0.36
    202
    300
    $ 0.26
    202
    500
    $ 0.2
    How make Subtotal and Total price with Java script.
    I do not know how to write java script.
    Anyone can help me?
    Thanks,

    Thanks for your response. I have 2 quantities and 2 Unit price for each code, I know a simple sum in calculation it works for 1 unit price and quantity.  Can you please let me know how to do it? One of the expert sent m this:
    //change field names as needed
    var qt1 = this.getField("qt1").value;
    var up1 = this.getField("up1").value;
    var qt2 = this.getField("qt2").value;
    var up2 = this.getField("up2").value;
    event.value = (qt1 * up1) + (qt2 * up2);
    I put this in total text field (calculation tab , Custom script) , but it  did not worked.
    I appreciate it if anyone can help or give me  suggestion.

  • BOM Report - List Prices

    Hello, i'm new to the forum and to SBO.
    i've searched the entire forum for this answer:
    I wan't to know if it's possible to display on the BOM report all the child item prices when the Parent item is expanded.
    Thank you for your help, and i hope to learn as much as possible and contribute to theis excellent forum for SBO.
    Regards,
    GuillermoL.-

    Hello Gordon!
    I'm glad to see your replied to my posts, i've been around as a guest viewing your posts and i've seen you help so many people, inluding me.
    There is only one more level below the parent item (Level 2), and i need to display the parent item price and those level 2 child items price, but i also have several Price Lists, so i need to be able to select The price list too.
    Thank you in advanced.
    Best Regards,
    Guillermo.-

  • CS11 &CS12- Moving Price and standard price not appering for items

    Dear Gurus,
    CS11 &CS12- Moving Price and standard price not appering for items.
    is it a bug for my system alone\.
    or a bug overall in SAP itself.
    Pls advise.
    Siva

    Dear Siva,
    Its the standard functionality of SAP.
    You will not get any cost related data in the reports like CS11,CS12,CS13.
    You can try CK13N(which shows the components of the BOM along with the cost) or else CK86_99.
    At Functional module level execute this one CS_BOM_EXPL_MAT_V2 and ensure X is included for the
    input field MBWLS.
    And also check these SAP notes 177006 and 686509.
    Check and revert back.
    Regards
    Mangalraj.S

  • Standarad price and moving average price

    What is the diff between Standarad price and moving average price ???
    Somasundaram

    Price Control V or S in material type
    When is it useful to use the price control V or S in Material Master ? 
    Do I have to follow the SAP standard setting in the material type for the following material types:
    - ROH(Raw materials) -> moving average price
    - HALB(Semifinished products) -> standard price
    - FERT(Finished products) -> standard price
    In which case and why is useful to change these standard setting in material type?
    What is difference between standard price and moving average price? 
    When and how to use it?
    Standard price are used for products that do not fluctuated frequently.  It is usually used for finished or semi finished products.
    Moving average price are used mainly for raw materials that are purchased externally.  The advantage of using moving average price for your raw materials is that your inventory costs will always reflect the current market cost.
    SAP strongly recommends that you do not select price control V for semi-finished products and finished products, because doing so will very easily cause the calculation of unrealistic valuation prices. SAP recommends: 
    Price control V for raw materials and trading goods; price control S for semi-finished products and products.
    If you nevertheless select price control V, take care in the following situations:
    1. Unrealistic prices occur if materials are produced and also retire during one period (that is, the inventory at the end of the period is smaller than the total of aquisitions from production orders) and if, in addition, several production orders belonging to a material were finished in this period, and the production order settlement calculates variances at the end of the period. Every single production order carries out an inventory coverage check and may therefore cause the moving average price to be changed. However, the individual production orders do not check whether the inventory available at the end of the period has already been debited by another production order. 
    Example: on 20 workdays in the period, 1 piece of material xyz was produced for each day and delivered to the warehouse at a price of USD 1000. At the end of the period there is 1 piece at the warehouse. Since an activity price of a participating cost center was higher than planned , every single production order calculates cost of goods manufactured of USD 1100 during the settlement. Every single one carries out a inventory coverage check and finds out that the variance can be posted completely to the inventory. That is, the ending inventory of one piece is debited with USD 20 x 100 and it consequently receives a price of USD 3000. 
    1. A settlement is carried out although not all costs have yet been posted to the order. This can even result in a price of 0 for the delivered product.
    2. No period check of the costs is carried out on the order, that is, costs from previous periods may be settled.
    3. Settling orders is already possible in the 'Delivery completed' status.
    Solution: Standard price for products together with possible manual price changes.
    If you are required to valuate semi-finished and finished products with actual prices that correspond to the costs of the actual production, SAP recommends you use the function of the material ledger for this. Here, a periodic actual price is created that is calculated on a much more reliable basis than the moving average price. A so-called price limiter quantity is used which makes sure that in the above example price differences are proportionally taken into account (95% of the total price differences) when valuating the 19 pieces withdrawn from material xyz which results in a periodic actual price of 1100 USD. In addition, it is possible as of Release 4.5 to even take into account the variances of the actual prices of the raw materials in the valuation of the semi-finished and finished products that are manufactured from it. 
    If we select std price for any type of material or mav and then make po, it will pick from material master or what?
    The Purchase Info Record have the FIRST priority.  When no po info record is found, the Purchase Order will pick the user LAST enter price.  The PO module do not pick up any price from material master.
    Regards,
    Ashok

  • Search Specific BOM's

    I am having trying to query the system to find all BOM's that have one item or less. 
    I preferrably would like to use CEWB for this.  So in regards to CEWB, is there an input to allow me to search BOM's based on how many items they contain?  If not, how else can I find all BOM's that only have one item or less?
    I appreciate your help in advance!

    Hi
    Try this
    In CEWB change the current work area to BOM Header
    In the Tab BOM Header Enter Plant and
    In the Item tab against Item number enter 0010 and Click on Load BOMs and Task Lists to get the BOMs with only one item
    Regards
    Brahmaji
    Edited by: Brahmaji Devarapalli on Jun 15, 2009 2:01 PM

  • Relation between STD Price and Costing

    Hi,
    Could anyone explain about the relation between STD Price and Costing & when and where it gets effected.
    Points will be rewarded.
    Regards

    Hi ,
    Std. Price :-
    A constant price at which a material is valuated without taking goods movements and invoices into account.
    Costing:-
    The value of use of economic goods both tangible and intangible for the creation and sale of goods and services, as well as the acquisition and maintenance of plant and machinery.
    A process that calculates the cost of goods manufactured, or the cost of goods sold, in relation to a product or cost object.
    The results of costing are used to determine the following information:
    Target costs
    Variances for materials produced
    Contribution margin for materials sold
    The costing process is based on the order quantity or the costing lot size in the material master record.
    Edited by: vk on Apr 24, 2008 7:17 AM

  • I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it

    I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work

    Hi Timia,
    If you are using Safari as a web browser :-
    Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
    If you are using Google Chrome as the web browser :-
      Open Google Chrome.
      In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
      In the "Search" section, select Google from the drop-down menu.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • Attachments dont download from Gmail in Safari, They disappear,I even tried re-downloading Safari and that download disappeared, it is not in my downloads folder, I actually searched in finder for the file and it is nowhere on my computer.  Please help!

    Attachments dont download from Gmail in Safari, They disappear,I even tried re-downloading Safari and that download disappeared, it is not in my downloads folder, I actually searched in finder for the file and it is nowhere on my computer.  Please help!

    Oh my gosh I had the EXACT same problem, and for ages I couldn't figure out how to fix it until today. Here's what I did:
    First I went onto my computer, opened itunes, and un-installed tumblr, vine and kik. These were the apps I was having problems with (it said I had them on my phone but, like you, they didn't show).
    Then I went to the itunes store, searched for each one, and it said I could update them so I did (just FYI: for tumblr a window popped up saying "please click ok to confirm you are 17 years or older", so I did that also)
    When I went back to my phone and tried installing them again (still on my computer), it worked!
    I hope this helps, because it was incredibly frustrating. Good luck!

  • HT1657 i recently rented a movie from the itunes store in hd and closed itunes on accident and after reopening itunes i cannot find my movie rental. ive searched in my  library, movies, etc. and i cannot find it anywhere

    i rented a movie from the itunes store in hd and closed itunes on accident after letting it download and after reopening itunes i am un able find my movie rental. ive searched in my  library, movies, etc. and i cannot find it anywhere. i did start it... but i have atleast another 20 hours to watch it before the rental expires.

    Doublechecking. Did you download the rental in iTunes for Mac, iTunes for Windows, or an iOS device?

  • Price and Pricing conditions are not copied to PO for a line item !!

    Hi
    I have created a PO w.r.t a PR which has only one line item.
    Now, I add another line item to this existing PO, i get an error message that the Price and Pricing conditions are not copied.
    How do i rectify this error !!
    Where might be the link for this Price and Pricing conditions to get copied in to this PO ??
    MaruthiRam

    What kind of PR and in the PO same material you enter for new line or new material and do you have any funcitonal authorization assigned o your user id
    please reply

  • Report displaying Material Standard Price and PO Price

    Hello Experts
    We have materials which are purchased. Price control is maintained as standard price and standard price is maintained using T Code MR21 periodically.
    Due to this when PO price is different from standard price maintained in material master (usually PO price is higher than standard price) all price difference are posted to price difference GL at the time of GR.
    Now users want to check variations between standard price and PO price for the material receipts.
    Can anyone suggest me any report which provides details of standard price and PO price for the material receipts?
    Thanks in advance for your help.
    Satya Alapati

    Nothing std I'm aware of either.  You could consider using the messages 06 205/6/7 to get a warning at the time POs are created that price varies significantly from std.
    Config help text below:
    Set Tolerance Limits for Price Variance
    In this step, you define the tolerance limits for price variances.
    When processing a purchase order, the system checks whether the effective price of a PO item shows variances compared with the valuation price stored in the material master record. In addition, it checks whether the specified cash discount value is admissible.
    Variances are allowed within the framework of tolerance limits. If a variance exceeds a tolerance limit, the system issues a warning or error message.
    In the SAP System, the types of variance are represented by the tolerance keys. For each tolerance key, you can define percentage and value-dependent upper and lower limits per company code.
    Standard settings
    The standard SAP System supplied contains the following tolerance keys:
    PE Price variance, Purchasing
    Tolerance limit for system message no. 207. This message appears if the specified effective price exceeds the predefined tolerances when compared with the material price.
    SE Maximum cash discount deduction, Purchasing
    Tolerance limit for system message no. 231. This is a warning message, which appears when the specified cash discount percentage exceeds the predefined tolerances.
    Note
    You can specify whether the system message appears as a warning or error message using the menu options Environment -> Define Attributes of System Messages.
    Activities
    Maintain the tolerance limits for each tolerance key per company code.
    Regards,
    Nick

Maybe you are looking for