Set parameter id for select-options to fill more than one value

FROM MY CUSTOM PROGRAM I AM CALLING A TRANSACTION CODE. IN MY REPORT I WANT TO SELECT MORE THAN ONE RECORD AND TO CALL THE TRANSACTION BY PASSING THE SELECTED VALUES TO THE SELECT-OPTIONS OF THE TRANSACTION.
IF IT IS A PARAMETER I CAN WRITE SET PARAMETER STATEMENT FOR ONE VALUE AND EASILY CALL THE TRANSACTION. BUT I WANT TO FILL THE SELECT-OPTIONS OF THE TCODE.
CAN ANYBODY PLEASE PROVIDE ME THE LOGIC HOW TO FILL THE SELECT-OPTIONS FROM MY REPORT FOR CALLING THE TRANSACTION.
REGARDS,
VASU.

Hi..
Instead of calling the Transaction
Call the Report directly using:
(First declare the Ranges)
ranges : R_matnr for mara-matnr.
(Fill the values into Ranges Table and call the report )
SUBMIT <REPORT>
  With s_matnr in R_matnr.
<b>Reward if helpful.</b>

Similar Messages

  • Call Transaction and fill a select-options field with more than one value?

    Hello everybody,
    how can I fill a select-options field with more than one value.
    Here is the code example:
      CLEAR: GT_BDCDATA, GS_BDCDATA.
      GS_BDCDATA-program = 'RHALEINI'.
      GS_BDCDATA-DYNPRO = '1000'.
      GS_BDCDATA-DYNBEGIN = 'X'.
      APPEND GS_BDCDATA TO GT_BDCDATA.
      CLEAR: GS_BDCDATA.
      GS_BDCDATA-FNAM = 'PCHOTYPE'.
      GS_BDCDATA-FVAL = 'P'.
      APPEND GS_BDCDATA TO GT_BDCDATA.
      CLEAR: GS_BDCDATA.
      LOOP AT gt_hrobjinfty INTO gs_hrobjinfty.
        GS_BDCDATA-FNAM = 'PCHOBJID-LOW'.
        GS_BDCDATA-FVAL = gs_hrobjinfty-objid.
        APPEND GS_BDCDATA TO GT_BDCDATA.
        CLEAR: GS_BDCDATA.
      ENDLOOP.
      CALL TRANSACTION 'PFAL' USING GT_BDCDATA MODE 'A'
                       MESSAGES INTO GT_MESSAGES.
    THX.

    Hi,
    Please refer the code below:
    *Code used to populate 'select-options' & execute report
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    * load each personnel number accessed from the structure into
    * parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    Thanks,
    Sriram Ponna.

  • Best approach for select lists to hold more than 3000 values urgent plz

    Hello,
    I have an interactive report in which I have made one of the column as a editable dropdown list item using the APEX API ITEM APEX_ITEM.SELECT_LIST_FROM_QUERY_XL, I am getting an error saying that
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I think the drop down list is not able to hold that many values. The number of values can grow in the future.
    Can anyone suggest me any other approach to resolve this issue.
    Thanks,
    Orton
    Edited by: orton607 on Apr 7, 2010 12:28 PM

    thanks for your reply.
    Yes I have tried but the popup lov is not returning a value to my report when i click a value on the POPUP lov.
    So I did it in another way, the same problem exists again its not returning the value.
    Like I have a interactive report, in which I have have made one of column as an editale text item and concatenated it with an image when clicked on the image
    opens up an popup report (interactive report)
    Source query of the Report
    select
    apex_item.hidden(04,CHF_TABLE_KEY,' ','f04_' || ROWNUM)
    || APEX_ITEM.HIDDEN(01,ROWNUM,'','f01_' || ROWNUM) " ",
    APEX_ITEM.TEXT (25,CHF_SOURCE_TABLE,30,NULL,'f25_' || ROWNUM)
    || ' '||'<img height="18" align="middle" width="18" style=""
    alt="Source Table Popup" src="/i/lov_16x16.gif"
    onclick="javascript:popUp2(''f?p=&APP_ID.:50''||ROWNUM);" />' SOURCE_TABLE_EDIT,
    CHF_SOURCE_DATASTORE,
    CHF_SOURCE_SCHEMA,
    CHF_SOURCE_TABLE
    FROM CHF_TABLE_SOURCE
    ORDER BY CHF_SOURCE_TABLE
    My popup is an interactive report (Region source: select distinct chf_table from chf_table order by 1) which contains only one column which is a link column
    whose link Text: #CHF_TABLE#
    Target: URL
    URL: javascript:CallReport('#CHF_TABLE#');
    P50_PITEM is the hidden item.
    Javascript for the popup page HTML Header is
    <script type="text/javascript">
    <!--
    function CallReport(pVAl)
    var s_item = 'f25_'+ &P50_PITEM.;
    javascript:$v_PopupReturn(pVAl,s_item);
    //-->
    </script>
    My problem is, like when I click the image a popup report window appears but I am not able to return the value when I clicked the link column on the popup report page.
    Can you please help me out with this issue.
    thanks,
    Orton
    Edited by: orton607 on Apr 7, 2010 11:05 AM

  • HT204053 for some reason i have more than one apple id, not sure how, must have set one up ages ago and forgot about it. can i delete one, or merge them? how do i know im not going to lose info if i delete one account?

    for some reason i have more than one apple id, not sure how, must have set one up ages ago and forgot about it. can i delete one, or merge them? how do i know im not going to lose info if i delete one account?

    You can neither merge or delete them. Pick one and stop using the other. If they both have purchases associated with them you will have to keep using both.

  • How to pass more than one value for one column in procedure

    hi
    select id, name from col_tab where dept_name in ('ECE','CIVIL');
    when i was running this it is working well.
    CREATE OR REPLACE PACKAGE pack_str
    AS
    TYPE type_refcur IS REF CURSOR;
    PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
    END pack_str;
    CREATE OR REPLACE PACKAGE BODY pack_str
    AS
    PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
    IS
    BEGIN
    OPEN ans FOR
    select id,name from col_tab where dept_name in char_in ;
    END str;
    END pack_str;
    the package was created.
    my doubt is
    1.how to pass more than one value for char_in (e.g ('ECE','CIVIL'))
    2. when i was storing the value in string like val = 'ECE,CIVIL' ,
    how to get the id,name for ECE and CIVIL.
    plz help me

    Hi Rebekh ,
    I am recreating your packages for the desired output.
    CREATE OR REPLACE PACKAGE pack_str
    AS
         TYPE type_refcur IS REF CURSOR;
         PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
    END pack_str;
    CREATE OR REPLACE PACKAGE BODY pack_str
    AS
         PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
         IS
              lv_t varchar2(200);
         BEGIN
              lv_t := REPLACE(char_in,',',''',''');
              lv_t := 'select id,name from col_tab where dept_name in (''' || lv_t || ''')' ;
              OPEN ans FOR lv_t;
         END str;
    END pack_str;
    Note:-
    Input Parameter char_in is a comma seperated value for dept_name
    -Debamalya

  • Select more than one value in a query

    Hi,
    since V7.0 we have a problem in the selection screen to select more than one value in a easy way.
    How can I select e.g. 20 BuisinessPartner with one selection?
    To create a variant isn't possible, because every user needs different values.
    Thanks

    Hi,
    Go for "Selection Options " instead of Multiple single values ..
    With this option u can get single values, multiple single values & ranges also..
    Can u please explain clearly regarding that function of whole excel sheet into a variable??
    Regards,
    Vijay
    Edited by: vijaya kumar on May 22, 2009 6:15 PM

  • Fill BEx Variable with more than one value via Custom Exit

    Dear SDN comunity,
    I want to fill a BEx Variable via a custom exit. My problem is, I don't know how to fill this variable with more than one value.
    I try to give you some background info based on an exaple:
    <u><b>Variable-Details</b></u>
    <b>Type of Variable:</b> Characteristic Value
    <b>Variable Name:</b> ZCCD
    <b>Description:</b> Company Code Selection
    <b>Processing by:</b> Custom Exit
    <b>Characteristic:</b> Company Code
    <b>Variable Represents:</b> Multiple Single Values
    <u><b>This is the used ABAP code:</b></u>
    WHEN 'ZCCD'.
    CLEAR l_s_range.
    l_s_range-low = '2002;2004'.
    l_s_range-sign = 'I'.
    l_s_range-sign = 'EQ'.
    APPEND l_s_range TO e_t_range.
    <u><b>The system returns this message:</b></u>
    Value "2002;2004" is too long for variable ZCCD
    appreciate your help!
    //michael

    Eugene, Marcus
    it works now, thx a lot!
    Please find attached the final code:
    CLEAR l_s_range.
    l_s_range-low = '2002'.
    l_s_range-sign = 'I'.
    l_s_range-<b>opt</b> = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR l_s_range.
    l_s_range-low = '2004'.
    l_s_range-sign = 'I'.
    l_s_range-<b>opt</b> = 'EQ'.
    APPEND l_s_range TO e_t_range.
    (Delta to Marcus's code is bold)

  • Select more than one value at a time from an LOV?

    Is it possible to configure an LOV-based text field so more than one value at a time can be chosen from the drop-down LOV list? This is a user requirement for specifying multiple values in an SQL WHERE clause.

    Rather several select fields because single returned value is a functional limitation of <select>.

  • URGENT: passing more than one value at the same parameter

    Hello friends at www.oracle.com,
    if I have a Forms program that sends some parameters to a Report, how can I send more than one value at the same parameter that is being sent?
    For example: the Reports parameter P_CODE should receive (from Forms) and print the values 1, 2, 3 and 4, each one in a different page. But, only 4 is being printed, and these values aren't saved at a database, so I have to pass the other three values too. How can I solve this problem?
    This is quite urgent and I need help on this.
    Best regards,
    Franklin Gongalves Jr.
    [email protected]

    Thanks to Oracle Reports Team for answering! I'm sure this will work.
    Best regards,
    Franklin Gongalves Jr.
    [email protected]
    hello,
    on the forms side, you will have to build the list for this parameter by e.g. string concat.
    on the reports side you will have to "decode" this parameter according to how you built it in forms.
    e.g. if you pass the list like this "10~20~30" you might use a where-clause in the query
    ... where instr(myCol, :myParam) >0
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

  • More than one Value for a Category

    Hello,
    it is possible to assign more than one value of a category to a document by assigning the category once more. Is it a bug or a feature?
    If it is not a bug, I wonder why it is not possible to search for a document with two values of one category set? And why isn't it possible to combine category values with "OR" in my search query?
    Best regards,
    Christian

    Only one video role, only one audio roll, per clip.  Only one as these are "Media Stems", and when you work with Stems, only one roll per asset video, one per asset audio.

  • Can we give more than one value for an Authorization field in Auth-Check.

    Hi all,
    Can we give more than one value for an Authorization field in Auth-Check.
    Ex: AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD <Value 1> <Value 2> <Value 3>.
    IF SY-SUBRC 0.
    MESSAGE E...
    ENDIF.
    If yes, please help me with exact syntax.
    Think it will be like
    ID 'CUSTTYPE' FIELD: <Value 1>, <Value 2>, <Value 3>.

    Hi,
    yes we can give more than one field.
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object> 
       ID <authority field 1> FIELD <field value 1>. 
       ID <authority field 2> FIELD <field value 2>. 
       ID <authority-field n> FIELD <field value n>. 
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    please reward points, if it is useful.
    satish.

  • In a hierarchical query, is it possible for a row to have more than one immediate ancestor?

    Hi
    Question:
    In a hierarchical query, is it possible for a row to have more than one immediate ancestor?
    Answer:
    No
    No?  Surely, it's yes?
    Thanks,
    Jason

    As Frank pointed out already hierarhical most often means a tree (data structure) to deal with.
    There must usually be just one boss (the root) in which case the answer is no.
    Something to read: http://en.wikipedia.org/wiki/Tree_(data_structure)
    You can find out Solomon spoke about a generalization therein.
    Related to forum troubles:
    If I login first thing after reaching forum, the behaviour is rather consistent - I'm allowed to post answers, otherwise ...
    Regards
    Etbin

  • Is it possible to use more than one value in SUPPRESSCHARACTER option

    Hi,
    Is it possible to Suppress more than one value uisng SUPPRESSCHARACTER option in transformation file?
    if yes, any syntax?
    I have 'Z' and '1000' that i wish to suppress from the values being loaded. Any thoughts ?
    Thanks.

    HI,
    i don't really know if it's possible to suppress more than one character, but you can do load your data in two steps in the first step skip all the information that has the Z character in your conversion file and skip all 1000 values, then repeat the process but this time skip the 1000 values and then suppress the Z value...
    hope this helps,

  • Value help for select-option not filling selection field

    I'm having some problems with a value help on a select-option. I've managed to get the value help displaying the correct values but for some reason can't get it to populate the selection field after I've selected a record.
    I have the following call:
      wd_this->m_handler->add_selection_field(
                          i_id = 'SHORT_D'
                          i_description = 'Program'
                          it_result = lt_range_table
                          i_read_only = read_only
                          i_value_help_type = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
                          i_value_help_id = 'ZPROGSTUDY' ).
    where ZPROGSTUDY is a new search help I've set up with an exit to retrieve the values.
    Any ideas ? Thanks.

    Hi Malcolm,
    The code you have is OK. I copied your code into a test program and it worked as expected.
    I used a search help where the possible values are populated in the search help exit, exactly as in your case. The only time it did not work was when read_only = X, but that is obvious also from a visual point of view since the input field is greyed out in that case. The popup also tells you is in RO mode...
    Does your SHLP work when you test it from SE11? Returns values?
    SAP provides a lot of WD4A sample code, see for example component WDR_TEST_SELECT_OPTIONS look for
    select-option fields > special cases > input helps > Non field-specific input help using search help
    Regards,
    George

  • SELECT INTO SELECT CAN IT ACCEPT MORE THAN ONE LINE ?

    Hi i have a table that i have to fill with information from an old one, but there are two colomns that i have to fill with another table. So here is the select that i will use with the insert part.
    select
    id_migration_mig,
    (select a.id_instance_ins
    from gdiexp.t_instance a, gdiprod.t_migration_detail b, gdiexp.t_bd c
    where a.id_instance_ins = c.id_instance_ins and c.id_base_donnee_bd = b.id_instance_ins_actuelle),
    (select a.id_instance_ins
    from gdiexp.t_instance a, gdiprod.t_migration_detail b, gdiexp.t_bd c
    where a.id_instance_ins = c.id_instance_ins and c.id_base_donnee_bd = b.id_instance_ins_cible),
    type_environnement,
    date_migration,
    donnees_sources,
    date_au_plus_tot,
    methode,
    date_dern_maj_ctrl,
    code_usager_ctrl
    from gdiprod.t_migration_detail;
    problem is that this gives me a ORA-01427: single-row subquery returns more than one row. How can i solve that ? Thanks.

    Your queries in the select clause need to be correlated witt the rows you are selecting from gdiprod.t_migration_detail. You should not need to have gdiprod.t_migration_detail in those queries. I believe that you need something more like:
    select id_migration_mig,
           (select a.id_instance_ins
            from gdiexp.t_instance a, gdiexp.t_bd c
            where a.id_instance_ins = c.id_instance_ins and
                  c.id_base_donnee_bd = md.id_instance_ins_actuelle),
           (select a.id_instance_ins
            from gdiexp.t_instance a, gdiexp.t_bd c
            where a.id_instance_ins = c.id_instance_ins and
                  c.id_base_donnee_bd = md.id_instance_ins_cible),
           type_environnement, date_migration, donnees_sources, date_au_plus_tot,
           methode, date_dern_maj_ctrl, code_usager_ctrl
    from gdiprod.t_migration_detail md;You query, and my re-written version are essentially outer joins, and could be re-written as such. If you are sure that there will always be a match, that is, when oyu insert into your table, the columns populated by the scalar queries are never null, then it could (and probably should) be re-written as a equi-join.
    John

Maybe you are looking for

  • Apple TV audio help

    I Just got the new Apple TV (model MD199LL/A). My current set up is a Panasonic viera TV, directv, a panasonic home theatre system all ran through Xbox One hdmi pass through . When I hooked up the Apple TV to an open hdmi port on my tv and hooked the

  • Changing Sold to in the Order

    Hi, We create an Order with reference to contract.  But we would like to change the Sold to Party in the order, and not copied the SP from the contract. Is this possible?

  • 9i migration to new hardware

    does anyone know of a migration guide for moving a 9i database to new hardware?

  • /Downloaded Files Don't Match Website?

    I am unable to "get" download correct files that match website showing in my DW8 document window? I have repeatedly checked with IP provider as to using correct server info/ftp, etc. and I am using correct data. Still after repeated attempts I do not

  • Slow FTP Speeds

    Hi All, I'd like to pick your brains a little on an issue that is quite confusing to me. I have a dual boot system with Arch and Windows 8. I haven't booted Windows in months, but I was downloading off an FTP today in Arch at about 300K a sec, thinki