CFL for UDO problem
Hi all,
I have made one form for operation master.
I try to use this UDO as a CFL in another form call router.
I am trying to add CFL on the Matrix field in the Router form.
CFL is added perfectly. But when I try to press the tab on the Field. I got the following error.
Internal Error(-1003) occured Message [131-183]
I have checked the User define table and UDO length is less than eight character.
Kindly give me the solutions for the same.
Regards,
Gunjan Shukla.
Hi,
There are a couple of reason why you're getting that error, but the most probable is that the CFL conditions are not correctly defined OR the ChooseFromListAlias is pointing to a field that does not exist. (example: You have ChooseFromListAlias = "U_Code" when it should be ChooseFromListAlias = "Code", or vice-versa).
Regards,
Vítor Vieira
Similar Messages
-
Adding CFL for UDO generated form
Hi I have created a form through Udo Form generator. i.e. UDO1(with Master Table=Users and master data rows table=OPDS)
On other form made through screen painter, I want to add cfl for udo generated form(UDO1).
Can anyone help me?You can set the CFL alias like this :
oEditText.ChooseFromListAlias= "COLUMN_ID"
I think this is how it's suppose to be - you set the CFL alias as the column id of the master data table ( whose values you want to be placed in the EditText) . The only problem is that it doesn't work - it won't place the value automatically in the EditText.
To make it work , you have to catch the CFL Event and put the value in the EditText manually. ( this is also covered in the CFL example in the sample files). -
Hello every body
i am newbie in SAP BUSINESS ONE and my question is simple: how can I add choose from list in text field to choose a business partner .I can't find a clear answer please helpppp.hi,
To add choose from list to your form please review the following link :
http://wiki.scn.sap.com/wiki/display/B1/SAP+BusineUsing+Choose+from+List
After added the CFL to your form, do the following in item event:
Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
Dim cfl As SAPbouiCOM.ChooseFromListEvent
Dim dt As SAPbouiCOM.DataTable
cfl = pVal
dt = cfl.SelectedObjects
If Not (dt Is Nothing) Then
Try
objform.DataSources.UserDataSources.Item("UD_2").ValueEx = dt.GetValue("CardName", 0)
Catch ex As Exception
End Try
objform.DataSources.UserDataSources.Item("UD_1").ValueEx = dt.GetValue("CardCode", 0)
End If
Note: If you are using user data source in alies, the above code should work. -
Hello,
please i wants to develop my own CFL for UDO,any suggestion or sample code to get it done.
Thankshi Ankit ,
i have tried the choosefromlist sample but it gives me "Internal Error" when is mapped to my UDO ObjectType.
sample code below
Dim oCFLs As SAPbouiCOM.ChooseFromListCollectio
oCFLs = oForm.ChooseFromLists
Dim oCFL As SAPbouiCOM.ChooseFromList
Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
oCFLCreationParams.MultiSelection = False
oCFLCreationParams.ObjectType = "ER_DED"
oCFLCreationParams.UniqueID = "CFL1"
oCFL = oCFLs.Add(oCFLCreationParams)
binding it to my UserDefinedField below
oEdit.ChooseFromListAlias = "U_szCode" -
Hello everyone,
I have a problem with the launch of the report from a user Form.
I created a layout for my UDO, I created a Form for UDO and I connected the layout to the mask.
The report parameter is a standard SAP token (DocKey@).
When I launch the preview is returned the error "Format of the input string is incorrect." if I insert the parameter in Crystal Report mask that appears after, the printing is working properly.
In the attachment post is said that taking away the value of the ObjectType defined for the form,the report should work; unfortunately this is not a solution because doing it SAP can not handle events, and the mask is no longer possible to navigate between documents.
[View Crystal Report Layout for my UDO Form]
I'm doing something wrong or is it a bug? Do you know any case where there is a workaround?
I work with SAP 8.81 PL04
Thanks,Enrico.hi,
check the JSP file name "Sample.jsp", "s" caps or small.
In portlapp.xml file give same name for <component name="<b>Sample</b>"> and
<property name="com.sap.portal.reserved.layout.TemplateFile" value="<b>sample</b>.jsp"/>. Component name & jsp file name should be same...
Regards,
Senthil K. -
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 -
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 kumarHi Vishwajit,
Please response to your previous posting or close it first. Whatever the answer working or not, you need reply.
Thanks,
Gordon -
I've only had my iphone 5s for a week. I keep getting an error message of "Server has stopped responding." I need the server to work. Does anyone know if there is a "fix" for the problem? Other wise, I probably best return for a refund and get a Samsung. Thanks
sandyzotz wrote:
Other wise, I probably best return for a refund and get a Samsung.
Unlikely. Based on the complete lack of detail of the issue provided it is entirely possible the same issue would occur.
Unless and until the user provides some actual details of the problem, there is nothing the indicate that the issue is with the iPhone. -
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
-
CFL For the edit text using screen painter
Dear All,
I had created CFL for the Edit box to display CardCode
if i press tab button the list for the specified object type is obtained
but the selected value is not binded with the edit box,i have attached the code here,
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent
oCFLEvento = pVal
Dim sCFL_ID As String
sCFL_ID = oCFLEvento.ChooseFromListUID
Dim oForm As SAPbouiCOM.Form
oForm = SBO_Application.Forms.Item(FormUID)
Dim oCFL As SAPbouiCOM.ChooseFromList
oCFL = oForm.ChooseFromLists.Item(sCFL_ID)
If oCFLEvento.BeforeAction = False Then
Dim oDataTable As SAPbouiCOM.DataTable
oDataTable = oCFLEvento.SelectedObjects
Dim val As String
Try
val = oDataTable.GetValue(1, 0)
Catch ex As Exception
End Try
If (pVal.ItemUID = "23") Then
oForm.DataSources.UserDataSources.Item("CardCode").ValueEx = val
End If
End If
End If
Regards,
VijayIs the event generated ? What is the value of your "val" variable ?
-
I've searched to no avail for this problem. Similar posts but none that tell me what to do. I can't add or delete any bookmarks on my iPad 2 running the newest iOS. I know how it's suppose to work, it just isn't working!
It started after the major update to iOS 7.
I can't believe that this is so hard to do. It's just not letting me. I can add a bookmark to the home screen just fine, just not in a bookmarks folder anywhere I try.
I've used Apple products since 2001 and have always loved how intuitive they are. But the Safari browser since iOS 7 has been the worst I've experienced. At least right in the beginning after that update.
I'd really appreciate any help that doesn't just tell me how it's suppose to work...I know that.
My iPad 4 is not affected with the problem and works as it should.To delete, tap "Edit" (tap to enlarge image)
-
Hi,
Can we design report with print layout designer for UDO forms?
If yes, how do we accomplish this?
If not, is there any other alternative?
I am using 2004B. Thanks.I use the iTextSharp project to create PDF's (http://itextsharp.sourceforge.net/)... its free and it works (A little hard to use, but it works). A more simple PDF-project are SharpPDF (http://sharppdf.sourceforge.net/). This is also free and very easy to use, but not that many features.
-
Can someonee please assist me in my Adobe Photoshop CS6 Extended. I keep getting a 'Couldn't Complete Your Request because Dynamic Link is not Available?" Is there a way of getting a software patch for this problem? I thought you didn't need extra software. My software other than that problem works fine.
Couldn't complete what request? Way more information please.
What operating system? -
My 500 GB can't verify nor repair. I have photoshop work that I need to recover. I would like to know what option would be the best solution for this problem?
You appear to have two issues: 1) a hard drive that is not working properly and 2) files you wish to recover.
Re 1) you need to answer Kappy's questions.
Re 2) does the drive load and can you see your photo files? If so can you copy them to another drive?
Do you not have a backup of the photo files? -
I have no service on my iphone 3gs. Is there a fix for this problem.
I have no service or no 3G Network on my iphone 3GS. Is there a fix from Apple for this problem.
Sometimes this happens to me, I know I am old school as well with an iPhone 3g hey what can I say I got a great deal on it. If I do a reboot, hold the power button and home button down for 10 seconds, and then hold the power button down until the apple logo appears it usually fixes this issue.
Maybe you are looking for
-
No information in Shared Calendar but can see in Scheduling Assistant
I have always been able to see a co-worker's calendar under my "Shared Calendars" list (full details). However, now when I select that calendar, nothing appears. But, if I try to schedule a meeting with him, I can see his free/busy information in S
-
Hi all None of my emails which are sent with attachments are stored in my Sent Items mailbox, and therefore I can't search for them or know if I actually sent it or not. Why is this? J
-
Failover cluster File Server role best practices
We recently implemented a Hyper-V Server Core 2012 R2 cluster with the sole purpose to run our server environment. I started with our file servers and decided to create multiple file servers and put them in a cluster for high availability. So now I
-
Defaulting a field to another field?
When a user keys in the Customer field, I would like the Description to default to the same value (and display when the user leaves the Customer field. Using the on blur or on change, code similar to the following does not work: portal30.inventory.de
-
My iTunes force closes when I try to open it, what should I do?
My iTunes force closes when I try to open it, what should I do?