Add userfields to document ?

hi,
does anybody knows how i can add userfields to documents by DI ? Some code snipets would be nice.
thanks
Markus

Hi,
You should use the object UserFieldsMD object to add userfields to a system table.
You must know the name of the table representing your document and then follow the code I show you here:
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
'// the meta-data object needs to be initialized with a
'// regular UserFields object
oUserFieldsMD = pCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
'// Setting the Field's mandatory properties
oUserFieldsMD.TableName = "TABLENAME"
oUserFieldsMD.Name = "MyFieldName"
oUserFieldsMD.Description = "My Field Description"
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
oUserFieldsMD.EditSize = 20
'// Adding the Field to the Table
lRetCode = oUserFieldsMD.Add
Hope it helps
Trinidad.

Similar Messages

  • Add userfields to system table error!

    hi,when I add userfields to system table such as "PDN1",it's fail.Code like bellow:
      ufmd = (UserFieldsMD)diCompany.GetBusinessObject(BoObjectTypes.oUserFields) ;
      ufmd.Name = "field1" ;
      ufmd.TableName = "PDN1" ;
      ufmd.Description = "descr" ;
      ufmd.Type = ....;
      ufmd.Add() ;
      When I assgin TableName "PDN1" to ufmd.TableName,the result is :ufmd.TableName = "@PDN1".SO when add userfield to the table,the error occur:the table "@PDN1" not exist.
      When I add user fields in user table using the same code ,it's ok .
      Anybody can tell me,how to add user fields to system table? thk!

    Code below works for me (V2005A P5)
        Set sboUserFieldsMD = sboCompany.GetBusinessObject(oUserFields)
        sboUserFieldsMD.TableName = "PDN1"
        sboUserFieldsMD.Name = "AZU_TEST"
        sboUserFieldsMD.Description = "Test"
        sboUserFieldsMD.Type = db_Alpha
        sboUserFieldsMD.EditSize = 10
        lngRetCode = sboUserFieldsMD.Add
    If you are getting problems with "PDN1", try replacing it with any of "ADO1", "RDR1", "DLN1", "INV1" - adding a field to any of them has the same effect as they are all marketing document lines.
    John.

  • I can no longer  add a scanned document to a pages document since the recent update , how to fix ?

    I can no longer add a scanned document to a pages document since the recent pages upsoftware update . Any ideas on how to resolve this ?

    What is the format of the document(s)?
    What exaclty happens when you try?\
    Have you tried the Numbers forum?
    https://discussions.apple.com/community/iwork/pages

  • Not able to add Select Supported Document Types

    Hi
    I am new to Oracle B2B.
    Going through the steps given in the tutorial http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/b2b_tps.htm#BABGAJDE
    Completed till 5.3 - Task 2 (Add a User in the Oracle B2B Interface)
    And the Next thing,
    I am not able to Add Select Supported Document Types.When I click on the "Add supported document type for the selected user", i can see "CUSTOM", "EDI_EDIFACT" etc... but in that screen my "Add" Button was disabled.
    Please let me know how to proceed with this.
    Thanks,
    Deepthi.
    Edited by: 796969 on 27/09/2010 14:11

    Hi Deepthi,
    You can download the samples from below location. Samples also has document for step by step configuraion:
    B2B Samples are part of SOA samples:
    http://www.oracle.com/technology/sample_code/products/soa/index.html
    Developer Notes / Step by Step configuration guide:
    http://www.oracle.com/technology/products/soa/b2b/index.html
    http://www.oracle.com/technology/products/soa/b2b/collateral/B2B_TU001_EDI.pdf
    http://www.oracle.com/technology/products/soa/b2b/collateral/B2B_TU002_HL7.pdf
    http://www.oracle.com/technology/products/soa/b2b/collateral/B2B_TU003_ebxml.pdf
    http://blogs.oracle.com/oracleb2bgurus/2010/04/oracle_b2b_started_kit.html
    Please let us know which usecase you are trying for more details.
    Rgds,
    Nitesh Jain
    [email protected]

  • Can I add a Pages document to an iPhoto journal?

    I have created an iPhoto journal from photos taken at my high school graduation. Can I add a Pages document listing our deceased classmates to this journal?

    I see your question has remained unanswered for a while now. I suggest you experiment around with copy/paste to see how text from the Pages app might work on a journal. Please report back with how you make out.

  • Add Category to Document type not document

    Hi,
    When I add category to document, it adds records to odm_publicobject but i want to add category to document type not the document.For example i have a letter document type.i dont want to add "business" category to each letter just i want to add the letter type.is there any way to make it?

    Hello
    If we change any other field included in the release strategy (e.g. purchasing group) it works changing the release strategy. However it is not working for the document type.
    Do you know why and how to handle this?
    Thank you and best regards,
    Alejandra Álamo B.

  • Add Tags to Document removes spaces!

    Hi,
    I have an untagged PDF from which I am trying to copy the text. The text pastes into InDesign with a paragraph mark at the end of each line.
    If I add tags to document from Advanced>Accessibility, the copied text no longer has a paragrpah mark at the end of each line BUT all the spaces between words have been stripped out!
    Does anyone know why this happens and is there anyway around it?
    Thanks,
    Simon Kemp

    Content should not ever be deleted by adding tags, but it may appear so since - as you note - objects may go into hiding behind other objects. In theory you can bring them out of hiding by rearrange things in the Order pane, but I have much better luck using the Content pane - it provides a much finer level of control. If text is hidden behind a shaded box, for example, I will move the box above the text in the Content order, then usually convert the box to an artifact if it is not one already.
    Hope this helps.
    a 'C' student

  • In add mode, the document disappears. How to change that ?

    Hello
    When we are in "add" mode, the document disappears after adding. You have either to go to previous document (marketing document for example) or find it again (item, BP).
    Is there a setting to change this mode and to keep the object visible on screen like in update mode ?
    Thanks
    Fabrice

    Fabrice,
    The system functionality when you Add a document is It would Add the document and present a blank document with the next doc number remaining in Add mode.
    This is for continuous order processing / entry.
    This is core product functionality and it cannot be changed
    Suda

  • OLE - ADD TABLE TO DOCUMENT OF WORD

    I WRITE REPORT AT ABAP THAT I ADD TABLE TO DOCUMENT OF WORD OFFICE BY USING ESPECIAL COMMANDS OF OLE, BUT width of all columns of table is identical.
    i need help of you to get example program that setting
    different width, for example 5 chars for one column, 30 chars for second and so.
    thanks for who help me.

    Hi welcome to SDN.
    check out the following article for sample code.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2">An Easy Reference for OLE Automation.pdf</a>
    Regards
    Raja

  • Add Tags to Document tool put one object behind another or just deletes page content?

    Using Acrobat XI Pro to make documents 508 compliant PDF. I've had a number of issues went using Add Tags to document option, it’s put one object behind another or deleting it all together. Also had issues when trying to adjust the reading order, content is moved or deleted. This PDF is created from InDesing CS5
    Anybody know what I'm talking about or have any ideas about how to fix it? Thank

    Content should not ever be deleted by adding tags, but it may appear so since - as you note - objects may go into hiding behind other objects. In theory you can bring them out of hiding by rearrange things in the Order pane, but I have much better luck using the Content pane - it provides a much finer level of control. If text is hidden behind a shaded box, for example, I will move the box above the text in the Content order, then usually convert the box to an artifact if it is not one already.
    Hope this helps.
    a 'C' student

  • How to add the library document version to the parent Document content type?

    Hi All,
    I have a PWA instance with a project site for each project.
    Each project site has its own document library.
    Now I want to create several Templates to be available within each document library.
    I have created the new content Site Content Types (Site Settings > Site Content Types) to fit my needs; each content type has the "document" content type as parent type.
    Now I want include the "version" property (the dynamic value from the versioning) to each new document type, so I have tried to enable the "Information management policy settings" to the parent "document" type or the new ones,
    including the label "{Version}", but I receive this error:The label reference, Version, could not be found.
    So the only way to do this, is to open each site document library and make this change within it.
    Why I can't enable the Lable at the Site level?
    Thanks

    Hi,
    I can reproduce the issue by adding {version} or {_UIVersionString} in site content types > Document > Information Management policy settings > enable label.
    As workaround, please create a document library, then add label in document library settings > Information Management Policy settings. Now save this document library as template and create new document library based on this template, the policy settings
    will be saved for new document libraries.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Approval Procedures for Add-On generated documents

    Hi All,
    How do you create some Add-on generated documents into Business One through Approval Procedures?
    Thanks
    Venkat

    Hi SVReddy,
      You can use the SDK  to acheive your requirement,
    so post the thread to SDK Forum
    Regards
    Jambulingam.P

  • Can I add multiple linked documents to an existing project?

    Can I add multiple linked documents to an existing project without breaking the project?
    The project I'm working on is due to go live in just a little over a month. I've recently acquired some training materials that contain information that needs to be merged into the help file. The problem is that there is not enough time to do it, get it reviewed, and so on.
    So I had this idea of linking to the Word docs (there are 3) for now, then cleaning things up as we go along.
    Is that a stupid idea this late in the game?
    Would it be better to create a separate help file with just those docs and then merge the projects into a master project?
    I am using RoboHelp 9 and Word 2010.

    I don't think the idea in itself is silly but I think there might be a nicer solution.
    Link the documents to a new project. How is described on my site. Alternatively import them.
    Once you have got the topics looking how you want, then import them into your main project. You then have the topics ready to edit later on but for now they can go as they are.
    Backup your main project before you start the import so that you can backtrack if you want to.
    The TOC will not come in automatically this way but you'll likely want to add the new stuff manually anyway. Alternatively you can import the TOC and then append it.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Form field to add pages to document

    I work for a power utility and we recently digitized our permit process for cable and telephone companies to attach to us. The permit is per pole so when they send us a new job it may have anywhere from 1-150 poles which are each separate permits. Is it possible to add a combo box field on the first page where they can select how many poles they will have and the whole document opens to 1 to however many permits they need. Currently what we have is the same permit on 50 pages but if they need less they don't fill in all the pages and if they have more they must fill out the document multiple times.
    If this isn't possible does anyone have any other suggestions for this? Each permit looks the same but needs to be done for each pole so ideally we would want a selection on the first page that they can enter they need 30 permits and it adds 29 more pages of the same first page to work with.
    Any suggestions would be helpful, we need a new method! By the way, the companies filling in the permits will only have the free license for adobe reader, not standard or pro.

    Well seeing as the Reader 11 should be a free update then I can just ask our cable or telephone companies to use the current version so that shouldn't be a problem.
    I've honestly just started using Adobe Standard, version 9, within the past two days so I am very new to all of this. I was able to build the whole pdf with the different inputs but I've never done a template before. If you know of a forum or anything that will help I can use that if you don't want to try to explain it all to me. Also, the permit has nothing of importance on it so if it helps for me to share it somehow I can do that.
    Seems like I'm on the right track!
    Thank you!

  • I can no longer sign or add text to documents that I was able to with past versions of adobe

    I am using the same documents I always have. they have blue fillable sections that work still, but blank lines at the bottom to add text such as date, name and a signature. I cannot add that info anymore. I have tried reinstalling and repairing the newest adobe. I have other forms that I can sign and add text but these forms don't have the fillable fields in them. All permissions are given on all the documents. I have the workaround of filling out the forms, printing as a pdf, saving, opening and THEN signing them but that is an awful lot of extra steps to go through. Any help with this is appreciated.

    Hi William,
    Please let me know the version of Adobe Reader & operating system installed on your computer.
    Regards,
    Aadesh

Maybe you are looking for

  • I cannot see the Inv total on my check stub when a partial payment is made

    On my check stub in SAP B1 (PLD layout) I would like to see the actual invoice total and then what payment was applied separately when a partial payment is made. Currently the Invoice total shows the same amount being paid when its a partial payment.

  • Confirmation tasks in UWL for SRM 7.0

    Hi, We are currently running SRM 7.0 classic scenario.  We would like to have a user's confirmations display in the UWL.  From this we would like to be able to use the "Substitute" function of the UWL to assign the task to a different user.  Does any

  • Regex fails to match, so it reports closest match

    Hi Guru's, I am using the regex API to match 2 lines of a message. If the match fails the 2 lines are reported to the user so they can see what has failed. Unfortunately the lines I am comparing are very long. (1000+ chars) So the user needs an indic

  • CHA Vendor Updation..

    Hi all , We are having the import PO which is having more than 150-200 Line items,, We need to maintain same vendor code for  all the excise related condition type ( Basic Excise duty , CVD , CESS etc) So everytime we need to go each & every line ite

  • Transfer order creation Any User-Exit for item ?

    Hi all, I’m working with transfer order. What I’d like is to apply to the TO item my own fields. Is there a possibility to overwrite some of the fields of the ‘LTAP’ segment at transfer order item creation, using any enhancement (User-exit, …) ? Tran