Regarding drop down list,  any body help me plz.. very very urgent

i have to create a drop down list and in that if i select a value it should go to select query and display hte result in the output
for example if i select open in the inout list. that should go to a partiucular query which i write and after that when i process the report that option open should be displayed in the output
any body help me plz.. very very urgent

Check  code below..
TYPE-POOLS:  vrm.
CONSTANTS: c_pgp_cmd(20) TYPE c VALUE '/opt/pgp/bin/pgp'.
DATA : droplist TYPE vrm_values,
       dropval LIKE LINE OF droplist,
       w_command(2000) TYPE c VALUE '/usr/local/bin/ssh'.
DATA:  BEGIN OF t_cmdres OCCURS 0,
         line(500),
       END OF t_cmdres.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
PARAMETERS:  tar_sys(10) TYPE c AS LISTBOX VISIBLE LENGTH 20 LOWER CASE,
             filepath TYPE esefilepath,
             pgpkey(1000) TYPE c LOWER CASE,
             option(25) TYPE c AS LISTBOX VISIBLE LENGTH 15 LOWER CASE,
             pass(100) TYPE c.
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
  PERFORM set_screen.
AT SELECTION-SCREEN OUTPUT.
  IF option EQ 'encrypt'(000).
    LOOP AT SCREEN.
      IF screen-name = 'PASS'.
        screen-input = 0.
        MODIFY SCREEN.
        EXIT.
      ENDIF.
    ENDLOOP.
  ELSEIF option EQ 'set-preferred-ciphers'(001).
    LOOP AT SCREEN.
      IF screen-name = 'FILEPATH'.
        screen-input = 0.
        MODIFY SCREEN.
        EXIT.
      ENDIF.
    ENDLOOP.
  ENDIF.
START-OF-SELECTION.
write:/ 'Done'
*&      Form  set_screen
FORM set_screen .
  dropval-key = 'oapg18dv'(002).
  dropval-text = 'oapg18dv : DEV'.
  APPEND dropval TO droplist.
  dropval-key = 'oapg18te'(003).
  dropval-text = 'oapg18te : TEST'.
  APPEND dropval TO droplist.
  dropval-key = 'oapg18pr'(004).
  dropval-text = 'oapg18pr : PRD'.
  APPEND dropval TO droplist.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = 'TAR_SYS'
      values          = droplist
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
  CLEAR:  dropval,
          droplist[].
  dropval-key = 'encrypt'(000).
  dropval-text = 'Encrypt'.
  APPEND dropval TO droplist.
  dropval-key = 'set-preferred-ciphers'(001).
  dropval-text = 'Set cipher'.
  APPEND dropval TO droplist.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      id              = 'OPTION'
      values          = droplist
    EXCEPTIONS
      id_illegal_name = 1
      OTHERS          = 2.
  CLEAR:  dropval,
          droplist[].
ENDFORM.                    " set_screen
Reward if useful
Function Module <b>VRM_SET_VALUES</b> is used to set values for droplsit..
and be careful about Text Elements in this report.
Regards
Prax

Similar Messages

  • 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

  • Regarding drop down list  in adobe forms ::::urgent

    hi
    i have a drop down list with entries 1,2,3...  and a text field in the form layout.
    now the requirement is when i select one entry from the list
    the name of that particular entry should display in the text field.
    suppose say for ex...
    entry 1   name=xxxxx
    entry 2   name =yyyyy.
    like wise depending on what i select it should display the result in the text box..
    let me know the logic for it...
    Edited by: suman yerravelli on Mar 4, 2008 6:03 AM

    hi all
    i have a drop down list with entries 1,2,3... and a text field in the form layout.
    now the requirement is when i select one entry from the list
    the name of that particular entry should display in the text field.
    suppose say for ex...
    entry 1 name=xxxxx
    entry 2 name =yyyyy.
    like wise depending on what i select it should display the result in the text box..
    let me know the logic for it...

  • CAN ANY BODY HELP ME PLZ.... PLZ PO... PLZZZ..

    I'm ehrol a rookie at programming.. my prof. gave me this project but i dont have any idea what program will i use.. i'm only 1st year college first semester. i do understand what he teach us about .class sample,util.Scanner, Japplet, Joption some at c++ and i can create some.... and now he's teaching "ARRAYS" he was 4sing us.. he gave me this problem..
    create a java program and the output is "MULTIPLICATION TABLE" 1-10
    1x2 --------------10
    2 ------------------20
    l -------------------30
    l -------------------40
    10------------------50
    and so on..
    if you realy want to help me or u have an example plz email me at [email protected]
    can somebody teach me or create a program for me plz?... maawa na kau.. plz..
    thank you guyz

    //timer start timpani
    //queue thunderbolt
    //dramatic pause
    "ARRAYS"
    //woman gasps
    //woman faints
    Now that's scary. You just need to present it in the right context.
    Now that the appropriate level of fear is in place, we can begin the learning process.
    P.S. Try the Java Tutorials link at the top of this forum if your teacher isn't your cup of tea. If that doesn't help you, you should drop the class and persue another major as another poster suggested. There's no shame, my wife took 2 years of CIS classes just to find out she wasn't analytical enough to be a programmer. Now she's an english major and much happier. Not suggesting you should be an english major. I mean I've seen you write.
    Brushfire,

  • Hai! any body help me plz........

    dears
    i like to create one applet.
    like: http://www.technologo.com/tl/appletframes.asp?sku=BAR3458-3488&t=it&folder=1&orgn=tlc
    this same virtual sample applet tool.
    how can i create this applet builder. this is my practising purpose. but, this web page maker used in some applet builder software. can anybody tell me which one is use this?
    thank u

    //timer start timpani
    //queue thunderbolt
    //dramatic pause
    "ARRAYS"
    //woman gasps
    //woman faints
    Now that's scary. You just need to present it in the right context.
    Now that the appropriate level of fear is in place, we can begin the learning process.
    P.S. Try the Java Tutorials link at the top of this forum if your teacher isn't your cup of tea. If that doesn't help you, you should drop the class and persue another major as another poster suggested. There's no shame, my wife took 2 years of CIS classes just to find out she wasn't analytical enough to be a programmer. Now she's an english major and much happier. Not suggesting you should be an english major. I mean I've seen you write.
    Brushfire,

  • Hii guyz.... any body helps me plz...i want to factory unlock my iphone 4....so how can i do this....??

    hiii guys.... actually i have a iphone 5 32GB with the carrier of vodafone AUSTRALIA......so i want to factory unlock my set....how could i do this plzz tell me ???

    hearttown wrote:
    ohh sorry i mistakly wrote iphone 5 insted of iphone 4......can u tell me buddy....how can i contact with carrier vodafone austrila.....?/
    You pay your bill to them.  You set up service with them.  Certainly you have the ability to contact them.

  • 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

  • My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

  • HT1933 Following the instructions above, I'm constantly redirected to this help page rather than receiving any drop down list to select what my problem is. Are there any other ways to report issues with purchases?

    Following the instructions for reporting an issue with a purchase problem, when selecting "report a probelm", I am not provided with a drop down list, I am redirected to the help page instead.
    Is there any other way to report an issue where the app owner has taken the funds twice for the same product at literally the same time?

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Help needed in Drop down list value input

    Hi experts,
    My problem is, I added a field on a screen as a drop down list box and passed all the values to it. Everything is fine. But I need to display the field like if there are no input values to be used by the user, the user should be able to enter some value manually which is not in the list. I'm unable to get this facility. Plzz Help me out.
    It's really urgent. Points will be rewarded to the solution.

    hi ,
    Here is a sample of code for creating a dropdown list in screen painter , and this has got the solution of your question :
    module create_drop_down_box_material output.
      select matnr from mara
               into table l_tab_mara_matnr
               where matkl = 'ZPMBMAT'.
      if not l_tab_mara_matnr[] is initial.
        select maktx from makt
                     into  l_tab_collect_maktx_frm_db-material_descr
                     for all entries in l_tab_mara_matnr
                     where matnr = l_tab_mara_matnr-material_no.
          append l_tab_collect_maktx_frm_db.
        endselect.
      endif.
      loop at l_tab_collect_maktx_frm_db into l_wa_collect_maktx_frm_db.
        l_wa_mat_descr-key = l_wa_collect_maktx_frm_db-material_descr.
        append l_wa_mat_descr to l_tab_mat_descr.
      endloop.
      name = 'ZCOT_PPT_DTLS-MATERIAL_DESCR'.
      call function 'VRM_SET_VALUES'
        exporting
          id              = name
          values          = l_tab_mat_descr
        exceptions
          id_illegal_name = 1
          others          = 2.
      free: l_tab_mat_descr,l_tab_collect_maktx_frm_db.
    endmodule.                 " create_drop_down_box_material  OUTPUT
    Regards,
    Ranjita

  • Help needed with populating a drop-down list from an Access Database

    Topic
    data drop-down list
    Jason Murthy - 11:39am Feb 14, 2005 Pacific
    Hello,
    I am trying to use the data drop-down list from the custom library. I enter the name of my data connection and the other 2 variables in quotes when they are initialized, just like the example says to, but it still doesn't work. Anyone have any thoughts?
    Thanks,
    Jason
    Reply To This Discussion | Back to Topic List | Bookmark | Change Subscription
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages 11 messages. Displaying 10 through 11.
    First Previous Next Last Show All Messages
    Denzil White - 5:46am Jul 28, 05 PST (#10 of 11)
    Oh and before you say anything more I have also tried changing it from Javascript to the FormCalc, and no diff, maybe I am more stupid than I realised, heh,heh
    Post Reply | Bookmark
    Henk Pisuisse - 12:06am Aug 9, 05 PST (#11 of 11)
    I am having trouble (sleepless nights) with populating a drop-down list from an Access Database. The result is: I only get the first record from the data connection. So the connection works but I cannot go through the other records. Maybe there is an other way to do this.
    I am trying to selectively fill a form with data from an MS-access database.
    I hope someone can help me.
    [email protected]
    The Netherlands (small country in Europe)

    If you email the access DB and the form to [email protected], I will try to take a look at it for you.

  • Itunes not showing elements 11 drop down list of albums and won't sync, says ïtunes cannot sync, required folder cannot be found. ï have tried re installing both but no success. pls help!!!

    Hi, Itunes won't sync my photos to ipad from elements 11. itunes doesn't show drop down list of albums and says Ipad "......cannot be synced, required folder cannot be found" i have tried re installing both programs but no luck. pls help!!!

    I managed to finally fix the problem in a relatively painless way. It turned out that the problem wasn't on my phone, the problem was with iTunes. I completely uninstalled iTunes from my PC and then reinstalled it and everything was fine.
    In order to completely uninstall iTunes, I did two things:
    Used RevoUninstaller to uninstall iTunes. This cleans out a bunch of extra things that the normal iTunes uninstaller misses.
    Searched for any iTunes folders/files on my computer (using the freeware utility called Everything) and deleted them manually.
    I hope that works for you.

  • I need help with drop down lists

    I have a form that does not have lots of space and I want to use drop down lists to fill in specific information that describes site conditions.  The problem I have is that the drop down list is only set up for a single line and that is not enough space for what I want in the drop down list.  In other words, I have items that are several sentences.   I have seen some descriptions of creating a drop down list that then fills in a text box that has multiple lines.  Unfortunately, that is not an ideal solution for me.  I just want the drop down list to select a single phrase.  Here is an example of what I want to be able to select in the drop down.
    The water heater spilled flue gases in excess of 5 minutes under worst case conditions.  The combusiton testing was completed with in 30 days of the invoice submittal. 
    The form does not allow me to create a field that goes all the way across the page so it needs to look something like this:
    The water heater spilled flue gases in excess of 5 minutes
    under worst case conditions.  The combusiton testing was
    completed with in 30 days of the invoice submittal.
    Any help is greatly appriciated.

    Thanks for responding.
    I have three items that are very similar in length and text for each drop down.  There are 9 drop downs right now.  I am using the drop downs to fill in a form that is used by several people and I want to keep things as simple as possible.  Associated with the drop down already is a check box.  When the check box is checked, it fills in a text box with a score (1 point, 5 points, etc).  That score then tallys for a total with all the other scores in another text box.  Using a drop box to fill in a text box is just getting to busy and than I have to distinguish each drop down item so it is clear which text you are selecting.

  • Need help using drop down list to calculate fields

    I am trying to use a drop down list to control how my field calculate. I have events packages that have multiple tiers. For example, Package One has (2) Tiers. Tier 1 costs $16 & Tier 2 costs $20. So based on the number of guests i want to be able to select the tier and it multiply and give me the total cost for the package. Ex: 2 Guests for Tier 1 = $32. Here is the code i have so far, it is placed under the change handler of the drop down list:
    var costPerGuest = 16;
    var tier = event.newText;
    if (tier == "Tier 1"){
      costPerGuest = 16;}
    else if (tier == "Tier 2"){
      costPerGuest = 20;}
    Total.rawValue = String(Guests.rawValue * costPerGuest)
    //Total.rawValue = DropDownList1.rawValue;
    What happens is when I run this it will not change unless the number of guests will change. So for the example above, if i switch it to Tier 2 after selecting Tier 1, it will not change my Total from $32 to $40.
    Any help would be greatly appreciated.

    Hi,
    I think ,you can use the event of EXIT event of dropdown list.
    var costPerGuest = 0;
    if (this.rawValue == "Tier1")
      costPerGuest = 16;
    else if (this.rawValue == "Tier2")
      costPerGuest = 20;
    else
    total.rawValue = Guests.rawValue * costPerGuest;
    Hope this helps,
    S,Candy.

  • Need help on drop down list

    Iam trying to create the drop down list. Well, I got some programs, creating these lists for both parameter and ranges on the selection screen.
    What the user wants is when the selection screen is loaded, he wants to select from the list OR ENTER ANY DATA WHICH IS NOT THERE IN THE LIST. To be able enter any data other than what is there in the list is not working for me.
    itz urgent plz

    Hi
    Do you want values in a list box
    try with the fun module VRM_SET_VALUES
    see the sample code
    Input : p_char = 'J'.
    Press: enter
    List Box of Month = January, June , July.
    REPORT ZLIST_VALUES.
    TYPE-POOLS vrm.
    tables:
    spfli.
    parameters: p_char type c.
    parameters:
    p_month(12) as listbox visible length 20,
    p_year as listbox visible length 20 .
    DATA:
    t_table TYPE STANDARD TABLE OF vrm_value,
    t_table1 TYPE STANDARD TABLE OF vrm_value,
    vrm_values1 LIKE LINE OF t_table.
    DATA:
    t_year TYPE STANDARD TABLE OF vrm_value.
    data: w_year(4) type n value '2000'.
    at selection-screen output.
    vrm_values1-key = 'a'.
    vrm_values1-text = 'January'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'p'.
    vrm_values1-text = 'February'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'q'.
    vrm_values1-text = 'March'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'r'.
    vrm_values1-text = 'April'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 's'.
    vrm_values1-text = 'May'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 't'.
    vrm_values1-text = 'June'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'u'.
    vrm_values1-text = 'July'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'v'.
    vrm_values1-text = 'August'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'w'.
    vrm_values1-text = 'September'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'x'.
    vrm_values1-text = 'October'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'y'.
    vrm_values1-text = 'November'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'z'.
    vrm_values1-text = 'December'.
    APPEND vrm_values1 TO t_table.
    t_table1[] = t_table.
    delete t_table1 where text+0(1) <> p_char.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'p_month'
    values = t_table1
    EXCEPTIONS
    ID_ILLEGAL_NAME = 1
    OTHERS = 2.
    do 10 times.
    add 1 to w_year.
    vrm_values1-key = sy-index.
    vrm_values1-text = w_year.
    APPEND vrm_values1 TO t_year.
    enddo.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'p_year'
    values = t_year
    EXCEPTIONS
    ID_ILLEGAL_NAME = 1
    OTHERS = 2.
    start-of-selection.
    write: p_month.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

Maybe you are looking for

  • Help!!! : Complex mysql query in dreamweaver

    Ok Guys: I need this query executed on a client's website. I know it's working well in phpmyadmin, but in dreamweaver I cannot put it to work. The point is that the mysql_query funcion in PHP can only execute one query, So I cannot set the initial va

  • Topics don't appear in topic list

    I imported several topics into RoboHelp and checked them into source control. Then, after trying to change the colour of a conditional build tag, RoboHelp crashed. Now, I have the topics in the project folder, source control and the root.fpj file, bu

  • [memcached] failed to listen on UDP port 11211

    Address book server is failing with the above error.... and this... 2014-08-15 11:18:54+0100 [-] [carddav-8801]  [Uninitialized] [twistedcaldav.memcachepool.MemCacheClientFactory#error] MemCache connection failed: [Failure instance: Traceback (failur

  • Whats the highest quality compression filter?

    Hey all: I am new to Encore, but was able to burn a Quicktime file into a DVD, and have it autostop, which works fine. Problem is, all the colors are blown away, as though the highlights and midtone levels were jacked up. It looks real bad. Someone t

  • Hard binding in solaris 10 with a SUN card X6768

    Is there any firmware for a SUN card X6768 which allow to make "hard binding" between a target and a router. The only one driver that I have find run dynamically.