Select Option's Context Element for the REPORT_ATTRIBUTE_ERROR_MESSAGE

Hi,
We're on 7.0 ehp1.
I found a thread on same subject u201Cwdr:select_options and highlight Error Message with a Link to Inputfield u201C, Jul-23-2008, in which Thomas Jung gave an explanation of how to get the context element of the Select Options on a view.
I tried to follow it, but Iu2019m still not getting it.  Please show how to get the context element of a Select Option for the u201CREPORT_ATTRIBUTE_ERROR_MESSAGEu201D .
   wd_comp_controller->go_message_manager->report_attribute_error_message(
         exporting
          message_text   = ls_messaga_text
              element        = ?????
           attribute_name = ls_option_id
Thomas' explanation:
I gave you the code that gets you to the interface controller. From there you call the GET_API to get the component controller. After you have the component controller it is normal context coding to read the context of the Select-Options context. Run the debugger and use the Web Dynpro view to see what your context looks like at runtime. When I test this with one of my applications, the names of the context nodes that were dynamically generated was really straight forward - as it uses the names of the select-option itself. Nothing special once you reach this point - just normal context coding...."
Kind regards,
Huntr

Hi ,
Use the below approach to achieve this,
data:
    lr_context_node       type ref to if_wd_context_node,
    lr_element            type ref to if_wd_context_element,
    message_text          type string.
  get the node and leadSelection of that field
    lr_context_node = get_node_of_sel_field( <field>-m_id ).
    lr_element = lr_context_node->get_lead_selection( ).
case <field>-m_type.
For Select option field
            when if_wd_select_options=>mc_sscreen_item_type_field.
              m_message_manager->report_attribute_error_message(
                element        = lr_element
                attribute_name = 'LOW'
                message_text   = message_text ).
"For Parameter field
            when if_wd_select_options=>mc_sscreen_item_type_parameter.
              m_message_manager->report_attribute_error_message(
                element        = lr_element
                attribute_name = 'VALUE'
                message_text   = message_text ).
            when others.
          endcase.

Similar Messages

  • In Firefox 4, how do I get back the context menu for the drop down list of the Location Bar so I can Open Link in New Tab, which I did often in FF 3?

    Firefox 3 has a context menu for the drop down list of
    the Location Bar. One option on this menu I used often
    is "Open Link in New Tab" -- quite convenient.
    This context menu has disappeared in Firefox 4.
    Can I get it back?

    See also:
    *Tools > Options > Privacy > History: "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete
    The "Use custom settings for history" setting allows to see the current history and cookie settings, but selecting that setting doesn't make any changes to history and cookie settings.<br />
    Firefox shows the "Use custom settings for history" setting as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.<br />
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".<br />

  • Hiding Options in Context Menu for Specific Roles

    Hi SDN,
    We have navigation iview assigned to some of the users. There appears context menu and the items in it. We need to remove some of the options like copy, move for the specific users.
    How to achieve this specific requirement of hiding few of the items in context menu of KM Folders and files for specific users or roles?
    Thanks in advance
    Regards,
    Ganesh N

    Hello!
    In Portal KM, set Permissions on folders for this users (Group of users) - Read.
    Other way - you can edit Ui Commands of Layoutset - which is used in iView,then create copy of iView (not delta link) and delete commands you don't want to show, then assigne iView to your specific role
    Best regards, Ivan
    Edited by: Ivan Kalahryu on Dec 16, 2008 10:05 AM

  • Remove Resubmit option in context menu of the task in UWL EP7

    Hi All
    In EP7, the behaviour of the tasks has changed a lot.
    when the task appeared in UWL,Clicking on the work items, the form is not getting opened up instead it is showing "Resubmit" option in context menu of the task.
    For each task i need the corresponding iView to get opened up. This is how I have configured our uwl.webflow.<system_alias>.xml
    How can we remove the Resubmit button and open the form for manager to submit?
    I need to revert back to original functionality.
    Points will be rewarded
    Regards
    Sonal Mangla
    Message was edited by:
            Sonal Mangla

    Have you looked at this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/09/6d6b17b29b4eef83a553acaa52f668/frameset.htm
    Paul

  • I deleted my music through the "manage storage" section in the options to make room for the ios update awhile back. Now I can't get any music back onto my device through itunes. (I've tried restoring the device twice to no avail)

    I deleted my music through the "manage storage" section in the options to make room for the ios update awhile back. Now I can't get any music back onto my device through itunes. (I've tried restoring the device twice to no avail)

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I have installed Adobe Acrobat XI on citrix (server 2008, x64) and need to suppress repair option in Help menu for the users via registry.

    i have installed Adobe Acrobat XI on citrix (server 2008, x64) and need to suppress repair option in Help menu for the users via registry. Have tried Disable_repair dword key in HKLM\software\Wow6432Node\Adobe\AdobeAcrobat\11.0\Installer and it does not work. please help.

    Look in the ETK Preference Reference here:  Installer settings

  • Where has the "recordings" options gone in imovie for the iphone? It used to be listed under the audio tab in the import icon.

    Where has the "recordings" options gone in imovie for the iphone? It used to be listed under the audio tab in the import icon. At one point you could add audio to a project from the Voice Memo app.

    there is NO "reload" button under "customize"!
    how do I get my toolbars set back to pre-firefox4?

  • What new voice over option were made available for the new iPod Shuffle?

    What new voice over option were made available for the new iPod Shuffle in the 10.1.2 update

    But it said that there were voice over update integrated into it but i didn't catch what it was

  • Higher-level billing element for the selling company code in your network

    Hi ,
    I am getting the error " No wbs element found while substituting wbs element 00074419.at the time of creation of invoice from OBD
    I ahve refered note 672929 ,  solution is  "Define a higher-level billing element for the selling company code in your network" but then I odnt ahev anything defined in the network.
    Pls guide me how to go about it
    Regards
    Suvin.Sugathen

    HI,
    - Any of the WBSE which are hierarchically superior to your WBSE "74419" should have the relevant company code.
    Check for any such superior WBSE in your structure & assign the company code, in question,  to it. It should be a billing element also.
    this is because, while billing system checks for the proper revenue receiver cost object in the particular company code.
    regards

  • Bex 2004s - Disabling Selection Sreen of a Query for the purpose of Views

    Hi,
    Is there possibility in Bex 2004s, where in we can disable Selection Sreen of a Query for the purpose of creating multiple Views.
    Thanks
    Praveen

    Hi,
    There is no posibility to disable the selection secren if there are any variables defined on a query. it can be done on the web applications side by inserting the command VARIABLESCREEN=" ". in this also it is only possible if there are no mandatory variables defined on the query.
    thanks

  • I have the latest version of photoshop cc . Why is the focus select option not available ? (for selecting the in focus area)a)

    I have the latest version of photoshop cc. Why is the focus selection option not available ?

    Use CC 2014 menu Help>System Info... use its copy option and paste the info here.  So we know your running CC 2014 not CC and that you have an enabled GPU....and latest device drivers.

  • Two Cost Element for the same GL

    Hi,
    We have 2 Company Codes - 1000 & 2000. We are using same CoA in both the Company Codes. We have a GL, say 12345678 for posting short/excess amount. So during MIRO, the accounting entry would be:
    GR/IR a/c dr.          10,000
    GL 12345678                  2
                       Vendor            10,002
    GL 12345678 would be dr or Cr would depend on short/excess amount.
    We have created Cost Element for this GL 12345678. If I post the MIRO without attaching a Cost Center to this Cost Element system thows an error to attach the Cost Center. I have separate Cost Center for Company Codes 1000 & 2000 however I can only put one Cost Center in this Cost Element.
    Can anyone advice how can I post the above mentioned entry with different Cost Center. This line item (GL 12345678) is generated automatically and the Cost Center field is greyed out hence I don't have option to enter the Cost Center during MIRO. I checked the FSG of this GL, Cost Center field is 'Optional' over there.
    Thanks,
    Sandy

    Solution Option* -You can  assign Differant Cost Centers to Company Code 1000 and Company Code 2000 in OKB9 Transaction Code.Follow the  below process....
    --- Go to OKB9
    --- Select New Entries button
    --- Give the Company Code 1000 in first row and 2000 in 2nd row
    --- Enter the Cost element 12345678 for company code 1000 and 2000
    --- Enter the relevent cost centers  for company code 1000 and 2000
    --- Select Save
    Thanks
    Fit 4 Nothing

  • How to remove options in context menu of the task in UWL.

    Hi,
    How to remove options or customize the context menu of the task in UWL.
    I have 4 options(Edit,Remove,Forward,Resubmit) is appearing in the context menu.
    My requirement is to delete Forward option form the menu list and only 3 options
    should appear in the list.
    Can anybody suggest where to change?
    Thanks,
    Vikas

    Hi vikas,
    Go to System Admin ->System Config->UWL Admin.
    select your system alias.
    Click on Click to Click to Administrate Item Types and View Definitions.
    Select your UWL configuration.
    Download DTD as well as XML file through Download Configuration.
    Then you can edit the xml file using XML spy editor or anyone.
    to upload go back to the same page and select the tab...Upload new configuration.
    Do not forget to clear the cache after upload.
    Hope this helps you.
    Regards
    Atul Shrivastava

  • VT04 - Adding new select options in grouping screen for capacity criteria

    Hi,
    I am trying to add a new select option(min & max) for grouping the delivery based on the quanity/no of units just like the weight/volume. Is there an exit/enhancement available in the program. The program for VT04 is RV56TRGN and the actual program for grouping criteria is RV56TRSP. 
    I have looked into  the user exit EXIT_SAPLV56M_001.  This I guess is only for adding the grouping criteria and not for adding select options like weight/volume.... I would need to add something similar to this.
    THnks
    Chinna

    You should search for Screen Exit .
    Also you can check if any enhancement point is avaliable in screen display place.
    You need to debud and find the exact place where this change will be required and then it will be easy to find the option  for making desired changes.
    Hope this helps you.

  • How to find the WBS element for the payment document?

    Dear All,
    How to find the WBS element in the payment document?...I know in payment doc there will not be any WBS but is there any option where I can find in any of the Tables.
    I am in the process of developing a Z report where i need to fetch the payment documents based on WBS. Can any one please help me on this.

    Hi Ram,
    As you are not giving any input of WBS at the time of payment you cannot fetch this directly. But to know the WBS for the reporting purpose on which WBS the payment has been made, you can develop a Z-Report. The WBS elements of clearing documents against the payment entry can be fetched out.
    In this report if there is a single payment against many invoices also possible with different invoice and WBS elements to be displayed on the Z-Report
    Regards
    Divya S

Maybe you are looking for