How to put drop down list

Hi All,
I have added Z_field in Va01 Transaction. I want to put drop down list for that .
Can you please suggest me how to do that.
Regards
Radha

Hi Radha Konjeti,
To have a dropdownlist/listbox in your report, use this demo code for creating a listbox with a set of values in it and select a single value for processing:-
REPORT  Y_MOVIE MESSAGE-ID ZMSG.
TABLES : Y_MOVIES.
TYPE-POOLS: VRM.
TYPES : BEGIN OF MOVIE,
        YR LIKE Y_MOVIES-YR,
        CATEGORY LIKE Y_MOVIES-CATEGORY,
        WINNER LIKE Y_MOVIES-WINNER,
        NOTES LIKE Y_MOVIES-NOTES,
        END OF MOVIE.
DATA: NAME TYPE VRM_ID,
      LIST TYPE VRM_VALUES,
      VALUE LIKE LINE OF LIST,
      MOVIETAB TYPE STANDARD TABLE OF MOVIE INITIAL SIZE 10 WITH HEADER LINE.
PARAMETERS: CATEGORY(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN.
  IF CATEGORY EQ ''.
    MESSAGE E006.
  ENDIF.
AT SELECTION-SCREEN OUTPUT.
  NAME = 'CATEGORY'.
  VALUE-KEY = 'PIC'.
  VALUE-TEXT = 'PIC'.
  APPEND VALUE TO LIST.
  VALUE-KEY = 'MAL'.
  VALUE-TEXT = 'MAL'.
  APPEND VALUE TO LIST.
  VALUE-KEY = 'FEM'.
  VALUE-TEXT = 'FEM'.
  APPEND VALUE TO LIST.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      ID     = NAME
      VALUES = LIST.
START-OF-SELECTION.
  WRITE : / 'Category Selected :', CATEGORY.
  ULINE.
  SELECT
  YR
  CATEGORY
  WINNER
  NOTES
  FROM Y_MOVIES INTO TABLE MOVIETAB
  WHERE CATEGORY = CATEGORY.
END-OF-SELECTION.
  WRITE : /1 'Year', 6 'Category', 16 'Winner', 50 'Notes'.
  ULINE.
  LOOP AT MOVIETAB.
    WRITE : /1 MOVIETAB-YR, 8 MOVIETAB-CATEGORY, 16 MOVIETAB-WINNER, 50 MOVIETAB-NOTES.
    ULINE.
  ENDLOOP.
  IF SY-SUBRC <> 0.
    MESSAGE I005.
  ENDIF.
Hope this solves your problem.
Thanks & Regards.
Tarun Gambhir.

Similar Messages

  • How to put drop down in table control ?

    Hi All,
    I m writing one module pool program to edit table.
    I want dropdown to one field so that user can select the appropriate value. And also I want to save that record.
    So how to get the dropdown list and after editing that record how to save that in the database?
    Thanx in advance.
    -Umesh

    Hi Umesh,
    Please check this demo program RSDEMO_TABLE_CONTROL on how to add drop down list in table control. Also check this program DEMO_DYNPRO_TABCONT_LOOP_AT as well.
    To save to database you can code something like this in PAI.
    MODULE USER_COMMAND_0100 INPUT.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      CASE SAVE_OK.
        WHEN 'SAVE'.
          MODIFY <database table> FROM TABLE <table control>.
          IF SY-SUBRC = 0.
          ELSE.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Hope this will help.
    Regards,
    Ferry Lianto

  • How to populate drop down list in infopath 2010 with form library column

    I created one column of choice type and have put 3 values on this column in form library in site.
    and one drop down list in form library at infopath 2010 but how to populate the dropdown in infopath populate with this column.

    Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
    cameron rautmann

  • How to get drop down list  display values

    I have binded my drop down list with tabledataprovider. In the value field i have given customer id and in display field i have given customer name.
    I have reatrived cust id but
    how to reatrieve customer name.

    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=56515
    Also, if your dropdown list is bound to a data provider you can use something like this:
    RowKey rowkey = tripDataProvider.findFirst("PERSON.PERSONID", dropDown1.getSelected());
    String displayValue = (String)tripDataProvider.getValue("PERSON.NAME", rowkey);

  • How to populate drop down list in infopath 2010 with form Active Directory resources.

    I want to populate drop down list in infopath 2010 with Active directory resources.
    Kindly let me know how to do this.

    Actually I posted an alternative approach, whoops. This is the Web service way, but both will work;
    http://blog.mangroveweb.com/pre-populating-an-infopath-from-with-mysql-data-using-a-net-web-service/using-sharepoints-getuserprofilebyname-web-service-to-retrieve-ad-account-information/
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • Acrobat 9 pro designer -- how to populate drop down list

    I down loaded the acrobat 9 professional trial version and have been trying to see how I can create a drop down list where I can input 500 names. I created the drop down list but the problem is the following. To enter the names in the drop down list I have to type each one and hit enter then enter in the next. I have about 500 names to enter and doing one at at time is not efficient. I tried to copy all the names and paste it into the drop down list but it will only paste the first name.
    Does anyone know how I can enter 500 names all at once into a drop down list box?
    I need a simple solution that can be made without some complicated code.
    please email me [email protected]
    thanks
    Will

    thanks you for the response. I am not tech savy when it comes to javascript or form calc any chance you can give more details

  • How to get drop down list (list of values) in selection-screen

    Hi al,
       This is anilreddy. Please let me knew the solution
    How to get the drop down list for a fieldin selection-screen (not in dialog programming)
    (not as POV)
    Regards,
    anilreddy

    REPORT ZTESTPRG.
    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.
    Thanks
    Mahesh

  • How to include Drop Down List?

    Hi!
    I need to include a drop down list wherein the user selects one option and then enters some relative data. Then I need to show some output based on a calculation. Can this be done in Captivate? How to include the drop down list? Please Help, its urgent.
    Thank you
    AJ

    Hello,
    Welcome to Adobe Forums.
    You can choose Combo Box widget for your requirement, You need to use a Text Entry Box (enters some relative data).
    You need to use either Java Script or Advanced Actions for showing output based on a calculation.
    Thanks,
    Vikram

  • How to assign drop down list in XML form to properties

    Hi ALL,
    When i was creating <b>Edit form</b> in XML Forms Builder,for <b>Bulletin Board</b> Application, i had to assign two drop down list boxes to properties created under Content Management Configuration > Global Services > Property Metadata. Can any one help me how to ASSIGN it or provide any related documents.
    Suitable replies will be rewarded, for sure.
    Regards,
    Shankar

    Hi Shankar
    Please have a look at this document, especially the part about the cookbook. It explains how to add properties in a dropdown list to your XML form.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a
    Good Luck!
    Barry

  • How to add drop down list in toolbar?

    Hi SAP CRM Experts,
    After save the personalization of the view, there will be a drop down list appeared in the toolbar in the view, the drop value contain the personalization you just saved and the standard one.
    Could someone let me know how to enhance this functionality to create not only the view configuration but also customizing field drop down list?
    That means we want drop down list in toolbar which contain several options also it's value could pass to view controller.
    Thanks in advance...
    Tony

    Could someone kindly help?

  • How to modify drop down list values of a screen field in UDM_DISPUTE?

    Hi All,
    I have a requirement wherein i need to modify the drop down list for a screen field depending on the value of the other screen field in transaction UDM_DISPUTE. 
    Please suggest how this can be achived.
    Any BADI 's or any other approach is available?
    Thanks in advance,
    Srilakshmi.

    Hi,
    At what time do you want to modify the drop down list, while creating or after creating the dispute case. There are some BADI's where we can change the attribute drop down list values.
    Thanks,
    Sunil

  • How to add drop down list for query manager report in sap business one

    Hi Every one,
    I need drop down list for parameter selection in sap business one Query Manager.I have two Parameters 'Sales Order','Invoice'.
    Please suggest.
    Thanks and Regards
    DEV

    Hi,
    you need to use this :
    /*select from [dbo].[OINV] T2*/
    DECLARE @Invoice varchar(100)
    /*where*/
    set @Invoice =/* T2.DocNum  */N'[%2]'
    you can change the tables and the parameter number but you have to write it exactly that way.
    when you run the query within the SBO you will get list of objects ( in this case list of invoices)
    hope it was helpful
    Shachar

  • How to create drop-down list in Portal??

    My case: I have three locations A B C(in the database) for example.
    I would like to use drop-down list to show list of All, A, B, and C.
    After I choose any of them, for example A, it must show all the data of that particular location and if it is All it must show data of all three locations.
    By using Simple Parameter, it's just a static one but I prefer the dynamic one that get directly from the database. And I also got a problem of showing all locations by choosing All in my dropdown menu
    Any idea??!?
    Thank you so much.

    You could try a dynamic page:<br>
    <br>
    &LT;html&GT;<br>
    &LT;body&GT;<br>
    <br>
    &LT;form action="http://host.port/pls/portal/etc." method="get"&GT;<br>
    &LT;select name="location"&GT;<br>
    &LT;ORACLE&GT;<br>
    for rec in (select loc_code, loc_name from locations union select '-1' id, 'All' loc_name from dual)<br>
    loop<br>
    htp.p('&LT;option value="' || rec.loc_code || '"&GT;' || rec.loc_name || '&LT;/option&GT;');<br>
    end loop;<br>
    &LT;ORACLE&GT;<br>
    &LT;/select&GT;<br>
    &LT;/form&GT;<br>
    <br>
    &LT;/body&GT;<br>
    &LT;/html&GT;<br>
    <br>
    The form should then call your page with a &location=loc_code in the url. Using a page parameter and a bound variable you can access that. You may need to use a decode in your sql to deal with the All scenario:<br>
    <br>
    select ..... where loc_code like decode(:location, -1, loc_code, :location)<br>
    <br>
    Hope this helps.<br>
    <br>
    Patrick

  • How to implement drop down list in WDP Abap....very urgent...please help me

    Hi Gurus,
    I wanted to implement the drop down list button in the WDP Abap interactive form. Once the users clicks on the drop down button, an RFC should be called and display the details under the drop down button. Please give me the logic with code. Its very urgent...please help me. Please note that it is in WDP Abap interactive forms. We are using NW2004S, ECC6.0.

    Hello,
    you have to use ZCI form to use DDLB in WD-ABA. The content of the DDLB has to be present at rendering time, there is no dinamic call when you click the "dropdown".
    The attribut you map to the DDLB has to be an element with a value-set, and the value set has to contain the text / value pairs.
    >> this will be displayed when you click the dropdown.
    Best regards,
    Dezso

  • Beginner Problems - How to sum drop down lists in a table

    Hi,
    Please forgive my newness but I'm creating a table with 10+ rows and columns and need to sum the colums. The user is expected to select a number from a drop down list and I would like to sum those nbumbers up at the bottom of the column, seems simple enough...
    I have named each cell in the bindings tab but can't seem to find the right sum script. I just started using livecycle and have had a good experience up until now.
    I wish it was like excel where you just need to click or highlight the cells you want to sum and be done with it but I can't seem to find the easy button...
    Cant you just highlight a column, name it and then use that name in a sum script?
    Thanks so much for any help and I've looked around but can't get a grip on this one so I apologize if it's been asked before.
    Go easy on me.

    One last thing.
    I can manage this one on my own but it's taking so long to do it the way I'm going at it.
    Basically, I've overpopulated most of my drop down list items, some by over 100 and I'd like to restrict the results that can be chosen by the user.
    Right now, I'm deleting each value in the List Item field in the cell tab one by one but I have a lot more to go and this could take a few hours at this rate. Is there no way for me to just highlight a large chunk and remove it that way or do I have to go one by one clicking the delete button? I can't find any option to delete more than one at a time which seems odd.
    Sorry if I'm not clear enough.
    Thanks again either way.
    ~OK~
    I just ended up copying a new cell to each overpopulated cell and rename. Seems to have worked and definitely saved some time, kind of obvious I suppose... but would be nice to be able to delete more than one item at once in the list item field.

Maybe you are looking for

  • Print multiple photos on one page to printer

    I am new to macs, and I can't figure out (using iphoto 11) how to just print multiple photos on one piece of 8 1/2 X 11 paper in my own printer at home. I want to choose the size of each picture (like one 4X6 and two wallets on one page. How do I do

  • Adding a 'sort by' option to table data in webhelp output

    RH8 HTML Hi all, Just wondering (again) if its possible to add a sort feature to a table? currently, I've got multiple topics that look like the following. They are a breakdown of all fields/buttons and their functions field name description example

  • Right click menus do not appear fully.

    '''''italic text'''''Hello, I'm hoping someone can give me some help with a problem I am having with the "right click menu" not appearing completely, does not matter what site or where on the browser I try to get the menu. It makes it very difficult

  • Get amount of megabytes for the message transfer per day, month, year

    Dear experts, can you please tell me the name of the report which can be used to get the amount of megabytes for the message transfer per day, month, year etc.? I can't find it in our system. Best regards, David

  • Error opening  bex analyzer

    Hi experts, When i try to log on to the bex analyzer and try opening a simple query it says "Connection to SAP Gateway failed ".Is there some some settings that I have to maintain in the SAP BIW system to be able to open the any quesry in the Bex Ana