[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

Similar Messages

  • [Ask] Print user defined Field

    Hi guys, need some help here....
    Can I print user defined field? If it can, how?
    thx guys...I really need it

    hi yoga,
    Yes you can display user defined field in PLD.
    create a database field,select table name and
    select column type you can see user defined field
    in name(For example :U_doctype) and its description.
    Jeyakanthan

  • User defined fields in Resource object; Resource object form

    Hi,
    Can anyone tell me what is the purpose of having user defined fields for resource object and resource object form and how can we use those fields while requesting for target resource.
    Regards,
    Alabhya Goel

    Thanks for your reply!!!!!!!!!!
    I know about resource object form i am just asking what is the use of user define field in resource object form. How can we use it. Like when we create any user defined field in under User form those fields display on create user form but when we create any user defined field in resource object from those are not displayed in form.
    If anyone has used or worked on user defined fields in Resource Object or resource object form; please give me an overview over the same.
    Regards
    Alabhya Goel

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

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

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

    You 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

  • Issue while deleting user defined field in oim 11.1.1.3

    All,
    Made a mistake while creating user defined field called "Profile for" (loing to OIM -> advanced -> configuration -> User configuration). We are trying to delete it. It appears to get deleted from user attributes screen. But when we run LDAP User Create and Update Reconciliation Task we get the following error below:
    oracle.iam.ldapsync.exception.ProcessLDAPReconDataException: oracle.iam.ldapsync.exception.ReconEventCreationException: Thor.API.Exceptions.tcAPIException: Profile for - LDAPUser object does not exists for resource object
    Is any thing else need to be deleted adn cleaned up?
    thanks in advance,
    Prasad.

    How do i check what resource object the recon task is running against. here is what i found so far.
    I cannot find LDAPUser resource object when i query Resource Management -> Resource Objects in design console. Same thing with Manage Resource and search (here i only find Xellerate User, Xellerate Organiztion, USERS_GTC, and Installation) in OIM advanced administration menu.
    The LDAP User Create and Update Reconciliation job itself has the following parameters (batch size, last change number, OIM employee type, OIM User organization name, OIM user type)
    I also decompiled LDAPUserChangesReconTask and it is looking for LDAPUser metadata from MDS directly.
    Prasad.

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

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

  • Adding user defined field in print layout design of Bill of matrial Report

    I want to add "Drawing No" which is user defined field in Bill of Material report need immediate help .

    Hi,
    If you add the UDF in BOM-Title then the UDF will be in OITT table.
    If you add the UDF in BOM-Rows then the UDF will be in ITT1 table.
    You will find BOM-Title or BOM-Rows in Production Module (ie., in User Defined Fields --> Manage User Fields)
    In PLD, You can print the UDF if you search in the above said tables.
    Raja.S

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

  • 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,
    Thibault

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

  • Ceartion of User Defined Field in EXCHANGE RATE AND INDEXES

    Hi Experts,
                     I want to create  User Defined Field in EXCHANGE RATE AND INDEXES.But while creating the UDF from User Defined Field-Management unable to find the table for it.Write now My Client are using SAP B1 2007 Ptach-08.Is there any way out to create user defined field in EXCHANGE RATE AND INDEXES.
    Plz help me out on this issue.
    with regards,
    Pankaj K and Kamlesh N

    Pankaj,
    When you do the Manage User Fields area to define a UDF, all the possible areas where UDF's can be created in B1 is listed.  You would be able to create UDF's only on these.
    Suda

  • User defined Field refresh during copying Sales Quotation in SO

    Dear Colleagues,
    We are doing an implementation of B1 2004A PL14. We have defined a few user defined fields (Select fields) and using them in Quotation, SO and Delivery. Now,
    when we create a Quotation and select a value from user-defined selection and then copy this Quotation in SO to create a SO the field value shows up for fraction of second and then clears itself and becomes blank. For some of the fields its working and for others its not even though all of them are defined in the same way.
    This is delaying our go-live. It will be great if we get some suggestions on this.
    Thanks & Regards,
    Manish

    Hi Manish,
    Unfortunately I don't know what might cause your problems.
    I would highly recommend to involve SAP Support to get your problem fixed.
    Sorry,
    Frank

  • User defined field values doesnot show up in summary tab

    Hi,
    I have created my own stylesheet to display some of my user defined field values (associated with organization address book entry type) in the summary tab of the addressbook entry. But Groupwise 8.0 client FAILS to display any of the user defined field values in the summary tab FOR ONLY ORGANIZATION ADDRESSBOOK ENTRY types. NOTE: These organization addressbook entries are created using the C++ Groupwise object API. But the Advanced tab of these organization addressbook entry shows those user defined fields with values in it.
    Also Groupwise 8.0 Client is able to display the user defined field values in the summary tab for the PERSON ADDRESSBOOK ENTRY types, that are created using the Groupwise Object API. Also when I create a Organization addressbook entry using the Groupwise Client (NEW ORGANIZATION) and fill in the user defined field values using the Advanced tab or that addressbook entry, the summary tab displays those user defined field values.
    So there could be some problem in setting the user defined field value for the Organization address book entry using the Object API or it could be Groupwise 8.0 Client issue in displaying the user defined field values ONLY FOR ORGANIZATION ADDRESS BOOK ENTRY, WHICH ARE CREATED USING THE OBJECT API. I also tried to see the underlying XML data in the summary tab and that XML data is missing the USERDEFINEDFIELDS and CATEGORIES tag for the organization address book entry.
    I would like to know, if there is any need for special handling only for Organization addressbook entry in Groupwise 8.0 API. Any thoughts or help is really appreciated.

    Hi,
    Does anyone have an idea?? Think I have the same issue. Except, when I log in the client (ver. 802) then all the info is displayed. But when the user logs in on the same client and the same pc, he sees the xml info except the office address.
    Any help is greatly appreciated!
    Grtz,
    Joost Brenters

Maybe you are looking for

  • How can I cancel a runing program by software?

    Hi, i have to stop a LabView-DAQ-program from running on a w2k PC by software. I'm looking for a program, which can stop the DAQ-program from execution if the UPS signals a system shutdown (power failure). The UPS software can execute any program or

  • WAKE ME UP!

    I recently purchased both a *Magic Mouse* and an *Apple Wireless Keyboard*; and since my Mac didn't already have an internal BT adapter I picked up an IOGEAR Bluetooth (http://www.iogear.com/product/GBU421/) but later realized that the +Allow Bluetoo

  • System is asking for password while executing t.code RSUDO

    Hi While executing t.code RSUDO ( Execute as user with restricted authorizations) on behalf of other user, system is asking for password. Can you tell the reason for it? System is BW 731. Thanks Saurabh

  • ECATT and SAP GUI

    Hi Friends I am new to this forum and would request to help me solving the following problem Requirement is as follows. Development of screen mapping utility -  which would likely use the eCATT/SAPGUI library. Depending on how the eCATT/SAPGUI interf

  • Message 'computer unable to connect to printer' appears during installation of laserjet p1102w.

    During installation of wireless software for Laserjet P1102W on computer with XP Professional (pk2), the message ' printer was able to connect to wireless network.  However, this computer is unable to connect to the printer.'   I verified the compute