Passing partition name as a variable

hi all
i'm trying to pass a variable as the partition name in my select query and getting the fallowing error.
SQL> DECLARE
2 PARTITION_NAME VARCHAR2(15) := 'PAR_JAN08';
3 BEGIN
4 SELECT * FROM TEST_T PARTITION('PARTITION_NAME');
5 END;
6 /
SELECT * FROM TEST_T PARTITION('PARTITION_NAME');
ERROR at line 4:
ORA-06550: line 4, column 50:
PL/SQL: ORA-00933: SQL command not properly ended
ORA-06550: line 4, column 1:
PL/SQL: SQL Statement ignored

Check this -
satyaki>
satyaki>create or replace type pl_hok as object
2   (
3     GrA         varchar2(5),
4     GrB         varchar2(5)
5   );
6  /
Type created.
satyaki>
satyaki>
satyaki>create or replace type pl_hok_rec as table of pl_hok;
2  /
Type created.
satyaki>
satyaki>
satyaki>create or replace function pipe_sel(
2                                         st_dt in date,
3                                         en_dt in date
4                                        )
5  return pl_hok_rec pipelined
6  is
7    cursor c1
8    is
9      select distinct empno
10      from emp
11      where hiredate between st_dt and en_dt;
12     
13    r1 c1%rowtype;
14     
15    cursor c2
16    is
17      select distinct mgr
18      from emp
19      where hiredate between st_dt and en_dt;
20     
21    r2 c2%rowtype;
22    pragma autonomous_transaction;
23  begin
24       open c1;
25       open c2;
26      
27       loop
28         fetch c1 into r1;
29         fetch c2 into r2;
30        
31           exit when c1%notfound and c2%notfound;
32           pipe row(pl_hok(to_char(r1.empno),to_char(r2.mgr)));
33       end loop;
34      
35       close c2;
36       close c1;
37  
38     return;
39  exception
40    when others then
41      dbms_output.put_line(sqlerrm);
42  end;
43  /
Function created.
satyaki>
satyaki>
satyaki>select GrA,GrB from table(pipe_sel(to_date('01-jan-1980','dd-mon-yyyy'),to_date('20-aug-2007','dd-mon-yyyy')));
GROUP GROUP
7006  7369
7369  7566
7499  7698
7521  7782
7566  7788
7654  7839
7698  7902
7782
7788
7839
7844
GROUP GROUP
7876
7900
7902
7934
9898
16 rows selected.
satyaki>Hope this will give you some basic idea. Now, you have to convert your procedure into this kind of function.
Regards.
Satyaki De.

Similar Messages

  • Passing partition names

    We are having one requirement in which we need to pass the partition name of the table to the query.
    How can I pass the partition names or sub partition names for a query to an OWB mapping?
    Thanks!

    HI Can any body help in this..?
    I am facing the similar problem

  • Call Data in Variable in Stored Procedure for Partition Name

    Hi,
    Here is an excerpt from a Srored Proc I have written.
    The aim here is to copy data from a partition of a table.
    I first query the partition-name from the ALL_TAB_PARTITIONS table and store the same in a VARCHAR2 variable named partition_name_low.
    I then try to select the data in this partition of the table by using the variable name.
    PROCEDURE purging AS
    partition_name_low VARCHAR2(25);
    BEGIN
    --+
    -- Query for the Highest Value of the timestamp in the 1st partition in current table.
    --+
    SELECT PARTITION_NAME
    INTO partition_name_low
    FROM ALL_TAB_PARTITIONS
    WHERE TABLE_NAME = 'TABLE1' AND PARTITION_POSITION IN
    +(+
    SELECT MIN(PARTITION_POSITION)
    FROM ALL_TAB_PARTITIONS
    WHERE TABLE_NAME = 'TABLE1'
    +);+
    COMMIT;
    COMMIT;
    DBMS_OUTPUT.PUT_LINE(partition_name_low ||' **********  ' || TO_char(sysdate, 'MM/DD/YYYY HH24:MI:SS')||' Starting Purging Data  *********');
    --+
    -- Copy data from 1st partition to Archive Table
    --+
    INSERT /* APPEND */ INTO TABLE1_ARCHIVE+
    SELECT * FROM TABLE1 PARTITION(partition_name_low);
    However, I am facing an issue here since I keep on gettin an error that "ORA-02149: Specified Partition does not exist".
    What I understand is that the Oracle query is picking up the literal string "partition_name_low", instead of the data inside it.
    I tried with
    &partition_name_low
    AND
    :partition_name_low
    with no luck.
    For the 2nd case I get the obvious exception "bad bind variable".
    Can someone please suggest in which way I can handle this situation where I can use a variable refer the partition name in a select query?
    Thanks in advance!!
    Abhishek.

    Hi,
    You have to use "execute immediate" to launch dynamic SQL command.
    So you should write
    execute immediate 'INSERT /* APPEND */ INTO TABLE1_ARCHIVE+
    SELECT * FROM TABLE1 PARTITION('||partition_name_low||')' ;
    Mike

  • How to pass a value to a variable at the time of scenario execution

    Hi All,
    I need to develop a ODI scenario, wiht below requriments.
    I have to move data from flat file to Target DB.
    flat file name is not consistent, we have to pass file name at the time of scenario excution.
    Could any of help me how to build this ODI scenario.
    Appreciate your help.

    In the datastore where you have filename in the "Resource Name", enter a variable #myVar
    You need to recompile your scenario after this change has been done.
    And when you execute the scenario, pass along the parameters "-Project.myVar=c:\filename.txt"
    Probably, this link may help you http://blogs.oracle.com/dataintegration/2009/04/using_parameters_in_odi_the_dy_1.html

  • Execute immediate with using clause to pass column name dynamically

    Hai,
    Is there any way using execute immeidate to pass the column name dynamically. I used to pass the column value as dynamic with the help of "Using clause" . But if i use to pass column name, it is giving numberic error at run time. Eg,. for testing has been given below.
    1. Column value as dynamic, which is working correctly.
    create or replace function testexeimm (acctnum char)
    return number as
    acctbal number;
    begin
    execute immediate 'select balance from acct_master where acct_no=:a' into acctbal using acctnum;
    return acctbal;
    end;
    2. Column name as dynamic which is not working
    create or replace function testexeimm (colnam char)
    return char as
    acctbal char;
    begin
    execute immediate 'select :a from ch_acct_mast where rownum=1' into acctbal using colnam;
    return acctbal;
    end;
    Any help in this regard will be highly appericated.
    Regards
    Sridhar

    So the variable has to be numeric too:
    create or replace function testexeimm (colnam char)
    return number as
    acctbal number;
    begin
    execute immediate 'select '|||colnam||' from ch_acct_mast where rownum=1' into acctbal;
    return acctbal;
    end;Max
    http://oracleitalia.wordpress.com

  • Passing Table name as parameter to proc.

    Hi,
    I need to know how to pass a table name to a oracle procedure.
    In that procedure I will put that table name in a variable and then I will make operations on that table like DELETE, UPDATE and INSERT.
    Kinldy give me the solution for the above problem as soon as possible..
    Thanks & regards,
    Kiran

    You shouldn't do it, but if you do, you can use something like this:
    Anton
    create or replace type my_parm as object
      ( name varchar2(30)
      , val  anydata
    create or replace type my_parms as table of my_parm
    create table t1( c1 number, c2 varchar2(10), c3 date )
    create or replace procedure doital( p_action in varchar2, p_tab in varchar2, parms in my_parms )
    is
      p_stmt1 varchar2(32000);
      p_stmt2 varchar2(32000);
      ind pls_integer;
      curs integer;
      dummy integer;
      t_a anytype;
      t_v varchar2(32000);
      t_n number;
      t_d date;
    begin
      curs := dbms_sql.open_cursor;
      if upper( p_action ) = 'I'
      then
        ind := parms.first;
        loop
          exit when ind is null;
          p_stmt1 := p_stmt1 || ', ' || parms( ind ).name;
          p_stmt2 := p_stmt2 || ', :b' || to_char( ind );
          ind := parms.next( ind );
        end loop;
        p_stmt1 := 'insert into ' || p_tab || ' (' || substr( p_stmt1, 2 ) || ' ) values (' || substr( p_stmt2, 2 ) || ' )';
        dbms_sql.parse( curs, p_stmt1, dbms_sql.native );
        ind := parms.first;
        loop
          exit when ind is null;
          case parms( ind ).val.GetType( t_a )
            when dbms_types.typecode_varchar2
            then
              dummy := parms( ind ).val.GetVarchar2( t_v );
              dbms_sql.bind_variable( curs, ':b' || to_char( ind ), t_v );
            when dbms_types.typecode_number
            then
              dummy := parms( ind ).val.GetNumber( t_n );
              dbms_sql.bind_variable( curs, ':b' || to_char( ind ), t_n );
            when dbms_types.typecode_date
            then
              dummy := parms( ind ).val.GetDate( t_d );
              dbms_sql.bind_variable( curs, ':b' || to_char( ind ), t_d );
          end case;
          ind := parms.next( ind );
        end loop;
      end if;
      dummy := dbms_sql.execute( curs );
      dbms_sql.close_cursor( curs );
    end;
    begin
      doital( 'I', 't1', my_parms( my_parm( 'c2', anydata.ConvertVarchar2( 'testje' ) )
                                 , my_parm( 'c1', anydata.ConvertNumber( 3 ) )
                                 , my_parm( 'c3', anydata.ConvertDate( sysdate ) )
      doital( 'I', 't1', my_parms( my_parm( 'c1', anydata.ConvertNumber( 77 ) )
                                 , my_parm( 'c2', anydata.ConvertVarchar2( 'goedzo' ) )
                                 , my_parm( 'c3', anydata.ConvertDate( sysdate - 5 ) )
    end;
    /

  • How to pass file name as parameter into url: or fo:external-graphic src

    Hello gurus,
    In my rtf I want to dynamically get the name of the image file and display the image in the report. If use hard coded image file name it works but if I try to get the name into a variable and pass that variable it is not working.
    Basically my client is having different logos for each operating unit. in the OA_MEDIA directory there are separate logos for each OU. during run time based on OU name we need to display the corresponding image. If I can get this entire path($OA_MEDIA/logo.jpg') in XML field<?CF_OU_LOGO?> then I'm able to print the logo using url:{CF_OU_LOGO}
    But I'm using seeded data source and I cant modify the data source, I need to handle this in RTF only. I could able to get the file name into a variable but not sure how to pass to url.
    could some one help me on this. I tried the following options
    <fo:external-graphic src="url($ln)" />
    url:{$ln} in web etc...
    here 'ln' is the variable which holds '$OA_MEDIA/logo.jpg'. ln is defined as <xsl:variable name="ln" select=".//CF_OPERATING_UNIT" />
    later I set the values as <?xdoxslt:set_variable($_XDOCTX, 'ln',translate( concat('${OA_MEDIA}/','Logo',.//CF_OPERATING_UNIT,'.jpg'),' ',''))?><?xdoxslt:get_variable($_XDOCTX, 'ln')?>
    thanks,
    Vijay

    Vijay
    What version of EBS is the customer running? I read somewhere that in R12 all of the concurrent parameters are passed to the XMLP template. I have not tried this but if true. You could create a conc program parameter that would hold the location of the image. You could either have the user pick the image or maybe derive it from the other parameter choices.
    Lets assume the token name is DLOGO you can reference that in your template.
    <?param:DLOGO?>
    this needs to be at the top of the template. Then where you need to embed the image just reference the value using
    $DLOGO
    You can embed this in the external graphic field
    As I mentioned I have not tested it yet, hopefully its there, if not there are ways around it. Try it first.
    Tim

  • FTP adapter pass file name to command

    I am executing a command after the reciever FTP adapter.  The filename that ftp-ed has a dynamic name and I need to execute the command against that file.  Is there a way I can pass that filename as a variable to the unix command.  I know how the UNIX shell wants it, I just do not know how to set that name as a variable in XI.
    Thanks
    Skip Ford

    Skip
    Go through this url where you can pass the same filename from a sender to a receiver file adapter. But you SP should be 14 and above.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Hope this helps.....
    ---Satish

  • Passing file name dynamically to the file adapter

    Hi All,
    I'm using a file adapter to create a file from the XML message after mapping in XI. The file name is given in the file adapter configuration. Is it possible to have the file name as a part of the message and pass it to the file adapter dynamically? Or is it possible to have the file name in some variable or something in XI (like a BPM variable) and pass it to the adapter for every message?
    Does someone have any idea?
    Thanks,
    Sandeep

    Hi Sandeep,
    This is possible.
    For creating filenames dynamically for your sender, you will have to crate a variable name ( eg: %VAR%) as you file name and then you will have to give the name of your file under variable substitution. Just check this link for more info,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    In the case of receiver file adapaters, you have 5 options for file creation like,
    1.Create
    2.Append
    3. Add time stamp
    4.Add Counter
    5. Add Message ID
    You can choose any of these options or you can do it dynamically from you payload. Just check out this help link for more info,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Hope this helps

  • How to pass a list as bind variable?

    How can I pass a list as bind variable in Oracle?
    The following query work well in SQL Developer if I set ":prmRegionID=2".
    SELECT COUNTRY_ID,
    COUNTRY_NAME
    FROM HR.COUNTRIES
    WHERE REGION_ID IN (:prmRegionID);
    The problem is that I can't find how to set ":prmRegionID=2,3".
    I know that I can replace ":prmRegionID" by a substitution variable "&prmRegionID". The above query work well with"&prmRegionID=2" and with "&prmRegionID=2,3".
    But with this solution, I lost all advantage of using binds variables (hard parse vs soft parse, SQL injection possibility, etc.).
    Can some one tell me what is the approach suggest by Oracle on that subject? My developer have work a long time too find how but didn't found any answer yet.
    Thank you in advance,
    MB

    Blais wrote:
    The problem is that I can't find how to set ":prmRegionID=2,3".Wrong problem. Setting the string bind variable to that means creating a single string that contains the text "+2,3+". THE STRING DOES NOT CONTAIN TWO VALUES.
    So the actual problem is that you are using the WRONG data type - you want a data type that can have more than a single string (or numeric) value. Which means that using the string (varchar2) data type is the wrong type - as this only contains a single value.
    You need to understand the problem first. If you do not understand the problem, you will not realise or understand the solution too.
    What do you want to compare? What does the IN clause do? It deals with, and compares with, a set of values. So it needs a set data type for the bind variable. A set data type enables you to assign multiple values to the bind variable. And use this bind variable for set operations and comparisons in SQL.
    Simple example:
    SQL> --// create a set data type
    SQL> create or replace type TStringSet is table of varchar2(4000);
      2  /
    Type created.
    SQL>
    SQL>
    SQL> var c refcursor
    SQL>
    SQL> --// use set as bind variable
    SQL> declare
      2          names   TStringSet;
      3  begin
      4          --// assign values to set
      5          names := new TStringSet('BLAKE','SCOTT','SMITH','KING');
      6 
      7          --// use set as a bind variable for creating ref cursor
      8          open :c for
      9                  'select * from emp where ename in (select column_value from TABLE(:bindvar))'
    10          using names;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    SQL> print c
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7698 BLAKE      MANAGER         7839 1981/05/01 00:00:00       2850                    30
          7788 SCOTT      ANALYST         7566 1987/04/19 00:00:00       3000                    20
          7369 SMITH      CLERK           7902 1980/12/17 00:00:00        800                    20
          7839 KING       PRESIDENT            1981/11/17 00:00:00       5000                    10
    SQL>
    SQL> --// alternative set comparison
    SQL> declare
      2          names   TStringSet;
      3  begin
      4          --// assign values to set
      5          names := new TStringSet('BLAKE','SCOTT','SMITH','KING');
      6 
      7          --// use set as a bind variable for creating ref cursor
      8          open :c for
      9                  'select * from emp where TStringSet(ename) submultiset of (:bindvar)'
    10          using names;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    SQL> print c
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 1980/12/17 00:00:00        800                    20
          7698 BLAKE      MANAGER         7839 1981/05/01 00:00:00       2850                    30
          7788 SCOTT      ANALYST         7566 1987/04/19 00:00:00       3000                    20
          7839 KING       PRESIDENT            1981/11/17 00:00:00       5000                    10
    SQL>

  • How to Find partition name by value ?

    hey,
    I have a big loading process into a certain fact table. the table is partitioned first by interval on a date column and then sub partitioned by hash. this is a big fact table so there are alot of bitmap indexes on it.
    i want to disable all indexes on a specific partition given a certain value of the partition key.
    is there any nice good looking way of finding the partition name by value ?
    i would realy like to avoid running a loop on the high_value long column in all_tab_partitions
    the etl process is running on the entire partition - after finding the partition name i would disable all sub partitions
    if i could only do something like...
    select $partition_name from some_table for (to_date('01/03/2012','dd/mm/yyyy'));i'm using oracle 11.2.0.2

    haki_benita wrote:
    now if we want to find the corresponding partition for a given value we need to check for the partition it's high value is greater then thy value and the previous one is lower then.Not necessarily. You can use the CBO to tell you what partition(s) will be used for a SQL statement. E.g.
    // partition range table using dates and yearly partitions
    SQL> create table testtab(
      2          id      number,
      3          day     date,
      4          flag    varchar2(1)
      5  )
      6  partition by range(day)
      7  (
      8          partition year_1900 values less than (TO_DATE('2000/01/01','yyyy/mm/dd')),
      9          partition year_2000 values less than (TO_DATE('2001/01/01','yyyy/mm/dd')),
    10          partition year_2001 values less than (TO_DATE('2002/01/01','yyyy/mm/dd')),
    11          partition year_2002 values less than (TO_DATE('2003/01/01','yyyy/mm/dd')),
    12          partition year_2003 values less than (TO_DATE('2004/01/01','yyyy/mm/dd')),
    13          partition year_2004 values less than (TO_DATE('2005/01/01','yyyy/mm/dd')),
    14          partition year_2005 values less than (TO_DATE('2006/01/01','yyyy/mm/dd')),
    15          partition year_2006 values less than (TO_DATE('2007/01/01','yyyy/mm/dd')),
    16          partition year_2007 values less than (TO_DATE('2008/01/01','yyyy/mm/dd')),
    17          partition year_2008 values less than (TO_DATE('2009/01/01','yyyy/mm/dd')),
    18          partition year_2009 values less than (TO_DATE('2010/01/01','yyyy/mm/dd')),
    19          partition year_2010 values less than (TO_DATE('2011/01/01','yyyy/mm/dd')),
    20          partition year_2011 values less than (TO_DATE('2012/01/01','yyyy/mm/dd')),
    21          partition year_2012 values less than (TO_DATE('2013/01/01','yyyy/mm/dd'))
    22  );
    Table created.
    // the following can be automated using PL/SQL - e.g. passing the date parameter to
    // a PL/SQL function and the function using the following approach to determine the
    // target partition
    SQL> explain plan
      2          set statement_id = 'partition.testtab.1' for
      3  select * from testtab where day = to_date( '2002/10/09','yyyy/mm/dd' );
    Explained.
    SQL> col PARTITIONS format a40
    SQL> select
      2          column_value    as PARTITIONS
      3  from       TABLE(
      4                  XmlSequence( extract(
      5                          DBMS_XPLAN.Build_Plan_Xml( 'PLAN_TABLE', 'partition.testtab.1' ),
      6                          '/plan/operation/partition'
      7                  )
      8                )
      9          );
    PARTITIONS
    <partition start="4" stop="4"/>
    <partition start="4" stop="4"/>
    SQL> select partition_name from user_tab_partitions where table_name = 'TESTTAB' and partition_position = 4;
    PARTITION_NAME
    YEAR_2002
    SQL>

  • Passing Table Name to Stored Procedure for From Clause

    Is it possible to pass a table name to a stored procedure to be used in the From clause? I have the same task to perform with numerous tables and I'd like to use the same SP and just pass the table name in. Something like this:
    =======================================
    CREATE OR REPLACE PROCEDURE SP_TEST(
    in_TABLE IN VARCHAR2,
    AS
    V_TABLE VARCHAR2(10);
    BEGIN
    V_TABLE := 'st_' || in_TABLE; -- in_TABLE is 2-3 character string
    SELECT some_columns
    INTO some_variables
    FROM V_TABLE
    WHERE some_conditions...;
    END;
    =======================================
    I'm also using the passed table name to assign to variables in the Select and Where clauses. What I'm getting is an error that V_TABLE must be declared. When I hard code the table name, I don't get any errors, even though I'm also using the same method to assign values in the Select and Where clauses.
    Thanks,
    Ed Holloman

    You need to use dynamic SQL whenever you are swapping out object names (tables, columns).
    create or replace procedure sp_test
      (in_table in varchar2)
    is
      -- variables
    begin
      execute immediate 'select a, b, c from st_' || in_table || ' where x = :xval and y = :yval'
         into v_a, v_b, v_c using v_x, v_y;
    end;

  • Passing JavaScript values to JSP variables

    Can any body correct the follwing code
    <Script language="JavaScript">
    function test( x )
    <%
    int num = x;
    num = num * 2;
    %>
    v.value = "<%out.print(num);%>";
    <input type="button" name="b" value="test" onClick="test(5)">
    <input type="text" name="v" value="0">
    In short, I am trying to pass JavaScript value to JSP variable. I hope that it is possible to do that. If it is possible then how can I do it. I want to assing the variable x passed to the JavaScript function called test to the JSP variable called num.
    Regards,
    Ageel

    Thank you for your reply,,,
    I think then the only way to do it is to post the
    value on the server and then use request.getParameter
    method in jsp code
    but the question now how can I post values to the
    server using JavaScript without reloading the pageyes... you can to it by create a new popup window which will submit the value to server after page was loaded... then, server return a value to the same window in html/jsp page which then using javascript to set it back to the opener and close up the window... however, this is not a good choice unless you have no other alternative...
    >
    There is other possible solution
    if I can get the text field value from the same page
    without reloading it that would work fine and will
    solve my problem, is it possible?yes... you can get the value from the textfield...
    for example :
    function showValueInTextField()
        alert(document.forms[0].elements["mytextfieldname"].value);
    >
    My final question> can jsp change things on the same
    page without reloading it. I mean can it work like
    JavaScript so that I can use it's internal functions
    instead of using java script :S
    not really know what you trying to say here...

  • Partition name using wildcard

    hi everyone
    is it possible to query a certain partition only the name of the partition is specified with wilcard?
    something like this: select * from table partition(PART_CH_%9);
    comment: the full name of that partition is PART_CH_20121209

    >
    what i'm trying to achive eventually is to query a partition using a variable
    i mean that the partition name is through a variable
    i need that because it is part of an ETL process where all my source tables are partitioned with a date key as described above
    the last execution date is assigned into a variable through the ETL process
    what i want eventually to achieve is to query only the partition where the partition name is one day after the variable's value
    i'm using Data services utilty but that is note important because i use a standart SQL statement for that process
    anyway, what i need should look like this: select * from table partition($variable);
    >
    A query like 'select * from table partition($variable)' won't query the partition that is "one day after the variable's value".
    If the table is partitioned with a date key you don't need to use the partition name or dynamic sql. Just specify the date range you want in the WHERE.
    SELECT * FROM JOB_HISTORY
    WHERE START_DATE >= trunc(TO_DATE(&1, 'mm/dd/yyyy'),'dd')
       and START_DATE < trunc(TO_DATE(&1, 'mm/dd/yyyy'), 'dd') + 1;

  • Passing Text name in text includes dynamically in Smartforms

    Hi Experts,
    How to pass text name , text object and text id dynamically while i include text in smartforms.
    I surfed in SDN but still i am not clear.
    I am calling READ_TEXT FM in my print program. When i try to call using the variables which are used in Print program and here i import them to pass it in text module, It gives me error that no variable of that name found.
    Regards
    Swetha

    Swetha,
    it depends how many text combination you want to pass.
    if they are some 4-5 than you can simply pass them like:
    CASE &VBDKR-VKORG&.
      WHEN '1552'.
    INCLUDE ZADDRESS_1552_RT OBJECT TEXT ID ADRS
      WHEN '1454'.
    INCLUDE ZADDRESS_1454_RT OBJECT TEXT ID ADRS
      WHEN '1555'.
    INCLUDE ZADDRESS_1555_RT OBJECT TEXT ID ADRS
      WHEN '1482'.
    INCLUDE ZADDRESS_1482_RT OBJECT TEXT ID ADRS
      WHEN '1483'.
    INCLUDE ZADDRESS_1483_RT OBJECT TEXT ID ADRS
      WHEN '1484'.
    INCLUDE ZADDRESS_1484_RT OBJECT TEXT ID ADRS
      WHEN '1485'.
    INCLUDE ZADDRESS_1485_RT OBJECT TEXT ID ADRS
      WHEN '1486'.
    INCLUDE ZADDRESS_1486_RT OBJECT TEXT ID ADRS
    above example i used to pass address in script.
    else if you dont know how many combination are there than you can write perform routine.
    Amit.

Maybe you are looking for

  • How to block the Payment for the Rejected Items in MIRO

    Dear Sir, Our Scenario : 1. Material Received through 101 Movement type with Inspection Stock 2. Quality will be done and move the stock to either unrestricted or rejection will be done. 3. Payment through MIRO will be done. But we need to keep check

  • My phone keep asking to login itune store with my previous email id for updates

    Dear Sir i have iphone 5 which is asking me to my previous email ID while updating the apps like skype please suggest me how can i change my previous email ID with new email ID even i logged in to itune store with my new email ID

  • Open-With menu displays two of every application

    After upgrading to Snow Leopard, there are two of every application when I right-click to "open-with" a file. I have followed directions found here, http://discussions.apple.com/message.jspa?messageID=10043445 except one problem, I have no .csstore f

  • HTML to Image Format

    If I run this class: import java.awt.*; import java.io.*; import javax.swing.*; public class Main {     public static void main(String[] args) throws FileNotFoundException,             IOException {         StringBuilder htmlCode = new StringBuilder(

  • Where to install ARD Admin?

    Here at my college we purchased a G4 Xserve and Apple Remote Desktop. The server will be tied in to a Windows Active Directory for authentication and our distribution install packages for the Macs will be kept on the server. My questions to everyone