Parameter field should pick the values which are there in the value table

Hi Experts,
I have a requ. where in a parameter field should pick only the values which are there in the value table for that particular field and should not allow the User to put in any other value.
The value table is created in the program manually.
EX:If the value table contains two sales organization VE03 and VE65 then the field shouldn´t allow anyother value other then those two.
Thanks and Regards,
Arun

Try using a listbox.
report  zrich_0001.
type-pools: vrm.
data: ivrm_values type vrm_values.
data: xvrm_values like line of ivrm_values.
data: name type vrm_id.
parameters: p_vkorg(4) type c as listbox visible length 20.
at selection-screen output.
  name = 'P_VKORG'.
  xvrm_values-key = 'VE03'.
  xvrm_values-text = 'VE03'..
  append xvrm_values to ivrm_values.
  xvrm_values-key = 'VE65'.
  xvrm_values-text = 'VE65'..
  append xvrm_values to ivrm_values.
  call function 'VRM_SET_VALUES'
       exporting
            id     = name
            values = ivrm_values.
at selection-screen.
  if p_vkorg is initial.
    message e001(00) with 'Please enter a sales org'.
  endif.
Regards,
RIch Heilman

Similar Messages

  • Those values which are there in the IN list but  not in the table.

    Hi All,
    We have a table global_title_isbn having 18 columns with primary key on title_isbn. This table contains approx. 10 million rows.
    Normally what we used to get was 10-15 comma seperated list of ISBNs for some business process , for them we have to check into the table to figure out what all ISBNs are not there in the table.
    But now a days we are getting a list of more than 100 ISBNs and there are times when only less than 40 ISBNs exist in the table. So figuring out what all ISBN are not there in the given list is very tiresome job.
    Is there any way using SQL we get list of only those ISBN which are not there in the table from the list,
    eg
    select * from global_title_isbn where title_isbn in ( a comma seperated list);
    will give me those ISBNs which are there in the global_title_isbn and in the given list..
    Desired O/P
    a list of ISBN which are there in the given list but do not exist in the table.
    PS:-- I have only read access . I cannot create any table/view etc and PLSQL stored procedure.....
    Regards
    Vineet

    I see no problem with my solution.
    See examples below:
    create table global_title_isbn (title_isbn varchar2(10));
    insert into global_title_isbn values ('8888888');
    commit;
    -- your_string is '9999999','8888888','17262','19283263','328732'
    select rtrim(ltrim(extractvalue(list_isbn.column_value,'e'), ''''), '''') as title_isbn
      from table(xmlsequence
                  (extract
                    (xmltype('<coll><e>' ||replace(:your_string, ',', '</e><e>') ||'</e></coll>')
                  , '/coll/*') )
                ) list_isbn
    where not exists (select 1
                         from global_title_isbn gt
                        where gt.title_isbn = rtrim(ltrim(extractvalue(list_isbn.column_value,'e'), ''''), ''''));
    output:
    9999999
    17262
    19283263
    328732
    drop table global_title_isbn;
    create table global_title_isbn (title_isbn number(10))
    insert into global_title_isbn values (8888888);
    commit;
    -- your_string is '9999999','8888888','17262','19283263','328732'
    select rtrim(ltrim(extractvalue(list_isbn.column_value,'e'), ''''), '''') as title_isbn
      from table(xmlsequence
                  (extract
                    (xmltype('<coll><e>' ||replace(:your_string, ',', '</e><e>') ||'</e></coll>')
                  , '/coll/*') )
                ) list_isbn
    where not exists (select 1
                         from global_title_isbn gt
                        where gt.title_isbn = rtrim(ltrim(extractvalue(list_isbn.column_value,'e'), ''''), ''''));
    output:
    9999999
    17262
    19283263
    328732

  • When I try to iTunes Match I get 'Please Sign In Again' error, I cannot access the songs which are visible in the iCloud in my music library on both iPad and iPhone

    when I try to iTunes Match I get 'Please Sign In Again' error, I cannot access the songs which are visible in the iCloud in my music library on both iPad and iPhone

    Did you try setting itunes to run with administrator privileges? 
    Since I changed that I no longer have this issue

  • I bought an MacBook Air 13 from Dubai last month. However I see smudge lines on the screen of the laptop which are prominent if the screen is black. Does the macbook air have international warranty ? Since I am in India right now. Can I get it fixed here

    I bought an MacBook Air 13 from Dubai last month. However I see smudge lines on the screen of the laptop which are prominent if the screen is black. Does the macbook air have international warranty ? Since I am in India right now. Can I get it fixed here ?
    -Ankit

    I don't know what service options are available in India but if this helps I do know that once you purchase your Apple product the warranty is valid anywhere in the world.

  • Question: When I want to send SMS and click on the contact, the contact came out with names and numbers, as if the whole contacts are there in the phone. When I open the contact, I can only see 3 contact names and the rest of 4000  contacts are not listed

    Question: When I want to send SMS and click on the contact, the contact came out with names and numbers, as if the whole contacts are there in the phone. However, when I open the contact, I can only see 3 contact names and the rest of 4000 plus contacts are not listed, and it makes you difficult to call through contact

    The iPhone remembers information about previous contacts.
    Complelely independently, you have a Contacts app with a contacts list.  It sounds like your contacts list has 3 names on it.  You need to add a few names.

  • I have reinstalled my OS without time machine (using the disc). I want to restore some pictures in the iPhotos which are already in the time machine i was using previously. How can I restore iPhoto from previous time machine?

    My mac book was incredibly slow. When I went to Mac store, they asked me to reinstall the OS with CD and not with the time machine. I reinstalled the operating system. But when I opened the applications, all those started as fresh applications as usual. I have the backup of all other data in another hard disc. But unfortunately, I forgot to copy the photos before reinstallation. I have those photos in my time machine back up. But when I opened time machine, it started like a fresh (very new) time machine and it started backing up my present OS (the reinstalled one). I cannot open the previous time machine, which is in the same hard drive. I wish to open the previous time machine to get the photos which are backed up previuosly. When opened the time machine disc (manually by clicking the icon), i can see all the thigs which I had previously in my macbook. But unfortunately, i cannot access those through time machine! Can anybody help me please?

    How to redownload purchased apps from the App Store

  • How to get the Objects which are used in the webi Report.

    Hi Expert,
    I am trying to get the list of  WebI reports and Objects which are present in the report at  BO 4.0.
    I can able to get details  for only the list of reports and universes.
    Could  any one help me to get those details.
    Regards,
    Murali S

    With 4.0, there is no longer a way to do this using just the .NET SDK because the ReportEngine SDK no longer exists for .NET.  Instead, you'll have to look at using the RESTful Web Services SDK for Webi which runs in the Web Application Container Server on your report server (NOT on the web server!)
    RESTful web services are platform-independent and don't require the installation of any SDK files.  Everything is done through standard HTTP Get, Put, and Post commands and the results are returned in either XML or JSON format.  You don't mention which service pack of 4.0 you're on, but the RESTful web services have evolved over the course of the 4.0 service packs, so more recent is definitely better.
    You can find the documentation for this in the "Development Information" section at help.sap.com/bobip40.  There is also a "space" on SCN for this at http://scn.sap.com/community/restful-sdk and there are some links on this page for various resources and sample code.
    -Dell

  • How to find the LoginNames which are only having the special chars %, @, .

    I have a table called LoginTable in that I have a column called LoginName
    I want to select only the LoginNames which are having the special charecters like %, @ and . how to write the query
    Please help me out.
    it is some thing like select LoginName from LoginTable where LoginName like (%, @, .) please correct my query

    Please use regexp_like, if your database is Oracle10g 10.1 or higher.
    Otherwise...
    how to search for '%' in data
    select * from LoginTable
    where
    LoginName like '%\%%' escape '\'
    or
    LoginName like '%@%'
    or
    LoginName like '%.%'
    ;

  • HT5858 I just updated to IOS 7 on my iPhone 4s and now all the Icons for Apps I had downloaded no longer appear on my home screen all the other Icons are there just the Apps I downloaded since I got the phone are missing.

    I just updated my iPhone 4s to IOS 7 and now all my icons for apps I had previously downloaded B4 the upgrade dont show on my home screen,does anyone know what happen and how I can get the icons back on my screen??

    Apps are in iTunes, are not part of the backup and when you updated the phone, you need to sync that content back.

  • How can I get INSTID_B for the documents which are stored using Store Business Document functionality

    Dear experts,
    I had activated the functionality of Store Business document and successfully stored documents in external server.
    My client have a custom function module which is used to send emails.In that FM they used SO_DOCUMENT_READ_API1, SO_DOCUMENT_SEND_API1 function modules.They passed Instance Ident(SRGBTBREL->INSTID_B)(eg: FOL33000000000004EXT39000000000026) as export parameter to the FM 'SO_DOCUMENT_READ_API1' and get the attachment details and content.
    Here my problem is I do not have entries in the table SRGBTBREL for the documents which are stored using the Store Business Document functionality and without INSTID_B I am unable to use the FM 'SO_DOCUMENT_READ_API1' to get the document details and content. Please help me to find INSTID_B for documents which are stored using Store Business Document functionality or please let me know if there is any other way to use FM 'SO_DOCUMENT_READ_API1' for documents which are stored using Store Business Document.
    Thanks in advance.
    Regards,
    Kiran

    Hi Kiran,
    You can use the following method to get the information. For example if you want to get BO documents for a customer
    CALL METHOD cl_binary_relation=>read_links
       EXPORTING
         is_object           = ls_lpor
         it_relation_options = lt_relat
       IMPORTING
         et_links            = lt_links.
    then fill  ls_por-instid with a customer number (KUNNR), ls_por-typeid = 'KNA1' and ls_por-catid = 'BO'.
    Table  lt_relat should contain a line option  for each document type (for example 'I' 'EQ' 'NOTE', 'I' EQ 'ATTA', 'I' EQ 'URL', ...
    In table lt_links you will get your information.
    Maybe some other methods of class CL_BINARY_RELATION may also solve your issue.
    Regards,
    Klaus

  • How to remove the buttons which are coming from a report?

    Hi All,
    I need to remove the buttons from an iview which is a sap transaction. when i execute the  report program which uses a ldb (PCH) shows a selection screen having all the buttons.
    We have created variants for this.Now i want to remove the buttons which are coming from the report program.how to do this ?
    Lakshmi.

    Hi,
    I think u r mentioning about the addition buttons that appear in the selection screen when using a logical database. for removing these buttons u can use a function module RS_SET_SELSCREEN_STATUS  for setting ur own pf-status
    do this in "at selection screen output" of the program..
    in the tables parameter, u have the option for giving the ok-codes that u want to remove. append all the ok-codes into this table.
    for getting the ok-codes u can use "tab" and go the button.. press F1. it will give the ok-code.
    Regards,
    Anoop

  • How to set the link to the result which are executed my query from database

    Hi,
    i have successfully displayed the results which are available in the database by jdbc, query.
    Then, How to give the link like href to each & every result...
    note: The number of records may be change. depending upon the records availablity in the database. but every result have the link.
    Thanks in advance.
    Regards
    Kumar

    hai kumar..
    i post an example code ..
    <%
    ResultSet rs1=stmt.executeQuery("select fromu,subject,message,mdate,status,mesid from message where to='" + lname +"'" );
    while(rs1.next())
         l=rs1.getLong(6);
         out.println("<tr align='center'> <td> <a href='deletemessage.jsp?mesid="+ l + "'>Delete </a></td><td>" + rs1.getString(1) +"</td><td> <a href='viewmessage.jsp?mesid="+ l +"'>"+ rs1.getString(2) +"</a></td><td>"+ rs1.getString(4) +"</td><td>"+ rs1.getString(5) +"</td></tr>");
    %>

  • Query to ignore the records which are 6 months older

    I need a query to ignore the records which are 6 months older . my table is having a column named quote_date . I need to ignore the records whose quote date is 6 months older . Can any one help me in this regard.
    thanks in advance
    rakesh

    Hi:
    SELECT *
      FROM table_name
    WHERE MONTHS_BETWEEN (SYSDATE, quote_date) > 6HTH
    Saad,

  • How can I restore my playlist folders in itunes? They are there but the individual song titles aren't listed. They are only listed by album. This makes it very difficult to find songs in my playlist.  Also,when I click on music, it will not list options.

    My itunes account is messed up. How can I restore my playlist folders in itunes? The list's are there but the individual song titles aren't. They are only listed by album. I can only see the song titles as they are played at the top of my itunes. This makes it very difficult to find songs in my playlist.  Also when in the itunes store, I am not able to see music genre choices, or search for a song or group.
    Thank you

    Hi dones49,
    It sounds like your issue here is that iTunes can not find the files for some of the songs you have brought into it. This happens occasionally even if the songs have not been moved from the location that iTunes places them on import or purchase. When you try to use the song, iTunes prompts you to find the file, as you have seen.
    To find the file, use the information in this article to navigate through the iTunes media folders -
    Locate and organize your iTunes files
    If you are still unable to locate the files, you may need to download them from the iTunes store again, or rip them from your CDs. See this article for assistance with downloading your past purchases -
    Download past purchases
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • I have forgotten my answers to the questions which are asked to identify me, and I am trying to press "send instructions to my e-mail", but this does not work, what should I do?

    I have forgotten my answers to the questions which are asked to identify me, and I am trying to press "send instructions to my e-mail", but this does not work, what should I do?

    If the email hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (113969)

Maybe you are looking for

  • Oracle Batch update problem

    Hi, I have a queer problem with batch inserts in oracle, loaded on a sun solaris m/c. I'm trying to do a batch insert using the executeBatch() api of java. I am able to do batch insertions from my workstation i.e win2k properly . But i'm unable to do

  • Just install windows on my new macbook

    Does anybody knows if I need to get antivirus for the windows side of my mac????

  • Weird lines with drawing tablet?

    Hey guys! I just bought a new drawing tablet to use with Flash. It works amazing in general, but when I tap on the screen I just get these weird... lines? It works fine with my mouse. How do I solve this?

  • Can't share a link in safari through email on ipad air

    i am unable to share a link when I'm in safari using email in my iPad air. The email text box just disappears  

  • Posting Period MMPV

    Hello All, I am trying to post stock to a Material in the MB1C transction. But I keep getting this message "Posting only possible in periods 2009/06 and 2009/05 in company code SPIL". I have opened the period in MMPV. Can some one tell me where do we