Formatted Search to Multiple Discounts in Sales Order Row

I created 6 New UDF 3 for the new percentage e 3 for new discount value. Also created their formatted searh and the calculations are ok.
But when I calculate the total the new value presents the following format -99.999.990,00.
Bellow follow the querie:
SELECT  (CAST($[INV1.U_VLRDESC1] AS NUMERIC(19,2)) + CAST($[INV1.U_VLRDESC2] AS NUMERIC(19,2)) +CAST($[INV1.U_VLRDESC3] AS NUMERIC(19,2))) - ($[$38.14.number] * $[$38.11.number] )

try it as
SELECT
convert(numeric(19,2)
(CAST($http://INV1.U_VLRDESC1 AS NUMERIC(19,2)) + CAST($http://INV1.U_VLRDESC2 AS NUMERIC(19,2)) +CAST($http://INV1.U_VLRDESC3 AS NUMERIC(19,2))) - ($http://$38.14.number * $http://$38.11.number )

Similar Messages

  • How to add data through matrix from sales order row level to

    user defined document type table ...
    i created matrix in user defined form, i placed one edit text box on that form
    when i entered docnum of sales order the data of sales order row level should have to
    upload to matrix , after fill up the some data in matrix that data should have to add to the user defined document type table
                                any one have code pls post it
                                            thanq

    Hi rajeshwar
    Here is a sample function related to ur senario. just check it out and use the concepts.
    Here I have used a CFL to get the itemcode and I have used a query to  add data to matrix.
    This is a function used.
    Private Sub AddValuesInMatrix(ByRef name As String)
            Try
                'Dim quantemp As Double
                oForm = SBO_Application.Forms.Item("itemdts")
                oMatrix = oForm.Items.Item("matrix").Specific
                Dim rs As SAPbobsCOM.Recordset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                '//gitemdesc = "SELECT T0.[ItemName] FROM OITM T0 WHERE T0.[ItemCode] ='" & name & "'"
                oMatrix.Clear()
                rs.DoQuery("SELECT T0.[DocEntry], T0.[ItemCode], T0.[Dscription], T0.[Quantity], T0.[Price], T0.[TaxCode] FROM dbo.[POR1] T0 WHERE T0.[ItemCode] ='" & name & "'")
                rscount = rs.RecordCount
                If (rscount < 1) Then
                    SBO_Application.StatusBar.SetText("No Items Found", SAPbouiCOM.BoMessageTime.bmt_Short)
                Else
                    oForm.Freeze(True)
                    ITE = True
                    For i As Integer = 1 To rs.RecordCount
                        oMatrix.AddRow()
                        oMatrix.Columns.Item("V_5").Cells.Item(i).Specific.Value = rs.Fields.Item("DocEntry").Value
                        oMatrix.Columns.Item("V_4").Cells.Item(i).Specific.Value = rs.Fields.Item("ItemCode").Value
                        oMatrix.Columns.Item("V_3").Cells.Item(i).Specific.Value = rs.Fields.Item("Dscription").Value
                        oMatrix.Columns.Item("V_2").Cells.Item(i).Specific.Value = rs.Fields.Item("Quantity").Value
                        'quansum = quansum + rs.Fields.Item("Quantity").Value
                        oMatrix.Columns.Item("V_1").Cells.Item(i).Specific.Value = rs.Fields.Item("Price").Value
                        'pricesum = pricesum + rs.Fields.Item("Price").Value
                        oMatrix.Columns.Item("V_0").Cells.Item(i).Specific.Value = rs.Fields.Item("TaxCode").Value
                        SBO_Application.SetStatusBarMessage("Data Loading In Progress Please Wait.....>>> " & i & " / " & rs.RecordCount, SAPbouiCOM.BoMessageTime.bmt_Short, False)
                        rs.MoveNext()
                    Next
                    ITE = False
                    oMatrix.AutoResizeColumns()
                    SBO_Application.StatusBar.SetText("Data Loading Completed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                    oForm.Freeze(False)
                    oForm.Refresh()
                End If
            Catch ex As Exception
                SBO_Application.MessageBox("Matrix Load Function : " & ex.Message)
                ITE = False
            End Try
        End Sub
    -Anto

  • Sales Order - Rows - Warehouse][line 2],'No matching records found 'G/L Acc

    Dear Expert,
    I got an error while i got approval from super user...
    Sale order Draft[Approval]
    item/services=Services
    Sales Order - Rows - Warehouse][line 2],'No matching records found 'G/L Account' (OACT)(ODBC-2028)[msg 131-183]"
    Please Mention me all step

    Hi Kevin,
      In Sales Order document, second Row of the Item section click the
    warehouse code it opens the Warehouse default Setup window
    click accounting Tab check the Account are defined ex Sales Revenue, Inventory A/c etc..
    Regards
    Jambulingam.P

  • Formatted Search with multiple conditions

    Hi experts,
    I am using a formatted search to update the Unit price in Sales Order. Query mentioned below.
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049.0]'
    But while adding Item on Sales Order, it is showing error, Incorrect Syntax near  '$[$38.2000002049.0]'.
    Note: I have added an UDF named U_LOCATION( Alphanumeric, 10) in OPLN and selecting location in Price List through another FMS which is working perfectly.
    Please help in this regards.
    Thanks in Advance.
    Nabyendu

    Hi Nabyendu Saha..
    You said the u_location as alphanumeric the why you have given 0 for the field type in the FMS...
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049]'
    or
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = [$38.1.0]
         and     T1.u_location = $[ordr.u_location]
    Try the above , hope helpful
    Regards,
    Kennedy

  • How to prevent from creating multiple deliveries per sales order

    Hi,
    Appreciate your help on the below.,
    I do not want the users to create multiple deliveries for a single sales order. They should only be allowed to create one delivery and it can either be a full delivery or a partial delivery.
    Is there any possibility in configuration to do this? I checked the customer master configuration, but it is only for sales order line item.. I only need one delivery for the entire order, regardless of whether it included all line items or not.
    If the user tries to create a second delivery for the same order, it should ideally give an error message and stop the system from creating the second delivery
    Appreciate your help.
    Thank you.
    Keshini

    Thanks Marian for your feedback.
    I tried this again, however it still works only at item level.
    Say i have a sales order, with 2 line items with 50 each.
    Say i create an delivery for only the first line item for 20, delivery gets created.. It doesnt allow to create the delivery for rest of the 30 on that line item,
    However if i try to create a delivery for the second line item, it allows and the delivery gets created.
    I only want one single delivery for the entire order.
    Thanks,
    Keshini

  • How to upload multiple items of sales order?

    I have extracted open sales order and transferred it to an excel file.
    Some SO doument has multiple items on one SO.
    If I will upload that SO document (with multiple items) into a new server, how am I suppose to itemize that this document has multiple items?
    I hope my explanation is clear.

    Hi,
    Suppose you are uploading through LSMW
    Then when you recording in t-code VA01 that time you have to enter MULTIPLE ITEMS, so record will capture multiple items then same you maintain in excel and upload.
    Kapil

  • Discount at sales order leveal

    i want give discount to the first 10 customers of sales orders.
    how we confiquare it

    Hi
    First,You need to check the "<b>Condition Update</b>" field in the customization for that particular condition type.Then, in the condition record, select the condition, go to additional data and there you can enter the number of sales orders (i.e., 10 in your question). So, that system wont give that discount when you process 11th sales order.
    Or else  You can try with Sales Deals as master data <b>VB22 </b>in the system,
    Message was edited by:
            SHESAGIRI.G

  • Discount in sales order

    Dear All,
                 Our client wants to provide discount(100%)on particular products if sales value is more than 20,000.But in sales order they provide 99.99% disc as giving 100% disc will make net 0 which is not allowed due to incompletion procedure( Net should not be 0),
    So,they can give 99.99 % in sales order and then 100% in invoice to procede with the scenario.Is is the correct procedure ? Pls suggest...
    Regards,
    AKD

    Hi Sridhar,
                   Thanks for answering..Actually this is not an standard disc which they are supposed to give frequently,so they want to process is as a normal disc only...so we are going in that way..
    Regards,
    AKD

  • Multiple Inputs to Sales Order creation using VC

    hi experts,
    i've created sales order creation application using VC and i would like to give the header details in a input form and item details in a table for multiple entries. how can i combine these two inputs to create sales order. now i got two submit buttons one in form and one in table. how can i make it as a common submit button.
    please give solutions to solve my problem.
    Thanks and regards
    basheer

    Hi,
    I saw your Bapi,but which is the Output port you are using to get the Out put data :salesorder.
    To submit all the input UI elements at a Time follow the below steps.
    Steps:
    1.click on the connecting line b/w the tables and the data service .
    2.click on the configure
    3.now In  the event name Dropdown ,put star * Sysmbol before the submit button ,Like :  *submit
    do the above step for another tabel also.
    now in Runtime ,clicking on the Submit button in the Formview will trigger the other tabel inputs also.
    I hope now you got ,
    Govindu

  • Multiple PRs in Sales order item level

    Hi All
    I would like to know if standard SAP allows multiple PRs at the item level in the Sales order.
    These multiple PRs should be based on the outline agreement with the vendor for the material.Is this possible in standard SAP,else what would be the solution..
    Thanks
    Gobi

    I don't think it possible.

  • Rounding when any discount in sales order

    hi Gurus,
    Please help me for pricing condition when create sales order.
    when creating sales order there are some sales order the condition should be:
    if there is discount(condition type : ZD23) should be rounding if there is no discount rounding should be off.
    in which exit or routine i have to be modified?
    Currently i try to add routine by VOFM code.
    FORM KOBED_600.
    *{   INSERT         TZRK908033                                        1
           sy-subrc = 4.
          check: XWORKF NE '0.00' OR XWORKF NE SPACE.
           check: t001r-reinh ne 0.
           sy-subrc = 0.
    *}   INSERT
    ENDFORM.
    but it's not work because above code just work for no discount condition. or any suggestion for my requirement?
    anyone can help me please?

    hi Archana Kumari  thanks for reply.
    I think my problem is different from the link that you have post.
    my problem is
    1.sales order 000001
        10. item 001 -> no discount
        20. Item 002 -> no discount.
    1.sales order 000002
        10. item 001 -> has discount
        20. Item 002 -> has no discount
    the rounding should be happen in sales order 000002 and will not happen in sales order 000001.
    in which routine should i define code for activate the rounding.
    please help me.

  • Multiple PR in Sales order

    Hi all,
    How can I generate multiple PR ( different numbers) in one Sales order?
    THanks

    You know the PR is generated at schedule line level CS. If the info records and source list of the items show they belong to same vendor, they are combined into one PR and customer address is brought to corresponding PO. If you purchase these items from one vendor, I don't know why you need separate POs. If you do, I assume you may have to consult with MMer.

  • Multiple payer in Sales Order

    Dear All,
    Is there any standard functionality available to handle multiple payer in the sales order?
    Or multiple payer fro each line item?
    Regards
    Sam

    Hi SAm...
    YOu have to create the partner funciton for the payers... and this payers Partner fucnition should be assingned to the Sold to party...
    Once you enter the items in sales order sales order follow the parth Goto-Item-partner.. and enter your partner function there...
    Hope you find this informative..
    Thanks,
    Safeer Rahman

  • New Error in Adding Multiple Partner to Sales Order

    I get this error, "
    Partner Function WE can only occur 1 times in procedure TA (Sales
    Document Header)"
    When i try to add the Partner Function once again, Ssay etierh SHip-to, Payer, Foreign Destination e.tc.
    I checked the group and got one from archive to check TPAR_STEIN ( Multiple occurence). that field is also blank for Partner function to allow multiple times.
    Still this error occurs.
    Your help is highly appreciated.
    Thanks

    Hi Ashwini
    I donot understand the reason behind having multiple ship to parties on the sales order at header or line level. This does not make sense because the system will be unable to determine who the ship to is on the delivery.
    Please provide the business reason for this if possible.
    Thanks

  • Discount % from Sales Order to Delivery/ AR Inv

    Hi,
    At times when Delivery is created from Sales order the discount % is not reflected and the field is blank. This is happening with random BP. The user ID has 100% discount authorization.
    Any idea for the reason.
    Thanks,

    Dear
    Please check Inventory >Price List >Special Price List
    Here you check any discount allocate to you BP or not.
    This may be a reason.
    Regards
    MANGESH PAGDHARE.

Maybe you are looking for

  • Error 6 while Building Labview Application OSX

    Hello everyone, I have an application I am trying to compile on OSX10.8 using Labview 2012. I built the application fine yesterday, however, after some work today I don't seem to be able to replicate the feat. Everytime I try to build I receive the f

  • Itunes doesn't see my Ipod video

    I downloaded the new Itunes 7.0.2 because I bought the new 30gb video Ipod. Its the second day I spend in trying to connect Itunes with Ipod. It is working as harddisk but Itunes says that I have to reinstall Itunes in order to make the connection. I

  • Pismo screen flickers

    My pismo screen has developed an intermitten screen flicker. When it flickers, it is very sensitive to touch. I can move the screen and it goes black and then when I move it again it comes back on. It also seams effected by tipping the machine forwar

  • Cannot change home page

    cannot change home page. have moved and home page continues from last residence (router: 192.168.1.1). I now want a different home page. I have tried Tools>Use Current>OK, but my old 192.168.1.1 keeps coming back.

  • Add segment in an infotype

    Hi, I created an idoc based on idoc HRSM_D01, and I want to insert a new segment as a child segment type of the root (ZHRSMD01) but I can't do it. It only allows me to insert below the existing segments. Can you help me? Sónia