Remove UDF

i have created an UDF in marketing document->wtax info
now i want to remove that UDF, but when i press remove button it shows me error there are some problem with application and .dmp file was created and please contact to support and attach diagnostic file.
please help me.

Hi,
Remove all file from Temp folder >Restart server>>Be sure noone user is login in syatem>>
and now remove the UDF.
Regards
Deepak

Similar Messages

  • Unable to update or remove UDF

    Hello,
    I am unable to update  a value in udf after licking on 'New'. It shows the error message as Temp_ASCL followed by WTR1 and sometimes SEWSYS.This udf is created i service-- title.
    There are no add ons running and there are no SP in the database. Please let me know how to update this?
    Regards

    Hi Agranshu.....
    Have you upgraded you PL recenetly?
    If yes then I guess your SBO Common is not upgraded properly.....
    Regards,
    Rahul

  • Removing udf in sql 2005 using sdk

    Hi,
    I am trying to delete a userdefined field thru SDK but it is not allowing me to do so in SQL Server 2005 database. The same code works in SQL Server 2000 database.
    If oUserFieldsMD.GetByKey(TableName, FieldId) Then
       lRetCode = oUserFieldsMD.Remove()
          If lRetCode <> 0 Then
             oCompany.GetLastError(lRetCode, sErrMsg)
          End If
    End If
    The program execution stops/hangs at   
    lRetCode = oUserFieldsMD.Remove() line.
    Do i need to do anything differently for SQL 2005?
    Thanks,
    Jayakumar

    hello Jayakumar,
    Are you finding the record?
    Check the error code on getbykey- remember it passes a boolean not an integer.
    Make sure you have the correct field id.
    Field id increments and does not decrement- I like to find the field id via a doquery and then pass it to the getbykey function.
    HTH
    JW

  • Can't remove a user defined field with DI API.

    Hi,
    I'm using the code below to remove a user field.  However, the first time I run it, I get the message that:
    "Ref count for this object is higher then 0"
    The second time I run it, I get the message that:
    "No matching records found (ODBC -2028)"
    As you can see, I am killing the UserFieldsMD object.  In fact, when the function is entered, the object is nothing but later instantiated with oCompany.
    The result in both cases is that the field doesn't get removed.  What am I missing?  Any ideas?
    Thanks,
    Mike
        Public Function RemoveUserField(ByVal FieldName As String, ByVal TableName As String, ByRef ErrMsg As String) As Boolean
            Dim Result As Boolean = False
            Dim Err As Integer
            Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
            Try
                If Not FieldExists(TableName, FieldName) Then
                    Result = True
                Else
                    oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                    With oUserFieldsMD
                        .TableName = TableName
                        .Name = FieldName
                        Err = .Remove
                        If Err Then
                            oUtilCompany.GetLastError(Err, ErrMsg)
                            If ErrMsg = "No matching records found (ODBC -2028)" Then
                                Result = True
                            Else
                                ErrMsg = "Was not able to remove field " & FieldName & " from table " & TableName & " programmatically." & vbCrLf & _
                                         "Please remove it manually using the Tools menu."
                            End If
                        Else
                            Result = True
                        End If
                    End With
                End If
            Catch ex As Exception
                Throw ex
            Finally
                KillObject(oUserFieldsMD)
            End Try
            Return Result
        End Function
        Public Sub KillObject(ByRef Obj As Object)
            If Not Obj Is Nothing Then ObjectRelease(Obj)
        End Sub
        Private Sub ObjectRelease(ByRef Obj As Object)
            'This routine releases objects that were acquired with oCompany.GetBusinessObject().
            System.Runtime.InteropServices.Marshal.ReleaseComObject(Obj)
            Obj = Nothing
            GC.Collect()
        End Sub

    Hi Mike,
    The issue with your code is that you are not calling the GetByKey method of the field object. Until you do this the FieldID property is 0 so when the Remove method is called it will not try and remove the correct UDF (if you run SQL profiler then you'll see that SBO is looking for the UDF based on the table and fieldID values).
    Something like the following works for me:
    private void DeleteUDF(string sTableID, string sFieldName)
        SAPbobsCOM.UserFieldsMD sboField = (SAPbobsCOM.UserFieldsMD)_sboCompany.GetBusinessObject(BoObjectTypes.oUserFields);
        try
            int iFieldID = GetFieldID(sTableID, sFieldName);
            if(sboField.GetByKey(sTableID, iFieldID))
                if (sboField.Remove() != 0)_sboApp.SetStatusBarMessage("Error removing UDF: " + _sboCompany.GetLastErrorDescription(), SAPbouiCOM.BoMessageTime.bmt_Short, true);
        finally
            System.Runtime.InteropServices.Marshal.ReleaseComObject(sboField);
            sboField = null;
            GC.Collect();
    private int GetFieldID(string sTableID, string sAliasID)
        int iRetVal = 0;
        SAPbobsCOM.Recordset sboRec = (SAPbobsCOM.Recordset)_sboCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
        try
            sboRec.DoQuery("select FieldID from CUFD where TableID = '" + sTableID + "' and AliasID = '" + sAliasID + "'");
            if (!sboRec.EoF) iRetVal = Convert.ToInt32(sboRec.Fields.Item("FieldID").Value.ToString());
        finally
            System.Runtime.InteropServices.Marshal.ReleaseComObject(sboRec);
            sboRec = null;
            GC.Collect();
        return iRetVal;
    Note that the parameter sAliasID is the field name without the U_ prefix.
    Kind Regards,
    Owen

  • .DMP crash when opening a the UDF bar on a customer equipment card CEC

    Anybody every heard of a client crash when opening the UDF bar for a customer equipment card?
    Specifically when using the golden arrows from a service call then opening the CEC UDF bar, it immediately causes a .DMP crash.
    Furthermore, it is only for one user, not for the manager user.
    Corrupted UDF?  Corrupted client?  (I am reinstalling the client right now)
    TIA,
    M

    Hi,
    Check this note:[1284009|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001284009|B1 shuts down when trying to update/remove UDF] whether it relates to your issue.
    If in any case dmp file is created you must contact sap support,according to note:[1009615|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001009615|SAP Business One application shuts down unexpectedly]
    Hope this is helpful!

  • OIM 11g R2: Delete User UDF fields

    Hi all,
    I installed and configured OIM 11g R2. In this environment I created an UDF for User entity.
    Here the steps that I followed:
    - created a sanbox
    - opened User Form
    - added a custom field named "MyCustomField". The type field is Text.
    Now, due to a mistake during UDF creation, I have to delete it.
    I found this post (OIM 11gR2 - Unable to remove UDF which describe how to delete an UDF field.
    The post gives these instructions:
    - export the sandbox
    - remove UDF occurences in xml files
    - import the sanbox
    I followed the instructions and at the and I checked the result: the UDF field does not exist in the User form, but the associated database field still exits in database.
    My question is: how I can delete the database filed without create database inconsistency?
    Thanks in advance,
    Daniele

    Hi Nayan,
    I tried to export Users.xml using Depolyment Manager Export, but I the export failed whit this error.
    [2012-10-09T10:03:37.366+02:00] [oim_server1] [ERROR] [] [XELLERATE.WEBAPP] [tid: [ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: fc578f2854422d44:67bee673:13a2720c2c5:-8000-0000000000015853,0] [APP: oim#11.1.2.0.0] Class/Method: LoadDeploymentUtility/handleExportData encounter some problems: invalid character in name[[
    Thor.API.Exceptions.tcAPIException: invalid character in name
    at com.thortech.xl.ejb.beansimpl.tcExportOperationsBean.getExportXML(tcExportOperationsBean.java:245)
    at Thor.API.Operations.tcExportOperationsIntfEJB.getExportXMLx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.xml.parser.v2.XMLDOMException: invalid character in name
    at oracle.xml.util.XMLUtil.validateName(XMLUtil.java:464)
    at oracle.xml.parser.v2.XMLDocument.createElement(XMLDocument.java:877)
    at com.thortech.xl.ddm.repositories.api.impl.APIRepository.getElementforHashMapAttribute(APIRepository.java:552)
    at com.thortech.xl.ddm.engine.visitor.ExportVisitor.visitStarted(ExportVisitor.java:126)
    at com.thortech.xl.ddm.engine.data.datatypes.SchemaInstance.traverse(SchemaInstance.java:252)
    at com.thortech.xl.ejb.beansimpl.tcExportOperationsBean.export(tcExportOperationsBean.java:281)
    at com.thortech.xl.ejb.beansimpl.tcExportOperationsBean.getExportXML(tcExportOperationsBean.java:235)
    ... 120 more
    ]]Do you have any other suggestions?
    Thanks,
    Daniele

  • OIM 11g R2 SandBox

    Hi All,
    Is there any way to delete Published SandBox...??

    yes this quite difficult to delete published sandbox. There is no direct and easy method but you can follow the below steps
    1. export sandbox
    2.mofify the coressponding files(I mean delete the entry from the coressponding files)
    3. import the sanbox wih modified files
    4. activate sandbox
    for example udf look at below link
    OIM 11gR2 - Unable to remove UDF
    This is the only way to remove published sandbox
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • UDF - Removing Header Record from File

    Hi Team,
    In my file(File Content Conversion) to ABAP server proxy scenario...
    The source File structure is like this...
    KUNNR|Matnr|Description----->(This is Hearder Record.Each File contains this header record.)
    1001|0077321|Special Materials
    1002|0077323|Raw Material
    File adapter will picks the file , In Message Mapping The first record is the Header Record from the above file structure.So I need to remove the Header Record.
    Can we handle  this requirement with any FCC parameter ;I think we can do it with the help of UDF in MessageMapping?
    Can anybody ghelp me the sample code for this.
    Thanks.
    Drumi

    Hi,
    You can use Document Offset in FCC to  specify the number of lines that are to be ignored at the beginning of the document.
    Regards,
    Priyanka

  • UDF on a "non-removable" disk

    I apologize in advance if I've posted to the wrong forum, or have missed something obvious.
    I am trying to mount a UDF hard drive created in Linux on a Solaris 10 SPARC workstation (and will also need to do so on a Solaris 8 SPARC workstation). According to the Sun documentation (http://docs.sun.com/app/docs/doc/816-0222/6m6nmlt3m?a=view), I should be able to do this. However, when I try to issue the following command, I get the following errors:
    mount -F udfs -o ro /dev/dsk/c0t8d0s2
    mount: I/O error
    mount: cannot mount /dev/dsk/c0t8d0s2
    As far as background information is concerned, I'm using an IDE disk with a SCSI adapter on it. The hardware is not a problem, because I can put a Sun label on the disk, along with a UFS filesystem and everything is happy. If I try to create a UDFS filesystem on the disk, with or without a Sun label, the operation fails.
    I think the problem is coming from the fact that the hard drive is not seen as a "removable" drive by Solaris, and so it never allows the use of the UDFS driver. I was going to try the old PPSD driver (http://fy.chalmers.se/~appro/ppsd.html) to fake it into thinking it was removable, but I can't find the source for it, nor have I received a response from the author yet.
    Is there a way to set this up so I can mount the UDF disk? It has to be this way because my datasets are too large for DVD.
    Thanks.

    Thanks Miheal,
    I had done the following and now it is resolved:
    1. srvctl config database -d <dbname> -a
    2. From the dependencies I found that this diskgroup is listed.
    3. Took the list of diskgroup (from dependencies), removed this diskgroup entry and ran the following command:
    srvctl modify database -d <dbname> -a "data_dg1, data_dg2, data_dg3"
    4. started the instance and it worked
    regards,
    Murali

  • Removal of link to a UDF of link type

    Hi all,
    I need to remove/change a link in a UDF of type General/Link. Can you tell me how to change/remove it?
    Thanks

    Hi Muhammad,
    If you want to change the link, select the udf and use ctrl + double click
    and select the new file / type the new value.
    To remove the value, use Alt + double click on the udf.
    Regards,
    Vijay Kumar
    SAP Business One Forums Team

  • How To remove a Link in a Link Type UDF?

    Does anyone know how to remove a linked file once you have linked a file in a UDF.
    The user attaches a document to the A/R Invoice using a Link Type UDF.  They need to change one of them after linking the wrong document.  Double clicking the field opens the document though, now that a file is linked.
    How do you remove a linked file or change the link to a different file?
    Thanks in advance,
    Brad Windecker

    Hi Brad,
    Check this if it helps :
    If you have created the udf and linked a document to it you can change it by holding 'ctrl + double click' on the udf.
    If you want to delete the link press 'alt + double click' on the udf.
    If you just 'double click' it will open the file.
    Regards,
    Jitin Chawla

  • UDF to remove chars!

    Hi,
    I need to remove the last three characters of a given string  It should be for the entire queue.
    Let me know the udf for this as I assume it can't be achieved using standard functions.
    Regards
    Anandh

    Hi,
    Try with
    return str.substring(0,str.length()-3);
    Thanks
    Anand

  • Advance UDF --- Remove Context

    Hi all
    I want to use RemoveContext function in UDF ...as this will be based on few conditiond.
    Hence i can not use the standard removeContext node function..
    can any one tell me the code for doing the same..
    Sheetal

    you can have a remove context functionality outside the UDF itself.
    Right click the source field and change the context from the parent node to the top(root) node to remove all contexts.
    Note: you can indeed ADD context etc in a UDF - http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/content.htm

  • Reg: UDF for removing values after decimals

    HI,
      Please help me on the below issue,
      I need an UDF for the follwing requirement,
    as my input value is 12354.12354875 then the result will be like 12345.123,
    After deceimal it should get only 3 values.
    Please help me points will be awarded.
    Edited by: UDAY on Apr 5, 2010 3:56 PM

    >
    UDAY wrote:
    > yes its needed to be truncated only not rounded.
    In that case even the standard function FormatNum can also help.
    Regards,
    Abhishek.

  • UDF or Mapping for removing more items

    Hi
    I'm in a need to implement a data validation using UDF or Graphical Mapping
    File has the data like ONE header record (5 fileds) and ONE item record (8 fields) as follows
    header:field1field2 field3 field4 field5
    item:field1field2 field3 field4 field5 field6 field7 field8
    header:field1field2 field3 field4 field5
    item:field1field2 field3 field4 field5 field6 field7 field8
    header:field1field2 field3 field4 field5
    item:field1field2 field3 field4 field5 field6 field7 field8
    and so on.
    Here my requirement is one header should have only one item. Sometimes either header or items are repeating more than one time .. in that case lastest header or item should be updated in target fields.
    To say clearly ... one header and one item & one header and one item and so on to be updated.
    In case any header has two items then first item to be deleted and second item to be updated.
    Kindly advise me how to go about this requirement.
    Thanks.

    Do the mapping as
    Direct assignment of Source header to Target Header and same for fields inside the Header.
    create a UDF (choose context).very simple UDF with a single statement.
    result.addValue(a[a.length-1]);
    Item Node mapping and Its Fields
    Item------>UDF------>Item(Target)
    field1(Change the context to Header)------->UDF----->field1(under Target Item)
    Do the same mapping for remaining fields Under Item as you  do for field1
    I have tested the above UDF and the mapping..It is working according to your requirement.

Maybe you are looking for

  • The new version of iTunes doesn't recognize my iPod shuffles where the old version did. Can you help?

    I downloaded the new version of iTunes today-it doesn't recognize my shuffles-the older version did. Can you help?

  • Dead LCD screen

    I have a HP G72 laptop, 17.3 inch screen. Display went dead after 3 months. It started flickering and went completely white. I noticed a spot on lower left side appear in the display. Sent the unit for repair to HP, and they returned it back claiming

  • NDR: recipient not found

    So I've seen a like a million different questions on this, and a few resolutions, and even fewer similar resolutions. I'm probably missing something really simple, but I haven't had any extra eyes on it, so here it is: Generating server: BN1PR0301MB0

  • About Nokia lumia 730 dual sim

    may i known release date of  this moblie  in india i am waiting for this product

  • Airport won't update but works otherwise

    I have an Airport Extreme. I've been trying to update to add a PC HP Netbook but it refuses to update. Error states, "need computer to be closer or try again" sort of thing. All of my other three laptops/printer, etc. can access and works fine. It ju