Sum of an UDF field

<p><font face="Trebuchet MS">Hi there,</p>
<p>I created a UDF for handling the batch of the item, this UDF is the gross weight of the goods.</p>
<p>Now what I want to do is when the user pick-up the goods from the Batch form at the bottom there is the sum of the quantity I would have the same information for my UDF field, that means the sum of my UDF</p>
<p>Is that possible? I mean is possible to get a sum of an UDF field</p>
<p>Right now the user have to calculate the gross weight with a calculator, and this is pretty absurd</p>
<p></p>
<p>Any suggestion</p>
<p></p>
<p>Thx in advance, Roberto</font></p>

Roberto,
If you use the "Search" feature of this forum and search on "Sum Field", you should find many posts that should help you such as ...
Matrix - Sum Field item
Eddy

Similar Messages

  • Sum of UDF field

    Hi there,
    I created a UDF for handling the batch of the item, this UDF is the gross weight of the goods.
    Now what I want to do is when the user pick-up the goods from the Batch form at the bottom there is the sum of the quantity I would have the same information for my UDF field, that means the sum of my UDF
    Is that possible? I mean is possible to get a sum of an UDF field
    Right now the user have to calculate the gross weight with a calculator, and this is pretty absurd
    Any suggestion
    Thx in advance, Roberto

    Hi Frank,
    the UDF was created and used in the "Batch Number Selection" under "Available Batches". When I choose 2 batches in the "Available Batches" there is automatic a sum of the quantity, I would have the sum as well of my UDF I don't care exactely where, of course the best is close to the field that make the sum of the quantity.
    Im pretty sure, as Vanessa say, that is possible just via Addone.
    Cheers
    Roberto

  • UDF field in Crystal in Sales Order Layout

    Hi,
    I want to Include UDF field in sales order layout, when i open default layout it shows only standard in RDR1(UDF for rowlevel ) it doesn't shows UDF fields. Now i connected database and re-established OLE DB connection and pulled the RDR1 table, here i can get those UDF created by me. but if i use this UDF field in report details area and this results no values in the layout while preview the report in SAP B1.
    Anyone guide me on this....
    Regards
    sree

    Hi Ivan,
    If you want to populate UDF fields into crystal reports layout then you have to do wat i mentioned earlier.
    1. Go to Menu
    2. choose Database
    3. choose verify database
    4.enter Object Id and Document Number as a input
    5.system will retrieve the values from database and pull all the fields including UDF
    but this doesn't change field length of UDF you have to change it on UDF fields management in SAP by updating the field properties.
    Note: later you can't reduce the length
    Regards
    Sree

  • How do I make a form field validate that it is the sum of two other fields?

    Hi there,
    I am creating a form, and I would like one of the fields to validate by making sure that this field is the sum of two other fields in the form.  Does anyone have any ideas on how to go about this?  I know I'll need to run a custom validation script, but I'm not sure where to begin - I've never done one for validation before.
    Thanks for any help!

    OK, here's a sample script that I hope will clearly demonstrate the general approach. It is intended to be the custom Validate script of the field that the user enters that value that is supposed to be equal to the sum of the two others.
    // Custom Validate script
    (function () {
        // Get the value that the user entered
        var sVal = event.value;
        // If it is blank, do nothing else
        if (!sVal) {
            return;
        // Convert string to a number
        nVal = +sVal;
        // Get the values of the fields, as numbers
        var v1 = +getField("text1").value;
        var v2 = +getField("text2").value;
        // Add them together, rounding to two decimal places, converting to number
        var sum = +util.printf("%.2f", v1 + v2);
        // Compare entered value to the sum of the other two fields
        // Alter the user if they do not match
        if (nVal !== sum) {
            app.alert("The value you entered does not equal the sum of text1 and text2. Please correct.", 3);
            // If you want the entered value rejected, include the following
            event.rc = false;
    Replace "text1" and "text2" with the actual field names.

  • Display a sum of a column(field) in the view

    Hi
    I would like to show the sum of a revenue field(currency) in any view of the opportunity entity(only when revenue field exist in the view) , may be at the end of the view or as a alert message on button click., but sum should change dynamically based on
    the filters applied or selected records.
    E.g. Here Est. Revenue to be summed and displayed.
    Kindly help me... Thanks in advance.
    Rekha.J

    This is the Solution
    Add This Code to Desing Page:-
    <GridView id="GrdView1" Runat Server/>
    <asp:TemplateField HeaderText="Date" ItemStyle-Width="100px">
                            <ItemTemplate>
                               <%# Eval("Date","{0:MMM d,yyyy}").ToString()%>
                            </ItemTemplate>
                            <FooterTemplate>
                                Sub-Total:
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Amount" ItemStyle-Width="118px">
                            <ItemTemplate>
                                <%# GetAmount(decimal.Parse(Eval("Amount").ToString())).ToString()%>
                            </ItemTemplate>
                            <FooterTemplate>
                                <%# GetToalAmount().ToString("")%>
                            </FooterTemplate>
                        </asp:TemplateField>
    </GrigView>
    In the cs file write the code on pageload as
    decimal TotalAmountPaid = 0;
        public decimal GetAmount(decimal Price)
            TotalAmountPaid += Price;
            return Price;
        public decimal GetToalAmount()
            return TotalAmountPaid;
    Then Run This..............................

  • OIM 11g r2  User  UDF fields  Updation based on AD ID

    Hi,
    We have to update the UDF fields created for the users in OIM using the data from a table.
    This table contains the AD ID, and other fields.
    OIM User (already available) will be updated based on AD ID ….i;e AD ID column will be used to find the user in OIM and then his UDF will be updated based on the respective data from other columns in the table .
    Please can you help me on this task?
    Thanks,

    Your requirement doesn't tell much like when you want to update your user. If it would be on daily basis then go for Schedule Task, if you want to at the time of provisioning then you can have one task and attach your code to bring AD ID in OIM..
    You may leverage Event Handlers as well if your use case requires that.

  • UDF fields missing in Deployment Manager User Metadata export wizzard

    Hi,
    When I try to export UDF-s using Deployment Manager, not all UDF-s appear in the Deployment Manager wizard step1 Search list for User Metadata type.
    It seems that UDF Lookup type-s are not included.
    Also, some text type UDF-s are missing as well, while the rest of the text type UDF-s are in the list.
    I wonder if someone has encountered the issue? Is there any solution for this?
    Thanks in advance.

    Hi,
    I have tried your suggestion, exported sandbox, than published the sandbox. The UDF-s are included in the UserEO.xml.xml file, but are still cannot be retrieved in Deployment Manager wizard step1 Search list.
    Even if I enter the exact name of the attribute (USR_UDF_DEPT_NO) it is not found.
    The problem is even more severe:
    - the UDF missing from the export, which is a lookup type field, cannot be mapped in a GTC connector.
    - this UDF field is NOT CREATED in the DATABASE.
    Error message:
    <Error> <oracle.iam.configservice.impl> <BEA-000000> <The attribute DEPT_NO does not exist!>
    <Error> <oracle.iam.ui.formservice.model.modeler.FormService> <BEA-000000> <Updating User field DEPT_NO with params....failed>
    OIM version: 11.1.2.1.0
    Can someone confirm if this a bug? Is there a workaround?
    Best regards.

  • Not able to keep defualt value in UDF Field

    Hello Frnds,
    I have one question to you, I want to keep default value in one of the UDF field which is ContNo which is exist in A/R invoice.
    I want to keep default value =9999999
    So to do this I have followed the following process:-
    First I went to ToolsUser-Defined FieldsManage User FieldsMarketing DocumentsTitleContNo
    then pressing update button there is an option to enter Default value and press OK button.
    After that its taking some 30 mins and giving error of "SEWSY"
    Please help me to let me know the solution.
    Regards,

    Hello Gordon,
    Please note that as per your suggestion now im not updating the udf  by the sql query.
    As i was already trying to update it from as a exclusive user of B1, but its not updating.
    Its always give the error of SEWSY.  At the time of updating there is not user logged on SAP also im updating with the adminstrator role.
    Please suggest me.

  • Update a UDF field at runtime

    I designed the Sales Order and Sales BOL form in Crystal Reports. I am looking to capture and update an UDF field every time I'm printing the one of those reports in SAP B1 2005 A. The reason for doing this is to display on the report "Original" when printed for the first time, "Duplicate" when printed for the second time and so forth. Is this possible? Thank you.

    You could do a Formatted search on the UDF to change to a value when the Field "Printed" is changed.
    You might want to do "Refresh Regularly" option in Formatted Search.
    Krishnan

  • Choosfromlist in UDF fields

    Hi All,
    I have added some User Defined Fields to Sales Order window. Can I place a choose fromlist in  one of these UDF fields. If can, please give the code.

    Hi Jisha,
    Vasu is right, but you can update the Sales Orders form with a new tab that contains your user fields. And in these fields you can add the CFL has you would do in a standard user form (you can even add the CFL in the XML form).
    Example of the user form:
    <?xml version="1.0" encoding="UTF-16" ?>
    <Application>
         <forms>
              <action type="update">
                   <form FormType="139" uid="">
                        <items>
                             <action type="add">
                                  <item uid="_Family01" type="8" left="25" tab_order="0" width="80" top="160" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="Family01" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Familia 1"></specific>
                                  </item>
                                  <item uid="Family01" type="16" left="110" tab_order="0" width="150" top="160" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="OITM" alias="U_Family01"></databind>
                                       </specific>
                                  </item>
                                  <item uid="_Family02" type="8" left="25" tab_order="0" width="80" top="175" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="Family02" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Familia 2"></specific>
                                  </item>
                                  <item uid="Family02" type="16" left="110" tab_order="0" width="150" top="175" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="OITM" alias="U_Family02"></databind>
                                       </specific>
                                  </item>
                                  <item uid="_Family12" type="8" left="25" tab_order="0" width="80" top="325" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="Family12" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Familia 12"></specific>
                                  </item>
                                  <item uid="Family12" type="16" left="110" tab_order="0" width="150" top="325" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific TabOrder="0">
                                            <databind databound="1" table="OITM" alias="U_Family12"></databind>
                                       </specific>
                                  </item>
                             </action>
                        </items>
                   </form>
              </action>
         </forms>
    </Application>
    Than you catch the Sales Order form Load and you load the above form:
    1. Catch the Sales Order form load
    2. Add the new folder by code and update the Sales Order form
    Try
                oForm.Freeze(True)
                oForm.Resize(740, 480)
                Dim PaneLevel As Integer = oForm.PaneLevel
                Dim oNewItem As SAPbouiCOM.Item = oForm.Items.Add("FldFam", BoFormItemTypes.it_FOLDER)
                Dim oItem As SAPbouiCOM.Item = oForm.Items.Item("3") '// 3 = Id of an existing folder in the form
                oNewItem.Top = oItem.Top
                oNewItem.Height = oItem.Height
                oNewItem.Width = oItem.Width
                oNewItem.Left = oItem.Left + oItem.Width
                oNewItem.AffectsFormMode = False
                Dim oFolderItem As SAPbouiCOM.Folder = oNewItem.Specific
                oFolderItem.Caption = "NEW FOLDER"
                oFolderItem.GroupWith("3")
                '// Carregar o ficheiro XML com as modificações ao formulário normal.
                UpdateFormByXML(oCompany, oApplication, pFILES & " rm150_" & GetLanguageCode(oApplication) & ".srf", oForm.UniqueID)
                oForm.Items.Item("FldFam").Visible = True
                oForm.PaneLevel = PaneLevel
                AddFamilyFolder = True
            Catch ex As Exception
                oApplication.MessageBox("AddFamilyFolder(): " & oCompany.GetLastErrorCode.ToString & ", " & ex.Message)
            End Try
        End Function
    Function to update a form
        Public Sub UpdateFormByXML(ByRef oCompany As SAPbobsCOM.Company, ByRef oApplication As SAPbouiCOM.Application, _
                ByRef FileName As String, ByRef FormUID As String)
            Try
                Dim xDoc As Xml.XmlDocument = New Xml.XmlDocument
                xDoc.Load(sPath & FileName)
                xDoc.SelectSingleNode("Application/forms/action/form/@uid").Value = FormUID
                oApplication.LoadBatchActions(xDoc.InnerXml)
            Catch ex As Exception
                oApplication.MessageBox("UpdateFormByXML(): ", oCompany.GetLastErrorCode.ToString & ", " & ex.Message)
            End Try
        End Sub
    Regards,
    Vítor Vieira

  • 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

  • Using SDK to wrtie data to Batch UDF fields

    Hello All,
    Since the Batch Number object does not have a "UserFields" member, I am unable to write data to the UDF fields I've created for batch through the SDK DI. Does anyone know how to do it? Thanks a lot!
    Daniel

    Dear,
    As the udf property is not exposed in Batch object. It's not possible implement it in DI API.
    A workaround is to set this settings manually in SAP Business One,
    or to develop a UI AddOn which do this steps automatically for you,
    but this needs a lot of development effort.
    Best Regards,
    xiaodan AN
    SAP Business One Forums Team

  • Limit UDF field to returns window

    I created a udf field for use in the sales returns rows window.  However, in the User-defined fields - Management window there doesn't appear to be a way to link the udf to only the returns window.  Obviously I don't want a field called "Returns Reason" showing in my sales order or invoice window rows.

    what we have done is added a udf title.  by default this added the udf to all sales and purchasing documents.  i then went to each sales and purchasing document and changed the udf settings -> unchecked visible and active for this specific udf.
    i did not like the behavior of the mandatory field since i wanted the user to pick the value (not a default value).  edit the sbo_sp_transactionnotification to trigger an error if the field is null.  applicable to returns document only (object type 16 for 2007a).

  • UDF fields from Active to not Active suddenly

    Hi everyone,
    a customer has submitted a problem which is quite strange. For one of the users, about once a month UDF fields in Item Master Data that are set to Visible and Active suddenly are not Active anymore. The user has no permission to change these settings. But there is something even more strange than that: at the same time, the master data for two items are displayed. For one item, the UDF are active, and for the second one they are not ! I have not yet created a message with the support because I don't have enough clues at what is taking place.
    Has someone already seen that ? Does anyone as a clue at what I should look at ?
    Thanks
    Gilles Plante

    Hi
    Since there is a duplication of data , I would suggest you to log support to SAP.
    Please check also if change log is activated on Item master which you can see from Menubar - Tools --change log
    If regarding UDF concern ,
    You could check --go to tools --customisation tools --setting  (or CtrlShiftB) 
    Check what it up there .
    I guess it is too hard for troubleshooting because we don't know what exactly trigger your problem.
    If you can get more details  like user 1 was doing ...,then...  we can probably look more in detail .
    So far i will first, I would suggest you to log support to SAP because your data is duplicated and also check how many data are duplicated also ..
    Thank you
    Bishal

  • DTW - Error occurs when updating UDF field

    Error occurs when updating UDF field:"bank does not exist in the company Application-defined or
    object-defined error65171"
    What is the meaning of this message?
    thanks
    Edited by: Nadav Greifman on Oct 11, 2009 12:39 PM

    You may check these threads forst:
    Invalid valid value '0003' Error 65171
    bank account is missing application -define or object define Error 65171
    Re: Journal entries
    Re: Error importing Incoming Payments using the Data Transfer Workbench
    Thanks,
    Gordon

Maybe you are looking for

  • Errors "A media driver your computer needs is missing." or "Windows cannot install required files" upon attempting to install Windows 10 TP build 10041 64-bit

    I'm attempting to install Windows 10 TP build 10041 [64-bit] I am currently being prevented from installing by a "A media driver your computer needs is missing." error, which occurs fairly early in the process. I've interpreted further text in the me

  • Faulting Application JFMerge.exe

    Hi all, Our servers have just started generating an application error the info looks like this 'Reporting queued error: Faulting application JFMerge.exe, version 5.5.0.41.42, faulting module JFMerge.exe, version 5.5.5.0.41.42, fault address ...' Anyo

  • FI/CO interface

    Hi All, Im getting an error message as below: FI/CO interface: Line item entered several times Can someone explain me when will this error msg pop-up? Regards, Priya Rajesh

  • Changing port for OAM proxy

    Hi all I need to change the port for the OAM proxy which is 5575 because this port is already in use for a different application , how can I do that ? Is this change going to break the access gate for OIM , I have OIM OAM integration scenario Thanks

  • Problem linking to image

    Hello Folks, I have a link problem. It is when you go to this page > http://www.laurarealm.com/Illustrator.html click on the media projector image the image is missing. I tried several hours of fixes and nothing has worked. Tried the obvious, reloadi