About UserDefined Fields..

hello guys,
I have the following requirement....in the AR Invoice i have created the following UDFs with the following Names--Billable Days,Absent Days,ManMonths....... about these fields the BillableDays field must be showing the no Of days in the current month...and the absent days field will be entered by hand... and the ManMonths Field must be calculated automatically as absentdays/billabledays gives the manmonth....and the price should be calculated depending on the man Months...rate*manmonths= total amount
soo guys please help me...
hope i am clear...
thanks in advance...
Vasu Natari..

In general this is how it works, listen to the e-learning
material to get more info.
You need to define all these UDFs in the DB attached to
the related table. Then you could use
1. the default user defined fields form
2. or add items in the system form, usually in a separated
form
to show them to the user. If a user field needs to be
entered by hand then you have two choices:
1. you could defined valid values for it and use a
combobox to view it
2. or you could use a edit text and if you need to add
some validation routine you can attach it to the VALIDATE
event
In case of fields calculated, you should disable their
view and calculated them when some events in the GUI
happens. You need also to save them back in the DB, this
is done when you save the whole object back in the DB.

Similar Messages

  • Enhancement to add userdefined  fields for standard definition in  cj20n

    Hi all
    sub:enhancement to add userdefined  fields in a user defined screen tab for standard definition in t-code cj20n
    can anyone provide an idea how to write the logic for retriving the data from the standard table into the user defined screen added into the project definition using the t-code cj20n( project system module)
    thanks
    sirisha

    I think you may need to implement enhancement 'CNEX0007'
    CMOD==> Enhancement==> Componet==> Get the Screen area.
    Go to SE41 ==> Give the Screen program and number==> add your WBS tab there. The values will be available to screen
    Hope this is helpful for your answer.
    Cheers,
    TM.

  • How can i print the description about the field?

    dear folks
    i want to develop a report in that i want to display all fields in MM03 for all views.
    there i want to display first Field description (not field name), then field value.
    ie, for MATNR:
    Material Number = xxxx (value)
    for SPART:
    Division = d1.
    how can i print the description about the field?

    CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
          tabname        = 'MARA'
          FIELDNAME  = 'MATNR'
        TABLES
          dfies_tab      = t_dfies
        EXCEPTIONS
          not_found      = 1
          internal_error = 2
          OTHERS         = 3.
    you will get all the info for the field in t_dfies in that u have the field description also
    run the above FM from se37 and pass tabname = MARA and fieldname = MATNR
    see the results in DFIES_TAB in internal table

  • Change costcenters - userdefined fields

    Hi ABAPers,
    We use enhancement COOMKS01 to add our own fields to the cost center master data. This works fine.
    Is there an FM/BAPI/.. to change the masterdata of costcenters. In particular to change the values of the  userdefined fields?
    Hope you can help me.
    Bert

    Hi Bert,
         Actually, depending on what version/hotpack of SAP you are on, you can update the user defined fields on the cost center via the BAPI extension in structure EXTENSIONIN. Please read the standard SAP documentation on BAPIs regarding and how to use the EXTENSIONIN structure with your user defined fields.
    Also you can look at BADI (Business Add On) definition "K_CCA_CUSTOMER_FIELD" via SE18 to see the BADI for the user define fields on the Cost Center Master for the BAPI. Depending on what version of SAP you are on, you might have to implement this BADI. (4.7 we had to implement the BADI where as pre 4.7, I don't think you need to implement the BADI, just use the extensionin structure)
    I hope this helps.
    Mike V.

  • Conditional Expressions and the note about state-field's serialized form

    There's a note about state-field's serialized form in 4.6 Conditional expression chapter. Could anyone help me understanding it? It's on the page 88.
    State-fields that are mapped in serialized form or as lobs may not be portably used in conditional expressions[26].
    What's the serialized form? I think I understand what lobs might mean, but some additional explanation or a code snippet would be greatly appreciated.
    Jacek
    Jacek Laskowski
    http://www.JacekLaskowski.pl

    But that's my point. In the original expression the ++k and --k are evaluated first so the whole thing goes down as you described.  I agree completely.  But in the second case the term k is a urnary operator which would have higher precedence than the + or --- operators and therefore would be evaluated first while k is still equal to 1. Then again maybe I'm confused !
    Maybe I'll just compile the program and see what I get...

  • Add Userdefined field

    Hi togeather,
    i need a Userdefined field in the table "special prices for Business Partners"
    is this possible??
    Thank you all and best regards!
    Serkan

    Hi,
    If you could not add using manage user fields, then you could use SDK code to add the UDF in the table special price.
    I have ever asked this similar issue to SAP support in the last year. My problem is to add UDF in the process external bank statement (table OBNK) and they said it is impossible using SAP B1 gui but it is only able to use SDK code or addon.
    Rgds,

  • Need Business case Explaination about the Field in Customer Master

    Hi all,
    I have a doubt in Customer master Record
    1. Customer Group
    2. Price Group
    3. Price list
    4. Customer Stat.group
    What I mentioned above fields i need business case explination, but all the above fileds are explaining  about the Price and Statistics about the report. By using F1 Help i can understand but i need business case
    Is there any link between those fields ?
    @ Please dont close the thread if it is basic question please provide the details and link because i serached in Google but i couldn't able to findout

    hi
    anuradha,
    In my knowledge customer pricing group is the main in the customer master ,
    you will one test case in customer pricing group in customer u can not fill it,  the same customer u can rise the sale order , system sows earorr message, no customer master records maintain, it means when u create the sale order system  take pricing procedure , pricing procedure determination ; sales area+customer pricing procedure +document pricing procedure assign to pricing procedure,(ovkk) ,
    customer statical group
    Sales Organization      0001   Sales Org. 001
    Distribution Channel    01
    Division                       00
    Cust.stats.grp              1      'A' Material
    CustGroupMaterial       1      'A' Material
    StatGrpSalesDoc         2      Returns, Credit Memo
    StatGrpDocumentItm     1      Returns, Credit Memo
    Update Group               1      SIS: Sales Document, Delivery, Billing Document
    it is the static updating group for item level,
    Sales Organization     0001   Sales Org. 001
    Distribution Channel    01
    Division                        01
    Cust.stats.grp             1      'A' Material
    StatGrpSalesDoc        1      Order, Debit Memo
    Update Group              1      SIS: Sales Document, Delivery, Billing Document
    it is for static updating group for header level
    it is use full in vov7 ,
    price list and price group it is use full pricing to the customers,  you can check it sale order header in sale tab u can find your required fields,

  • [IPCC Express] Questions about database fields

    Hello,
    I'm developing some reports for Cisco IPCC Express.
    During the development, a lot of questions came out related to the definition of some fields:
    - In ContactCallDetail, what is the difference between transfer and redirect a call?
    - In ContactCallDetail, what is the difference between transfer = 1 and contactType=5? Both are related to transfering a call.
    I'll appreciate any help you can give me.
    Best Regards,
    Filipe Cruz - Portugal

    Where i can get that Enterprise Edition ?<br>
    here (click)<br>
    <br>
    does Express edition has Web based EM ?<br>Read the doc about Express Edition : Oracle Database 10g Express Edition<br>
    <br>
    Nicolas.

  • About Sytem field??

    HI
    THIS ARIJIT
    CAN ANYONE TELL ME THE
    which system field keep track of each passin loop statement??
    1)i have an doubt either it is SY-TABIX or SY-INDEX........
    2)how can i delete an active job in background proceesing??
    I WILL REWARD BY POINT..

    Hi Arijit,
    small addition:
    SY-TABIX should be asked directly (next statement) after LOOP, SY-INDEX directly after DO. Because if do anything else before, the value may be changed in a subroutine or function called.
    You may cancel any process
      - as mentioned in SM37
      - in process overview (SM50)
    Online processes get stopped if you cancel the user session from SM04.
    Regards,
    Clemens

  • About key fields in a table

    Hi,
    I'm actually finding out differences between two tables in remote systems. table name would be given as input parameter, and i'll query the remote SAP system and get the table entries in the remote system and compare them with the table entries in the logon system. Now is there any way, that I can find out which fields are the key fields of table, at run time, having in mind that since everything is at run time, i would be processing using field symbols. So is there anyway to find out which fields in any table are the key fields. Any inputs would be of great help.
    Regards,
    Vijay

    HI vijay
    use the FM
    CALL FUNCTION 'GET_KEY_FIELDS_OF_TABLE'
      EXPORTING
        TABNAME             =<b> <table name></b>
      MANDT_NEEDED        = ' '
      TABLES
        KEY_FIELDTAB        = <b><table to hold the key field ex. data: itab like dfies occurs 0. ></b>
    EXCEPTIONS
      NOT_SUPPORTED       = 1
      OTHERS              = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>Loop at itab.
    write: itab-fieldname.
    endloop.</b>
    regards
    kishore
    Message was edited by: Harikishore Sreenivasulu

  • Reflection: Gather info about Subclass Fields

    I have a system that works as follows:
    I have written an abstract base class (say ClassA) to be used in an application I am developing. The intention is that another programmer may come and subclass ClassA several times, creating different versions.
    In the subclasses, I would expect there to be an arbitrary number of objects of another class, ClassB. I need to be able to perform a method from ClassA on each and every object of ClassB.
    In order to make the designing of the subclass easier, I would like to be able to call a single method of ClassA that would inspect itself to find all the objects of ClassB, rather than forcing the other programmer to call the method of ClassA for EACH object.
    THE PROBLEM:
    When I obtain this.getClass() from within ClassA, the fields of the class object come up NULL. It seemingly has no fields, constructors, methods, etc. The Class object itself is not null, but it's fields are.
    Can anyone explain to me why this is? Can anyone suggest a solution to me?

    Here's a quick example of what I had in mind based on the information provided. Caveat: it has a high likelihood of not meeting your exact requirements.
    abstract class ClassA {
        void perform() {
            for (ClassB b : getBs()) b.specialMethod();
        public abstract void add(ClassB cb) { }
        protected abstract Collection getBees() { }
    class SubclassOfA extends ClassA {
        private Collection<ClassB> bees = new ArrayList<ClassB>();
        public void add(ClassB bee) {
            bees.add(bee);
        protected Collection getBees() {
            return Collections.unmodifiableCollection(bees);
    interface myInterface {
        void specialMethod();
    /** Arbitrary Object **/
    class ClassB implements myInterface {
        public void specialMethod() { }   
    }

  • Language dependent information about Outlook fields to sort on

    Hi,
    In the next code I found on the forum I use the .sort method with a field name to sort on. I have a Dutch version of Outlook and my question is where can I find the transalation of the Outlook mail items field list in Dutch.
    Looking forward to an answer,
    Kind Regards,
    Marcel Kollenaar
    Sub SortByDate()
    Dim myOlApp As New Outlook.Application
    Dim myNameSpace As Outlook.Namespace
    Dim myFolder As Outlook.MAPIFolder
    Dim myItems As Outlook.Items
    Dim myItem As Outlook.MailItem
    Set myNameSpace = myOlApp.GetNamespace("MAPI")
    Set myFolder = myNameSpace.GetDefaultFolder(olFolderInbox)
    Set myItems = myFolder.Items
    myItems.Sort "[Ontvangen]", False '<<<<< Dutch
    'myItems.Sort "[Received]", False '<<<<< English
    For Each myItem In myItems
    MsgBox myItem.Subject & "-- " & myItem.ReceivedTime
    Next myItem
    Set myItem = Nothing
    Set myItems = Nothing
    Set myFolder = Nothing
    Set myNameSpace = Nothing
    Set myOlApp = Nothing
    End Sub

    Hi Narcel,
    Try to remove square brackets.
    'myItems.Sort "Received", False '<<<<< English
    Here is what MSDN states:
    The Jet query syntax is the easiest to learn and use in your code, but it does not have the power of DASL. Jet queries can create restrictions for most built-in and custom properties. When you create a Jet query, be aware that there are certain computed
    and binary properties that are invalid and will cause Outlook to raise an error. Jet query syntax also does not support the new content indexer keywords that leverage the Instant Search feature in Outlook 2007. Consequently, Jet queries will return results
    slower than DASL queries provided that Instant Search is installed and enabled.
    Property Specifiers
    Jet property specifiers use the English name of the property enclosed in square brackets to represent built-in properties in Jet queries. The English name of the property is identical with the object model name of the property. Based on this convention,
    you can use [Subject] in your Jet query independent of locale to create a restriction on the Subject property of an item. Custom properties use the locale-specific name of the property enclosed in square brackets.
    Tip Don’t confuse the object model name of the property with the Field Chooser name of the property, which is localized. For example, if French is the user interface (UI) language, then the Field Chooser will display a field named Sujet that represents the
    Subject property of a MailItem object. In a Jet equivalence query for "Office 2007" using the Subject property, the filter would be [Subject] = 'Office 2007' whether the UI language is French or English. Be aware that object model names for built-in
    properties have no spaces or special characters, whereas the Field Chooser name can contain both spaces and special characters. For example, the object model name for an assistant’s phone number is AssistantTelephoneNumber. In the Field Chooser, this property
    is Assistant’s Phone. Always use the object model name in your Jet queries.

  • An other question about required fields en color change

    I've got 4 fields.
    The client must enter a Country name in Field1
    If this is "NL", than Field2, Field3 and Field4 become required.
    I've done this with FormCalc
    if (Field1 == "NL") then
    Field2.validate.nullTest="error"
    Field3.validate.nullTest="error"
    Field4.validate.nullTest="error"
    else
    Field2.validate.nullTest="disabled"
    Field3.validate.nullTest="disabled"
    Field4.validate.nullTest="disabled"
    endif
    Now comes my problem:
    When field2, field3, and field4 are requered, they have to change color (fill color red) when empty
    And when they are not required, they don't have to change color
    Can anyone help me with this problem?

    Hi,
    Here is an example of script for changing the visual appearance of an object. Please note that the script in this example is JavaScript. https://acrobat.com/#d=xHziYOr8zapKWtuVhWUk0w
    Hope that helps,
    Niall

  • 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

    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

  • Question about requiring fields in Adobe Acrobat

    I am trying to create a PDF form that can be submitted online as a pdf.  In the form those filling it out have two options, and if they pick one option, it hides the form fields for the other option so they don't have to fill it out.  However, I want to make fields required on both, and if I make the fields required and those fields get hidden, the document cannot be submitted online.  Is there a way to make a field required, and then when it is hidden, the field is no longer required?  The document would need to be completed in Reader.

    Hi try67,
    I'm not dealing with code specifically, just the options in the properties box.  I'm not familiar enough with JavaScript or other code.  Do you know of an option that would utilize just the options available in the field properties box?

Maybe you are looking for

  • How to make a really basic pong game for a beginner

    Hello.  I've read through a couple of threads on here dealing with making a game of pong in LabView, but in them the users had questions with far more complex aspects of the program than I want to deal with.  I am a beginner programmer in LabView wit

  • Adobe After Effects Crash! Help! SOS!

    hello, thanx for reading this question. id like to come to the point, i have just installed adobe after effects cs3 pro v8.0.0 on my pc and its working fine, until yesterday when i tried to import a video file which is in .avi format. i can tell you

  • Playlists no  longer work with my Alpine CDA-9887 Car stereo

    I updated to 2.2 and all of a sudden when i search for playlists on my stereo, the search button on the head unit doesn't do anything. It is not the head unit because i tried it with other other ipods just to make sure and it worked perfectly. I neve

  • [Solved] Simple way to edit id3v2 comment tag in python?

    I'm working on a project right now that is going to read the id3v2 comment tag from an MP3 file, parse some things from it, and then append some text to the end. Right now I'm using id3v2 from extra to do this: comm = commands.getoutput( "id3info '%s

  • Issue with idoc configuration in xMII

    Hello, I have an issue when I try to create IDOC communication between SAP ECC 6.0 and my MII 12.1 system. Here is the configuration in SM59: Here is the configuration for XMIIIDOC03 resource adapter in netweaver: And here is the error message I get: