Skip to Content
author's profile photo Former Member
Former Member

Filter Business Partner CFL on Reconcilation Form

I create a udf of name UserName on Business Partner (OCRD)

I want to filter the Business Partner CFL by login userwise on BP Internal Reconcilation form

but its give error:

Xml 'Conditions' parsing failed [66000-116]. Invalid alias 'U_UserName' for table 'OACT'

I write code as follows:

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
            If pVal.FormType = 120060803 And pVal.ItemUID = "120000008" Then
                If pVal.Before_Action = True Then
                    Try
                        Dim strFormUID As String
                        strFormUID = pVal.FormType
                        BubbleEvent = False
                        oForm = oApplication.Forms.GetForm(strFormUID, 1)
                        Dim oCons As SAPbouiCOM.Conditions
                        Dim oCFL As SAPbouiCOM.ChooseFromList

                        ''oCFL = oCFLs.Add(oCFLCreationParams)
                        oCFL = oForm.ChooseFromLists.Item("2")
                        Dim strLoginUser As String
                        strLoginUser = oCompany.UserName
                        oCons = oCFL.GetConditions()
                        ''Add the condition
                        If 0 = oCons.Count Then
                            Dim oCon As SAPbouiCOM.Condition
                            oCon = oCons.Add()
                            oCon.Alias = "U_UserName"
                            oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                            oCon.CondVal = strLoginUser
                            ''Set condition here instead of the system conditions
                            oCFL.SetConditions(oCons)
                        End If
                        BubbleEvent = True
                    Catch ex As Exception
                        oApplication.SetStatusBarMessage(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, True)
                    End Try
                End If
            End If
        End If

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 11, 2010 at 10:01 PM

    Your UDF U_UserName is available to OCRD only. It is not available on Reconciliation Form.

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 12, 2010 at 09:00 AM

    Hi Gordon Du,

    Thanks for replay.

    My requirement is filter the business partner by login username for that created udf UserName on OCRD and for every business partner enter user name in udf.

    Now when we open reconcilation form tab on business partner, the cfl should fill name of business partner those udf UserName having login user.

    Ex. if i login by manager and for business partner code CA0001 and CA0002 having udf UserName='manager' then on reconcilation form open cfl fill only CA0001 and CA0002

    Thanks & regards,

    Mahesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2012 at 09:51 AM

    Hi Experts

    Im having the same problem i want to filter the Bp master cfl on journal entry when pressed ctrl + tab

    im also getting the error as

    Xml 'Conditions' parsing failed [66000-116]. Invalid alias 'U_UserName' for table 'OACT'

    Thanks

    Shafi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.