Modify Values Document Category List

Hi All,
Can you please explain how to modify values or add new ones to the Document Category list, that belongs to the manage contract documents Actions?
I am working on OM > Blanket Sales Agreement >
Thanks for your help
Deneb

What exactly do you need, just a list of categories applied on a document or something more? Here is a basic AttributeRequest for getting category info from document:
        AttributeRequest[] catAR = new AttributeRequest[]
          new AttributeRequest(Attributes.CATEGORIES, new AttributeRequest[]{
            new AttributeRequest(Attributes.CATEGORY_CLASS_OBJECT, new AttributeRequest[]{
              new AttributeRequest(Attributes.DISPLAY_NAME, null)
            new AttributeRequest(Attributes.CUSTOM_ALL, null)
    Item file = fm.resolvePath(filePath, catAR);
    NamedValue[] categories = file.getRequestedAttributes();
    Item[] categoryInstances = (Item[])categories[0].getValue(); //index [0] is for Attributes.CATEGORIESthen you cycle through categoryInstances to get each category's display name.... Hope this helps, if you have any other questions - ask and I will try to give you the answer!
Pedja

Similar Messages

  • Update routine to populate value for field ZDOCCATG(Document category)

    Hi Experts,
       I need to populate  data for field ZDOCCATG(Document Category) based on the value of the below  two fields,
    1. 0deb_cre_lc(Debit / credit Amount)
    2. 0ac_doc_typ(Belegart)
    The logic is as follows:
    if 0deb_cre_lc > '0'.
         if 0ac_doc_typ == 'dz'.
          ZDOCCATG = Disputes.
         else
      ZDOCCATG = Invoices.
       end If.
    else
    if 0ac_doc_typ < '0'.
    ZDOCCATG = Credits.
    end if.
    I need to write the update routine to get the values assigned for Document category based on these two fields. When i open the routine for the field ZDOCCATG, i can see the below screen:
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    FORM compute_data_field
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
      USING    COMM_STRUCTURE LIKE /BIC/CS80FIAR_O03 - (Communication structure)
               RECORD_NO LIKE SY-TABIX
               RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING RESULT LIKE /BIC/AZOARFSCM00-/BIC/ZDOCCATG
               RETURNCODE LIKE SY-SUBRC "Do not use!
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    result value of the routine
      RESULT = .
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    Please let me know the code to be inserted (based on the logic mentioned above) in the above screen . Thanks
    Regards,
    Kavitha Jagannath

    Hi Kavitha,
          Supposing the technical name of fields is /bic/0deb_cre_lc and /bic/0ac_doc_typ use the code below at the marked position.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line -
    TABLES: ...
    DATA: ...
    $$ end of global - insert your declaration only before this line -
    FORM compute_data_field
    TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
    USING COMM_STRUCTURE LIKE /BIC/CS80FIAR_O03 - (Communication structure)
    RECORD_NO LIKE SY-TABIX
    RECORD_ALL LIKE SY-TABIX
    SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
    CHANGING RESULT LIKE /BIC/AZOARFSCM00-/BIC/ZDOCCATG
    RETURNCODE LIKE SY-SUBRC "Do not use!
    ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line -
    fill the internal table "MONITOR", to make monitor entries
    result value of the routine                 
    <----- Paste the code below as shown here --->
    if comm_structure-/bic/0deb_cre_lc > 0.
      if comm_structure-/bic/0ac_doc_typ == 'DZ'.
       result = 'DISPUTES'.
      else
       result = 'INVOICES'.
      endIf.
    elseif comm_structure-/bic/0deb_cre_lc < 0.
      result = 'CREDITS'.
    end if.
    <----
    >
    if abort is not equal zero, the update process will be canceled
    ABORT = 0.
    $$ end of routine - insert your code only before this line -
    ENDFORM.
    Regards:
    Jitendra
    Edited by: Jitendra Gupta on Oct 15, 2009 3:05 PM

  • This column cannot enforce unique values because this list or document library may contain items that are not viewable by all users.

    The above error occurs when I place unique constraint on a column in a custom list. This error only occurs because the custom list has been configured to only allow creaters to view and edit their own list items.
    I just can't see why that should prevent SP from placing a unique value constraint though.
    One easy workaround would be to place the unique constraint on the SQL Server table that represents this list. However, in a hosted environment, it is not always possible to gain access to the backend server. What is more, I am uncomfortable with this
    approach as it may break other parts of SP 2010.
    Is there any other approach?

    Hi,
    If SharePoint were to enforce uniqueness on a column in a list where users are only allowed to see and edit list items that have created, then you could have a scenario where -
    a. user1 tries to add a new item to the list which violates the uniqueness constraint
    b. SharePoint reports an error
    c. user1 gets to know that there is another item containing the same value in this list
    d. this violates the security settings that you configured (each user should be allowed to only see the items that they have created). Now if you change the permissions settings to allow users to SEE all items, but only
    edit items that they have created, this error disappears (obviously).
    Now getting to the workaround you mentioned (creating a unique constraint on the SQL Server table). This is not going to be possible for numerous reasons -
    a. Modifying (or for that matter, even performing SELECT operations on) the SQL Server tables is an unsupported operation and it will definetely break other things in SharePoint, not
    to mention that you will lose all support options from Microsoft. However if you don't care about this, then it will still not be technically possible because...
    1. SharePoint does not create a new SQL Server table for every list/library. 
    2. If you did get around to enforcing a unique constraint in the one single table that SharePoint uses for all lists, then you will be enforcing this constraint on each and every list in all the sites and in all the site
    collections that are assigned to that content database.
    Please "Mark as Answer" if a post has answered your question or "Vote as Helpful" if it was helpful in some way. Here's
    why

  • Document Category Contains Invalid "#" Value (0DOC_CATEG_TEXT)

    We recently applied support packs to our ECC6 system.  Somewhere in there, additional data records were added to the VBTYP domain (SD document categories).  This domain is used for the 0DOC_CATEG_TEXT BW datasource.  When I am loading document category master data into BW, it returns an error because SAP decided to make the symbol "#" the key value for one of the new doc categories.  OSS Note 173241 states "The value that only consists of the single character '#' is not allowed because the initial input is masked with '#'."
    What were they thinking?  Has anyone found an OSS note to resolve this or have encountered this problem?
    What we applied:
    Netweaver is EHP1 support package stack 3
    ECC6 EHP4 Support Pack Stack 3
    Thanks,
    Lisa.

    Has this issue been resolved from anyone who experienced the same problem?  We just upgraded our R3 server to Enhancement Pack 5.  Since then, our load process for the 0DOC_CATEG_TEXT datasource has been erring because of newly added values from the EhP5 upgrade.  Several new categories were added using symbols, but the load is failing specifically against 2 of them: a § symbol, and the other one I'm unsure of because as some already pointed out, SAP masks the value with a pound (#) symbol, rather than showing the actual value.
    Granted, I could easily add the § symbol into allowable characters (would rather not; allowing characters like that can easily create confusion and other errors down the road in reporting), but not knowing what the second one it's failing on is because it's masked with the # character, would not do my any good.
    As someone suggested, I could also add in some logic to our user exit to delete anything outside of the ABC123 values, but was hoping maybe there was a note or something in regards to fixing this issue before going down this route.

  • Can a Deployment Plan Modify Values in a .properties file?

    I'm using JDeveloper 11.1.1.6.0 and Weblogic 10.3
    I am currently in the process of creating a plan.xml file for our application, but we have a few properties files that contain configuration information. This information needs to change depending on the environment that we are deploying to. Is it possible to do this through a plan.xml or would we have to use some other method?
    Example:
    File: conf.properties
    ------start file-----
    A=1
    B=2
    C=3
    -----end file-----
    We would need to be able to change the value of B to be 5 instead of 2 if we are deploying to our test environment.

    As far as I can tell, what you linked is just using the deployment plan's XPath to update a value in the web.xml which is standard procedure. However, I am curious of being able to update values in a .properties file which is not an XML file, and thus can't be read by XPath. Is this possible or can the deployment plans only modify XML documents?
    [EDIT] From what I've been finding it seems I've confirmed that it can only override XML files, or atleast I've found no indications that it can do anything other than XML files. Though now I'm having issues of it overriding custom XML files. EG: I have a wf_client_config.xml file in the WAR's class path that I need to update depending on the environment, but have not been able to have the deployments recognize the override that I have listed in the plan.xml.
    So I guess now my question is, do I ened to do anything special to get it to recognize an XML file on the class path vs a standard xml file such as web.xml? Or should I make this a new topic?
    Edited by: mBaldwin on Jan 8, 2013 11:45 AM
    [EDIT 2] Marking this as resolved, it appears as though the plan.xml will only modify settings that could be modified by Weblogic naturally and it is not able to modify items that are on the classpath of the application.
    Edited by: mBaldwin on Feb 26, 2013 12:08 PM

  • How to get the value from select list to text box

    Hi,
    I have a select list i want to retrieve the value from select list to text box.
    How can i do that???
    Regards,
    Sakthi.

    Hi Sakthi,
    Yo can use the Java script for that..
    Dynamically the value will come into text box.
    Use the below script.
    <script type="text/javascript">
    function disFormItems()
    var lReturn = $v(here your select list name)
    alert(lReturn);
    document.getElementById(here your text box name).value =lReturn; }
    </script>Cheers,
    Shan

  • How to set a default value in dropdown list in Wendynpro ABAP? Help!

    Hi Experts,
           I have Webdynpro for ABAP application that shows a DropdownwithKey UI element.
    1. I am able to populate the dropdown list. But by default the list is not showing any value. Only when I select a value from the list then it shows it.
    So how to set the default value to the first value in the list? Any code sample will be really helpfull.
    I have written the following code:
    method WDDOINIT .
      DATA:
        node_category TYPE REF TO if_wd_context_node_info.
      node_category = WD_CONTEXT->GET_NODE_INFO( ).
      node_category = node_category->GET_CHILD_NODE( 'CATEGORY' ).
      data:    LT_VALUESET type WDR_CONTEXT_ATTR_VALUE_LIST,
               L_VALUE type WDR_CONTEXT_ATTR_VALUE.
    L_VALUE-VALUE      = 'V1'.
    L_VALUE-TEXT    = 'yesterday'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V2'.
    L_VALUE-TEXT    = 'today'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V3'.
    L_VALUE-TEXT    = 'tomorrow'.
    INSERT L_VALUE into table LT_VALUESET.
    node_category->SET_ATTRIBUTE_VALUE_SET(
                 NAME = 'CAT_VALUE'
                 VALUE_SET = LT_VALUESET ).
    endmethod.
    Note that: I am using webdynpro for ABAP.
    Thanks
    Gopal

    I am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element)  in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<defalut value>)
    This generally done in Initialization method of the controller.

  • How to remove value from pop list in iProcurement Page

    I need to remove a value from POP list. How can I do this? Can I do this using Perosnalization?
    While creating requisition in the approvers page there are two buttons one is Approvers and another is Add_Attachments.
    When I click Add_Attachments button it will open another page there I need enter description and select category from the pop list and define attachment.
    In the category list I need to remove one value. How do i do this.Personalization links not available in this page.
    Please help guys...
    Thanks Advance
    Kumar

    Kumar,
    First you need to find out the data source for the category pop list. Based on that we can suggest how to achieve that requirement as there are many different ways of specifying the data source for a pop list.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Trouble modifying a document

    We are having trouble modifying our XML document that we have successfully stored in our database using DBXML.
    Correct me if I am wrong, but we understand that in order to modify the document using XmlModify, we must query the document for the specific node we want to modify. This we can do just fine. However, it seems that we cannot modify the document when we get very specific with our queries.
    Our document structure is:
    <root>
    <node id="123">
    <element1>
    <element2>
    <element3>
    </node>
    <node id="234">
    <element1>
    <element2>
    <element3>
    <element3>
    </node>
    </root>
    Since our elements repeat for each node, we need to structure our queries to bring back the node based upon the attribute or an element value. When we attempt this, we get the INTERNAL_ERROR error.
    Can anyone help us to modify our document based upon a very specific query?
    We are using DBXML with Java 1.5 and Tomcat.
    Thanks in advance for your help!

    Hi,
    You'll need to post the queries that you are using, and probably the code that you use to make the modifications before we can help you.
    John

  • How to get SD Document Category

    Hello Friends,
    I am not a functional guy and so am having problem in knowing how SD Document Category is related to a customer.
    I have details like customer, sales organization, distribution channel, division inco terms etc.,
    I have to create a quote from a program outside of SAP. I am able to send all the data needed to create a quote except for 'SD Document Category'.
    Is there a way to search for this using the info that I have as mentioned above.
    I tried tables like VBUK, VBAK, VBKA, BVKD etc., but these are in no way related to customer etc., which I can use as keys to search for the right SD document category.
    Any help will be greatly appreciated.
    Thanks
    Ram

    Hi ,
    I am not in front of SAP, still suggestion is to check following tables:
    VBAKUK VBAK + VBUK
    VBUK Header Status and Administrative Data
    VBAK Sales Document u2013 General Header Data
    VBKA Sales Activities
    VBKD Sales Document - Business Header/Item Data
    VBPA Sales Document - Partners Header Data
    VBUP Item Status
    VBPA Sales Document u2013 Partner Item Data
    VBAP Sales Document u2013 General Item Data
    FPLA sales Document u2013 Items Conditions data
    VBFA Document Flow
    VBEP Sales Document Schedule Line
    VBBE Sales Requirements: Individual Records
    VEDA Sales Contract Data
    VBELN Sales and Distribution Document Number
    If you know where is doc catagory field , go and press F1 on it and then go in technical settings .
    Here you can get table and fields name.
    If you get field name , just do where use list of it . you will get the table.
    Hope it help you.

  • Document category changes to credit from returns

    hi,
    we have changed the document type category from that of the returns to the credit memo request and modified the order related billing type.
    When we wanted to move changes to the production, we see that there are 2500 documents lying with some delivery created and some with open orders;
    can any one suggest the best way of handling this situation;

    Hi,
    Changing the document category for a document type when it is in use in production is never recommended. The reason being, when category of the document type changes, there are a lot of effects on the system especially on the VBFA table. The already lying documents may have a problem as you will have created delivries for the same and you many not be able to take it any futher as the document is now order related billing (with new config moving into config) and not delivery related billing.
    So, the best way to handle this kind of a situation are
    a. Bill all the delivery that are pending in production. In case the situation does not allow, then, try to reverse the delivery and delete it.
    b. Complete all the open sales orders in production. Else delete them.
    c. After a and b are complete, you can move the document type into Production.
    Alll these activities are to be completed on a non working day (preferably Sunday) so that no new documents get created. You can block all the user authoriztion for some time so that you can achieve the results...
    However, the word of caution before moving the new config: IF you move the new config, you cannot reverse the old documents any more....
    Hope this helps...
    Thanks
    Mukund S

  • How do I populate form fields depending on the value of a list box?

    Hi,
    Can anybody help me out here?
    I'm creating a form where I'm needing to populate a number of fields (first name & last name) based on the value of a list box (values are 1,2,3,4,5,6) ie: if 3 is selected 3 sets of the first name and last name fields populate on the page for the user to fill out.
    At this stage it is just a prototype site and there is no database running behind it.
    Thanks
    Hayden

    This can only be solved if you have javascript coding skills.  Without knowing more about what you want to do and why, I can only show you a skeleton of how your code should look, but consider this form select field -
    <select onchange="populateForm()">
    When a value is selected from that list, the "onchange" event will fire, and will call the javascript function called populateForm().  You need to define a function by that name somewhere on the page -
    <script type="text/javascript">
    //<![CDATA[
    function populateForm(value) {
         if value >0 { document.getElementById("fieldID").style.display='block' }
         if value >1 { .... }
         etc.
    //]]>
    </script>
    The page itself would need to have ALL the fields already in the form, but with those that are to be revealed set to a style of display:none.
    Obviously, this is a skinny skeleton.  Each test in the function would reveal a new field on the page by changing its display style from "none" (which is how they should be set in the code) to "block".  You would need a separate function for each type of field that might need to be chosen.
    If this is well over your head, then I'm afraid you will be out of luck for this particular approach....

  • Creating a Document Category

    Hi SDNers,
    We are running ECC 6.0/Funds Management with Former Budgeting.
    When running FMMC to close Earmarked Funds, the program results in a short dump.  When run in dialog mode, the following error message is displayed:
    Document Type 11 is not defined for document category 001.
    The procedure recommends going to Funds Management Customizing to define a document type for document category 001.  When I go to the IMG, there is not an option for doc. catg. 001 and it will not let me create it.
    I have two questions, if the document type is not defined for the document category, how can earmarked funds posting reflect this?  Table KBLK shows the document type 11 assigned to document category 001.
    The second question is how does one create a document category, so that Doc. Types can be assigned?
    Thanks,
    -Patrick

    Patrick,
    It sounds like you may have some kind of data inconsistency with this document.  The earmarked funds document categories are not configurable.  They are defined with the domain FMRE_BLTYP.  The valid values are:
    002     Funds transfer
    020     Funds Block
    030     Funds reservation
    040     Funds precommitment
    050     Funds commitment
    060     Forecast of revenue
    I would look in table TKBBA and see what category your document type 11 is tied to.  If it's not 001 (which I highly doubt it is), then your data in KBLK is incorrect.
    Hope this helps.
    Thanks,
    Todd

  • SD Document Category to CRM Leading Transaction

    Does anyone have a listing that indicates what the SD Document Category should map to within CRM for the Leading Transaction?
    For exmaple, SD document category of "C" should map to the CRM leading transaction of CRM2000115 Sales Transaction.
    SD document categ.                          
    A  Inquiry                                  
    B  Quotation                                
    C  Order                                                        CRM:  CRM2000115
    D  Item proposal                            
    E  Scheduling agreement                     
    F  Scheduling agreement with external service
    G  Contract                                 
    H  Returns                                  
    I  Order w/o charge                         
    K  Credit memo request                      
    L  Debit memo request                       
    W  Independent reqts plan                   
    0  Master contract

    Hi,
    B Quotation                 2000115               
    C Order CRM        2000115
    G Contract            2000121
    K Credit memo request 2000162
    L Debit memo request   2000167
    These are a few which I know.
    Check the table TOJTB in Tcode SE16 in CRM for other entries.
    Thanks.
    Best Regards,
    Arun Sankar.
    Edited by: Arun Sankar on Aug 7, 2008 1:59 PM

  • After selecting the value from the list box, want to disable checkbox

    hi guru,
    After selecting the value from the list box, want to disable checkbox and custom control textbox(container) in module pool.
    so please help me on this.
    thanx,
    man

    in PBO,
    loop at screen.
      if screen-name = your textbox's name.
        screen-input = 0.
        modify screen.
      endif.
    endloop.

Maybe you are looking for

  • Using Oracle SP to get data

    Hello, We have a simple need to load all data from a master table into an object in Java. We have written a simple query in Oracle and created a SP with a Ref_Cursor to return the data like below. The underlying table has 500,000+ records. If I run t

  • Need Help -- How to Change the icon of a selected Tree Node

    Hi java gurus, i am working on Jtree application, and i am adding image icons to the Nodes. my dought is when i select a node, i want to display that selected node as opened and all other icons should remain closed. Example: -- root | ----child ----c

  • Budget (FI and MM)

    hi frds, I got one issu  like this: The top management allowed this year budget amount like  50L (example).The month of mid,how many po net value used this budget amount?how much balance amount  in budget?how many invoive did above the budget? The cl

  • Can I delete tmp-archive files that are really large?

    I have two extremely large files.  I'm trying to take back some memory (only operating with 2 GB free space, and that's not good). Ran Disk Inventory X to see my largest files, and found these two gems with 32.25 and 44.62 GB. Now, I've been to one l

  • Shut down maintenance with revision codes

    Hi guys, For creation of shut down order, revision is needed, in IMG we can create revison (Revision is created with planning plant number and revision number and start and end of revision dates.) and this number is to be mentioned in order,  could y