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

Similar Messages

  • 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

  • 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

  • Sum of a field in ALV List

    Hello Guys,
    I'm using 'REUSE_ALV_GRID_DISPLAY' in my prog.
    There is a field in output table which is of type P(8) Decimals 3.
    When I'm trying to get the sum of this field in ALV Display it gives the message " Desired operation cannot be performed for column 'Converted Quantity' ".
    I have also tried do_sum = 'X'.
    But it is not working. Please help guys.
    Regards,
    Abhinav

    Thanks a lot guys for your inputs.
    The program is working now.
    Now I'm using :
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'QUAN'.
    *  wa_fieldcat-ref_tabname = 'I_OUT2'.
    *  wa_fieldcat-tabname = 'I_OUT2'.
      wa_fieldcat-qfieldname = 'MEAS'.
      wa_fieldcat-qtabname = 'I_OUT2'.
      wa_fieldcat-outputlen = '15'.
      wa_fieldcat-seltext_l = text-052.
      APPEND wa_fieldcat TO i_fieldcat.
    The program is working fine now.
    I have commented tabname and -ref_tabname , and the program is working fine now.
    Thanks a lot.

  • Dump when summing up CURR field in ALV GRID display

    Hi All,
    I am getting dump when I try to sum the CURR field in my ALV Grid Display. The field is of CURR 23.  I am using classes and methods to display alv grid.
    I tried passing <fs_fieldcat>-do_sum = 'X'. When I did this, it is dumping without even displaying the alv grid.
    Here is the part it is throwing dump:
            ls_lvc_data-value = space.
            clear ls_lvc_data-style.
            loop at it_fcat_local assigning <ls_fcat>
                    where tech ne 'X' and no_out ne 'X'.
              if l_invisible eq 'X'.
                clear l_invisible.
                if <ls_fcat>-do_sum is initial.
                  continue.
                else.
                  clear ls_lvc_data-col_pos.
                endif.
              endif.
              add 1 to ls_lvc_data-col_pos.
              assign component <ls_fcat>-fieldname
                               of structure <ls_data> to <l_field_value>.
              _if sy-subrc ne 0.
                message x000(0k).
              endif._
    Regards,
    Guru

    Thomas,
    Here is the dump:
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          10/22/2010 23:30:53
    Short text
    The current application triggered a termination with a short dump.
    What happened?
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X).
    Error analysis
    Short text of error message:
    Long text of error message:
    Technical information about the message:
    Message class....... "0K"
    Number.............. 000
    Variable 1.......... " "
    Variable 2.......... " "
    Variable 3.......... " "
    Variable 4.......... " "
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "MESSAGE_TYPE_X" " "
    "SAPLSLVC" or "LSLVCF36"
    "FILL_DATA_TABLE"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    Source Code Extract
    Line
    SourceCde
    2708
    is_subtottxt_info = ls_subtot_info
    2709
    ip_subtot_line    = lr_data
    2710
    changing
    2711
    c_subtottxt       = l_subtottxt.
    2712
    ls_lvc_data-value = l_subtottxt.
    2713
    2714
    append ls_lvc_data to ct_lvc_data.
    2715
    endif.
    2716
    2717
    2718
    Column per Fieldcat Entry
    2719
    2720
    ls_lvc_data-value = space.
    2721
    clear ls_lvc_data-style.
    2722
    loop at it_fcat_local assigning <ls_fcat>
    2723
    where tech ne 'X' and no_out ne 'X'.
    2724
    if l_invisible eq 'X'.
    2725
    clear l_invisible.
    2726
    if <ls_fcat>-do_sum is initial.
    2727
    continue.
    2728
    else.
    2729
    clear ls_lvc_data-col_pos.
    2730
    endif.
    2731
    endif.
    2732
    2733
    add 1 to ls_lvc_data-col_pos.
    2734
    2735
    assign component <ls_fcat>-fieldname
    2736
    of structure <ls_data> to <l_field_value>.
    2737
    if sy-subrc ne 0.
    >>>>>
    message x000(0k).
    2739
    endif.
    2740
    2741
    *... work on average
    2742
    if <ls_fcat>-do_sum eq 'C'.
    2743
              Initialize average result and entries
    2744
    <l_field_value> = 0.
    2745
    clear l_entries.
    2746
    2747
              retrive unit from fieldcatalog
    2748
    assign space to <l_unit>.
    2749
    if not <ls_fcat>-cfieldname is initial.
    2750
    assign component <ls_fcat>-cfieldname
    2751
    of structure <ls_data> to <l_unit>.
    2752
    endif.
    2753
    if not <ls_fcat>-qfieldname is initial.
    2754
    assign component <ls_fcat>-qfieldname
    2755
    of structure <ls_data> to <l_unit>.
    2756
    endif.
    2757

  • SUM for a field in ALV

    Hello Guys,
    CAn any one tell me how to do the SUM for a particular column in ALV.It should display at the End of the records.The column field is TYPE N(4).
    My CODE is like this:
    CLEAR fc_tmp.
      fc_tmp-col_pos         =  5.
      fc_tmp-reptext_ddic    = 'POINTS'.
      fc_tmp-fieldname       = 'POINTS'.
      fc_tmp-tabname         = 'ITAB'.
      fc_tmp-outputlen       = 15.
      fc_tmp-key             = 'X'.
      fc_tmp-do_sum          = 'X'.
      APPEND fc_tmp TO fieldcat.
    This is not working.
    Thanks in Advance,
    Take care

    Hi,
    populate the IT_SORT internal table of REUSE_ALV_GRID_DISPLAY provided in the importing parameters.
    fieldname = Company Code
    append fieldname to it_sort.
    fieldname = division.
    append fieldname to it_sort.
    If you explicitly need subtotals then add the following line
    subtot = 'X'
    For obtaining sum you have an attribute "do_sum" in fieldcatalog , set it to 'X' and you should be able to do sum on that field.
    <b>Ensure that these should be numeric / currency or quantity datatypes only.</b>
    wa_fieldcat-datatype = 'CURR'.   or
    wa_fieldcat-datatype = 'QUAN'.
    Hope this solves your problem
    Cheers,
    Simha.
    PS : Please reward points if solution is helpful

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

  • Material description filled automatically as the sum of two fields

    Hello to all
    We can automate the process of the creation a new material doing that the field material description(MAKT-MAKTX) can be filled by the system before saving(not by the user) as the sum of two fields in the MARA table that the users will be filled manually.
    Is it possible using a user exit, field exit,....?
    Thanks in advance.
    Regards

    Hello to all
    We can automate the process of the creation a new material doing that the field material description(MAKT-MAKTX) can be filled by the system before saving(not by the user) as the sum of two fields in the MARA table that the users will be filled manually.
    Is it possible using a user exit, field exit,....?
    Thanks in advance.
    Regards

  • [CR integrated in VS 2005] - sum of string fields

    Hello,
    i am discovering CR,
    and i am trying to do the sum of a field (number) but declared as string. the declaration of the field cannot be changed (string in the database).
    so i want to do the sum of this field.
    i wonder if it is possible, and if yes, how.
    maybe something like a formula.
    I saw the functions: ToNumber () and Cdbl() for conversion, and Sum().
    If someone has an idea, i will be very interested.
    PS: sorry if my question is not understandable, i'm french. If you don't understand it, i would rewrite it.
    thank you!

    thank you.
    I could convert, but the problem is to make the sum of the conversion.
    i would like to do something like:
    Sum(ToNumber ()) but CR does not accept it.
    Maybe by using a variable in a formula (but i don't know where):
    shared numbervar total;
    total = total+ToNumber({MyField});
    and when printing a formula field at the bottom of the report to show the total:
    shared numbervar total;
    ToText (total);

  • 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

  • How to calculate sum of the fields in adobeforms

    Hello Experts
    can  i know how to calculate sum of fields in the adobe form.  I have few fields to be summed in total field.
    Regards

    Hello Surendra,
         Suppose you are having 4 fields and the 4th field is the TOTAL field.
         Write the below Javascript on the Initialize event of TOTAL field as shown below.
    Remember that if you use just "+" sign without Number() or ParseInt() function it acts like String Concatenation.
    this.rawvalue = Number( this.parent.field1.rawvalue ) +
                          Number( this.parent.field2.rawvalue ) +
                          Number( this.parent.field3.rawvalue ) ;
    You can also write is as shown below.
    this.rawvalue = parseInt( this.parent.field1.rawvalue ) +
                             parseInt( this.parent.field2.rawvalue ) +
                             parseInt( this.parent.field3.rawvalue ) ;

  • 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

Maybe you are looking for

  • Reconciliation - mont end

    hi, How do we do reconcilisation for clearing account at month end? Eg: GR/IR - how do we manintan open items at month end please explan me

  • How do I find out my portal's system number?

    Hi, I am trying to write a script, which will stop the SAP server with the stopsap.exe.  However, the executable expects an Nr parameter, which I think is referring to the system number (sysnr).  I tried 00 for Nr, but it is not working.  Can anyone

  • Invoice correction request price problem

    User would like to create Invoice Correction Order  from Invoice. Problem is, the original order is from Schedule Agreement in which customer buy in big quantity in order to get cheaper price (scale price is applied). If you can see the original invo

  • How can I get the galaxy note 4 to ring longer?

    how can I get the galaxy note 4 to ring longer?

  • Conditionally send redirect in Servlet filter after j_security_check

    I am writing a form based challenge for a secured J2EE application. What I want the user to do is log in, and after they are authenticated by j_security_check, get the Role that they have, and based on the role, redirect with the filter to different