Make CFL for user defined tables in Crystal Report 8.8 ?

Hi Experts
Use Follwing qry for CFL ( user defined tables) in Crystal Report But its not Show CFL after run the Report in SAP B1 8.8
Period@Select T0.*  from @OICC T0
Thanks & Regards
Dinesh Lade

Hi,
As far as i know, SBO can't figure out in such instance what are you doing, try linking it to an original table.
I usually use OADM for this purpose.
Hope this helps.
Regards,
Daniel

Similar Messages

  • How to popup form according to query by  CFL for user defined tables?

    Hi Experts!
    Please write a simple code for adding CFL in UDO and popup the window according to query. suppose i want to execute query
    "select code,name from [@WITM]". I want to add CFL in edittext which is on UDO. how can we add CFL in that Edittext by code.
    Thanking You
    vishwajit kumar

    Hi Vishwajit,
    Please response to your previous posting or close it first. Whatever the answer working or not, you need reply.
    Thanks,
    Gordon

  • DI Sever for User Defined Table

    Hai Guys,
      I am using B1WS web service. I want to post values to User Defined Table (EX: @TableName)  using web services,is there any services for User Defined Table in Web Services
    please give me a solution for this..

    Hello madhu,
    B1WS is unable to access UDT. But DI Server can access UDT with RecordSet
    SOAP Request Message:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
      <SessionID>4FFCFAA3-5493-456A-BC89-410B35AF096C</SessionID>
    </env:Header>
    <env:Body>
      <dis:ExecuteSQL xmlns:dis="http://www.sap.com/SBO/DIS">
       <DoQuery>SELECT OCRD.CardCode, OCRD.CardName, OCPR.Name FROM OCRD
    JOIN OCPR ON OCRD.CardCode = OCPR.CardCode
    WHERE OCRD.CardCode IN (SELECT DISTINCT ORDN.CardCode FROM ORDN)</DoQuery>
      </dis:ExecuteSQL>
    </env:Body>
    </env:Envelope>
    SOAP Response Message:
    <?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    <env:Body><ExecuteSQLResponse xmlns="http://www.sap.com/SBO/DIS"><BOM><BO><AdmInfo><Object>oRecordset</Object></AdmInfo>
    <OCRD><row><CardCode>C002</CardCode><CardName>SAP</CardName><Name>2</Name></row><row><CardCode>C002</CardCode>
    <CardName>SAP</CardName><Name>l</Name></row><row><CardCode>C002</CardCode><CardName>SAP</CardName><Name>Z</Name>
    </row></OCRD></BO></BOM></ExecuteSQLResponse></env:Body></env:Envelope>
    Kind Regards
    -Yatsea

  • What is the Object Type for User Define table ?

    Dear All Experts,
    I create one of the User Define Table with no. of UDF's
    I already register User Define Table with Unique ID.
    As per my knowledge, Unique ID is our Object type for that User Define Table.
    I want to add Transaction Notification Code for created Used Define Table.
    This Transaction Notification prevents user to must enter name in that form.
    IF (@object_type = 'Z_Roto' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U'))
    BEGIN
    If not Exists (Select T0.DocEntry from [@Z_ROTO] T0 Where ( T0.Name is null  OR  T0.Name = ' ' ) AND T0.Code  = @list_of_cols_val_tab_del )
    begin
    SET @error = 1
    SET @error_message = 'Name is NULL then So, Please enter ZERO Value i.e. 0 in Filed_Name'
    End
    End
    Please help me for this problem.
    Thanks & Regards,
    Nishit Makadia

    Hi All,
    Thanks for your replay.
    Below code is working for User Define Table's Transaction Notification
    IF (@transaction_type = 'A' OR @transaction_type = 'U') AND @object_type = 'Z_Roto'
    BEGIN
    If Exists (Select T0.Code from [@Z_ROTO] T0 Where ( T0.Name is null  OR  T0.Name = ' ' ) AND T0.Code  = @list_of_cols_val_tab_del)
    begin
    select @error = 10
    select @error_message = 'Name is NULL then So, Please enter ZERO Value i.e. 0 in Filed_Name'
    End
    End
    Necessary to Remember 4 Things. That are mentioned below.
    1) Register User Define Table (UDT) with using "Object Registration Wizard". For Example : @object_type = 'Z_Roto'
    2) When you define selection criteria then it must be compulsory for use Code Field. For Example : Select T0.Code from [@Z_Roto]
    3) When you define selection criteria then it must be compulsory for use Code for @list_of_cols_val_tab_del.
    4) Use error code as 10 Number
    Thanks & Regards,
    Nishit Makadia

  • User defined table in XL Reporter

    Hi Everyone,
    Can a user defined table be used in XL Reporter. I know we can add user defined fields to be used in XL Reporter but can we also make use of user defined table to draw data in a XL Reporter report?
    If yes, how can we add them.
    Thank you for your help.
    Regards,
    Payal

    Hi,
    It does not seem that the information can be extracted from User Defined Tables in XL Reporter.
    May be you can have a look at the Landing Page of XLR and check if you can find something relevant :
    [XLR Landing Page|https://websmp106.sap-ag.de/~sapidb/011000358700001172792006E]
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • CFL for user defined object in matrix

    I am creating CFL for city .For this I created a user defined table and later registred it to create the object of City.I created the CFL for City as ,
    Private Sub AddCFL()
            Dim intI As Integer
            Dim objCFLsName As SAPbouiCOM.ChooseFromListCollection
            Dim objParaName As SAPbouiCOM.ChooseFromListCreationParams
            Dim objCFLName As SAPbouiCOM.ChooseFromList
            Dim objCons As SAPbouiCOM.Conditions
            Dim objCon As SAPbouiCOM.Condition
            Try
                objForm = SBO_Application.Forms.ActiveForm
                For intI = 0 To objForm.DataSources.UserDataSources.Count - 1
                    If objForm.DataSources.UserDataSources.Item(intI).UID = "CityName" Then
                        Exit Sub
                    End If
                Next
                objForm.DataSources.UserDataSources.Add("CityName", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
                objCFLsName = objForm.ChooseFromLists
                objParaName = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                objParaName.MultiSelection = False
                objParaName.UniqueID = "CFL"
                objParaName.ObjectType = "City"
                objCFLName = objCFLsName.Add(objParaName)
                objCons = objCFLName.GetConditions
                objCon = objCons.Add
                objCon.Alias = "U_Active"
                objCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                objCon.CondVal = "Y"
                objCFLName.SetConditions(objCons)
            Catch ex As Exception
                SBO_Application.MessageBox("AddCFL()=" & ex.Message)
            End Try
        End Sub
    I want to load city names in matrix using this cfl.For this, I added few blank rows in matrix.Then I binded the matrix as ,
    Private Sub BindMatrix()
            Dim objColumns As SAPbouiCOM.Columns
            Dim objColumn As SAPbouiCOM.Column
            Dim matDetails As SAPbouiCOM.Matrix
            objColumn = objColumns.Item("CityName")
                objColumn.DataBind.SetBound(True, "", "CityName")
                objColumn.ChooseFromListUID = "CFL"
                objColumn.ChooseFromListAlias = "CityName"
                objColumn.Editable = True
    matDetails.LoadFromDataSource()
    End Sub
    Problem is created by ChooseFromListAlias .It gives error as,
    Data Source - Alias Not Found
    If I remove that statement, the cfl fires when I press tab in the matrix.But I can not set value in the matrix.

    I created CFL as,
    Private Sub AddCFL()
            Dim intI As Integer
            Dim objCFLsName As SAPbouiCOM.ChooseFromListCollection
            Dim objParaName As SAPbouiCOM.ChooseFromListCreationParams
            Dim objCFLName As SAPbouiCOM.ChooseFromList
            Dim objCons As SAPbouiCOM.Conditions
            Dim objCon As SAPbouiCOM.Condition
            Try
                objForm = SBO_Application.Forms.ActiveForm
                For intI = 0 To objForm.DataSources.UserDataSources.Count - 1
                    If objForm.DataSources.UserDataSources.Item(intI).UID = "CityName" Then
                        Exit Sub
                    End If
                Next
                objForm.DataSources.UserDataSources.Add("CityName", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
                objCFLsName = objForm.ChooseFromLists
                objParaName = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                objParaName.MultiSelection = False
                objParaName.UniqueID = "CFL"
                objParaName.ObjectType = "City"
                objCFLName = objCFLsName.Add(objParaName)
                objCons = objCFLName.GetConditions
                objCon = objCons.Add
                objCon.Alias = "U_Active"
                objCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                objCon.CondVal = "Y"
                objCFLName.SetConditions(objCons)
            Catch ex As Exception
                SBO_Application.MessageBox("AddCFL()=" & ex.Message)
            End Try
        End Sub
    Private Sub BindMatrix()
            Dim objColumns As SAPbouiCOM.Columns
            Dim objColumn As SAPbouiCOM.Column
            Dim matDetails As SAPbouiCOM.Matrix
            Try
                If SBO_Application.Forms.ActiveForm.UniqueID = "TourDetails" Then
                    matDetails = SBO_Application.Forms.ActiveForm.Items.Item("matDetails").Specific
                Else
                    matDetails = objForm.Items.Item("matDetails").Specific
                End If
                objColumns = matDetails.Columns
                objColumn = objColumns.Item("#")
                objColumn.DataBind.Bind("objDT", "#")
                objColumn.Editable = False
                objColumn = objColumns.Item("CityName")
                'If strPara = "Edit" Then
                objColumn.DataBind.Bind("objDT", "CityName")
                'Else
                '    objColumn.DataBind.SetBound(True, "", "CityName")
                'End If
                objColumn.ChooseFromListUID = "CFL"
                'objColumn.ChooseFromListAlias = "CityName"
                objColumn.Editable = True
                objColumn.Width = 290
                objColumn = objColumns.Item("NoOfVisits")
                objColumn.DataBind.Bind("objDT", "NoOfVisits")
                objColumn.Editable = True
                objColumn = objColumns.Item("FromDate")
                objColumn.DataBind.Bind("objDT", "FromDate")
                objColumn.Editable = True
                objColumn.Width = 80
                objColumn = objColumns.Item("ToDate")
                objColumn.DataBind.Bind("objDT", "ToDate")
                objColumn.Editable = True
                objColumn.Width = 80
                matDetails.LoadFromDataSource()
            Catch ex As Exception
                SBO_Application.MessageBox("BindMatrix()=" & ex.Message)
            End Try
        End Sub
    Edited by: Dilip Kumbhar on Mar 31, 2010 10:02 AM

  • USER DEFINED TABLES IN XL REPORTER

    Hello,
    I have a user defined field based on a user defined table with code and name. I call my user defined field in XL reporter. This field varied with the data that I report. I would like to know how I can add the name of the table in my XL report. We can call additionnal tables, but I don't know how I can write the instruction to do it with a variable field.
    Thanks
    Isabelle LAGUERRE
    Serena
    France

    Isabelle,
    Usere Defined Tables are not supported by the XL Report Writer.  There is not a method to import UTD's at this time.  User Defined Fields (UDF's) are supported.
    Eddy

  • How to Create CFL to user defined table

    Hi all,
    I have a user table with four fields. How to create a CFL for these fields?
    Regards,
    Fabio Ferreira.

    this is sub fn required for registration
    Here i mentioned heder level table and child table
    Fields are mentioned will be displayed on CFL
    If u want assign this CFL to any text field assign normal way but object id is:VEDA_PRN_WR_DOC
    Public Function UDOExists(ByVal code As String) As Boolean
            GC.Collect()
            Dim v_UDOMD As SAPbobsCOM.UserObjectsMD
            Dim v_ReturnCode As Boolean
            v_UDOMD = objMain.objUtilities.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
            v_ReturnCode = v_UDOMD.GetByKey(code)
            System.Runtime.InteropServices.Marshal.ReleaseComObject(v_UDOMD)
            v_UDOMD = Nothing
            Return v_ReturnCode
        End Function
    'Second fn
    Function registerUDO(ByVal UDOCode As String, ByVal UDOName As String, ByVal UDOType As SAPbobsCOM.BoUDOObjType, ByVal findAliasNDescription As String(,), ByVal parentTableName As String, Optional ByVal childTable1 As String = "", Optional ByVal childTable2 As String = "", Optional ByVal childTable3 As String = "", Optional ByVal LogOption As SAPbobsCOM.BoYesNoEnum = SAPbobsCOM.BoYesNoEnum.tNO) As Boolean
            Dim actionSuccess As Boolean = False
            Try
                registerUDO = False
                Dim v_udoMD As SAPbobsCOM.UserObjectsMD
                v_udoMD = objMain.objUtilities.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
                v_udoMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tNO
                v_udoMD.CanClose = SAPbobsCOM.BoYesNoEnum.tNO
                v_udoMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tNO
                v_udoMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
                v_udoMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
                v_udoMD.CanLog = LogOption
                v_udoMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tYES
                v_udoMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES
                v_udoMD.Code = UDOCode
                v_udoMD.Name = UDOName
                v_udoMD.TableName = parentTableName
                If LogOption = SAPbobsCOM.BoYesNoEnum.tYES Then
                    v_udoMD.LogTableName = "A" & parentTableName
                End If
                v_udoMD.ObjectType = UDOType
                For i As Int16 = 0 To findAliasNDescription.GetLength(0) - 1
                    If i > 0 Then v_udoMD.FindColumns.Add()
                    v_udoMD.FindColumns.ColumnAlias = findAliasNDescription(i, 0)
                    v_udoMD.FindColumns.ColumnDescription = findAliasNDescription(i, 1)
                Next
                If childTable1 <> "" Then
                    v_udoMD.ChildTables.TableName = childTable1
                    v_udoMD.ChildTables.Add()
                End If
                If childTable2 <> "" Then
                    v_udoMD.ChildTables.TableName = childTable2
                    v_udoMD.ChildTables.Add()
                End If
                If childTable3 <> "" Then
                    v_udoMD.ChildTables.TableName = childTable3
                    v_udoMD.ChildTables.Add()
                End If
                If v_udoMD.Add() = 0 Then
                    registerUDO = True
                    objMain.objApplication.StatusBar.SetText("Successfully Registered UDO >" & UDOCode & ">" & UDOName & " >" & objMain.objCompany.GetLastErrorDescription, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                Else
                    objMain.objApplication.StatusBar.SetText("Failed to Register UDO >" & UDOCode & ">" & UDOName & " >" & objMain.objCompany.GetLastErrorDescription, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                    registerUDO = False
                End If
                System.Runtime.InteropServices.Marshal.ReleaseComObject(v_udoMD)
                v_udoMD = Nothing
                GC.Collect()
            Catch ex As Exception
            End Try
        End Function
    This is a code for registration of table that will create CFL with mentioned fields.
    Hope help this
    By
    firos.C
    Edited by: firoz101 on Aug 18, 2009 6:07 AM
    Edited by: firoz101 on Aug 18, 2009 6:08 AM
    Edited by: firoz101 on Aug 18, 2009 6:08 AM

  • Using a SQL user-defined function in Crystal Reports XI

    Post Author: JoannKarp
    CA Forum: Formula
    Is it possible to use a user defined function in SQL and use this in multiple Crystal reports?
    JoannKarp

    SELECT COALESCE(ufn_GetAddressByBusinessEntityIDandAddressTypeID(table1.BusinessEntityID,712),ufn_GetAddressByBusinessEntityIDandAddressTypeID(table1.BusinessEntityID,712)) AS Zipcode
      FROM table1
    Nope. This is two function calls. coalesce(a, b, c, ...) is just syntatic sugar for
       CASE WHEN a IS NOT NULL THEN a
            WHEN b IS NOT NULL THEN b
            WHEN c IS NOT NULL THEN c
       END
    But if you use isnull it's a different matter. (But isnull() permits two arguments.)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • User-Defined Table Types - Where is it in SQL Server 2008?

    I am having 2 issues:
    1.  I don't see a folder for 'User-Defined Table Types' under programmability-->Types
    2.  When I execute the following code to create a Type; I get an error 'Incorrect syntax near the keyword 'AS'.'
    USE Locations;
    GO
    /* Create a user-defined table type */
    CREATE TYPE LocationTableType AS TABLE
    ( LocationName VARCHAR(50)
    , CostRate INT );
    GO

    Hi Shayann,
    The  user-defined table type is a new
    feature from SQL Server 2008. If you want to use it you have to upgrade your database to SQL Server 2008 or above.
    In you scenario(SQL Server 2005),as a workaround, you can use the  local temporary table instead. 
    --in SQL Server 2005
    CREATE TABLE tblType(id INT,name VARCHAR(99))
    GO
    CREATE PROC proc1
    AS
    BEGIN
    SELECT * FROM #temp;
    END
    GO
    SELECT * INTO #temp FROM tblType; -- the #temp name is fixed
    INSERT INTO #temp VALUES(1,'Eric');
    EXEC proc1
    --In SQL Server 2008 or above
    CREATE TYPE LocationTableType AS TABLE
    ( id INT,
    name VARCHAR(99) );
    GO
    CREATE PROC proc1 @t LocationTableType READONLY
    AS
    BEGIN
    SELECT * FROM @t
    END
    GO
    DECLARE @t LocationTableType;
    INSERT INTO @t VALUES(1,'Eric');
    EXEC proc1 @t
    I still suggest you upgrade to higher SQL Server.
    If you have any question, feel free to let me know.
    Best regards,
    Eric

  • How to pop-up a text box for a grid item on a user defined table?

    Hello,
    I have a user defined table with a grid & one of the columns is for comments. What I'm trying to do is to pop up a text box when double clicking in the column field. This would be the same as the Item Details column in the Sales Order ittems grid.
    Thanks,
    Ron

    Please post your question on SDK forum.  Only SDK could meet your need.
    Thanks,
    Gordon

  • Crystal Report Templates for User-Defined Objects

    Hello Experts,
    I am running SAP B1 8.8 PL11. In the current patch SAP has default Crystal Reports that can be used as Layouts for Invoices, Credit Memo's so on. Is it possbile to have layouts for user defined objects ( say for instance i have a customized form under sales module, can i import a crystal template for this customized form?). In the report layout manager i don't see an option to import user-defind objects.
    Any help would be appreciated.
    Thanks,
    Praneeth

    If this is still a problem please re-post to the SAP Integration Kit forum.

  • Help needed for data updation in User Defined Tables

    Hello Experts,
    I am developing one add-on in SAP B1 8.8 to input data in a User Defined Table described as under
    Table Name
    DriverMst UDT Type is No Object
    Description
    Stores the Driver master data which are used to get reference in Sale Delivery Form and Driver data management activity
    User defined fields
    Data Name
    Data source
    Size
    Pane Level
    Description
    Driver Code
    Code
    Alphanumeric
    0
    No object table fixed field
    System Name
    Name
    Alphanumeric
    30
    0
    No object table fixed field
    Full Name
    FullName
    Text
    50
    0
    Father Name
    FatherName
    Text
    50
    0
    Birth Date
    BirthDate
    Date
    0
    Phone Number
    PhoneNo
    Alphanumeric
    50
    0
    Mobile No
    MobileNo
    Alphanumeric
    13
    0
    I have created one form using screen painter displaying text boxes and bind them to the table.
    This form is working absolutely fine when there are some data in table (i.e. Browse using navigation)
    My problem is, when I click add button from tool bar the "OK" button turn to "Add" that means the form is set to Add mode, but when I click "Add" button after entering some data nothing happens and input data is not stored in Table. The same "OK" Button turned to "Update" when I do changes in loaded data, but my changes are not reflected to table after I click "Update".

    Thanks Nagarajan,
    None.
    There is no such query. The table fields is directly linked to Edit Box or Combo Box in form.
    From the examples I learned that I have to do something like this to get my table updated
    Dim oUsrTbl As SAPbobsCOM.UserTable
    Dim Res As Integer
    oUsrTbl = oCompany.UserTables.Item("DRIVERMST")
    oUsrTbl.Code = oBPC.Value 'Item Specific of Driver Code Edit Box
    oUsrTbl.Name = Left(oBPN.Value, 30) 'Item Specific of Name Edit Box
    oUsrTbl.UserFields.Fields.Item("U_FullName").Value = oMFN.Value
    oUsrTbl.UserFields.Fields.Item("U_FatherName").Value = oFTHN.Value
    oUsrTbl.UserFields.Fields.Item("U_BirthDate").Value = oDOB.Value
    oUsrTbl.UserFields.Fields.Item("U_PhoneNo").Value = oPHN.Value
    (Similar For rest ofthe fields)
    Res = oUsrTbl.Add()
    Just let me know that is this necessary to do like above.. To be frank there are few more fields and matrices on the form which I didn't mentioned. I am just trying to get recovered from first step to proceed further.
    Regards

  • Use SP Transaction Notification for trigger on user defined table

    Hi i need some help. I have a user defined table in sap (@LAU_ACCT) .
    I need way to catch the event on the table (update , delete , add).
    I heard about SP Transaction Notification , but how use it with udt ?
    Thanks!

    Hi Pavel,
    it is only possible if the UDT is registered as part of an object ( UDO ) - further info http://scn.sap.com/thread/3277846 . So for pure UDT actions you have to find another way ( SQL trigger, UI API, periodic query ).
    regards,
    Maik

  • Print Layout to User Defined Table

    Hello guyz..
    I want a make preprinted for my user query from user defined table where the header information is from another query.
    I guess, the base template User Report (system) can only show the repetitve data from one query but the header area is not,
    could you help, showing the header information from another query ??
    Thanks Regards

    Ria
    The word is that you cannot use the PLD with user defined tables (i wish it was possible).  So in any case to do that you have to use third party tools such as Crystal Reports and Reporting Services

Maybe you are looking for

  • Separate business and personal contacts/calendar on Exchange enabled phone?

    I'm a new iPhone user (3gsi) with Exchange support enabled. What I would like to do is manage my business and personal contacts and calendar separately with work items syncing with Exchange and personal items with something else (like Google Calendar

  • Validation of BP Custome Data

    Hi, My requirement is to make the 'Alternative payer in document' check ticked by default on creation of Business partner . I have created a FM and added in view 'CVIC08'. Can anyone tell me how to proceed further to get my rquirement. If I need to u

  • How can I register an iphone that someone else bought?

    My coworker has purchased two iPhone 5s via the store.apple.com and therefore with his Apple ID.  One for him and one for me.  (He is traveling at the moment and therefore unavailable, so this may have to wait before I can resolve this.) When I go to

  • Problem with Rebate Agreement Sales Volume

    Hi, I executed the rebate recalculation via SDBONT06 for a total of 93 agreements on 04.08.2014 and therefore the sales volume was updated and there was no message in VBO3 as well. But today when i am checking the agreements all of them are showing m

  • A question about the month long ship date on preorders.

    I realize they received a ton of preorders, but it still doesn't make sense that people I know are able to walk into an AT&T store and get one within a day or two (one waited for 3 hours, and they reserved one of a new shipment the following day and