User Defined Fields & Tables Problem
After the upgrade to B1 2007 and converting our database to 2005 compatibility as per the upgrade directions, were having some weird issues with our user defined fields and tables.
Our user defined fields that used to be alpha-numeric when set up in B1 are now in the database as nvarchar(MAX), even after updating the fields in the Manage User Defined Fields screen. B1 is obviously not setting the right field information as per its interface.
Were can no longer add records to user defined tables through the B1 interface, though we can add them fine through SQL Server or an ODBC interface. The error we are getting is
[Microsoft][SQL Native Client][SQL Server]Conversion failed when converting the nvarchar value '-3 @PASSWORDS' to data type int. (CINF)
. I dont understand where this problem is coming from because there isnt even a data field that is an integer, so I dont know what its trying to convert.
Derek,
I would suggest you post this question to SAP Support by creating a message. Also search for any notes on this from https://websmp201.sap-ag.de/notes
Suda
Similar Messages
-
User defined field insertion problem in Stock Taking Report (PLD)
We are creating one PLD for one of our customer for Stock Taking Report by modifying the existing sytem report. We will insert two user defined fields (Rack & Bin) from OITW table and link these with the warehouse code field which is at report header as there are different warehouse for the item and material is kept in different rank and bin in different warehouse. But after inserting these fields we found that repetative area becomes blank in the report.
So please let us know how to overcome this problem.
Thanks & with regards.
Aloke
Edited by: ALOKE BANDYOPADHYAY on Sep 4, 2010 4:42 PMHi Aloke,
This PLD is one of the hard coded PLD. You are not able to add UDF freely. I believe you may only add UDF from OITM table. Try you own report instead.
Thanks,
Gordon -
Linking a User Defined Field in Items table
How to Link a User Defined Field in 'Item Master Data' table, to my own User Defined Table?
Example:
In Item Master Data table, I want to add 3 User Defined Fields, for e.g, Country, State and Region.
When the value of Country combo is changed, values loaded in State and Region combos should change automatically.
I'm storing the relationship between Country,State and Region in my own user defined table. I want to load the comboboxes with a query from that table.
Or, if there's no solution to the above problem:
when the Item Master data table is opened, can we launch our own form?
Is there a way to specify that?
Please reply me back.. I'm a beginner learning SAP.
With Thanks in advance,
Geetha
Key: Loading a user defined field through Query defined by us.Geetha,
You should search this forum on user defined fields as you will find many posts that may assist you with your question.
HTH,
Eddy -
User Defined Field Print Layout Designer print problem
I am having a problem with a user defined field in the Business Partner - Addresses table. The user defined field is a "directions" text field that is intended to print on packing slips generated from the sales order. When I use the PLD to add the UDF in the header or in the table, all data lines in the body of the report repeat.
Please advise if others are seeing this and what work around or SAP plans exist to resolve.
Glen Kinney
Corrpac
[email protected]Hi Glen,
I am facing the same problem.
I need to add UDFs in Business Partners - Addresses at row level. The field will be used for some Taxation Nos. like CST, LST, VAT. I have tried to add. the fields are added and data saved too.
But when I am going to PLD of Invoice and tried to get, the Business Partners - Addresses Table not showing in the list.
Shell I have your help to resolve this.
Thanks a lot.
With Warm Regards,
Chintesh Soni
India -
User defined field with Linked Table property
Hi All,
I know this has been posted several times but I cannot get this to work. I am trying to add a user defined field and link it to a table.
I am getting the error "The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values "
Everything I check says that the code I am using is correct. Is it possible the problem is that I am trying to connect to an SAP table instead of a user defined table. Is it possible to link a user defined field to an SAP table?
My code below:
oUserFieldsMD.TableName = "OITM"
oUserFieldsMD.Name = "SHP"
oUserFieldsMD.Description = "Must ship via"
oUserFieldsMD.LinkedTable = "OSHP"
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
oUserFieldsMD.SubType = SAPbobsCOM.BoFldSubTypes.st_None
oUserFieldsMD.EditSize = 8
oUserFieldsMD.Size = 8
oUserFieldsMD.Mandatory = SAPbobsCOM.BoYesNoEnum.tNO
Thanks
KarenHello Karen,
you cannot link a userfield to a system table. it has to be link to a user table.
oUserFieldsMD.LinkedTable = "OSHP"
when you have error, just try to do it using the same value in the application. If you cannot do it, it means you cannot do it neither with the DI
Sebastien -
User-defined field in existing table
Hello,
I would like to know if it is possible to add a user-defined field in an existing table.
Actually, I would like to add a combobox with other types of partners than vendors, customers and leads and add a user-defined field in the OCRD table.
Thank you
Regards,
ThibaultHello,
Your answers help me a lot !
My code is working, i.e. when I create a new BP and choose another type in my comboBox, the information is saved.
When I search a BP who has this type, SAP find the good BP.
But, I don't see where the data is stored, I don't see anything which make the difference between 2 BP with 2 different types in the OCRD table.
So, where SAP can make the difference?
Thank you
Regards,
Thibault
Message was edited by: Thibault Romieu -
User Table Key set up in User defined field management
Dear Expert,
what is use of User Table Key set up in User defined field management in SAP B1.
Thanks.
Sridharan.R
Edited by: Sridharan.R on Oct 4, 2011 8:26 AMHi,
Once a UDF is created and a value is entered in it, the same cannot be retrieved in any of the layouts and reports unless a Key is generated for that UDF. By assigning a Key to that UDF, the same UDF can be used in Crystal Reports or any other Reporting tool to extract its values from SAP. These reporting tools searches the Uniqueness of the UDF Values with this Keys only.
For eg.: When you develop a report and select a table from which you need the fields to be shown in the layout. In that, the only fields whose keys are generated are only available to use in the report.
Hope its clear to you.
Regards,
Papil -
User defined field that looks up a system table?
I want to create a user defined field that looks up parts in the items table (i.e. OITM).
I know I can use a formatted search and that works, but I don't want users to be able to edit the field after the item has been looked up and pasted into the field.
In the user defined field menu, there doesn't seem to be a solution to this. The only solution I can think of is to create a user defined table and then move over the items, and then periodically have the table be updated from the master item table (OITM).
Thoughts?Here is the stored procedure I wrote, but it doesn't seem to work:
IF @transaction_type IN ('A', 'U') AND @Object_type = '97'
BEGIN
IF NOT EXISTS (SELECT T0.ItemCode, T1.U_Part FROM [dbo].[OITM] T0, [dbo].[OOPR] T1
WHERE T0.ItemCode = T1.U_Part AND T1.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @error = 1, @error_message = 'Testing'
END
END
So basically, I have a UDF called U_Part in the Sales Opportunity form, which will have a formatted search to look up parts, but if a user changes the text to something else (which is possible because it's a basic text field), then this should look up what is in that UDF and check it against the Item Master and give an error if it doesn't exist. However it isn't doing anything.
Any ideas?
Edited by: Gary Rey on Jan 21, 2009 4:56 PM -
Problem Occurs when CFL is added with User defined field
form-672-BOM
item-3-datagrid
U_EmpNo - user defined field column
if i will give following codes under form load event will CFL bound with U_EmpNo
or else plz suggest me with write codes
oForm = SBO_Application.Forms.Item("672")
oItem = oForm.Items.Item("3")
oClmn = oItem.Specific
oClmns = oClmn.Item("U_EmpNo")
oClmns.DataSources.UserDataSources.Add("U_EmpNo", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
MessageBox.Show("Did")
AddChooseFromList()
oClmns.DataBind.SetBound(True, "", "U_EmpNo")
oClmns.ChooseFromListUID = "CFL1"
oClmns.ChooseFromListAlias = "CardCode"hi
-
Problem in creating user defined fields
hi,
i created nearly 25 userdefined fields. after that b1 is not allowing me to created further, I like to know any restriction is there to create or kindly give me the solution to create.
Regards
R.vijaiVijaya,
This kind of bottlenecks are common when using SQL Server 2000 where it has a row size limitation.
Click on the link below and read the thread as it also related to the similar error.
Error in defining the User Defined Fields
Suda -
User Defined Fields/ XML loading problem
hai,
1. i can able to create user defined fields , but i need my fields are in UNIUQE KEY how can i achive through the
VB Code. ?
2. I load a XML form but i cant able to make it as fixed single form, or deactivate the minimize / maximaze button , how can i achive it through the VB Code?
regards
ThiruI don't think you can disable the min max button, but you can just remove them
The following XML create a form that can't be Resize, maybe it can help you.
<?xml version="1.0" encoding="UTF-16"?>
<Application>
<forms>
<action type="add">
<form AutoManaged="0" BorderStyle="6" FormType="60007" ObjectType="-1" SupportedModes="15" appformnumber="" client_height="119" client_width="60" color="0" default_button="" height="121" left="0" mode="1" pane="0" title="Toolbar Like" top="0" type="6" uid="Try" visible="1" width="160">
<datasources>
<dbdatasources>
<action type="add" />
</dbdatasources>
<userdatasources>
<action type="add" />
</userdatasources>
</datasources>
<Menus />
<items>
<action type="add">
<item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="21" left="112" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" top="0" type="100" uid="Line1" visible="1" width="1">
<AutoManagedAttribute />
<specific />
</item>
</action>
</items>
<FormMenu />
<DataBrowser />
</form>
</action>
</forms>
</Application> -
User defined fields in Crystal layout
Hi All,
I want to add user defined field values in crystal layout for Sales order, but its not listed in RDR1 tables there but it's available in SAP query manager view. How can i get that in Crystal reports. please suggest on this.
Regards
SreeYou can then remove the key and the fields in the database will keep their correct definitions rather than varchar(max) which is causing the initial problems.
Adding extra keys may uause performance issues if you leave them there for a large table.
I have also had issues of varchar(max) fields causing database connection issues when running the reports in 8.81 PL07.
Rob -
User defined field in SD and its link to Value field in COPA (??)
Dear All,
We have created one "Z" field i.e. user defined field and its in VBRP Table. This is a quantity field. to update the values in this field we have used an exit in sales and distribution module. Now, by defining this exit values are correctly populated in VPRP table on line item basis.
Requirement here is we need to get this field in COPA, for same i have carried out the quantity field assignment to value field (KE4M).
Even after this configuration profitability segment is not updated.
Regards,
Sayujya
Edited by: sayu on Mar 15, 2010 10:13 AMIn the past I did something similar and had to use function module EXIT_SAPLKEAB_001 in enhancement COPA0002 to populate the field. To use this exit you'll first need to add a user exit id to your valuation strategy (transaction KE4U). The help on the function module is pretty good, but if you run into a problem let me know.
thanks, -
Update user defined fields in MARA using bapi_material_savedata
Hi,
I have this problem:
I am creating materials from a Z table filled by another application (not SAP). I am using the bapi "bapi_material_savedata" to create the materials and it is working fine. But now I need to fill user defined fields in the MARA table from this Z table, and this fields, are not filled after using the bapi.
I am using the bapi tables "extensionin" and "extensioninx".
I have modified the BAPI_TE_MARA structure adding the ZZ fields of the MARA and the BAPI_TE_MARAX structure with the same fields but different data elements. So I have this structures/tables:
BAPI_TE_MARA:
MATERIAL - MATNR
ZZDIM1 - ZZCHDIM1
ZZDIM2 - ZZCHDIM2
ZZDIM3 - ZZCHDIM3
BAPI_TE_MARAX:
MATERIAL - MATNR
ZZDIM1 - BAPIUPDATE
ZZDIM2 - BAPIUPDATE
ZZDIM3 - BAPIUPDATE
MARA:
..(standard fields of the MARA)....
ZZDIM1 - ZZCHDIM1
ZZDIM2 - ZZCHDIM2
ZZDIM3 - ZZCHDIM3
Here is the code that i'm using to update the extensionin and extensioninx tables:
DATA x_bapi_te_mara TYPE bapi_te_mara.
DATA x_bapi_te_marax TYPE bapi_te_marax.
it_extensionin-structure = 'BAPI_TE_MARA'.
it_extensioninx-structure = 'BAPI_TE_MARAX'.
* the internal table it_material contains the data of the
* ZZ fields
MOVE-CORRESPONDING it_material TO x_bapi_te_mara.
x_bapi_te_mara-material = it_material-matnr.
x_bapi_te_marax-material = it_material-matnr.
x_bapi_te_marax-zzdim1 = 'X'.
x_bapi_te_marax-zzdim2 = 'X'.
x_bapi_te_marax-zzdim3 = 'X'.
it_extensionin-valuepart1 = x_bapi_te_mara.
APPEND it_extensionin.
it_extensioninx-valuepart1 = x_bapi_te_marax.
APPEND it_extensioninx.
Also i have an entry in the table T130F that i'm not sure i need.
Please help me to fill this user defined fields !!
Regards,
JesusI'm using both,
x_bapi_te_mara-material = it_material-matnr.
x_bapi_te_marax-material = it_material-matnr.
The first line is from the x_bapi_te_mara structure and the second for the x_bapi_te_maraX.
Thanks -
Binding a Check Box with a User Defined Field
Hi everyone,
i v created a user defined field (U_CheckPro)in the system table "OITM" with two values: Y for Yes and N for No. In relation to that i v also created a check box on the form "150" and would like to know how can i bind my checkbox with my user defined field properly.
The user would be than able to enable or disable the check box for each item (article). The user setting schould be than be active and valid in sbo-business logic, each time an item is selected. (for example in case of sales order ID 133, "OINV").
Any helfpul hints? Samples would be welcome as well.
Thanks and regards
Alban> First of all you should remove the valid values
> because checkboxes does not work with valid values...
> Just give a default value.
Hi Rasmus,
thank you very much for your helpful hint. I guess my problem is solved by that - nevertheless here is my complete code sequence once again in case of possible errors.
I would appreciate any additional suggestion for improvement of the same.
Thanks and regards
Alban
>>>
Private Sub AddItem()
' Test UserSource
oForm.DataSources.UserDataSources.Add("U_CheckPro", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
oItem = oForm.Items.Item("122")
' Adding a Static Text item
oNewItem = oForm.Items.Add("StaticTxt2", SAPbouiCOM.BoFormItemTypes.it_STATIC)
oNewItem.Left = oItem.Left + 20
oNewItem.Width = 100
oNewItem.Top = oItem.Top + 12
oNewItem.Height = 25
oNewItem.FromPane = oItem.FromPane
oNewItem.ToPane = oItem.ToPane
oNewItem.LinkTo = "CheckBox1"
oStaticText = oNewItem.Specific
oStaticText.Caption = "Test_Caption"
' Adding a Check Box item
oNewItem = oForm.Items.Add("CheckBox1", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
oNewItem.Left = oItem.Left
oNewItem.Width = 20
oNewItem.Top = oItem.Top + 15
oNewItem.Height = 19
oNewItem.FromPane = oItem.FromPane
oNewItem.ToPane = oItem.ToPane
oNewItem.DisplayDesc = False
oCheckBox = oNewItem.Specific
'binding check box to source
oCheckBox.DataBind.SetBound(True, "OITM", "U_CheckPro")
End Sub
>>>
Maybe you are looking for
-
HT4859 how to backup iphone to get all info onto computer when phone wont even turn on
How do I backup my iPhones iCloud over the computer, because i did the new update wrong and it ruined the phone so now it wont turn on and i need to get all of my stuff off of it to save to my computer to transfer to a new phone.
-
installed lion and now I have a locked harddrive and do not have the persmissions, how do I fix this?
-
Broken video after graphic packages update (savage + xorg files)
I have upgraded today and after rebooting right starting with slim the screen is unviewable so to speak, full of artifacts. I have managed to take a screenshot though, to my surprise, the desktop featured looks much cleaner. See, http://i48.tinypic.c
-
IMAP preference won't save password
I am repeatedly asked for the IMAP password. I insert it into preferences and request it to be saved. I also request it to be saved in keychain. The next time I open preferences, the password space is blank and I keep getting asked for the password.
-
Creating default with multiple email accounts
I am a new user. I have an old iphone updated to 2.1. I have multiple email accounts and I want to set one as the default. Does anyone know how to do this? Thanks for your help. May your candidate win (as long as it begins with O)