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

Similar Messages

  • 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.

  • Creating a Formatted Search in Item Master based on Unit Price

    Hi Experts,
    I have to create a Formatted Search for assigning the Standard Cost of Items as Selling Price-Selling Price*.05  i.e the Standard cost of the item should be set upon automatically equal to 5% less of Selling Price .
    I have created the following Formatted Search Query :
    SELECT ((SELECT $[$34.68.NUMBER])-(SELECT $[$34.68.NUMBER] *.05))
    and have assigned this FS to Standard Cost Field . I am not able to base it upon Unit Price field . This FS is correct but it is not automatically refreshing upon change of Unit Price and I have to manually update it(ALT+F2) . I guess the filed upon which it should be based upon is not correct .
    please guide me how to resolve this issue . How to base this FS upon Unit Price.
    Thanks and Regards,
    Pooja Singh.

    Hi,
    Actually I dont want to set upon the last No for the Series. What about the Sequence ? Administration->setup->financials->Tax->Sequence. Here also the same thing can be done but Location Specific. When I created 2 Series for the two different locations , I found that two different fields appeared on the screen Sequence Name Where I found the two sequences I defined for the two locations. If you have any idea about what this sequence is for and how far is it different from Document Series , please let me know.
    Thanks and Regards,
    Pooja Singh

  • How to validate the line item values in OFR - quantity , unit price and UOM

    Hi All,
    Is there any possibility to validate the line items like quantity, unit price and UOM against the DB and stops those invoices at verifier (1 batch =10 invoices) level  if yes could you please let me know the process how to proceed further.
    due to this some the invoices are coming to OFR is with incorrect quantity, UOM and unit price different from PO lines information like quantity , UOM and unit price and those invoices are not validating from the DB and these are processed to EBS and it's effecting the GL and reporting.
    Regards,
    Anil

    Hi ,
    I did not get the exact requirement.Let me bit:
    In standard AP project lines validation will try to compare the quantity , unit price and UOM of line against the database for match which actually performed on export.
    So even if match fails batch will be exported.Now if you want to correct it before EBS,i think you can do it in the business process easily that you are consuming whether BPEL/BPM process.
    We have done this in several projects
    =========================
    But If you want that to be done from OFR side i think we need to code  UserExitPONumberValidate event to  compare the line items values against database.I need to test this also.

  • UDO's And UDF field in XL Reporter

    Dear Experts,
    How to get UDO's And UDF field in XL Reporter Report Organiser.
    An early response would be highly appreciated.
    Thanks and Regards,
    Kawish

    Please read the following two threads
    XL Reporter- Use of UDF's
    UDF's in XL Reporter

  • Unit Price and Document Total in a Marketing Document

    Hi Experts,
    I am trying to post a marketing document through the DI API.  I have assigned value to the document lines as follows:
                    sapDocument.Lines.ItemCode = items.MaterialCode;               
                    sapDocument.Lines.Quantity = items.Quantity;
                    //sapDocument.Lines.Price = items.Price; // tried assigning to both Price and Unit Price
                    sapDocument.Lines.UnitPrice = items.Price;
                    //sapDocument.Lines.LineTotal = items.LineTotal // Also tried assigning this.
    All my documents have been successfully posted in SAP Business One except that there is no Price saved and therefore follows that my Line Total and Document Total are all 0.00.
    Hope someone could help me out.
    Thanks.
    Melvin Balingit

    Hello Guys,
    So the correct method is
    first assign the unitprice, than assign the qty.
    Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
            oDoc.CardCode = "C20007"
            oDoc.DocType = BoDocumentTypes.dDocument_Items
            oDoc.DocDueDate = Today
            oDoc.Lines.ItemCode = "A00002"
            oDoc.Lines.Quantity = 2
            oDoc.Lines.UnitPrice = 100
            oDoc.Lines.Add()
            oDoc.Lines.ItemCode = "A00003"
            oDoc.Lines.Quantity = 2
            oDoc.Lines.UnitPrice = 100
            If oDoc.Add <> 0 Then
                MsgBox("Erreur " + oCompany.GetLastErrorDescription())
            Else
                Dim newCode As String = oCompany.GetNewObjectKey()
                MsgBox(newCode)
                AddInvoiceEx(newCode)
            End If
    Regards
    János

  • New calculated member based on existing measure and a dimension value

    Hi
    I’m trying to create a new calculated member in my cube based on an existing measure and a dimension value.
    I can do it easily in DSW but I want to do it as a Calculated Member in Calculations tab from my cube.
    I have a dimension called Product in which one attribute is UOM (unit of measure) and a measure called Quantity. The relationship with the fact table is “Regular”.
    For each product we have a unit of measure and an associated quantity measure:
    Product Name   
    UOM     Quantity
    Product 1   
              Km  
             50
    Product 2   
              Kg   
             60
    Product 3   
              Kw 
              25
    Product 4              L               
    15
    Product 5              T     
             1.5
    Total                                     151.5
    The calculated member I want to create is “Kw” and has to contain the value from Quantity measure when Product.UOM is “kW” and should look like this:
    Product Name   
    UOM     Quantity   
    Kw
    Product 1   
              Km  
             50           
    Product 2   
              Kg   
             60
    Product 3   
              Kw 
              25           
     25
    Product 4              L  
                 15
    Product 5              T     
             1.5
    Total                                     151.5        
    25
    So far I tried using the MDX with “IIF” or “Case” but with no results.
    What statement I should use in this case?
    Thank you.

    Hi Cees,
    Thank you for your answer.
    I never used yet the “Scope” statement and yet it’s an elegant solution.
    I use it as in your example:
    CREATE
    MEMBER CURRENTCUBE.[Measures].[Kw]
    AS NULL,
    FORMAT_STRING =
    VISIBLE = 1 , 
    ASSOCIATED_MEASURE_GROUP =
    'TR Other';
    Scope [Measures].[Kw];
     Scope [Product].[UOM].[kW];
     This = [Measures].[Quantity];
     End
    Scope;
    End
    Scope;
    …and the calculations are solid…with one exception: when I took out UOM from the query there are no more any resuts:
    Product Name    Quantity    Kw
    Total      
    It’s only working
    if using UOM in the query.                         
    I also thought that a
    tulpe might be another solution as:
    ([Measures].[Quantity],[Product].[UOM].&[kW])
    On this last one I’ve got the expected results with one exception: when I use UOM in the query all the other UOM values are listed each one of them
    having the [Kw] measure calculation value.
    Product Name    UOM     Quantity    Kw
    Product 1              Km  
             50           
    Product 2              Kg   
             60
    Product 3              Km 
              25             25
    Product 3              Kg 
               25             25
    Product 3              Kw 
              25             25
    Product 3              L 
    25              25
    Product 3              T 
    25           
      25
    Product 4              L  
                15
    Product 5              T     
             1.5
    Total                                     151.5        
    25
    …and without UOM in the query I have what I’m expected:
    Product Name    Quantity   
    Kw
    Product 1              50           
    Product 2              60
    Product 3               25           
     25
    Product 4              
    15
    Product 5             
     1.5
    Total                       151.5        
    25
     Maybe we can work together to find a solution.
    Thank you,
    Oks

  • GR based iv or not GR based iv unit price on map & standard

    Hi,
    I got the help from forum of the below during MIGO.
    MAP
    PO price Dr to Inventory A/c
    PO price Cr-GR/IR
    Standard
    PO price Dr to Inventory A/c
    PO price Cr-Gr/IR
    I would like to know for both GR based iv or not GR based iv, are the above 2 cases (MAP and Standard) still the same where unit price is getting from PO.
    Thanks

    Hi Cal,
    Technically the accounting entries would be the same (from PO Price) whether you select GR based IV indicator or not. GR based indicator is used to confirm the agreement of terms when goods ordered and while delivered.
    If goods-receipt-based Invoice Verification has been defined for an order item, an invoice for the order item can be entered with reference to a goods receipt document or a delivery note number entered at the time of goods receipt. In the process, a separate invoice item is created for each goods receipt. Checking of price and formal accuracy of the invoice is performed at this item level.
    Follow this link
    http://help.sap.com/saphelp_45b/helpdata/en/75/ee0d4055c811d189900000e8322d00/content.htm
    So unltimately it is the GR which decided the value & qty acc entries. GR based indicator simply to enalbe invoice creation based on the GRs happened on that PO, if this indicator is set before you do LIV GR is mandatory, and accounting entries will not change.
    Hope its clear

  • 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

  • Unit Price and Discount % is INACTIVE

    Hello Experts,
    In A/P Invoice unit price column is inactive rather not allowing to enter value in it. In form settings it is active.
    Help Required.
    Shazad Nazir

    Nazir
    I guess full authorization is needed to enter unit price, check in
    Sales Reports --> Change Row Amounts --> Full Authorisation
    and also have a look at this thread
    Authorisation for GRPO
    Thanks
    Rizz

  • Purchase order report with basic price and Excise duty values

    Hi All,
    Is there any standard report in SAP to get the Purchase order basic price / qty and its Excise duty values ? Since we are including Excise duties for non - codified items (w/o material master and with cost center 'K') Purchase order and the ed values are added to the cost and the requirement is to see the split up (Basic priceEdEcs+Hcs)for these Purchase orders for the vendors. If there is no std report then please let me know how to link Purchase order table with this Condition value table in query to get the desired report.
    Thanks in advance
    Benny

    Hi,
    there is no standert report to fullfill this requierment
    you have to create this report with the help of abaer
    for that which tax code you are using its importnat thing
    for po table EKPO
    1. A524 (Normal supply point / Material) it will return condition record number for condition type.
    2. KONP (Conditions (Item)) .
    3. J_1IMTCHID (Combination of Material Number and Chapter ID).
    4. J_1IEXCTAX (Tax calc. - Excise tax rates
    5 get the IR no. from RBKP and RSEG, and get the relevant FI doc no. and goto BSET table
    for IR number  to get from table apply logic for doc type RE ,you will get fi number nad in refernce field you will get invoice number + fiscal year
    Map this by refernig on po for which grn and invoice happen
    Regards
    Kailas Ugale

  • Upload interactive form and access field values in WD component

    Hi Experts,
    I want to upload a prefilled  interactive adobe form in my webdynpro component and then I want to read the values filled in the form in my webdynpro component.
    I don't want to display the interactive form in the WD component. Just need to read the values.
    Please let me know how can I do it.
    Warm regards,
    Sushant Singh

    You can use the fileupload and filedownload uielements.
    Check these links:
    [File Upload|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm]
    [File Download|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/09/a5884121a41c09e10000000a155106/content.htm]
    When you upload a file and save in SAP, are you saving it as xstring.
    If yes follow these steps for filedownload.
    Follow these steps for file download:
    1 Create FileDownload uielement in your View
    2.Create an Attribute of type xstring.
    3.Bind this attribute to the data property of your Filedownload uielement.
    4. during fileuplaod as you are saving the document in xstring format, fetch the same from your database table and pass the value to filedownload i.e set the attribute bound to data property of filedownload uielement with the xstring content.

  • RRI?  How to call ITS URL and pass field value from Bex Query.

    I am doing RRI from query to webaddress,
    i have defined jump(report type: webaddress and reicver report as url) from shopping cart bex query(SRM ) to webaddres.
    here url is SRM ITS base link for monitoring shoppingcart(http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN).
    jump is working from portal(from bex query ivew).
    but i want to pass value(shopping cart value) to above url and want to skip first screen.
    i have maintained assignment detail by assigning field name against shopping cart infoobject with type url parameter, but its not directly call reciver url with given input field.
    i tried the diffrent combination of url and field assignment as like below:
    1: web address url:http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
    assigned field: GS_HEADER-OBJECT_ID
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN?GS_HEADER-OBJECT_ID='selected number value'
    2: web address url:http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc
    assigned field: flNUQVRFPTgzMTcuMDAyLjAxLjAx
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc?flNUQVRFPTgzMTcuMDAyLjAxLjAx='selected number value'
    I have seen the source code of that url(inital screen and after entring the value to that screen) too.
    how to call webadress(SRM ITS base shopping cart URL) with passing the one of field value of that url screen?
    Thanks and regards,
    Dushyant.

    Declare the gv_orderid in modulepool program.
    And Declare the parameter as import parameter in smartform.
    CALL FUNCTION  lv_form
       EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
         i_input                    =  gv_orderid
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5

  • Several content types and default field value

    Hi!
    I have a document library with several custom content types (derived from standard Document type). One of them (CT1) has field with default value. Other content types must not contain this field. And when I upload document, this field has no default value.
    If I make CT1 first (and default) content type in a library, default value appears. Also it works when I add the field to the first content type. But in my solution CT1 must not be the first content type in a library and the field must have default value (and
    other content types must not have this field). Does anybody know how to make it?

    I understood why default value does not work. When we upload document to a library and then see a form with fields, it's not a newform, it's edit form. So when we upload a document, it gets first (default) content type of the library, only default fields
    from this content type are filled. The solution here to fill default fields from other content types is to write itemadded event receiver.

  • Audit prev and new field values

    We have a need to on certain transactions e.g. VA02 to capture field level changes for purposes of audit and control.  The Document History for these transactions just displays that a change was made and by whom.  We would like more granular logging that would capture the field value before the change and the new value.  Are there any SAP out-of-the-box options for us?
    Much Thanks,
    Greg

    HI Greg,
    just check if AUT01 is helpful where u can try to configure logging for such fileds and the report in AUT10 can be more useful.. just an input ...as it shd be helpful in ur search ..
    Br,
    Sri
    Award points for helpful answers

Maybe you are looking for

  • First time an SQL expression is placed on report a DB SELECT executes

    The same problem can be created using the normal Crystal Reports XI Release 2 developer environment and/or code (not only a code issue). I'm using CR XI. Symptom: We dynamically auto generate SQL Expressions, Tables, Joins, Formula's and anything thr

  • Replacement program

    I bought an iphone 5 from a wireless carrier , Zain in Saudi Arabia, and then in a few months (4-5) the sleep/wake button stopped working without me even using it. But later on 29th April i found out Apple has launched a replacement program, so i wen

  • Imported photos are not in sequence by the date

    My photos imported are being inserted with photos that were taken several years ago.  IN other words, they are not at the bottom of the viewing area, but toward the top!!!

  • Deactivate check-out and check-in request

    The SAP-delivered process for maintaining a solution via a maintenance project is the following: 1. In the Solution Directory, select process structure element (business or interface scenario, business process, or process step). 2. Click "Request" bu

  • Out of Memory Issues in Plannign web application

    We have a issue with Planning application running in VM environment. I have noticed following entries in Hyperion Planning log as soon as user launches web forms. Some times this issue is causing serious trouble to my users as it is stopping planning