Problem in v$parameter

hi all
I have made a change in init.ora file to make utl_file_dir point to E:\abc rather than to E:\def
but when i make any fie it makes the entry to E:\def
and also the v$parameter value is even E:\def
how could i make it point to E:\abc?
thanks

let me give you the steps that i followed:-
In init.ora file i made the change as
utl_file_dir:= 'E:ANURAG'
create directory CHECKINGS as 'E:\Anurag';
GRANT READ, WRITE ON DIRECTORY CHECKINGS TO PUBLIC;
select value from v$parameter where name = 'utl_file_dir';
E:\KARUNA\UTL\
In init.ora file i made the change as
utl_file_dir:= 'E:ANURAG'
declare
f utl_file.file_type;
begin
f := utl_file.fopen('CHECKINGS', 'something.txt', 'w');
utl_file.put_line(f, 'line one: some text');
utl_file.put_line(f, 'line two: more text');
utl_file.fclose(f);
end;
this file is being made in E:\KARUNA\UTL\ directory

Similar Messages

  • Problem in getting parameter value from selection screen in web dynpro abap

    Hi,
    I am facing problem in getting parameter value from selection screen.
    Please find my code below:
    DATA LT_PAR_ITEM TYPE IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
    FIELD-SYMBOLS:<FS_PAR_ITEM> LIKE LINE OF LT_PAR_ITEM,
                                 <FS_OBJ_USAGE>    TYPE REF TO data.
      WD_THIS->M_HANDLER->GET_PARAMETER_FIELDS( IMPORTING ET_FIELDS = LT_PAR_ITEM ).
      LOOP AT LT_PAR_ITEM ASSIGNING <FS_PAR_ITEM>.
        CASE <FS_PAR_ITEM>-M_ID.
          WHEN `OBJ_USAGE`.
             ASSIGN <FS_PAR_ITEM>-M_VALUE->* TO <FS_OBJ_USAGE>.      
    [ Here, sy-subrc is 4,  <FS_OBJ_USAGE> is not assigning.]
        ENDCASE.
      ENDLOOP. 
    So, can any one solve this problem.
    Thanks in advance,
    Radhika

    Hi Radhika,
    Try using GET_RANGE_TABLE_OF_SEL_FIELD...
    Please Refer below code..
       DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA: RT_CARRID TYPE REF TO DATA.
      DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
      DATA: WSFLIGHT TYPE SFLIGHT.
      FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
    Retrieve the data from the select option
      RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    Assign it to a field symbol
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
      CLEAR ISFLIGHT. REFRESH ISFLIGHT.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
                           WHERE CARRID IN <FS_CARRID>.
      NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
      NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
    Thanks,
    Regards,
    Kiran

  • Problem with Date Parameter

    Hi
    I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time. 
    I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
    I need to allow the users of the report to choose a start date and an end date
    The Start Dates are held in a field called PhaseStartDate
    The End Dates are held in a field called PhaseEndDates
    I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message  
    "An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies
    are not valid"
    I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
    I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
    Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
    Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
    I set up a Parameter called StartDate with Data type as Date/Time
    Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
    There are no Default Values
    I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
    I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
    Any assistance will be greatly appreciated as I have spent hours on this so far
    Regards
    John

    Hi
    I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time. 
    I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
    I need to allow the users of the report to choose a start date and an end date
    The Start Dates are held in a field called PhaseStartDate
    The End Dates are held in a field called PhaseEndDates
    I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message  
    "An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies are not valid"
    I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
    I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
    Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
    Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
    I set up a Parameter called StartDate with Data type as Date/Time
    Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
    There are no Default Values
    I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
    I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
    Any assistance will be greatly appreciated as I have spent hours on this so far
    Regards
    John
    As I understand what you need to do is to just remove parameter from the dataset query for populating the date values and then it should work fine
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • A problem with a parameter name.(% causing problems)

    Hello,
    I wrote a following sql query and it works fine except for parameters like drying%Total, drying%,. The reason is that in the name of parameters there is a wildcard used %. I know that I can use an escape command however I could not figure out how as I think that escape command only works with LIKE operator and not MAX. Could you please help me to resolve this problem?
    Could you please tell me what should be amended in order an Oracle would treat % as a normal character and not a wildcard?
    Thank you in advance for your help.
    SELECT c.numlotpharma AS lotnum , c.numof ,
    MAX(DECODE(RTRIM(a.parametercode),'DRYING',numvalue,0)) AS dryingdata,
    MAX(DECODE(RTRIM(a.parametercode),'DRYING%Total',numvalue,0)) AS dryingpercentageTotal,
    MAX(DECODE(RTRIM(a.parametercode),'DRYING%',numvalue,0)) AS dryingpercentage1
    FROM prodaccount.manufacturingdata a
    INNER JOIN
    (SELECT MAX(inputindex) AS inputindex,
    parametercode , mancode
    FROM prodaccount.manufacturingdata
    WHERE parametercode IN ('DRYING','DRYING%Total','DRYING%')
    GROUP BY parametercode, mancode) b
    ON a.inputindex = b.inputindex
    AND a.parametercode = b.parametercode
    AND a.mancode = b.mancode
    INNER JOIN (SELECT Numlotpharma, numof , codeproduit
    FROM prodaccount.batchlotdetails d
    WHERE d.codeproduit = ('Tablets')) c
    ON a.mancode = c.numof
    GROUP BY c.numlotpharma, c.numof
    ORDER BY lotnum

    Hi,
    user12866679 wrote:
    Hello,
    I will post some production data tomorrow as I am not at work today.Great!
    If in decode % is treated as a part of parameter name then what about this part of my sql query
    WHERE parametercode IN ('DRYING','DRYING%Total','DRYING%')
    Is % treated as a wildcard?I think it is. Why do you think that?
    '%' is a wildcard only in the right-operand of LIKE. The '%' characters in the expression above are not in the right-operand of a LIKE operation. (In fact, the expression doesn't include LIKE at all.) Therefore, the '%' signs above are not treated as wildcards.
    Include in your sample data some examples where the condition above is not doing what you expect. Be sure to post the entire query, too; the part that causes the unexpected results might be something completely unconnected to the WHERE clause posted above.
    Could you please tell me what to do so it would not be treated as a widlcard but as a integral part of a parameter name.You don't have to do anything.
    Consider this example:
    CREATE TABLE     table_x
    (     x_id          NUMBER (4)
    ,     parametercode     VARCHAR2 (30)
    INSERT INTO table_x (x_id, parametercode) VALUES (0,  NULL);
    INSERT INTO table_x (x_id, parametercode) VALUES (1,  'DRYING');
    INSERT INTO table_x (x_id, parametercode) VALUES (2,  'DRYING%Total');
    INSERT INTO table_x (x_id, parametercode) VALUES (3,  'DRYING%');
    INSERT INTO table_x (x_id, parametercode) VALUES (11, 'DRYINGFOO');
    INSERT INTO table_x (x_id, parametercode) VALUES (12, 'DRYING%FOO');
    INSERT INTO table_x (x_id, parametercode) VALUES (13, 'DRYINGFOOTotal');
    INSERT INTO table_x (x_id, parametercode) VALUES (14, 'FOO');
    SELECT     *
    FROM     table_x
    WHERE      parametercode IN ( 'DRYING'
                    , 'DRYING%Total'
                    , 'DRYING%'
    ;Output:
    .     X_ID PARAMETERCODE
             1 DRYING
             2 DRYING%Total
             3 DRYING%Is this what you expect? If not, what is?

  • Problem with Flash-Parameter which include the letter 'E'

    Hi,
    we have embedded our Xcelsius-Dashboards in another 3rd-party-webportal.
    The user opens a dashboard via button in this webportal.
    The OpenDocument-URL contains one Falsh-Variable to control the display
    content according the appropriate user who has calling the dashboard.
    In some cases, the content of this Flash-Variable contains the letter "E".
    In such cases the problem is, that the Letter E will not appear in Xcelsius.
    That means, if we call the dashboard for example with the Flash-Parameter-Value "22E"
    via OpenDocument, in Xcelsius comes the Value without the letter "E" (in the case above "22").
    I also tried to use the hex-code of the letter "e" (%65) but this doesn't work.
    Has anybody a hint for us, how this letter can be sent to Xcelsius via OpenDocument?
    Sincerely
    Edited by: Sebastian Eckes on Apr 26, 2011 12:00 PM

    Check for malware infection. The names of these files really indicate the system is infected.
    Which version of Java client is installed? Especially older versions are very vulnerable against website or email based attacks.
    Since malware infections are very different, detailed support can hardly be given via forums.
    Best greetings from Germany
    Olaf

  • Problem with GET PARAMETER in "O4K_LICENSE" Transaction

    Hi folks,
    I am facing a problem with the usage of "GET PARAMETER ID" in the transaction O4K_LICENSE (IS-oil).
    I have written a BDC which feeds in the License Type, External License type and a few other Mandatory fields to the Transaction, and on saving the transaction, SAP generates an "Internal License Number". This field has a Parameter ID "OIH", and I am using the command
    GET PARAMETER ID 'OIH' FIELD lw_licin.
    For the first pass of the loop, there is a value coming into lw_licin, but in the later loops this Value is not refreshing and the value which is coming into lw_licin is not changing. But the Database table OIHL is getting updated with the correct Internal License number values.
    So, my question is, is there anyway by which i can refresh the SAP Global Memory after every loop pass?
    Or, is there any way out to get the new generated values into lw_licin ?
    Thanks in advance,
    Vijay.

    Hi
    If you clear the parameter, you should transfer a blank value to it:
    DATA: NO_VALUE.
    SET PARAMETER ID <ID> FIELD NO_VALUE.
    Now the problem is this statament should be into loop and i think the transaction only does the GET PARAMETER.
    If transaction doesn't do the SET PARAMETER yuo can do anything.
    In your standard program there should be something like:
    LOOP...
    IF SY-TABIX > 1.
      SET PARAMETER ID <ID> FIELD NO_VALUE.
    ENDIF.
    ENDLOOP.
    but I think it's very hard there is a piece of code like that, and you can do nothing, because you can only set the parameter before calling the transaction (in bdc mode) and after calling the transaction but not while the transaction is working.
    You should change the standard program to do this.
    Max
    Message was edited by: max bianchi

  • Problem get the parameter ID using debug mode

    Hi Expert,
    I got problem for tracking the problem which is using GET PARAMETER ID under debug mode. the scenario is like that, I go and run the BDC transaction and want to use GET PARAMETER ID 'KUN' to populate data customer code to some variable. but when I using the debug mode sometimes my variable is came from GET PARAMETER ID was missing. but if running not using the debug mode all is populated perfectly. is there any SAP notes or code I can use to continue my debuging instead using GET PARAMETER ID ? Thank you
    Regards,
    Koho koho

    Hi BreakPoint,
    Thanks for the replay, I really don't know and how to configure again. this morning I am running upload program using the BDC using the get paramater ID from posting FB03. I loading 10 documents upload. and 2 is failed to take the "get parameter id 'BLN' field var1" and var1 is blank, the other 8 document posted I can get the paramter id as well. any solution for this case. Thanks
    Regards,
    Koho koho

  • Problem while passing parameter from report to report.

    Hi
    I'm using forms and reports 10g, hava a problem while passing the parameter from reports to report.
    i'm using srw.set_hyperlink to call report from report.
    i have created a key value in the cgicmd.dat file called
    faccre802005-2006: report=faccre80 destype=cache desformat=pdf userid=<userid/passwd@cs> server=<servername>
    Now in the format trigger i'm using this key value
    function BTN_DEBITFormatTrigger return boolean is
    temp varchar2(5000);
    IP_ADDRESS VARCHAR2(50);
    SERVER_NAME VARCHAR2(10);
    L_ACCT_CODE VARCHAR2(14);
    begin
    SELECT MAST_INT_DESC,MAST_USER_PGM_ID INTO IP_ADDRESS,SERVER_NAME FROM MAST_INT_INFO WHERE MAST_INT_ID='VISHWA';
    temp := IP_ADDRESS||'?faccre80'||:P_FIN_YEAR||'+server='||server_name;
    temp :=temp ||'+'||'P_PREVIOUS_CODE='''||:ACCT_CODE||''''||'+'||'P_COMPANY_CODE='''||:P_COMPANY_CODE||'''';
    temp :=temp ||'+'|| 'P_FROM_DATE='''||TO_CHAR(:P_FROM_DATE,'DD-MON-RRRR')||''''||'+'|| 'P_TO_DATE='''||TO_CHAR(:P_TO_DATE,'DD-MON-RRRR')||''''||'+'||'P_TRUST_CODE='''|| :P_TRUST_CODE||'''';
    temp :=temp ||'+'|| 'P_UNIT_CODE='''||:P_UNIT_CODE||''''||'+'||' P_FIN_YEAR='''||:P_FIN_YEAR||'''';
    temp :=temp ||'+'|| 'P_LEVEL='''||:P_LEVEL||''''||'+'||'P_HEADER='''||replace(:P_HEADER,' ','%20')||''''||'+'||'P_FORMAT='''||:P_FORMAT||'''';
    SRW.Set_Hyperlink(temp);
    END;
    return (TRUE);
    end;
    Report is coming but not the expected result because parmaeters are not coming from first report to second report.
    If i dont use cgicmd file userid and password are displyed in the URL.
    Pl tell me how to pass parameter from one report to another.
    thanks and regards

    Hi
    I got the solution.
    I forgot to add %* at end of the KEY value.

  • Problem in OUT Parameter in the stored procedure

    Hi,
    I have a problem in the OUT parameter of the stored procedure under the package. I encountered the error PLS-00306. Below are the codes.
    Package
    CREATE OR REPLACE package body test as
         procedure sp_countries(rst OUT country_typ) as
         sql_stmt VARCHAR2(300);
         begin
         sql_stmt := 'SELECT * FROM countries WHERE region_id = 1';
         OPEN rst FOR sql_stmt;     
         end;
    end test;
    by the way. i declared the country_typ as this:
    TYPE country_typ IS REF CURSOR;
    Here is the code that will call this package:
    declare
    tst countries%ROWTYPE;
    begin
    test.sp_countries(tst);
    dbms_output.put_line(tst.country_name);
    end;

    Works for me. Although I had to use emp instead of your table:
    SQL> create or replace
      2  package test as
      3     TYPE country_typ IS REF CURSOR;
      4     procedure sp_countries(rst OUT country_typ);
      5  end;
      6  /
    Package created.
    SQL> CREATE OR REPLACE
      2  package body test as
      3     procedure sp_countries(rst OUT country_typ) as
      4        sql_stmt VARCHAR2(300);
      5     begin
      6        sql_stmt := 'SELECT * FROM emp WHERE deptno = 20';
      7        OPEN rst FOR sql_stmt;
      8     end;
      9  end test;
    10  /
    Package body created.
    SQL> var tcur refcursor
    SQL> exec test.sp_countries(:tcur);
    PL/SQL procedure successfully completed.
    SQL> print tcur
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
    SQL>

  • Problem with String Parameter in Command

    I'm running CR XI. I have a report that I want to change the command to use a parameter rather than an hard-coded number that I used for testing. The text of the SQL is:
    select j.instrument_type,j.cost_type_cd,j.customer,j.bs, j.product,j.del_pd, j.bl_num, j.date2,j.match,j.jrnl_ref,j.mot_name,
    j.tank_name, j.trade_num ,  j.date3, j.volume,  j.invoice, j.trade_price,
    j.mrkt_price,  j.book_pl,  j.pl,  o.strategy_name, j.snapshot
    from JE_TABLE_{?TName} j,  ORG_STRATEGY o
    where j.STRATEGY in (select o.external_ref from org_strategy o where o.strategy_name='{?StratName}')
    and j.strategy=o.external_ref and j.cost_in_mtm=1
    order by j.PL
    When I added the '{?StratName}' to the SQL, CR started aslways failing telling me I had an invalid character. So, I changed to double quotes and the error message changed to the expected Oracle error becuase it does nto like  double quotes but I did not get the invalid character error.
    This is a string parameter so I need the single quotes. What do I need to do to get CR to handle it? I've used this structure before ino other reports and it never objected to the single quotes before.
    Could the command just be corrupt?

    I decided to create a new blank report and added the command as before and then paramterized it. This time there was no problem. It must be that the other command was corrupt.

  • Problems with Flexible Parameter Passing - Can anyone help with the answer

    Hi,
    having gone to the trouble of creating a generic form handler which utlises the ability of the PL/SQL Gateway to handle flexible parameters, we've come across an almighty problem.
    Whilst the gateway will create two arrays of parameter names and values, it doesn' t seem to handle arrays of values. So, although some of our forms have multi select list form elements, these seem to be incompatible with the Flexible parameter method, as only the first value is returned.
    Does anyone know of a solution to this?
    I really hope so, otherwise the whole methodology is a waste of effort, and I can't imagine why Oracle bothered to include it!
    Here's hoping.
    Thanks
    Dan

    Not sure what flexible parameters are but in the past I've worked on a form that had to pass multiple values (from a multi-select list item) to a report via a single parameter. We did this by creating a pipe delimited ("|") string of all the selected values. Leading and trailing pipes were also added to the concatenated string.
    This was exploded into individual rows by using the statement below:
    WITH t AS (SELECT '|1|2|3|4|' str FROM dual)
    SELECT str, level
    , SUBSTR(str, INSTR(str, '|', 1, level) +1, INSTR(str, '|', 1, level+1)-INSTR(str, '|', 1, level)-1) str2
    FROM t
    CONNECT BY INSTR(str, '|', 2, level) <> 0;
    '|1|2|3|4|' is the value of the passed in parameter.
    So the report query could look something like
    WITH t AS (SELECT SUBSTR(:p_str, INSTR(:p_str, '|', 1, level) +1, INSTR(:p_str, '|', 1, level+1)-INSTR(:p_str, '|', 1, level)-1) itemid
    FROM dual
    CONNECT BY INSTR(:p_str, '|', 2, level) <> 0)
    SELECT a.*
    FROM items a, t
    WHERE a.itemid = TO_NUMBER(t.itemid);
    Hope this helps.

  • Problem with page Parameter

    Hi,
    My requirement is I am passing a url to page with one parameter which I am assigning it to a calndar which has one one parameter. I mapped page parameter to the calendar parameter.
    In the p/sql code before displaying footer section of the calendar I am using
    get_value('pageparamter') But i am getting null value........................
    How should I retrieve that value......... If Iam using bind variable(calendar parameter) in the display before footer section I am getting error........
    Pls tell me the solution as early as possible...........
    Regards,
    radha

    Hi Radha,
    Sorry, I couldn't reply to your email about the same problem you were asking. Here is the code to get the value of the page parameter:
    declare
    l_val varchar2(10);
    begin
    l_val := portal30.wwpro_api_parameters.get_value
    (p_name => 'v_dt_on_mon',
    p_reference_path => p_reference_path);
    end;
    where 'v_dt_on_mon' is the name of the parameter , so you can replace it with your parameter name.
    Thanks
    -Krishnamurthy

  • Problem w/ Collection Parameter in JDOQL

    I have created a collection of 2 strings "E2130" and "B6222"
    Here is the code for creating the query
    Collection nameSet = new HashSet();
    nameSet.add("E2130");
    nameSet.add("B6222");
    //firstNameSdex and lastNameSdex are members in the classType object
    String queryString = "nameSet.contains(firstNameSdex) ||
    nameSet.contains(lastNameSdex)";
    Query q = pm.newQuery(pm.getExtent(classType, true), queryString);
    q.declareImports("import java.util.Collection");
    q.declareParameters("Collection nameSet");
    Collection queryResults = (Collection) q.execute(nameSet);
    However queryResults always comes back w/ 0 results, I have verified that
    there are records in the DB w/ these string values, I am puzzled.
    Here is the JDO query
    executing statement <24669049>: (SELECT DISTINCT t0.FIRST_NAME,
    t0.FIRST_NAME_SDEX, t0.LAST_NAME, t0.LAST_NAME_SDEX, t0.MIDDLE_NAME,
    t0.MOTHER_MAIDEN_NAME FROM MPI.MPI_NAME t0 WHERE ((t0.FIRST_NAME_SDEX IN
    (?, ?) OR t0.LAST_NAME_SDEX IN (?, ?)))):
    [reused=1;params={(String)E2130,(String)B6222,(String)E2130,(String)B6222}]:
    null

    Abe White wrote:
    I just found the problem, it had nothing to do w/ jdo, when I was copying
    into a new collection to return back, I was using the copy constructor
    rather than doing an addall, so the query.close() was cleaning out my
    Collection i imagine. It works now
    executing statement <24669049>: (SELECT DISTINCT t0.FIRST_NAME,
    t0.FIRST_NAME_SDEX, t0.LAST_NAME, t0.LAST_NAME_SDEX, t0.MIDDLE_NAME,
    t0.MOTHER_MAIDEN_NAME FROM MPI.MPI_NAME t0 WHERE ((t0.FIRST_NAME_SDEX IN
    (?, ?) OR t0.LAST_NAME_SDEX IN (?, ?)))):
    The SQL looks fine to me. Have you tried executing this SQL exactly
    directly against the database (with the proper parameter values in place
    of the '?'s, of course) ?

  • Problems using a parameter

    Hi, I am running into a problem that I can't fix.
    This is the code I have in the after parameter form trigger. I am selecting a character field from the holder table that has characters in like this '010204050709' I then put these numbers into a parameter called :p_condit_comma and I add a comma between each set of two numbers. I then use this parameter in my query in the where clause as can be seen below. This should work unless I am missing something.
    Using the parameter in the query produces no output and no error, if I replace the parameter in the query with (01,02,03) the report produces the desired output. I have also checked that the parameter contains what I am expecting eg. 01,02,04
    Thank you
    Michael
    function AfterPForm return boolean is
    v_conditions holder.conditions%type;
    v_num NUMBER(2) := 1;
    begin
    SELECT conditions INTO v_conditions
    FROM holder
    WHERE authority = :authority;
    LOOP
         EXIT WHEN SUBSTR(v_conditions,v_num,2) IS NULL;
         IF v_num = 1 THEN
         :p_condit_comma := SUBSTR(v_conditions,v_num,2);
         ELSE     
         :p_condit_comma := :p_condit_comma || ',' || SUBSTR(v_conditions,v_num,2);
         END IF;
         v_num := v_num + 2; END LOOP;     
         return (TRUE);
    end;
    SQL Query
    SELECT ALL CONDIT.CONDITION, CONDIT.CONDIT_MEM
    FROM CONDIT
    WHERE condition IN (:p_condit_comma)

    Hi M
    I have tried what you suggested
    :p_condit_comma := :p_condit_comma ||''''|| ',' || SUBSTR(v_conditions,v_num,2);
    this gives you something like this 01',02',03',04' and if you add an inverted comma before the number like this
    :p_condit_comma := :p_condit_comma ||''''|| ',' ||''''|| SUBSTR(v_conditions,v_num,2);
    you get the following error "ORA-06502 PL/SQL Numeric or value error"
    I have tried many different combinations of this and I still have problems, maybe I need a new approach.
    Thanks
    Michael

  • Problem while passing parameter to shell script which sends email-Ora Apps

    Hi,
    I have a pl/sql package which will call a shell script program.The shell script program is written in order to send the invoice hold details of AP as a mail.The parameters to this program are passed in the pl/sql package.
    The shell script program has
    5 parameters namely
    to - email
    from - email
    hold id - which is a number
    hold name - varchar2( free text)
    hold reason - varchar2( free text)
    the shell script looks as below.
    FROM_EMAIL=`echo $1|cut -f9 -d " "|sed 's/\"//g'`
    echo "From email id is $FROM_EMAIL" -- From email
    TO_EMAIL=`echo $1|cut -f10 -d " "|sed 's/\"//g'`
    echo "To Email id is $TO_EMAIL" -- to email
    PARAM0=`echo $1 | awk '{print $11}'|sed -e "s/\"//g"`
    echo "Param0: $PARAM0" -- hold id
    PARAM1=`echo "$1" | cut -d" " -f12-| sed -e "s/\" \"/\"^\"/g" | awk -F'^' '{print $1}'|sed -e "s/\"//g"`
    echo "Param1: $PARAM1" -- hold name
    PARAM2=`echo "$1" | cut -d" " -f13-| sed -e "s/\" \"/\"^\"/g" | awk -F'^' '{print $1}'|sed -e "s/\"//g"`
    echo "Param2: $PARAM2" -- hold reason
    the values that am passinf to this program are if suppose
    from email ---- [email protected]
    to email [email protected]
    12345 ------ hold id
    test hold name ------ hold name
    test hold reason ------- hold reason
    The output for the above parameters is as follows
    from email ---- [email protected]
    to email [email protected]
    12345 ------ hold id
    test hold name ------ hold name
    hold name --------hold reason (a part of hold name parameter is displayed as hold reason.The reason being in param2 we used cut which is cutting from 13.
    the problem here is since param1 being free text we cannot predict at what position the parameter ends.i mean there might be a single word or more than 2 words in that parameter seperated by space. the question here is ... is there anyway that we can specify dynamically from which location the param2 should fetch the value.
    can we use some delimiter to identify the end of param1 and start of param2.If so... how can it be written in this scenario.
    Thanks in Advance.

    As I see, all parameters are merged into 1 at shell script.
    Please do as follow:
    1- Modify your shell script as followed:
    echo "From email id is $1" -- From email
    echo "To Email id is $2" -- to email
    echo "Param0: $3" -- hold id
    echo "Param1: $4" -- hold name
    echo "Param2: $5" -- hold reason
    2- rename your shell script file with .prog extension : CUSTOM_NAME.prog
    3- perform the following command at custom file location:
    ln -s $FND_TOP/bin/fndcpesr CUSTOM_NAME
    This approach will seperate your parameters and then it will be more easier to manipulate them.
    Regards

  • Problem with set parameter id

    hi all,
    i am using the below code to set the parameter id to project , subproject and object for the t-code in lsmw. but when it goes to lsmw
    it does not take these values in lsmw . can anyone please check where i am going wrong? thanks in advance.
    at selection-screen.
    data: project type /SAPDMC/LSSCREEN-PROJECT,
          subproj  type /SAPDMC/LSSCREEN-SUBPROJ,
          object  type /SAPDMC/LSSCREEN-OBJECT.
          if sscrfields-ucomm eq 'CLI1'.
         if p_up = 'X'.
            data: project type c length 20 value 'SIVA',
                  subproj type c length 20 value 'PRICING',
                  object  type c length 20 value 'SD'.
         proj = 'SIVA'.
         subproj = 'PRICING'.
         obj = 'SD'.
                SET PARAMETER ID: PROJECT   FIELD   PROJECT,
                                                SUBPROJ   FIELD   SUBPROJ,
                                                OBJECT    FIELD   OBJECT.
                call transaction 'LSMW' and skip first screen.
          endif.
    saurabh.

    hi,
    looking at the source code of LSMW, not parameter ID is what you need, but memory id:
      IMPORT /SAPDMC/LSMEMORY FROM MEMORY ID '/SAPDMC/LSMW'.
      IF SY-SUBRC = 0.
        PROJECT = /SAPDMC/LSMEMORY-PROJECT.
        SUBPROJ = /SAPDMC/LSMEMORY-SUBPROJ.
        OBJECT = /SAPDMC/LSMEMORY-OBJECT.
      ELSE.
    ENDIF.code}
    use EXPORT TO MEMORY ... statement in your program acc. to the needs above.
    hope this helps
    ec

Maybe you are looking for

  • HP AC POWER CONTROLL don't work with F 35 A BIOS

    The HP AC POWER CONTROL IN VERSION 1.00 DOES NOT WORK PROPERLY B AFTER UPDATE BIOS F.35 A REVISION TO THE Notebook-in HP Pavilion 17-e135sw SERIAL NUMBER PRODUCT [edited Serial by moderator]# AKD. Despite reinstalling the HP AC POWER CONTROL and set

  • Macbook Pro random freezing

    Hi, I am experiencing random freezing of OSX, First I thought it was related to the latest flash, so I deleted it but the freezing keeps happening. Then I thought it was firefox so I switched to safari 5 but still it freezes. Now the computer freezes

  • MORDY MY TOP 40 ILLUSTRATOR CS 4 QUESTIONS:

    MY TOP 40 ILLUSTRATOR CS 4 QUESTIONS: 1) Do print presets retain number of copies now? 2) Also, do sublayers behave normally with respect to locking/hiding? 3) Do swatches stay in list few now? 4) Can we set a default tool to be selected at startup?

  • JCA Binding error with FTP Adapter on put operation

    Hi I am facing a problem with put operation with ftp adapter. my soa service will get file from the 1st ftp server (Unix) as attachment and is putting the file on another ftp serve(Unix)r. the put operation is failing with the below error:- Non Recov

  • Can I purchase space on iCloud and move my MobileMe photo galleries there?

    I currently use MobileMe for posting my photogalleries.  Will Apple eventually expand iCloud services to allow me to purchase space and post photo galleries similar to MobileMe?