Cancel a record in a UDO through code

Hi.
I have created a UDO.
I have hadded a right click menu to duplicate a record, but i want to cancel de old one.
I can do it through the right click menu. but how can i do it through code.
Tks in advance

Hi Nelson
In normal circumstances like if you were working with marketing docs. You would say
if Ojournal.getbykey("10") then
    ojournal.close
end if
But i think you can't use the getbykey on UDO entries.

Similar Messages

  • Creating UDO through code  with 1 Docment table & 4 Document Line Tables

    Hi,
    I need to create one Document table and four Document Line tables(child tables) and make them UDO through code. This process is working When I am creating UDO with one Document table and one Document Line table but if I add more than one Child table it is taking only one child.... Can anyone give me some solution or code example related to this problem this problem?
    Regards,
    Sudeshna.

    Hi,
    Firstly Trinidad, unfortunately I could not open that link.
    And secondly, the following is my code... Through this code I am trying to create an UDO with one document table and two document line tables.... here the UDO is being created but it is not taking two line table, its taking only one Document line table.... how can I create udo with more than one Document line tables?
    Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD
    oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
    oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
    oUserObjectMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.ChildTables.TableName = "childSplitNew1"
    oUserObjectMD.ChildTables.TableName = "childSplitNew2"
    oUserObjectMD.Code = "udoSplitNew"
    oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tNO
    oUserObjectMD.Name = "udoSplitNew"
    oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_Document
    oUserObjectMD.TableName = "masterSplitNew"
    lRetCode = oUserObjectMD.Add()
    Regards,
    Sudeshna.

  • UDO registration through COde

    Hi
    I m unable to do registration of UDO through code.
    I m having two tables.1. U_UDOM(Master) and the second one is U_UDOC(Child). As i add my UDO, after assigning all properties it gives me error code(-<b>50002</b>). Can u help me regarding this error???
    Also i want to know these properties of SAPbobsCOM.UserObjectsMD(i mean what values we should assign to these properties)
    oUserObjectMD.Code = "EMPID";
    oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES;
    oUserObjectMD.Name = "EMPNAME";

    Hi
    I use this code in Vb.NET
        ' Definition:  UDO
        ' Algoritm  :
        ' Notes     :
        ' Parameters:   p_sFindColumnsList: lista delle colonne del find, separate da ';'
        '               p_sTableNamesList: lista delle tabelle dettaglio, separate da ';'
        ' Return    :
        Public Function AddUDO(ByVal p_sUDOCode As String, ByVal p_sUDOName As String, _
            ByVal p_sTableNameTestata As String, ByVal p_enObjType As SAPbobsCOM.BoUDOObjType, _
            ByVal p_sFindColumnsList As String, _
            ByVal p_sTableNamesList As String, _
            Optional ByVal p_CanYearTransfer As SAPbobsCOM.BoYesNoEnum = SAPbobsCOM.BoYesNoEnum.tNO, _
            Optional ByVal p_CanLog As SAPbobsCOM.BoYesNoEnum = SAPbobsCOM.BoYesNoEnum.tNO) As Boolean
            Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD
            Try
                oUserObjectMD = sboCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
                If oUserObjectMD.GetByKey(p_sUDOCode) = 0 Then
                    oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
                    oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
                    oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tNO
                    'oUserObjectMD.FormColumns
                    oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
                    oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
                    Dim l_vList() As String
                    Dim l_i As Integer
                    l_vList = Split(p_sFindColumnsList, ";")
                    For l_i = 0 To l_vList.Length - 1
                        If l_vList(l_i).Length > 0 Then
                            If l_i = 0 Then
                                oUserObjectMD.FindColumns.ColumnAlias = l_vList(l_i)
                            Else
                                oUserObjectMD.FindColumns.Add()
                                oUserObjectMD.FindColumns.SetCurrentLine(l_i)
                                oUserObjectMD.FindColumns.ColumnAlias = l_vList(l_i)
                            End If
                        End If
                    Next
                    oUserObjectMD.CanLog = p_CanLog ' SAPbobsCOM.BoYesNoEnum.tNO
                    If oUserObjectMD.CanLog = tNO Then
                        oUserObjectMD.LogTableName = ""
                    Else
                        oUserObjectMD.LogTableName = "A" & p_sTableNameTestata
                    End If
                    oUserObjectMD.CanYearTransfer = p_CanYearTransfer
                    l_vList = Split(p_sTableNamesList, ";")
                    For l_i = 0 To l_vList.Length - 1
                        If l_vList(l_i).Length > 0 Then
                            If l_i = 0 Then
                                oUserObjectMD.ChildTables.TableName = l_vList(l_i)
                            Else
                                oUserObjectMD.ChildTables.Add()
                                oUserObjectMD.ChildTables.SetCurrentLine(l_i)
                                oUserObjectMD.ChildTables.TableName = l_vList(l_i)
                            End If
                        End If
                    Next
                    oUserObjectMD.ExtensionName = ""
                    If p_enObjType = BoUDOObjType.boud_Document Then
                        oUserObjectMD.ManageSeries = tYES
                        oUserObjectMD.CanLog = tYES
                        oUserObjectMD.LogTableName = "A" & p_sTableNameTestata
                    Else
                        oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tNO
                    End If
                    oUserObjectMD.Code = p_sUDOCode
                    oUserObjectMD.Name = p_sUDOName
                    oUserObjectMD.ObjectType = p_enObjType
                    oUserObjectMD.TableName = p_sTableNameTestata
                    If oUserObjectMD.Add() <> 0 Then
                        Dim ErrMsg As String
                        Dim ErrCode As Long
                        sboCompany.GetLastError(ErrCode, ErrMsg)
                        CSetupError.AddError(CSetupError.enErrorType.enError_CreazioneUDO, "Errore creazione UDO Data - " & p_sUDOName & " Tabella " & p_sTableNameTestata, ErrMsg)
                        G_SboApp.SetStatusBarMessage("Errore creazione UDO Data - " & p_sUDOName & " Tabella " & p_sTableNameTestata & " - " & ErrMsg, SAPbouiCOM.BoMessageTime.bmt_Medium, True)
                        'MsgBox("Error adding UDO Data" & vbCrLf & ErrMsg)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserObjectMD)
                        oUserObjectMD = Nothing
                        Return False
                    End If
                End If
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserObjectMD)
                oUserObjectMD = Nothing
                Return True
            Catch ex As Exception
                CSetupError.AddError(CSetupError.enErrorType.enError_CreazioneUDO, "Errore creazione UDO Data - " & p_sUDOName & " Tabella " & p_sTableNameTestata, ex.Message)
                ShowError(ex)
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserObjectMD)
                oUserObjectMD = Nothing
                Return False
            End Try
        End Function
    Andrea

  • How to Update UDO through DI API code

    Hello,
    I have created UDO through DI API successfully, now I want to update the UDO through DI API code, and want to add some more child tables, but I am unable to do that, its showing me message that UDO successfully updated but when I am checking through B1, I can see that newly created child tables are not ticked in the check boxes. I am pasting my code, Please some one tell me how to fix this problem.
    Private Sub AddUDO()
    Dim oUserObjectMD As SAPbobsCOM.UserObjectsMD
    oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
    oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tNO
    oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
    oUserObjectMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.ChildTables.TableName = "DC3_N"
    oUserObjectMD.ChildTables.Add()
    oUserObjectMD.ChildTables.TableName = "DC4_N"
    oUserObjectMD.Code = "UDO_CHECK_N"
    oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES
    oUserObjectMD.Name = "UDO_CHECK_N"
    oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_Document
    oUserObjectMD.TableName = "DMT_N"
    oUserObjectMD.GetByKey("UDO_CHECK_N")
    lRetCode = oUserObjectMD.Update()
    If lRetCode <> 0 Then
    If lRetCode = -1 Then
    'chkUDOAfter.SetItemChecked(12, True)
    Else
    oCompany.GetLastError(lRetCode, sErrMsg)
    MsgBox(sErrMsg)
    End If
    Else
    MsgBox("UDO: " & oUserObjectMD.Name & " was updated successfully")
    'chkUDOAfter.SetItemChecked(14, True)
    End If
    oUserObjectMD = Nothing
    GC.Collect() 'Release the handle to the table
    End Sub
    Regards,
    Sudeshna.

    Hi Ian,
    I have pasted the line "oUserObjectMD.GetByKey("UDO_CHECK_N")" immediately after "oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
    " like below:
    oUserObjectMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
    oUserObjectMD.GetByKey("UDO_CHECK_N")
    but this time it is adding the two new tables in UDO, but some how removing the first Master table from UDO.
    Can you tell me how solve this, or can you provide some working code example regarding this.
    Regards,
    Sudeshna.

  • Cancellation & JV of Excise invoice generated through J1IS

    Dear Friends,
    We have a requirement to cancel the outgoing excise invoice created through the transaction J1IS towards purchase return.
    I believe through J1IS, cancellation of the excise invoice is made possible but no accounting document get posted.  Only the status is being changed from 'Posted' to 'Cancelled'.
    While doing the JV through the Transaction J1IH => Cancell Exc Inv, system is giving error message as follows:
    "Excise modvat accounts not defined for CEIV transaction and  excise group".
    In the customisation, all the relevant GL accounts are found maintained against transaction type CEIV.
    For example at the time of outgoing excise invoice posting through J1IS following accounts hit.
    13113920     CENVAT clearing     8
    13113920     CENVAT clearing     771
    13113920     CENVAT clearing     15
    13113900     CENVAT Payable     - 8
    13113900     CENVAT Payable     - 771
    13113900     CENVAT Payable     - 15
    We would like to have an opposite entry through the transaction code J1IH => Cancellation of Exc Inv.
    Kindly give a suitable solution to make the cancellation.
    Thanks.
    Harikrishnan.

    Hi Hari,
    Do the blw option
    whenever you are trying to cancel the Excise Invoice generated by J1IS/J1IV , Use J1IH-> Cancel Excise Invoice> you have to give the Official Excise invoice no. which is generated by J1IV for cancellation
    and ref the sdn thread with same issue
    How to cancel excise invoice which is created through t.code J1is
    Cancel J1IS Excise Invoice

  • Insert a record into a table through email in an Oracle APEX application

    I developed an Oracle APEX application, there is a table called events. I can insert/update/delete a record in the table through browser. I am thinking in order to quickly do the data entry, user should be able to send an email, then the table should be inserted with values from email address, timestamp, subject and body. Anyd idea how to realize this functionality?
    - Denis

    Start by checking whether your mail server provides any API's for accessing emails , if it does you might be able to reduce a lot of work by using some kind of web service consumer from apex to your mail server. In any case your implementation is going to be dependent on your Mail Server configuration.
    Your problem breaks down to reading/accessing mails from the mail server from PLSQL (apex is driven by PLSQL).
    I found this other thread which could be of some use.
    WAY TO ACCESS A MAIL SERVER FROM ORACLE APEX
    <li>The following package might solve your problem directly(from carsten czarski of the German Apex community)
    [url http://plsqlmailclient.sourceforge.net]http://plsqlmailclient.sourceforge.net
    PS: POP3 support is still TBD.
    <li>I also found this posting in the orafaq forums which lists a java method and PLSQL code bit for it for accessing emails via POP3
    [url http://www.orafaq.com/forum/t/80928/2/]http://www.orafaq.com/forum/t/80928/2/
    If these do not work for you, find some java library to read mail from your server, write a PLSQL wrapper for it and use it in a scheduled job(DBMS_JOB)/a PLSQL block triggered from Apex.
    If you get stuck there, find some utility that can read mails, invoke them from your DB using java,shell scrpt,dbms_scheduler etc and use the utility's function for the rest.
    NOTE: I haven't tried any of these utilities and you must validate any java code before running them on your environment.
    Since aren't really much restrictions(other than spam checks) in sending a mail to your mail account, you might want to consider filtering out the mails from which you create records.

  • Click the button of Message box through code.

    Hi,
    Is there any way to click the Message Box button  through code?
    Is there any way to restrict the MessageBox popup?
    The requirement is, i need to open the SalesOrder form in FindMode,  Since there are other addons which will add some values in the Sales order in the form load event, when i change the form mode to find , SBO will  pop up the Message box with 'OK'  and 'CANCEL' buttons.
    Thanks in advance.

    Hi,
    objForm.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular)
    regards:
    Sandy
    Edited by: Sandeep Saini | Roorkee | India on Oct 12, 2009 5:34 PM

  • Won't let me cancel scheduled recording

    Hello,
    I scheduled a TV show to record by going to the TV listings, selecting the show, and then clicking on "record it." I want to cancel it because it turns out that it's conflicting with 2 other shows I have taping at the same time. So I went to my scheduled recordings and clicked on the "cancel" button but nothing happens. I have tried refreshing the page, going to another page and then coming back, just giving it some time, etc. I've canceled programs plenty of times before without a problem so can anyone tell me why it won't let me cancel this show? (It's not on for several hours so that's not the problem.)
    Thanks!
    -Tracy
    Solved!
    Go to Solution.

    this is happening to me too.  I scheduled a recording through my tv, but i decided that i didn't want it recorded anymore, so when i was on the computer, i tried to cancel the recording and it wouldn't allow me either.  Since verizon went to this new screen, i havent been able to cancel recordings

  • I have a record player hooked up through the audio port.  The input volume is registering high, but there is no output anywhere.  Help?

    I have a record player hooked up to a preamp which is hooked up through the audio port.The sound settings are set to have the audio port be "input".  The input volume is registering high with fluxuations in the sound settings, but there is no output anywhere.  Do I need some sort of third party application or widget to hear the record i'm playing through the speakers that are hooked up to my computer?

    keithstopher,
    You may want to check into a USB interface, as I believe you have a Mac with the single audio port, which can be used as input OR output.
    You may want to check into something like the following, there are may out there, see what fits your needs best.
    http://www.amazon.com/Behringer-UFO202-BEHRINGER-U-PHONO/dp/B002GHBYZ0/ref=pd_cp _MI_2
    Hope this helps

  • How to get multiple records from internal table through BDC

    PERFORM DYNPRO USING:
      'X'  'SAPMM61L'  '0500',
      ' '  'BDC_OKCODE'  '=NEWC',
      'X'  'SAPMM61L'  '0500',
      ' '  'BDC_CURSOR'  'PLPTU-PLWRK(01)',
      ' '  'BDC_OKCODE'  '=TAKE',
      ' '  'PLPTU-PLWRK(01)' '2531'. (2531 is a plant)
    This is the recording used to get plant via BDC of MS31.
    Using this code i can get only single plant...
    If i want to get multiple plants from an internal table,how i can change this code?
    Since it is a recording i cant put this code in LOOP..ENDLOOP.
    Suggest any method for doing this....
    Awaiting for ur reply...

    Hi,
    While recording also record the scroll down button.
    The you can place different plant in the BDC using loop and endloop
    Regards
    Arun

  • Exception while accessing web service through code

    I have a web service developed using AXIS deployed on Weblogic 8.1
    Another web application cotaining GUI deployed on Weblogic 10 tries to access this web service through code.
    This piece of code to invoke the web service is written in Action Class present inside web application. (Struts is used in GUI based web app)
    When the code tries to invoke web service I am getting following error.
    (401)Unauthorized xxx
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
         at org.apache.axis.client.Call.invoke(Call.java:2553)
         at org.apache.axis.client.Call.invoke(Call.java:1753)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.invokeAx(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:243)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.callUCS77_1ProcessOfficialChangeWebService(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:173)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.processAction(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:133)
         at com.ebv.framework.web.action.EBVAction.execute(EBVAction.java:106)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    The web service URL is as follows:
    http://10.140.96.5:7808/services/ucs77_1/ProcessOfficialChangeSave77_1-v0001.soap
    However
    When I try to hit the webservice URL directly on browser login window appears where same username/password I provide which are passed in code to invoke the web service. I get the success page indicating that web service is invoked on hitting enter.
    The method used in UCS77_1ProcessOfficialChangeSaveDetailsAction.java to invoke web service is as follows:
    public String invokeAx
                   String xmlMessage,
                   String webServiceURL,
                   String webServiceOperation,
                   String username,
                   String password)
              String xmlResponse = null;
              Call webServiceCall = null;
              InputStream input = new ByteArrayInputStream(xmlMessage.getBytes());
              Service service = new Service();
              try
                   webServiceCall = (Call) service.createCall();
                   SOAPEnvelope env = new SOAPEnvelope(input);
                   SOAPEnvelope resEnv = null;
                   webServiceCall.setTargetEndpointAddress(new URL(webServiceURL));
                   webServiceCall.setOperationName(new QName(webServiceOperation));
                   webServiceCall.setUsername(username);
                   webServiceCall.setPassword(password);               
                   try
                        resEnv = webServiceCall.invoke(env);
                   catch (AxisFault e)
                        e.printStackTrace();
                        Message responseMessage = webServiceCall.getResponseMessage();
                        SOAPEnvelope soapXml = (SOAPEnvelope) responseMessage.getSOAPEnvelope();
                        xmlResponse = new String(soapXml.toString().getBytes(AppConstants.UTF8),AppConstants.UTF8);     
                   if (xmlResponse == null)
                        xmlResponse = resEnv.toString();
              catch (Exception e1)
                   e1.printStackTrace();
              return xmlResponse;
    Both the weblogic server reside on two different AIX machines.
    Can anybody tell what's the problem while invoking web service through code?

    time to look into the gateway logs as stated by the fault ..
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    looks like the cipher step might have failed

  • Changing the Updatable property of a View Object Attribute through code

    Hi,
    Is there a way to set the "Updatable" property of an attribute in a view object through code ?
    I checked the API docs for the AttributeDef class but there is no method to set this. there is a constant (UPDATEABLE_WHILE_NEW) which gives the current value.
    My requirements in short - I have a ADF editable Table. Based on a flag whether it is SET or NOT, i need to make a particular column such that the inputTextBox on this column must appear for only the new rows inserted into the table. For all the existing rows users should not be allowed to edit values on this column.
    I know this can be controlled with the UPDATABLE property on the attribute in the view object by setting the value as "WHILE  NEW".
    Now i need to control this through code at runtime.
    Please let me know on ow to do this.
    JDev version: 11.1.2.3
    Thanks.

    the method you are looking for is available in the AttributeDefImpl class which you can get from the EntityImpl like
    this.mDefinitionObject.getAttributeDefImpl("YOUR_ATTRIBUTE_NAME").setUpdateableFlag(AttributeDef.UPDATEABLE_WHILE_NEW);
    Timo

  • Creating Business Partner Through Code

    Hi Everyone
    I just wanted to know if any of you knew a way to create a business partner through code.
    If there is a way or a sample that anyone can provide that would greatly
    apreciated.
    What would mandatory fields be? I know CardCode would be one mandatory field but what else would be essential?

    Hi Sebastiano,
    If you only need to read the BP data from the 'source' company then you shouldn't need to log in to it. The RecordSet object should be capable of sending a SQL query that references the other database.
    For example:
    string sSQL = "select * from " + sSourceDatabase +"..OCRD where CardCode = '" + sMyBPCode +"'"
    where sSourceDatabase is the Database ID for the source company and sMyBPCode is the BP you wish to copy.
    Using this you should only need to log in to the company where the BP needs to be created. So the whole process should be something like this:
    1) Connect to second company
    2) Run the query to collect the BP data from the first company
    3) Create an instance of the BP object and use the recordset object to assign the properties
    4) Add the BP
    Hope this makes sense
    Owen
    P.S. The other option is to use XML. See this post:
    Copy items between databases

  • How to filter records in EIS drill through using template SQL

    Hi,
    I'm looking for an option to filter records in EIS drill through using Template SQL.
    For eg: If we user runs drill through on 2011, it should restrict display of Jan & Feb and should display records for other months.
    I tried using NOT IN clause, but got an error.
    Can any one help me in understanding how this needs to be defined in template SQL
    Thanks in advance

    Hi Glenn,
    I'm able to filter the records for specific periods.
    However, I'm facing another problem now.
    When I try to run drill through I get 'OLAP_error (1192025): Unknown Error: Not a valid Entry' error.
    This is happening when I include condition as ((($$ab.ACCOUNT_CODE-COLUMN $$) IN ($$Account-VALUE$$)))
    Here, ACCOUNT_CODE is field from Account dimension table and 'Account' is the name of the dimension.
    If I remove this statement and run drill through, it runs but shows data for all accounts (irrespective of the Account selected)resulting in incorrect data.
    Our RDBMS is Oracle. Can you please help me with this
    Thanks

  • How to append records in a file, through file adapter.

    Hi All,
    How to append records in a file, through file adapter.
    I have to read data from database and need to append all records in a file.
    Thanks in Advance.

    Hi,
    I think you have a while loop to hit the DB in your Process (As you said you have to fetch data from DB 10 times if 1000 rec are there)
    First sopy your DB O/P to one var
    and from second time append to previous data.(Otherwise you can directly use append from starting instead of copy and append)
    When loop completes you can transform to File adapter Var.
    Otherwise you can configure yourFileadapter such that it will aapend current records to previous records.
    You can use 'Append= true' in your file adapter wsdl.
    It will append previous records to current records in the same file.
    Regards
    PavanKumar.M

Maybe you are looking for

  • My iTunes Library has disappeared. Help!

    My entire iTunes library has disappeared. From reading other posts I see that this has been an issue. I'm not sure if it's related to AVG antivirus (but I deleted it anyway) or due to iTunes update. I noticed a week or 2 ago but haven't been back in

  • Firefox won't open...I get the time out window...but Internet Explorer works.

    Firefox is my browser of choice, but it wouldn't open when I went to start up the wireless at home. After 2 days of trying to figure out why, I finally opened up IE...which works. I'm thinking of unintalling & then reinstalling FF...but thought there

  • Volume button not working in Remote

    When using the Remote application, the volume button on the side of the Touch doesn't work. The on-screen volume slider does work but I'd like to be able to use other applications and use the volume button rather than having to go in and use the slid

  • "Deadlock in safepoint code. Should have called back to the VM"

    We experience a VM crash in Safepoint.cpp with the following message: # An unexpected error has been detected by Java Runtime Environment: # Internal Error (safepoint.cpp:558), pid=5452, tid=1900 # Error: Deadlock in safepoint code. Should have calle

  • Still can't use cover flow

    okay, i still can't use cover flow. i got the itunes 7 update, 7.0.1, but it still comes up with "can't browse album covers on this computer." is it just because i use windows 2000, or do i need to change something on my computer?