How I know if a user define field exist?

Hi,
I need to add a user define field to the business partner table using the SDK. Before I add the field I would like to create a condition to know if the field exist.
I will appreciate any help
Thanks.

Dear Rafael ...
If you want to check whether there're any user fields you can use recordset to look for the name of field in CUFD table. Here with I enclose example to Look for Fields "ColorID" in "@MSI_COLOR" Table .
===============================================
Private Function CheckUserFields() As Boolean
oRecordset.DoQuery "select count(*) from CUFD where TableId='@MSI_COLOR' And AliasID='ColorID' "
If oRecordset.Fields(0).Value > 0 Then
   CheckUserFields = True
Else
   CheckUserFields = False
End If
End Function
======================================
You can use that function ...
If  CheckUserFields = True then
Else
    oSboApplication.messagebox "Field Colot Is Not Found in SAP B1 "
End If
Hopefully can helps
Regards,
Hamdi

Similar Messages

  • User Define Fields in  Manual Reconciliation

    Hi,
      Can i add user define field in Manual Reconciliation.
    Please let me know how can i add this user define field in Manual Reconciliation.
    regards
    Suresh S

    Hi Suresh,
    As far as I know, UDF is not available for Manual Reconciliation.
    Thanks,
    Gordon

  • Add User Defined Field (Landed Costs Window)

    Hello All!
    Somebody can help us on this, we wonder if someone can tell us how can we add a user defined field in the Landed Costs Windows -> Fixed Costs TAB place.
    We were unable to add this field, and now we're thinking that's impossible through the USER DEFINE FIELD function, there's not reference about Fixed Costs TAB in this tool, but if someone knows the 'how to', please help us.
    thanks in advance
    jssanche

    Hi Sanchez,
    I am afraid you could not do that. User defined field is not be added into landed cost. Landed cost seems like process external bank statement. I have ever asked to SAP support about this (how to add UDF in process external bank statement) and they said it could be done using add-on. You have developed add-on to do that (DI/UI or UI API only).
    Rgds,

  • User defined field in CO01,CO02 ?

    Dear Gurus,
    My client want a User define Field in Production order , just for information purpose
    How can I Create a user define field in this transaction ( CO01 / CO02 )
    Pl. Guide
    Regards,
    Ishwar

    Hi,
    Go to operation view in the SFO. Select the operation, then follow menu path Operation - Operation details (key board shortcut - F7). Now you will find some tabs, the tab user field is somewhere near the end so you would need to proceed to the right.
    Once you're in that tab, select the field you defined & hit enter. The fields will be displayed.
    Also the user-ext PPCO0006 is used to default values to order header fields, i am not sure how this can be used to add tabs in order header.
    Regards,
    Vivek

  • 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!
    Kabi

    Thanks 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,
    Ven

    Madhu - 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
    Tim

    Is 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, 2012

    Is there anyone out there who has had experience using OUBI with CC&B?

  • 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 Ilchenko

    Hello, 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

  • 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

  • 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.

  • How can we add user defined fields in My Account Profile?

    Hi,
    When adding new field for user,user groups,my resource,organizations and request all exist in the drop down menu list but the MyAccount(In the page where we add user defined fields).
    Please help me to add user defined field in MyAccount also.
    Thanks in advance.

    Hi,
    As I said before it is not that straight forward.If you will decompile tcViewProfileAction .class using any java decompiler you will find out that data in setAccountProfile method is not getting set through formmetadata.xml . If you are well verse with struts then only you can achieve what you are trying to do.You need to extend tcViewProfileAction class and also tcViewProfileForm class and then you need to modify tjspViewProfileTiles.jsp .It will not be easy job.Usually in implementation we do not change action class until its absolutely required as oracle also do not recommend that so now its between you and your client to make a call if they want to go for such customization.I won't recommend you do that.
    Regards
    Nitesh

  • 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 PM

    Hi 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

  • Want to add a prepopulated User defined field in create user form

    Hi,
    I have an entity adapter which will perform a pre-insert check on the user group of the user logged in to the oim.
    If the logged in user belongs to a group say "IT ADMIN", another validation check will be imposed on the create user action performed by him.
    If not from "IT ADMIN" group then create user action will be handled normally.
    Now the catch is, how would I determine the group name of the user logged in from the adapter code I have written?
    I decided to keep an User defined field "Created by" in the create user form which will be non-editable and auto-prepopulated with the group name of the logged in user. This way I will be able to map the variable field from the User definition drop down list while mapping the adapter variables.
    May you please guide me how I can achieve this?
    Would highly appreciate suggestion/inputs.

    Thanks for all your replies!
    However I am still in dark.
    I tried to retrieve the groupname using tcUSerOperationsIntf. But iit tries to retrieve the group name of the user getting created.
    Please note, the group name I want is not of the user yet to get created, but that of the user creating it i.e., the logged in user.
    My requirement is to have this created_by field in the create user form already prepopulated with the group name of the logged in user.
    So that I can put a check based on this field value in the netity adapter.
    If the group is IT ADMIN then proceed with the validation.
    Else no validation required.
    In short, I want to know,how can I auto-prepopulate a UDF in Create USer form?

Maybe you are looking for

  • Monitor cuts off wireless

    This is a weird problem. Say Im running Xp on my macbook. I have an external DVI monitor hooked up to it. However, my wireless connection is very flaky. It would slow down after a few minutes and disconnected. I have tried reinstalling the drivers, e

  • I have my credit info on my iTunes but my apple tv is saying i don't have it set up

    I can't seem to view movies from my apple tv

  • Misplaced Symbols

    Windows 7 + Adobe Reader 9.3.4. On opening I-131 form from USCIS site all the check boxes are shown on the left of the page whereas they should be on the right. Also brackets and paragraph numbers are in the wrong place and order

  • Problems Installing LabVIEW

    Problems Installing LabVIEW Run-Time Engine for Ubuntu 11.04 I'm relatively new to Ubuntu and its community, but have been pleasantly surprised with how easy troubleshooting has been. Unfortunately, I've spent the last two days trying to install the

  • Client installer won't install on 10.6

    I have ARD 3.6 running under Mac OS X 10.7.4 I create a Client Installer from the "Create Client Installer..." menu option.   It installs fine on 10.7 machines, but won't install on 10.6 Snow Leopard machines, leave me unable to support older machine