How to remove User Defined field in programitically
Hi,
How to remove user defined field in programitically. send the code
Thanks,
P.Suresh Kumar
Hi,
Please take a look at this thread:
Re: Can't remove a user defined field with DI API.
Kind Regards,
Owen
Similar Messages
-
How to map user-defined fields in XML communication on SRM site
Hi All!
We use the External sourcing scenario and we transfer requirements from ERP in SRM through XI (PurchaseRequestERPSourcingRequest_In)
We should transfer the user-defined fields, but we can not map it in SRM site.
We have enhanced enterprise service in XI, have realized BADI PUR_SE_PRERPSOURCINGRQCO_ASYN on ERP site.
I see the XML message with ours z-fields in tr. SXI_MONITOR (into SRM), but I can not find it in BBP_PDISC.
We try to use BADI BBP_SAPXML1_IN_BADI (there is no method for SC), and BADI /SAPSRM/BD_SOA_MAPPING (z-fields is empty)
Someone can tell how to map user-defined field for SC?
Thanks in advance
Evgeny IlchenkoHello, Julia
We have found solution our problem
We have enhanced standard service in a new enhancement name space and defined own enhancement elements in our namespaces. Then these enhancement elements refered to the SAP standard Enterprise Service.
But In our new interfaces were different XML namespaces
When we have correct an error we could use the next BADI
on ERP site: PUR_SE_PRERPSOURCINGRQCO_ASYN
on SRM site: /SAPSRM/BD_SOA_MAPPING
BR,
Evgeny -
Cannot remove user define fields
Hi,
I am trying to remove a user defined field (U_Prirev) in Table (OHEM) and am getting the following error:
Ref count for this object in higher then 0. Error No -1120
The code is as follows :
Dim sRequete As String
Dim errCode As Long
Dim errMsg As String
Dim IdField As Integer
Dim oUFields As SAPbobsCOM.UserFieldsMD
oUFields = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
Dim oRecordSet As SAPbobsCOM.Recordset
oRecordSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
sRequete = "SELECT FieldID FROM CUFD where TableId = '" & pNomTable & _
"' and AliasID = '" & pNomChamp & "'"
oRecordSet.DoQuery(sRequete)
If (oRecordSet.EoF = False) Then
IdField = CType(oRecordSet.Fields.Item(0).Value, Integer))
If (oUFields.GetByKey(pNomTable, IdField) = True) Then
If (oUFields.Remove() <> 0) Then
oCompany.GetLastError(errCode, errMsg)
Console.WriteLine("Erreur => Code = " & errCode.ToString + " Message = " + errMsg)
End If
End If
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUFields)
oRecordSet = Nothing
End Sub
Anyone knows why i am getting this error.
Thanks
Laurent.Hi Laurent
That error you are getting is the error that you get is when there is more than one instance of meta data object open. You see only one metedata object can be open at a time.....if it's higher than zero it means others are available. I see you have,
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUFields)
oRecordSet = Nothing
this is good and what closes the meta data object. But check that you have done this in previous funtions where you might of added other things.Also your recordset, close it before adding.....move oRecordSet = Nothing to before your Remove of the field. that has be the case for me before. Do it without the recordset as a test and you'll see it works.
Hope it helps -
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 -
Confirmation of User defined fields on CO11N
Dear All,
Can anybody tell me how to confirm user defined field during operation confirmation of an order. I have created a user field key and assigned in the operation detail screen in routing. Is it required to include a freely defined screen for CO11N in customizing or any other setting is there.
Thanks in advance for your valuable inputs.
Regards,
Uday Parchure<b>Define Customer-Specific Detail Areas for Single Screen Entry</b>The following enhancement is available for production orders:
CONFPP07 define detail areas for single screen entry
With this enhancement you can define your own detail areas (screens), which can be issued for single screen entry of time ticket confirmations.
Enhancement CONFPP07 contains the following enhancement components:
Function module exits
EXIT_SAPLCORU_S_100 Transfer data from SAPLCORU_S to customer-defined screen
EXIT_SAPLCORU_S_101 Return data from customer-defined screen to SAPLCORU_S
Display documentation
Screen areas
Screen areas that you can define yourself are available.
Activities
1. Create the enhancement
To do so, create a new project, or use an existing project.
2. Activate the project.
Your enehancement only takes effect after you have activated it.
Further Notes
Enhancememnts, as opposed to modifications, are fundamentally independent of releases since they are not made in the SAP original, but in a name space that is reserved for customers.
you have to create a customer defined screen and attach as in the link. Add the Freely definable detail screen in OPK0. Confirm the user defined fields.
Regards
MSR
Message was edited by:
Soundararajan Murugesan
Message was edited by:
Soundararajan Murugesan -
User Defined fields in F.12
Hi Gurus,
I want to add Material and region for the user defined fields in report F.12
Kindly suggets me how to add user defined fields in report F.12.
Thanks in advance.
Regards,
AbhinandanI am in SAP FI/CO.
I want define the fields called user defined in the report F.12.
This you can find in the defination of user defined layout for the report.
I want to add some more fields for user defined fields in the layout.
Thanks for your interest in my query.
Regards,
Abhinanda, -
User defined fields in Goods Issue and Goods Reciept
Hello,
I would like to know how to add user defined fields in the Goods Reciept and Goods Issue matrix. These two are not displayed under user defined fields management.
Thanks,
Edited by: Martin Kamau on Apr 15, 2009 5:34 PMMartin,
From within the SAP Business One user interface under Tools > Customization Tools > User-Defined Fields - Management, you need to add to the Marketing Documents > Tile and/or Rows, etc.
Eddy -
[Ask] User Defined Field
Guys, I have two questions here...Hope you guys can help me solving the problems...
1. How to make user defined field that link to user defined table?
2. Can I make Query with Inventory master data as a base?
Thx guys...Hi Dear,
You can do this through SDK also as
1) Create one UDT named OCT_ITEMSUBGRP1 as
CreateTable("OCT_ITEMSUBGRP1", "Item SubGrroup1", 0)
Create Table Procedure is
Private Sub CreateTable(ByVal txttablename As String, ByVal txtTableDescription As String, ByVal txtTabletype As Integer)
Dim iRet As Double
Try
OCT_tables = OCT_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
If OCT_tables.GetByKey(CStr(txttablename)) = False Then
OCT_tables.TableName = txttablename
OCT_tables.TableDescription = txtTableDescription
OCT_tables.TableType = txtTabletype
iRet = OCT_tables.Add()
OCT_Application.SetStatusBarMessage("The Table " & txttablename & " is Added.", SAPbouiCOM.BoMessageTime.bmt_Short, False)
System.Runtime.InteropServices.Marshal.ReleaseComObject(OCT_tables)
Else
OCT_tables = Nothing
End If
If iRet <> 0 Then
OCT_Application.MessageBox(OCT_Company.GetLastErrorDescription)
End If
OCT_tables = Nothing
GC.Collect()
Catch ex As Exception
OCT_Application.MessageBox(ex.Message)
End Try
End Sub
Step 2) Creating the Linked Field
Create_FieldLinked("OITM", "SubGrp1", "Company Classification", 0, 0, 8, "OCT_ITEMSUBGRP1", "")
Create Linked Table Procedure is
Private Sub Create_FieldLinked(ByVal txttablename As String, ByVal txtFieldname As String, ByVal txtFieldDescription As String, ByVal type As Integer, ByVal subtype As Integer, ByVal size As Integer, ByVal linktable As String, ByVal ValidField As String)
'Create Instance of UserTablesMD object
OCT_FieldL = OCT_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
Try
OCT_FieldL.Name = txtFieldname
OCT_FieldL.Type = type
OCT_FieldL.Size = size
OCT_FieldL.Description = txtFieldDescription
OCT_FieldL.SubType = subtype
OCT_FieldL.TableName = txttablename
OCT_FieldL.EditSize = size
If linktable <> "" Then
OCT_FieldL.LinkedTable = linktable
OCT_FieldL.Size = 8
OCT_FieldL.EditSize = 8
End If
IretCode = OCT_FieldL.Add()
OCT_Application.SetStatusBarMessage("The Field " & txtFieldname & " is Added.", SAPbouiCOM.BoMessageTime.bmt_Short, False)
If IretCode <> 0 Then
OCT_Application.MessageBox(OCT_Company.GetLastErrorDescription)
End If
Catch ex As Exception
OCT_Application.MessageBox(ex.Message)
System.Windows.Forms.Application.Exit()
End Try
OCT_FieldL = Nothing
GC.Collect()
End Sub
Hope this will help you..
Warm Regards,
Mahendra -
How to provide value to a User Defined field thru java code
I am using OIM 11.1.1.5.
I have a user defined field called Unique-Customer-Number. This field need to be pre-populated during user creation (using OIM Web UI) and the value comes from a java code.
Can any of you tell me the high level steps to implement this.
Thanks!
KabiThanks Rajiv,
I just followed everything on metalink 1262803.1. My console shows the followings during Metadata import.
weblogicImportMetadata.bat :-
Starting import metadata script ....
Please enter your username :weblogic
Please enter your password :
Please enter your server URL [t3://localhost:7001] :t3://10.10.99.99:7001
Connecting to t3://10.10.99.99:7001 with userid weblogic ...
Successfully connected to Admin Server 'adm_server01' that belongs to domain 'server01'.
Warning: An insecure protocol was used to connect to the server. To ensure on-the-wire security, the SSL port or Admin port should be used instead.
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.For more help, use help(domainRuntime)
Disconnected from weblogic server: adm_eimsdv1s01
End of importing metadata script ...
Exiting WebLogic Scripting Tool.
How I will I know that my plugin/ event-Handler is registered successfully. Is there any screen where I can see all registered plugins ? -
How to change the text of a user defined field in dynamic selections?
Logical Database PSJ is used by t code CJI3 - we added a couple of user fields into the dynamic selections of CJI3.
Now - how to change the text of this user filed (USR01 of structure PRSP_R in logical database PSJ)?
Found an OSS note - 86980 - that tells that this is not possible.
But when we read the documentation on the user field (CJI3 - dynamic selections - double click on user field - F1), it shows the following text:
User-defined field in which you can enter general information with a length of up to 20 characters.
Dependencies
The names (key words) for user-defined fields depend on the field key.
Now the question is where to change the field key..
Thanks,
VenMadhu - you did not get the question I think.
Anyways - I found an OSS note 1266643 - this code change should take care of the issue - it will then reflect the details maintained in custoizng at transaction code OPS1..
Thanks, -
How to add a User Defined Field in OUBI
Dear Experts
I would like to find out how to add a user defined field into OUBI from a Customer Care & Billing source system. If anyone could list the steps involved or point me toward a source of documentation that sets out the steps involved it would be much appreciated.
Cheers
TimIs there anyone out there who has had experience using OUBI with CC&B?
-
How to Add a user defined field in transaction-PKMC?
Could anyone tell me the step by step process of how to add a user defined field in transaction-PKMC?
Moderator message: please do some research before posting.
Edited by: Thomas Zloch on Jan 16, 2012Is there anyone out there who has had experience using OUBI with CC&B?
-
How to transfer user defined accounting fields from SRM to ECC ?
Hi!
We are running SRM 5.0 and ECC 6.0 with classic scenario.
We have defined Business entity filed account assignment tab in SRM SHC.
New fields are also defined in tables BBP_C_ACC_F and in BBP_C_ACCFD and added in the structure also INCL_EEW_PD_ACC_CSF. New fields are also defined in srpo accounting.
In R/3 the same field is already defined as it is standard one.
When I create PR or PO i entered the Business entity for the account assignment R i.e real estate.
However, when I order my shopping cart with values in new fields, the values are not transferred into backend.
Standard fields transfer nicely, but the user defined fields dont transfer.
Can any please let me know what we have to do for these user defined values to transfer to back end. We need to implement any BADI ?
Please let me know
ThanksHi,
Use BADI BBP_CREATE_PO_BACK ( t.code SE18) can transfer custom fields
some useful links to transfer custom fields from SRM to ECC..
Re: Purchase Order item customer fields
implementation of BADI BBP_ECS_PO_OUT_BADI in SRM. and BBP_PO_INBOUND_BADI
Re: Custom field values are not being transfered to the backend system
Re: How to replicate SRM PO customer fields to ERP PO in ECS
Update Custom Fields in PO - BBP_ECS_PO_OUT_BADI
BBP_ECS_PO_OUT_BADI
implementation of BADI BBP_ECS_PO_OUT_BADI in SRM. and BBP_PO_INBOUND_BADI
Update Header Text in R/3 using BBP_ECS_PO_OUT_BADI
Hope these are helpful..
Thanks
prasad .s -
How do I refer to a user defined field in a query (using $ notation) ?
if i have a user defined field in Invoice header called U_Test, and if I need to read it using a query (to be used on a formatted search).
I am not quite sure of the syntax. can anyone help please?
I tried
$[$U_Test.0.0] which is the accepted way with fields with numerical ids such as $[$8.0.0] etc.
appreciate any help,
Indika.Hi all,
Aliw, the 38 is not the form number, is the Item Number (which I guess is a matrix). In your case the User Defined Field is a line UDF. In Indika´s case is a header UDF.
And that´s the issue. As the indika´s UDF is a header UDF, it lays in a different form (which is named "-" + Main Form Name). Formatted searches work with the $[$Field.Column.Format] notation ONLY in the same form. So, if you try to get the UDF from another UDF, it will work with that notation (they are in the same form). But if you try to get the UDF from the main form, it won´t find it (It is in another form).
In that case you should use the other notation, as Andrea, Alexey and Salvador told you in the posts before.
Hope this clears a bit the issue.
Regards,
Ibai Peñ -
How to use User Options and User-Defined Fields in DC Group function?
Dears,
As title, when should I use above fields? I did not see the related information in SAPME help library.
Thanks!The user options fields are just information fields you can store at the Data Collection Maintenance activity. You can think of these as extra information fields for storage purposes only. I can't give you a use case except to say 'information fields' only.
With regards to the User-Defined fields in DC Group - you can think of these as extra data fields to be collected. They will appear immediately underneath the data parameter they are defined in in the DC Plug-in for the POD. They do not have limits but are just extra pieces of data you may want to collect about the specific parameter.
Maybe you are looking for
-
Active Directory - Forte/UDS integration
Does any body integrated Active Directory Server with Forte ? We are trying to integrate Forte with Active Directory Server. Our first step is to open a session on Active Directory from Forte and that was successful. The second step is to bind to the
-
How can i see page in application
i have developed a page use OA framework, how can i apply the page into application, how to setup, which folder should i upload the file?
-
Line item creation in sales order
Hi I am working on User Exit USER_EXIT_SAVE_DOCUMENT_PREPARE. On saving a sales order i need to do some validations and based on the validations i need to add a line item to the sales order in the user exit. What are the ways that i can create the li
-
Multiple signatures ios8.2
Hello friends I wanted to know, is it possible to add 2 signatures on iphone mail (iphone 5 ios 8.2) to one default email account ? I mean , i have exchange mailbox , that working find , but i want to use more than one default signature to my outgoi
-
I don't know if I should mark it spam. I can't find where to just check in with the Apple folks about these sort of things.