Populate User Defined Fields

Hello everyone,  I have an add on that puts a button on the invoice that when clicked, brings up a screen to fill in some information and submits the information.  The add-on then takes some of that info and populates UDFs on the invoice and submits the invoice.  1.  My first question is, do I have to have the UDF's visible in order to populate them?  I found that I received an error when I tried to set their value when they were not visible, but wasn't sure if there was a way around that.  2.  I am finding that it is difficult to track which UDF form links to the invoice form.  Is there a way to tie back the UDF form (-133) to the invoice (133)?  It is not FormTypeCount, because that goes solely by the order in which the screens were displayed...  Please let me know.  My true goal here is for someone to be able to have multiple invoices up with multiple versions of my add on and when they submit, they all submit the right thing. 
Your assistance as always is greatly appreciated.  Thank you so much.

Hi, today I've also looked for a solution to be sure that the UDF-Form (in my case for sales quotation) is always open.
Now I do it with activating View User Defined Fields:
SboUI.Menus.Item("6913").Activate()
when the Form is opened.
Catching Item-Event et_FORM_LOAD seems to be too early for that.
Now I'm catching the Menu-Event ('after') for Sales Quotation:
MenuEvents:
If pVal.MenuUID = "2049" And Not pVal.BeforeAction Then
   SboUI.Menus.Item("6913").Activate()
End If
And preventing the UDF-Form to be closed
Item Events:
If pVal.FormTypeEx = "-149" (....) Then
   If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE And pVal.BeforeAction Then
      BubbleEvent = False
   End If
endif
I'm still not sure if this is really a good solution...

Similar Messages

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

  • User-defined field assignment  in Contact object

    Good Day
    Experts:
    I guess this might apply to all SAP Business Objects.  Specifically, I am working with the oContact object.  A User-defined field has been added to the OCLG table.  I need to populate the field with the current logged on User.  I see that I can do the following with the intellisense but I am not sure where to go from here.
    vContact.UserFields.Fields.Item
    I tried but I get a message "Expression is a value and therefor cannot be the target of an assigment:
    vContact.UserFields.Fields.Item("U_Creator") = (GetUserCodeSess(g_B1Connection.Company.UserName))
    It feels like I should be able to set the User-defined variable through the object but I don't think I am doing it correctly.
    Any helpful hints?
    Thanks,
    Ed

    Hi Robert,
    I think the only supported way is to give full rights to the users and block changing field in the Item Master Data form through your addon.
    A non supported way is to use a query to update the item master fields
    Regards
    Ad

  • User Defined Fields & AD Connector

    Hello All
    I am having a bit of trouble understanding the flow of information from Xellerate User to AD connector table/provisioning and was hoping someone could help me out. Basically, I have a set of user defined fields that I need to get provisioned to active directory. I have follow the AD connector documentation for adding the new fields to the resource form and process definition but I still do not see the new values for the data showing up in the UD_ADUser table to be provisioned to AD. Not sure if there is a pre-populate adapter I need to add to move the data from USR to UD_ADUSER or if there is some other data mapping that needs to be done, but any help or guidance (end to end) would be helpful.
    Thanks
    Nick

    Suren
    I did the adapter (pretty much copied the last name adapter) but when I update the values in the web console for the user defined fields, it is not updating the values in the UD_ADUSER table. I am also getting this value in the OIM log...do you know what could be causing this.
    2010-09-09 11:47:00,696 DEBUG [XELLERATE.ADAPTERS] Class/Method: tcAdpEvent/finalizeEntityAdapter entered.
    2010-09-09 11:47:00,696 DEBUG [XELLERATE.ADAPTERS] Class/Method: tcAdpEvent/finalizeEntityAdapter - Data: No Return Value mapping defined - Value:
    2010-09-09 11:47:00,696 DEBUG [XELLERATE.ADAPTERS] Class/Method: tcAdpEvent/finalizeEntityAdapter left.
    I reviewed the mapping in the form adapter properties and made sure there are variables mapped and made sure that the adapter has the proper variables mapped and still seems to be coming up.
    Any help you can give would be appreciated.
    Thanks
    Nick

  • Display of document line items with user defined fields

    Hi all,
    I have created two user defined fields in CI_COBL structure and they are available on OBC4 screen. I maintained  optinal for entry in the screen layout. I posted one document with user defined fields and saved.
    Now the document is updated in BSEG table. I then display the document, and it display the doucment
    But when i double click on the one of the line items system gives an error that there is some problem in customising and entries missing in Table COBM.
    I checked OXK3 and see that in field information for user fields, it says entries maintained in table COBM.
    But still i couldnt display my line items in detail.
    Any solutions
    Thanks in advance
    Ram

    Yes your are looking at the correct sap note.
    Things look pretty straight forward in the notes documentation.
    1)Extend the VBKRED structure with the fields you want.
    2)Populate thse values in the user exit in program DBKMVF02 in FORM routine USER_EXIT_FUELLEN_XVBKRED.
    For extending a standard structure you need to create a zstructuree in se11 first and then append it to the standard structure.
    In your case you need to  extend VBKRED_EX1 structure rather than VBKRED.
    Regards,
    ravi

  • User Defined Field in Material master

    Hi Friends,
    Can we add any user defined fields in any views in  material master (preferably with F4 help)
    If so, please let me know how to do it and its impact.
    Regards
    Ram

    Hi Ramachandran,
    Of course. 
    1.  If there is an existing Material Class, use it, unless modifying that class interferes with existing business processes.  Otherwise create a new class using CL01.  Use class type 001.
    2.  Create a characteristic using CT04 that represents your new field.  The characteristic will be your new field name and the description will be the description.
    3.  Using CL02, assign the characteristic to the existing material class, or to the new one you just created in step 1.
    4.  If this is a new system, you will have to create user instructions as to how to maintain the field.  The field will exist in the Classification view of the Material master in MM01/02/03, and the contents can be edited just like any field.
    5.  If this is an existing system, you will have to populate this field in all of the existing material masters.  Depending on the size and complexity of data, you may have to create a Legacy System Migration Workbench (transaction LSMW) project to bring all the fields up to date.
    As far as F4 help, depends on where you want to see it.  Within the classification view of the material master, it is possible to establish a validation in CT04 that will require your users to pick from an established validation list when they select the F4 key.  If you want F4 help in other places, you should consult your ABAP'ers, who should be able to set this up for you.
    Impact of a new characteristic/class is zero.  Impact of adding a characteristic to an existing class is dependent on your current use of the existing classes.  Writing reports which use these data is a well understood technique within the ABAP community.  Although the field will not exist in MARA table, it can still give you the same functionality as if it did.
    I do not recommend that you add a field to MARA, even though this is possible.  Although hotpack upgrades will leave a customer generated MARA field alone, whatever functionality you create to use this new field will be endangered with every OSS note and every hotpack upgrade you install.  Since Characteristics and Classes are considered master data, SAP hotpacks pretty much leave them alone.
    Regards,
    DB49

  • Escalating user defined field

    Hi,
    iam new to SBO and i need to write add ons in VB.net code. we have a user defined field in purchase order and sales order.
    the reuirement is that a windows servisce program should run at regular intervals and trap the records  using tha user defined field.
    I need to write a stored procedure to capture those data.
    could u please help me ?
    thanks & regards
    --Ravi

    First, does the registry value actually exist on the workstation? At
    HKEY_LOCAL_MACHINE\Software\xxxxx.com\Location
    Second, how is the AutoFill set for that UDF? You'll find that in the Collection Option Set, in the "Collection Editor" tab, and you can edit it if "Run Collection Editor: Always" is turned on in the "General" tab.
    In the Collection Editor tab, find your UDF - Workstation, User, Inventory - and look at the AutoFill column. If it's set to "Always", then it should always populate during a scan. If it's set to "WhenEmpty", it'll only populate if nothing has already populated the field. If it's set to "Never", it'll never populate.
    Third, has an inventory scan run on the workstation in question? Nothing will be populated until a scan has taken place and the resulting WIF has been returned to the Collection Server and successfully loaded. You can force an immediate scan if you need to, but a scan must happen.
    -- Tim --
    Originally Posted by pcwoodring
    I have created a user-defined field called Location. I have set its default value to the following registry key -> %HKEY:HKEY_LOCAL_MACHINE\Software\xxxxx.com\Locati on
    From the Web Asset Management window, it displays it as text, not retreiving the actual registry key
    What am I doing wrong?
    Example:
    Other Information
    Field Value
    Location %HKEY:HKEY_LOCAL_MACHINE\Software\xxxxx.com\Locati on

  • BAPI User Defined Field

    Hi,
      My client has added an user define field in SO line level.  Now, i want use the BAPI to create the sale order.  How can i map the value to this user defined field??
    Regards,
    Kit

    VALUEPART2,VALUEPART3 and VALUEPART4 are also to be used for populating data in the custom fields.
    Lets say you have added a structure to MARA called STR1 which has 3 fields, 10 char each. You also need to create STR1X which has 1 character flags for the fields in STR1.
    To populate values in these fields u need to maintain the extension tables as below:
    BAPIPAREX-STRUCTURE         = 'STR1'.
    BAPIPAREX-VALUEPART1+0(10)  = '1st FLD'.
    BAPIPAREX-VALUEPART1+10(10) = '2nd FLD'.
    BAPIPAREX-VALUEPART1+20(10) = '3rd FLD'.
    APPEND BAPIPAREX.
    BAPIPAREXX-STRUCTURE       = 'STR1X'.
    BAPIPAREXX-VALUEPART1+0(1) = 'X'.
    BAPIPAREXX-VALUEPART1+1(1) = 'X'.
    BAPIPAREXX-VALUEPART1+2(1) = 'X'.
    APPEND BAPIPAREXX.
    If you have more than 60 fields you could split the fields in to multiple strucutres and populate the extensions for each structure.
    -Kiran
    *Please reward useful answers

  • OIM user-defined field lookup

    Hi,
    I've installed OIM connected to OID.
    Now if I want to create a new user-defined (in user creation profile)field say... Job-Band (and populate the drop down for Job-Band with values A,B,C,D... etc.) ,what steps do i need to follow.
    Edited by: Chhavi Saluja on Feb 7, 2010 10:29 PM

    Hi,
    if i understand your question correctly,you want to create a new UDF(user defined field) i the user profile for this you need to cretae a udf from the design console, in your case you need to select the users in the form name as you want to add a field in the profile,.
    Select Lookup in the field type after that click on the Properties there you need to attach the lookup corresponding to this in the Lookup code, for this you need to create a lookup with your values that you want show values. Over here you attach this.
    Hope this helps you
    Regards
    VM

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

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

Maybe you are looking for