Description beside value selection

I have a listbox with certain values. my requirement is that when i select a particular value from the listbox, the corresponding text should come beside the field, how is it possible?

check this sample code for selection-screen...
TABLES : MARA.
TYPE-POOLS : VRM.
DATA : BEGIN OF ITAB OCCURS 0,
         MATNR LIKE MARA-MATNR,
       END OF ITAB.
DATA : IVALUE TYPE VRM_VALUES,
       WVALUE TYPE VRM_VALUE,
       IID TYPE VRM_ID.
DATA : CKEY(2).
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : P_MATNR LIKE MARA-MATNR AS LISTBOX VISIBLE LENGTH 20 USER-COMMAND LIST.
SELECTION-SCREEN COMMENT 25(10) TEXT.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
SELECT MATNR INTO TABLE ITAB FROM MARA UP TO 15 ROWS.
IID = 'P_MATNR'.
LOOP AT ITAB.
CKEY = SY-TABIX.
WVALUE-KEY = ITAB-MATNR.
WVALUE-TEXT = ITAB-MATNR.
APPEND WVALUE TO IVALUE.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
  EXPORTING
    ID                    = IID
    VALUES                = IVALUE
EXCEPTIONS
   ID_ILLEGAL_NAME       = 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.
AT SELECTION-SCREEN.
SELECT SINGLE MAKTX INTO TEXT FROM MAKT WHERE MATNR = P_MATNR.
reagrds
shiba dutta

Similar Messages

  • Need to populate description  beside its selection screen

    Hi
    I need to populate description of the following field beside its selection screen.
    can someone guide and help..
    for eg:
    If i enter 1 in the selection screen. its following description shd be populated next to it
    Kamlesh

    I tried working on ur logic.
    the error which I am getting is as follows:
    Kindly help me with the error.
    the name of the comment can be up to 8 character long. can u help me wht shd i put
    code is below
    selection-screen: begin of line,
                      comment 1(7) p_shift_desc,
                      position 33.
                    position 1(8) COMMENT p_shift_desc FOR FIELD P_shtim,
                     COMMENT 13(35) p_sht_de.
    parameters :      p_shtime TYPE tc37a-kaptprog OBLIGATORY.  " Shift
    selection-screen: comment 50(40) p_sht_desc,
                      END OF LINE.
    atselection this is the code written.
    tables : tc37t.
      DATA : lv_shift TYPE tc37t-kaptprog.
            lv_shiftd type tc37t-ktext.
      SELECT kaptprog
          UP TO 1 ROWS
        INTO lv_shift
        FROM tc37a
       WHERE kaptprog EQ p_shtime.
      ENDSELECT.
      IF sy-subrc NE 0.
        MESSAGE e034 WITH text-002 p_shtime text-003.
      ENDIF.
      IF NOT p_shtime IS INITIAL.
        SELECT SINGLE * FROM tc37t  WHERE spras = sy-langu AND kaptprog =
        p_shtime.
        IF sy-subrc = 0.
          p_shift_desc = tc37t-ktext.
        ENDIF.
      ENDIF.
    ENDFORM.                    " validate_shift

  • How do I default a multi-select to have all values selected

    Hi all,
    I have a report (standard, not interactive - for various reasons) and I have a number of 'search' fields that the use can use to fulter the results shown. One of these fields is a multi-select list which allows the users to select multiple values at the same time. This is working fine.
    My problem is in setting the default for the multi-select list to have all values selected (either when the page is first opened or when the user clicks a 'reset' button).
    The multi-select query is:
    select
         lv1.description d, lv1.lookup_code r
    from
         tpa_adm_lookup_types lt1,
         tpa_adm_lookup_values lv1
    where
         lv1.lookup_type_id = lt1.lookup_type_id
    and lt1.lookup_type = 'RELEASE_PHASES'
    and     lv1.delete_flag = 'N'
    order by 1
    how do I get it to default to everything selected?
    Many thanks,
    Martin

    Hi Andy,
    Yes it is a dynamic list so a fixed default is no good.
    I have built the field with a source (when session state is null) of:
    with data as (
    select lookup_code, row_number() over(order by lv1.description) rn,count(*) over () cnt
    from tpa_adm_lookup_values lv1,
         tpa_adm_lookup_types lt1
    where lv1.lookup_type_id = lt1.lookup_type_id
    and lt1.lookup_type = 'RELEASE_PHASES'
    and lv1.delete_flag = 'N'  )
    select ltrim(sys_connect_by_path(lookup_code,':'),':') catvalues
    from data
       where rn = cnt
       start with rn = 1
       connect by prior rn = rn-1;which works but I was hoping ApEx had a cleaner solution.
    Regards,
    Martin

  • Populating description field in selection-screen

    Hi Experts,
    My WD report has a selection-screen with select-options and parameters built using IF_WD_SELECT_OPTIONS.
    One of the select-options has a search help, but the value it returns is a guid, so I want to have a new read-only description field, populated with the description of the selected value, next to the input field for the guid.
    How can I do this?
    I tried adding a new read-only parameter field and populating it in WDDOMODIFYVIEW but I got a short dump when I tried to set the value, because the new field is not in the context of the component controller.
    Many thanks,        Ben

    Hi Ben,
    You will have to define the new field in the context and then programatically bind the value of the description field to this attribute.
    But ideally, you can have a structure, which the two fiels (guid & description), and define a search help which is mapped to the structure, then you do not need to do any programming, the description field should get populated automatically.
    Hope this helps.
    Regards
    Wenonah

  • Issue with Blank Value selection in Dropdown List

    Hello Experts,
                        I am facing one strange issue in Adobe Forms Drop Down(DD) list. Foll. is the list data which contains a several item data & blank value. After item data selection user must be able to select blank value in case he doesn't want to set the value to Order Unit as shown in screen shot below.
                                  Now my issue is after any of the item values selection (for ex. BAG - BAG)  user is not able to set the blank value again at my client system. However its working fine in mine. When checked client is using Adobe Reader 8.0 which is same as mine.
    Thanks in advance.
    Regards,
      Amit

    Hi Steve,
                   Thanks for the reply. We have a blank value in the DD as a list item, where key & description is empty space. As i posted above user must be able to select that blank item if doesn't want any value for Order Unit. This selection is working fine in my sytem, but my client facing the issue where he can not select the blank value from DD.
    Thanks,
    Amit

  • Value selection (F4) in Webrport selection screen

    Hi All,
    We would like to have Key as well as Description (medium and long) when we go for value selection (F4) for InfoOject in webreport selection screen.How to get this?
    for example:
    We have ' Status' InfoObject
    Key  Text
    00-not assigned
    01-finished
    02-Pending
    While executing Query in Bex, with F4 we are getting  Both Key and Text in selection screen.
    But in web report selection screen,we are getting only Key.We want to see key as well as Text.
    thanks

    Hi AHP,
    thanks a lot.
    after reading all these notes,i am littile bit confused.
    Note 914447 says :
    Display as "Key and text" setting in RSDCUBE or RSD1 for an infocube/characteristic will not have effect on the f4 selection in the web variable screen....
    F4 dialog from a variable screen always displays text and key only irrespective of the setting for key and text or text and key, since     the aim of the dialog is to display both and not concerning the order.
    and note 851039 is not relevenat as my infoProvider is not multi Provider.
    Note 588704 seems to be relevent but its applicable to release 30B( as its mentioned in note)  where as our version is 3.5
    can you pl suggest what ashould be done?
    Thanks

  • Display medium text in value selection screen.

    Hello Experts,
    i have an infoObject called Customer in an ODS.Its master data contains the short text, medium length text and long text.i want to display its medium text(which contains First name n last name) in the value selection screen (F4) while executing the web report.
    It is an urgent requirement.
    Please help.
    I promise to return and reward lots of points
    Thankyou soo much
    Regards,
    Priya

    Vishvesh,
    Thanks for ur quick reply.
    i have set those properties but it is still not working.
    Arun,
    are u trying to say that i can show Long text but not medium text ??whr did u change the description to long text and key?
    Do Reply,
    I will award points ..
    Thankyou soo much
    Priya

  • Value selection screen

    Hello Guyz,
    In the WAD report, for a field slection when we open the value selection screen to choose the value we find key and field value, as per our requirement we need description also in the value selection screen, please let me know whet setting changes  need to  be done.
    Example
    For a field status : when we open the value selection screen we find values for selection like  RELP 1000
                                                                                    APPR         1200 but we are not getting description, what changes need to be done to even get the decription for the status.
    Regards,
    Ravi

    Hi,
    Check this out
    Re: displaying Medium Text in Variable screen (WAD)
    Regards

  • Complex Valuehelp without roundtrip on value selection

    Hello
    we currendly use a custom made F4-Help in a wd-application in a huge table. The F4 displaies the suggested values with additionally information by setting the background collor for each value.
    The Problem is, that with selecting a value a roundtrip is triggered in the backend. This is a problem because this is not neccessary in our application but it worsens the performance significant.
    I know that in an earlyer release (we have SAP_BASIS release 740) it was possible, even default, that the roundtrip didn't got triggered. (wd_this->wd_get_api( )->register_on_enter_for_f4( register_on_enter = abap_true ).)
    I tried to use this statement to set the value to abap_false but this doesn't work. (No error, but no change in behavier either)
    An other possibility would be to use a dropdown instead of the f4. But as far as i know it isn't possible to set the backgrundcolor of elements of the valuelist.
    Any suggestions would be welcome.

    Hello
    The roundtrip after a value selection in a F4-help can't be disabled.
    We now work around this problem by using the auto-completion (value_suggest).
    So now the user can open the f4-help (same problem as bevore), but he also gets a value_help while tiping whitout a roundtrip.
    Only setback here is, that we have the requirement, that the allowed values differ from line to line in our table. This is not possible to do with value suggest, because here the value gets mapped to the nodeinfo.
    So what we did, was alloing all possible values in each line, and just add some description to the values.
    Not perfect, but....

  • Plot a chart dynamically based on the values selected

    Hi All,
    I have some requirement like this i want to plot a chart . The chart should change dynamically based on target_name and date. What type of UI should I use ? I tried using multiselect or shuttle for choosing the target_name and date picker tool for date once i choose all this the chart should appear. Can I have a custom button called submit so once all the values are entered it plots chart ? Please help me out with our ideas.
    Thanks in Advance

    Hi,
    Using the dependent value sets you can govern the values which can be selected based on a specific value selected in a particular segment. Example if Country name is selected in segment 1 then specific states names as per the country selected can be displayed in segment 2.
    As per the requirement described you want to enable different fields based on the value selected in segment1, currently there is no standard mechanism available to enable/disable fields based on a value and you will have to do an extension/customization to meet this requirement.
    Thanks,
    Sanjay

  • Report model - number of values selected in DDL param

    Good afternoon,
    I have created a report model that references Teradata views, and I am using this model to populate several datasets in a Report Builder report.  One dataset returns actual results, and the other datasets are used to populate available values for multivalued
    parameters.
    The issue I'm encountering is that some of my parameters return a large number (tens or hundreds of thousands) of selectable values.  When clicking "select all", I'm getting an error, since the concatenated list of values exceeds
    the length limit.  However, since I'm working with a report model, I cannot use T-SQL workarounds such as custom "<ALL>" values/handling.  I also need to limit my result set using these values as parameters, not filters, since I want
    the intensive processing handled in the DB server, not the app server.
    Is there any possible way to accommodate this?  As an example, I have a large (200k+) list of products, belonging to about 7,000 brands.  I want both my product number and brand lists as multivalue parameters...I might want to run
    the report for all products and all brands (returning 200k+ rows), or choose "select all" in the products list, but only pick a few brands (or vice versa).  Cascading parameters (with the first parameter limiting the next set of values)
    is not an option since there are many of these parameters that have too many values for the allowed limit (i.e. even my brand list generated the error when I choose "select all" and only picked a few products).
    I have searched literally dozens of forums and tech sites, all to no avail thus far.  Any assistance will be greatly appreciated...thank you!
    -Chris

    I have a SSRS Report with 4 multi-select parameters.
    The customer has requested that they would like the drill-through to open in a new window.
    I am using Java Script for that purpose.
    However, there is a limit on how long a URL may be.
    Is there a way in a SSRS report to limit the number of values in a multi-select parameter selected?
    Thanks.
    One workaround is to add a internal parameter which will count the number of selected values and will allow the navigation only if the count falls below the threshold.
    For this you can use an expression like below for setting the internal parameter
    Len(Join(Parameters!MultiValuedParameter.Value,","))-Replace(Join(Parameters!MultiValuedParameter.Value,","),",","")
    Then use expression like below for the jump to url/report property
    IIf(Val(Parameters!HiddenParameter.Value)<=<your thresholdvalue>,<report url>,Nothing)
    You can also add a notification textbox on top which will show a message like "Report navigation not possible due to too many values selected" and keep it hidden by default. Then based on above parameter value you can make it visible
    ie make hidden property like below
    IIf(Val(Parameters!HiddenParameter.Value)<=<your thresholdvalue>,False,True)
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Can we generate one report tab for each of the prompt values selected in the bobj 4.0 webi report.

    can we generate one report tab which filters
    with each prompt value selected in bobj 4.0 webi report.

    Hi Shrinidhi ,
    It can be achievable with static tabs created for each LOV .But this is not recommended because , object values can change dynamically .
    It is good idea to use section on prompt object in the report .With sections great feature available is in larger report it’s easy to navigate using map. It displays the section tree.You can select the particular LOV to navigate.

  • Enhancing standard (single select)search help for Multiple value selection

    Hi,
    Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
    Is there a way to do it.
    I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
    It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
    Appreciate your help,
    Thanks,
    Sri
    Edited by: Sri on Sep 9, 2010 8:50 PM
    Edited by: Sri on Sep 9, 2010 8:52 PM

    As far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
    Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
    I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me.

  • How to capture the value selected in the drop down box

    Hi all,
    I am populating values in  drop down box by using FM vrm_set_values in module pool.
    like below
    01  ABC
    02 ACB
    03 BCA
    04 CAB
    in module pool drop down box element name is RQGM-VALUE.
    Problem is what ever the value is select in the drop down box from above element RQGM-VALUE is not filling any value.
    i need to capture the value selected in the drop down box and pass it to another variable.

    Hi,
    Refer this standard code. Your issue will be resolve.
    REPORT demo_dynpro_dropdown_listbox.
    TYPE-POOLS vrm.
    DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.
    DATA: wa_spfli TYPE spfli,
          ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    TABLES demof4help.
    name = 'DEMOF4HELP-CONNID'.
    CALL SCREEN 100.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE init_listbox OUTPUT.
      CLEAR demof4help-connid.
      SELECT  connid cityfrom cityto deptime
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF wa_spfli
       WHERE  carrid = demof4help-carrier2.
        value-key  = wa_spfli-connid.
        WRITE wa_spfli-deptime TO value-text USING EDIT MASK '__:__:__'.
        CONCATENATE value-text
                    wa_spfli-cityfrom
                    wa_spfli-cityto
                    INTO value-text SEPARATED BY space.
        APPEND value TO list.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = name
                values = list.
    ENDMODULE.
    MODULE user_command_100.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'CARRIER' AND NOT demof4help-carrier2 IS INITIAL.
        LEAVE TO SCREEN 200.
      ELSE.
        SET SCREEN 100.
      ENDIF.
    ENDMODULE.
    MODULE user_command_200.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'SELECTED'.
        MESSAGE i888(sabapdocu) WITH text-001 demof4help-carrier2
                                            demof4help-connid.
      ENDIF.
    ENDMODULE.

  • Reporting: Multi-value select prompt

    Multi-value select prompt:  Need to verify if there is a limit to the number of items/size in a drop down list or if there are selected value limitations.

    Hi Rick,
    To clarify,  which type of parameters will you be using,  Dynamic or Static?   If you're using dynamic parameters (LOV's or Business Views) there is a limit on the display values,  but I am not aware of a limit on the input limit for multiple values.
    If you're using a dynamic parameter which will use an LOV or Business View the registry key value to increase can be found:
    HKLM > Software > Business Objects > Crystal Report > Database Options > LOV
    MaxRowSetRecords
    Regards,
    Wallie

Maybe you are looking for

  • OracleCustomTypeMappingAttribute Issue in Custom type mapping(Urgent Help)

    I am figuring "OracleCustomTypeMappingAttribute" attribute in web.conifg. I am getting Error when i am trying execute the code.please find the error messsage in below "Custom type mapping for 'QR.iPromansys.Common.UDT.TAB_MC_REGION' is not specified

  • How to stop joint stereo during mp3 import when it's not selected.

    I use iTunes to manage my mp3 purchased from other music stores (tracsource, etc).  For some reason, iTunes changes my file from stereo to joint stereo even though joint stereo is not selected.  I have searched the web for days prior to this post wit

  • How to use ZSLFN transaction type

    Dear Experts, We are using standard service desk functionality and we have two transaction types named SLFN & ZLFN.We have a BW & ECC system connected to our solution manager.My requirement is that the BW system should use SLFN transaction type and E

  • How to view past call history

    can someone direct me as to how i can view calls made in the past 6 months online? thank you.

  • Problem installing Oracle 9i Developer Suite 9.0.2.0.1

    I hope somebody maybe able to assist me. I am in the process of installing the aforementioned developer's suite with my existing oracle 9i database so that I can experiment from home. For some reason when I try and install the developer's suite on my