Create User-defined field for Marketing Documents
I need to create a User-Defined field for Marketing Documents under Title and Rows.
I need to do it via .NET instead of manually go into SAP to create it.
Does anyone can give me idea on how to do this?
Hi David,
There are examples of how to do this in the SDK samples (look for MetaDataOperations project in the DI samples).
There are also examples in the SDK help. Here's one:
Private Sub AddUserField()
'// The UserFieldsMD represents a meta-data object that allows you
'// to addremove fields from tables or change the fields' characteristics
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
'// In any meta-data operation there should be no other object "alive"
'// but the meta-data object, otherwise the operation will fail.
'// This restriction is intended to prevent a collisions.
'// The meta-data object needs to be initialized with a
'// regular UserFields object
Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
'// When adding user tables or fields to the SAP Business One database
'// use a prefix identifying your partner name space
'// this will prevent collisions between the various partners add-ons
'// SAP's name space prefix is "BE_"
'// Set the Fields' mandatory properties
oUserFieldsMD.TableName = "OCRD" '// BP table
oUserFieldsMD.Name = "BE_UserField1"
oUserFieldsMD.Description = "A user field"
oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
oUserFieldsMD.EditSize = 20
'// Add the field to the table
oUserFieldsMD.Add
End Sub
Kind Regards,
Owen
Similar Messages
-
User defined field in marketing documents
Hi All,
How to add user defined field in marketing documents using Programtically.
Thanks,
P.Suresh Kumar.Private Sub AddUserField()
'// The UserFieldsMD represents a meta-data object that allows you
'// to add\remove fields from tables or change the fields' characteristics
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
'// In any meta-data operation there should be no other object "alive"
'// but the meta-data object, otherwise the operation will fail.
'// This restriction is intended to prevent a collisions.
'// The meta-data object needs to be initialized with a
'// regular UserFields object
Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
'// When adding user tables or fields to the SAP Business One database
'// use a prefix identifying your partner name space
'// this will prevent collisions between the various partners add-ons
'// SAP's name space prefix is "BE_"
'// Set the Fields' mandatory properties
oUserFieldsMD.TableName = "OCRD" '// BP table
oUserFieldsMD.Name = "BE_UserField1"
oUserFieldsMD.Description = "A user field"
oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
oUserFieldsMD.EditSize = 20
'// Add the field to the table
oUserFieldsMD.Add
End Sub -
User defined fields for the Trading partner agreements
Hi,
Do we have any provision to create custom/user defined fields for the Trading partner agreements ?Hello,
It would be great if you can provide complete details of your use case. I can suggest the possible way of implementation only after understanding your requirement.
Regards,
Anuj -
Hi,
Std SAP provides the following user-defined fields for WBS.
4 numeric fields
4 general fields
2 date fields
2 check boxes
We would like to use as many as 20 numeric user-defined fields for wbs.
Is there a way to do this?
Thanks in advance.
Manoharhi,
It is not possible with user defined fields. You can achieve this using SPRO menu path Project System ->Structures->Work Breakdown Structure->Enhancement for Project Definition WBS lements -> Create customer specific fields in WBS.
You have to use enhancement CNEX0007 to create the required fields.
You will, ofcourse, need the help of an ABAPer to do this.
Muraleedharan.R -
Not able to create user defined field
hi experts
i am not able to create a user defined field through, 'user defined field management ' window,
when i am selecting this window SAP B1 is hanging ,later i need to close the application .what should be the problem ,
please help me to solve this issue
thanks in advance
ajithhi
thanks for reply
following is the my sap b1 version and PL
SAP Business One 2007 B (8.60.035) SP: 00 PL: 08 2007B_CORE_080709_0214
yes i created user defined fields in employee master records
kind regards
ajith -
How to create user defined metrics for SQL Server target?
The customer is not able to create a user defined metrics for SQL Server target.
This is very important for him to use this product.
He is asking how to create user defined metrics?
I sent him Note 304952.1 How to Create a User-Defined SQL Metric in EM 10g Grid Control
But it would work for an Oracle DB, but his target is SQL Server DB
Not able to find the "User-Defined Metrics" link from Database home page.
How to create user defined metrics for SQL Server target?http://download-uk.oracle.com/docs/cd/B14099_19/manage.1012/b16241/Monitoring.htm
-
Creating User Defined Fields via DI API
Hello,
Has anyone tried creating User Defined Fields via DI without direct database intervention ? My add on relies on some UDF's that have to be created on install.
Thank youI regularly use the UI API to do this. You can find several discussions on this forum. I have not put this in my installation program, but I use UserFieldsMD in the DI API and a CSV file from Excel to store the information about the fields.
-
Can i create user-defined fields that are checkboxes?
I need to create a set of user defined fields on Activities that are a checkboxes. I cant see any options in the manage user fields dialog to set the field as a checkbox, the only options are alphanumeric, Datetime, Units & Totals etc.
Can user defined fields be added that appear as checkboxes? if so, how do i do it?What you need will not be available by UDF. You need SDK programming for any Check Boxes. However, you may use predefined list for UDF to imitate part of functions of the check box.
Thanks,
Gordon -
Problem creating user-defined metric for Database
I am logged in to EM/Grid Control as SYSMAN, any user with superadmin privileges or a 'normal' user with operator/full privileges for my database target. When I go to set up user-defined metrics for the target db I get the following warning "You will only be able to view User Defined metrics because you do not have Operator Privileges on host <db target name>". The Create button is disabled.
Can anyone offer any advise on where to identify the privilege problem?
ThanksWell I did it with a host UDM calling a local script (which will be installed on shared drives for the development/test and production systems).
The local script cats the /var/opt/oracle/oratab file eliminating lines beginning with # or $ then takes the second argument of each line and loops through all entries using a checkit procedure. The checkit procedure determines if the appropriate log directores exist for the oracle home and does a find on the diretory looking for alert*.log and *.trc. If there are any then global variables get updated with the count and directory name.
There is an if statement before exit that checks of the count of files is greater than zero and write an appropriate em_result and em_message depending on the results.
I then created the UDM in EM to call this script and check for critical/warning thresholds.
Regards
Tim -
Hi,
I have to create a new field for cost centre KS01 transaction. In the documentation of exit EXIT_SAPLKMA1_001 it is mentioned that we have to create the new field in CSKS_CI structure. After this, the new field has to be added in the screen.
This exit is used by program SAPLKMA1 in 2 screens 0399 and 3999. But, these screens are not used anywhere (I checked from the where-used list). In these 2 screens, there is a call customer-subscreen line. If i want to create this subscreen it asks for access key.
Is there any way that i can create a subscreen and attach it to the standard transaction. Please suggest if there is any other ways to do the same.
Regards,
NikhilSee the documentation once properly,user-exits are provided for adding additional functionality with out using any Access Keys...
If the additional fields are to be visible on the screen, the include ZXKM1U01 must at least include a field transport from the structure transferred in the interface, to the structure used on the screen.
If you have placed fields of structure CSKS_CI on the screen, you should add the following line to include ZXKM1U01:
MOVE-CORRESPONDING USER_CSKS_CI TO CSKS_CI.
Further examples of coding can be found in include LXKM1F01 -
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 for PM order operation
I want to restrict the users from changing the object (Key word for User defiened fields) in the Enhancement tab of PM order Operations.
I have created one object (TCode OPEC) by configuring the required fields. Created one authorisation object by considering SLWID (Key word for User defiened fields) and activity type fields and assigned the same to the Object in the authorisation object field. Activity type values restricted to display only.
I have checked the user exit IWO10018 for the same but while changing the Key word for User defiened fields, it is not hitting the same user exit (i checked by debugging)
Still Key word field is getting changed without checking any authorisation. Can anybody give the solution for the same.hi ramesh
i think you can assign the screen and tranaction variants in the SHD0 T code itself,selet the standard variant tab ,in that select variant groups in that you can assign to the user
regards
thyagarajan -
I am currently using OIM 11.1.1.3.0
I have created several UDFs via the 'User Configuration' tool in the advanced console. I can see these UDFs whenever I create a user, but afterwards, when I select the user to edit their information with the Xelsysadm account, none of them are present (despite them being visible). These fields are important, as two of them are related to their date of birth, and the third is prepopulated from information located on the form. Am I going about creating these UDFs the wrong way? Why can't I see them after creating them?
Also, you cannot make a UDF required unless all users have information within that field? Is there a quicker way to load a default value, other than visiting them one at a time.
Edited by: 806409 on Jun 20, 2011 6:25 AMYou can use weblogicExportMetadata.sh located under <OIMHOME>/server/bin.
Before executing the command you need to set the values in weblogic.properties located in same path.
Follow these links for more details
http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/utils.htm
http://icam.securegov.org/wiki/Wiki.jsp?page=Oim_authorization_notes -
B1 create User Defined Field as nvarchar(max) in SQL 2005 database
Hi everyone,
I just created a UDF in B1 as alphanumeric(12), and noticed that B1 created a field in SQL 2005 as nvarchar(max) instead of nvarchar(12). I tested with both 2005A SP01 patch 14 and patch 20. It always creates UDF as nvarchar(max). Is this a bug? It will cause db file use more disk space and also reduce the query performance. Also, B1 won't create the index on the UDF even if you select the option.
Thanks for help,
DavidHi David,
I was running on patch 19 when I wrote my earlier posts. I'm now running patch 20 without any issues. I also have a range of clients who are running SBO 2005A SP1 on various patch levels above 10 (though not all are on SQL 2005) and I've yet to come across this issue.
Did you log this with SAP Support? Have they come up with any suggestions?
Maybe this will work:
1) Start SBO. When you get to the login screen, click on Choose Company.
2) Change the Current Server field from SQL 2005 to SQL 2000. Reenter your server settings if prompted
3) Login as normal and try and create your field.
4) Log out and go back in to change back to SQL 2005
Kind Regards,
Owen -
Create user defined field categories programatically
i have an addin that creates multiple UDF's that are then managed/validated on the main form and i would like to prevent the user from amending the UDFs from within the UDF pane so that my validation is always used.
What I would like to do is to create a UDF category from within the addin and assign my UDFs to that category so that they are not shown by default.
I cannot see that this is possible, does anyone know if it is?Gordon,
The functionality via code is not currently available in looking at the UserFieldsMD and UserTablesMD objects offered. If you need to keep users out of this area, you can use Authorizations to block users, but of course if they need to create other tables or user fields outside of your add-on ... that could cause a problem.
Apologies,
Eddy
Maybe you are looking for
-
Failed to set the EventLog source
Hi all, I have encountered the following problem. During installation DS 5.2 on Windows 2000 I got message from installer: "Failed to set the EventLog source", but installaion continued. It looks that DS is installed, but I cannot start slapd and I c
-
Macbook Pro freezes when I connect to my TV using mini display to VGA
Everytime I connect my MBP (2012) to my TV it freezes after a few seconds. I have used this set up for a good few months with no problems but it's just happened all of a sudden. Restarting in any order with TV on and off has not fixed the problem. Al
-
I just purchased an ipad. When I plug it in to my computer it won't show under devices in itunes. I already have itunes set up for my ipod touch. I just want to share the music etc thats already there with both devices. How do I get my computer to re
-
Is there a way to get music from an iPod to a computer?
Most of my music is on my home computer, and everything is fine. I bought a laptop, and installed the software on it, as well. I went to see a relative, and she put a bunch of songs on my iPod from her computer. That is all fine, and dandy, but they
-
Reader X tools are in 'Extended'?
Hi, In Adobe Reader 10.0, 3rd party tool bars are shown in 'Tools' (right-top side) category. But in 10.1, it has been changed to 'Extended' (right-top side). This is very confusing to the customers because of inconsistency of the location. Is there