Need to delete drop down values of activity in travel request portal

Hi,
We need to hide/delete few of the drop down values from activity in travel request creation in portal, i know that if we delete in R/3 it will effect here, as per the client requirement we need values in R/3 system but that few of the values should not appear drop down list .
Regards
Ganesh

Hi Ganesh,
Try the below code in POSTexit of WDDOMODIFYVIEW( ) method of your view
DATA drp_info       TYPE REF TO if_wd_context_node_info.
data   lo_node        type ref to if_wd_context_node.
DATA drp_value_set  TYPE wdr_context_attr_value.
DATA drp_value_list TYPE wdr_context_attr_value_list.
DATA index TYPE n.
DO 5 TIMES.
index = sy-index .
CONCATENATE ' Value ' index  INTO drp_value_set-value SEPARATED BY space.
CONCATENATE ' Value ' index  INTO drp_value_set-text SEPARATED BY space.
INSERT drp_value_set INTO TABLE drp_value_list.
ENDDO.
SORT drp_value_list BY value.
DELETE ADJACENT DUPLICATES FROM drp_value_list COMPARING value.
lo_node  = drp_info->get_child_node('GENERAL_DATA').
drp_info = lo_node->get_node_info(  ).
drp_info->set_attribute_value_set(
name = 'T_ACTYPE'  value_set = drp_value_list ).
Hope this helps you.
Regards,
Rama

Similar Messages

  • Drop down values for table in a view not getting populated dynamically

    Hi Experts,
    The problem which i am facing is as follows
    In an existing web dynpro component , i already have a view and it consists of table which has 3 columns.All the three columns are non editable
    MATERIAL     MAT_DESC     MAT_DEL_FLAG
    ABC          
    EFG          
    HIJ
    Now i need to add 2 more columns after the MAT_DEL_FLAG.These two PLANt and STORAGE LOCATION columns must have drop down values
    The context refers to a standard Database ZTABLE to which these two fields are added.
    MATERIAL     MAT_DESC     MAT_DEL_FLAG     PLANT     STORAGE_LOCATION
    ABC                    
    EFG                    
    HIJ                    
    The Plant column must have the drop down values based on Material .
    If we select some value for Plant , then based on the value of plant the storage location drop down values must be populated.
    So as per this logic , the drop down values for plant for each row must be different.
    Please let me know how to achieve this.
    This is a normal table and not an ALV table.
    Also please let me know whether the drop down field must be drop down by key or drop down by index.
    This is very urgent.
    Thanks in advance
    Sindhu

    Refreshing things again for you -
    1. As I have already pointed, create 2 context attributes for VALUESETS for both plant and St.loc.
    2. Create dropdown by indexes for both of them, assign valusets to respective attributes using node information.
    3. Go to the plant dropdown and create the action for it ONSELECT event - when you chagne the dropdown of plant then populate the respective storage loc.
    4.Now, As you are selecting a row (leadselect) you have populated the plant and loc details....write the code for lead selection event of the table
    You will get the lead selection index right using node interface (IF_WD_CONTEXT_NODE)
    LOOP AT ITAB INTO WA_ITAB.
    if sy-tabix eq lv_lead_index.
    clear wa_valuset.
    wa_valueset-key = 'X'.   "plant
    wa_valueset-value = 'X'.
    append wa_valueset to it_valueset1.
    * popultae the storage location valuset based on the plant selected (bydefault it is 1 right in dropdown)
    clear wa_valuset.
    wa_valueset-key = 'XX'.   "storage loc
    wa_valueset-value = 'XY'.
    append wa_valueset to it_valueset2.
    else.
    * Fill the valusets for all other rows as different or as per your requirement.
    endif.
    wa_itab-valuset1 = lt_valueset1.
    wa_itab-valuset2 = lt_valueset2.
    modify itab from wa_itab transporting valuset1 valuset2.
    clear wa_itab.
    ENDLOOP.
    lo_node->bind_table ( it_tab).
    Now for that Row, if a plant value is changed, respective storgae loc has to be filled right...then in that ONSELECT of plnat drodpwon again you need to write a piece of code...using the same code with a little modifications.
    Hope this is clear.
    Check this article on the same - but here ALV is used...the concept is same  use it for your table -
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cbdde3-fe58-2c10-fcbc-8db18e693877?QuickLink=index&overridelayout=true
    the above code you hvae pasted  - i think it fills only for the 1st time....
    Regards,
    Lekha.
    Edited by: Lekha on Dec 20, 2011 12:00 PM

  • Crystal report Chose from List or drop down value in parameter from UDT

    Hi Experts,
    I had face a issue while creating a report for my client in crystal report , I had create a report and in the parameter field I want to select the value from the chose from list or drop down value from the User define table.
    In parameter had written field as : Code@Select * from dbo. [@UDT] ;  but in the report filled I am not able to select the value.
    Please Help me ! Thanks in Advance. :

    HI
    Welcome to the Forum...
    You cannot put all the values in a single parameter field so you need to select each field for each parameter...
    Better you post it in this link for more reponses:
    Reporting and Printing

  • Help needed to create drop down list for a field.

    Hi,
    I have to create a parameter/select-options on the selection screen having  drop down values and also having multiple selections allowed.
    Please help me to attain this functionality.Its urgent.
    Thanks,
    Sandeep.

    Hi,
    Here is the exampel Program, i am sending the code for a Paramter, If you want this for the Select-options, then you need to have the paramer name as PS_PARM-LOW and you need to write the smae logic again for PS_PARM-HIGH to get the List box for the select-option
    REPORT ZLIST.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.

  • SCAC Field Should have Drop Down Values and ASN should have Storage locatio

    Hi ,
    We have a requirement while creating ASN in which we have to add SCAC ID  in the SCAC field ( Carrier)  this SCAC ID comes in Shipping details  - We want to have drop down values in this field and also if we dont enter value in this field An Error Message should come like " Maintain SCAC code.
    And also the PO's coming from ECC are not carrying Storage location information - Is there a specific config / enhancement to be done.
    And in ASN can we have Storage location ?
    Thanks,
    Mahesh

    Hi Mahesh
    Regarding adding fields to UI
    Refer below links
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0b0e544-7a06-2d10-539d-f8648358ba67?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/SCM/SAPSupplyNetworkCollaboration%28SAP+SNC%29
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/908c1e69-0a01-2d10-e7a6-98ca00f19aa6?quicklink=index&overridelayout=true
    Not sure how to maintain it as a drop down, a developer could help you easily with that.
    Regarding Storage location from PO ECC.
    If you are using idocs, the standard SAP xml conversion will not be able to transfer this(if you download standard content)
    You can find the field in your IDOC ORDERS05, Data records-Segement-E1EDP01FIELDLGORD
    In order to transfer this, you need to rewrite the xml format in integration builder of XI/PI and then add some UI fields in Webui
    to show.
    But xml PurchaseOrderERPReplenishmentOrderCollaborationNotification as of SAP ECC EHP4 can carry this information in its payload document(SXI_MONITOR---INBOUND MESSAGE ---PAYLOADS) Under the node INVENTORY MANAGED LOCATION
    Not sure where this field is mapped to .........
    I will let you know once i find........Mean while you can ask any developer who worked on webdynpro .
    Yes we can have this field once we find where it is mapping, if you are using idocs then even the XML has to be build in PI
    accordingly.
    Best Regards
    Vinod

  • Retrieving the drop down value used in wdr_select_options for default

    Hello Experts,
    I populated drop down using the method add_parameter_field by using WDR_SELECT_OPTIONS component.
    Now my requirement is I need to default the value in some other parameter field based on drop down selection value.But the problem is WDDOMODIFY method is not triggreing while selecting the value from this dropdown for defaulting the value and even there is no method or option in the interface if_wd_select_options for creating an action while selecting the drop down like on slect in our manually creation drop down.
    Please let me know if there is any solution for this.
    Thanks and Regards,
    Venkat

    Hi venkatesh,
                    The eventhandlet ONENTER of WDR_SELECT_OPTIONS wont work for the drop down and also
                    there is no ONSELECT event of drop down in select options.
                    So i think there must be some kind of button action.
                    As you told you need to default the value of selection screen field based on drop down selection
                    why dont you remove that field from selection screen as you can however use the value later
                    while executing depending on drop down value.

  • Drop down lists are active in PDF when received by email

    Hello,
    I have a form with drop down lists and the form is set so that when the user submits it, the PDF form is sent, not the XML file. The problem is that when I receive the PDF form, the drop down lists are active and I can change the items in the list. Is there a way to disable this so that when the PDF form is received no changes to the form can be made?
    Thank you.

    I think you need to have a flag in a hidden field that indicates that the form has been submitted.  You could set that flag on the form's pre-submit event.  On the form's initialize event, check the flag.  If it's been set (i.e. the form has been submitted before), programatically lock down the form.  Here's a tidy little (untested) recursive function that locks down the form:<br /><br />lockDown(xfa.form.nodes);<br /><br />function lockDown(oNodes) {<br />     for (var i=0; i<oNodes.length; i++) {<br />          if (oNodes.item(i).className == "subform")<br />               lockDown(oNodes.item(i).nodes);<br />          else               <br />               oNodes.item(i).access = "readOnly";<br />     }<br />}<br /><br />Jared Langdon<br />http://www.jlangdon.ca

  • Drop down lists are active in form received by email

    Hello,
    I have a form with drop down lists and the form is set so that when the user submits it, the PDF form is sent, not the XML file. The problem is that when I receive the PDF form, the drop down lists are active and I can change the items in the list. Is there a way to disable this so that when the PDF form is received no changes to the form can be made?
    Thank you.

    I think you need to have a flag in a hidden field that indicates that the form has been submitted.  You could set that flag on the form's pre-submit event.  On the form's initialize event, check the flag.  If it's been set (i.e. the form has been submitted before), programatically lock down the form.  Here's a tidy little (untested) recursive function that locks down the form:<br /><br />lockDown(xfa.form.nodes);<br /><br />function lockDown(oNodes) {<br />     for (var i=0; i<oNodes.length; i++) {<br />          if (oNodes.item(i).className == "subform")<br />               lockDown(oNodes.item(i).nodes);<br />          else               <br />               oNodes.item(i).access = "readOnly";<br />     }<br />}<br /><br />Jared Langdon<br />http://www.jlangdon.ca

  • Drop down Values in Adobe form

    Dear All,
         Greetings.
         I am using the Adobe interactive form for E Recruitement(copying the standard and changing it as per the requirement). When i am using the Drop down value for one of the field. Instead of the drop down its showing as a POP-UP with all the possible values.
    I am not able to predict what the problem is. I need to have a drop down, instead of the pop up.
    Please help me in solving the issue.
    Thanks
    Ram M

    Hi Ram,
    Please use a Enumerated Drop down list ffrom the library, seems currently you have Extended Value selctor in your form.
    This will hopefully resolve the issue.
    Regards,
    Arafat

  • Drop down values in Adobe print form, WDA.

    Hi All,
    I would like to know, how we can dynamically display drop down values in an interactive form developed either through report programme or WD ABAP.
    I passed an internal table, but it didnt work.
    I tried the ISR way, even then i couldnt get much success.
    I even tried using the dynamic properties.
    As per my understanding, i need to pass the values as index- text pairs and add some script to the field.
    Kindly help on the steps i need to follow. Any suggestions are welcomee [:)]. I require to fetch the DDL values from database tables.
    Kind Regards,
    - anto.

    hi,
    to populate the dropdown list you can do it...
    1). manually or 
    2). by code
    1). <b>manually</b> go to interactive form->edit
         go to Object tab->field tab ->
         you must see something like
         List Items :
         Text     + x
         click on the green + sign...
         it promps you to type. type in the value press enter... and so  on...
    2) <b>by Code...</b>
        //set up contents of a drop down list dynamically...
        IWDAttributeInfo countryInfo = wdContext.nodeTravelData().getNodeInfo().
                getAttributeInfo().getAttribute("DestinationCountry");
        ISimpleTypeModifiable countryType =
                countryInfo.getModifiableSimpleType();
        IModifiableSimpleValueSet countryValueSet  =
                countryType.getSVServices().getModifiableSimpleValueSet();
        countryValueSet.put("1","Germany");
        countryValueSet.put("2","UK");
    This will work....
    regards,
    -amol gupta

  • Populate Drop down values to Adobe forms

    Hello,
    I am in the process of developing the HCM forms for PCR's. This is using old technology. How can I pass values to the Adobe forms based on certain condition selected in previous screen. For eg. Based on Position selected, I should have a certain value in Drop down pre-selected on the next screen and when the user does a drop down a list of the values should be listed. Where should do the coding for the subsequent drop down values?
    Appropriate points rewarded.
    Prasad

    Here a change in the question below. Based on Position selected, I should have a certain value in Drop down pre-selected on the next screen from table IT1008
    and when job is selected drop down from table T500P should be listed. Does this need to be handled in badi or in the Adove form scripting?
    Thanks
    Prasad

  • Technical names for drop down values through webui

    Hi All, I have ECC 6.0 (SAPKH61705) transactions being launched in CRM 7.0 (SAPKU71305) through the transaction launcher. We are able to display technical names for values in ECC through the gui, and in CRM in both the gui and webui. Is it possible to display the technical names for ECC through the webui? Apologies if this is not the correct forum, I was not sure where to post. For further clarification of the issue, I hope these screen shots assist: ECC gui with 'display technical names' activated: qui - tech names on.jpg CRM webUI with 'display technical names' activated in both ECC and CRM: webui - tech names not visible.jpg Assistance appreciated.

    Hi Amy,
    Yes, it's possible.
    You can achieve it by coding. Instead of passing only the description to your drop down values, we can send technical name and description simultaneously to your drop down value. That's it.
    BR,
    RAM.

  • [svn:fx-3.x] 11672: We no longer destroy the drop down in updateDisplayList if the drop down itself is active , this was a regression from 8906.

    Revision: 11672
    Author:   [email protected]
    Date:     2009-11-11 14:07:26 -0800 (Wed, 11 Nov 2009)
    Log Message:
    We no longer destroy the drop down in updateDisplayList if the drop down itself is active, this was a regression from 8906.  The change made in 8906 was preventing users from using up/down to navigate drop down selection.
    QE notes: None
    Doc notes: None
    Bugs: SDK-23661
    Reviewer: Alex
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23661
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/ComboBox.as

    Hi,
    Pls check if the history option has been disabled on the gui's  menu --> options --> local data --> history.
    Also the history is set to on or immediately and the users c drive has sufficient disk space.
    Since the history has been deleted it would take a few entries before it appears again.
    Also there is a possibility if the work directory has the *.ldb and *.mdb files which stores the history information.
    If this is not existing then it woould be a good idea to reinstall the gui to get this files back to ensure the history is captured.
    Cheers Sam

  • Drop Down value missing in MSA

    Hi Experts,
        I am not getting dropdown values(combo values)in fields for Transaction Type OPPORTUNITY in Mobile Sales Application Client. Does any know as what could be the problem as we we create and replicate opportunity from CRM enterprise.
       Also while ceating Visit Planning in MSA we are not getting drop down values in field STATUS
        Please help  &  Thanks in Advance
    Regards,
    Rahul
    Message was edited by: Rahul Jagani
    Message was edited by: Rahul Jagani

    Hi Rahul,
    You probably haven't downloaded all the customising to your mobile client.  You need to assign the customising subscriptions to your site after you have done an initial load to the CDB.
    Suggest following the best practice guides.
    Cheers
    Andrew

  • How to fill drop down value in BDC

    HI  Friends-
    AM using PA30 tcode in my BDC recording , its filling rest value but ,  for drop down values its not showing value .
    how i can pass the drop down values here ?
    Regards
    Meeta

    Hi Meeta,
    You need to use the function module 'VRM_SET_VALUES' to set values for drop down list.
    Refer to the link below for more info...
    Re: Populating values in dropdown based on values selected in second dropdown.
    Thanks
    Alis

Maybe you are looking for