Skip to Content
author's profile photo Former Member
Former Member

DI: How to set a category for userdefined fields?

Hi,

I've created some userdefinded fields using DI API and now I would like to assign them to a specific category. By default they are in category "General".

How to do this programmatically?

Thanks,

Ronny

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2004 at 03:12 PM

    Ronny,

    If I understand your question, the "category" of a user-defined field is based on a combination of the Type and SubType properties of the UserFieldsMD object. Type is a BoFieldTypes enum and SubType is a BoFldSubTypes enum. The trick is that not all Type and SubType combinations are permitted. In the DI documentation, go to the UserFieldMD object and drill into the SubType property. This will give you a matrix of allowed combinations and their application "category".(At least in the 6.5 documentation.)

    The UserFieldMD object is a little temperamental so make sure you have the latest patches before digging into it.

    Cheers,

    Corbin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2004 at 04:12 PM

    Corbin,

    Maybe my question wasn't detailed enough, so I'll explain it an other way:

    I use DI API to create userdefined-fields for "Business Partner Master Data" form (FormType -134). On top of this form there is a dropdown list for selecting a category ("General", "All Categories", "Category A", "Category B"), ...)

    By defaut my userdefined-fields are assigned to "General". My Problem is to set them to another category after creating them with DI API.

    Thanks,

    Ronny

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi John,

      If I understood correct, you have made utility for copying user preferences between users. Since there seems not to be any other way to do that than SAP note 614616 (which really isn't answer to clients), do you have any plans to make your utility available commercially or any other way?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.