Assign substitution variable to another substitution variable with truncation of value

I launch a sql*plus .sql script by way of a concurent job. The concurrent job provides a date paramenter to the script.  Job log shows the date passed to scrpit as:
Arguments
2013/09/01 00:00:00
For cosmetic purposes in the ouput's heading, I want to convert/truncate the character string to an end-user format of 2013/09/01.
Trying to simply change one substitution variable
(below is not working, but hopefully telegraphs my intention:
UnDefine Low_date
Define Low_date = '2013-09-01 00:00:00'
UnDefine Low_date_10
Define Low_date_10 = 'yyyy-mm-ds'
select substr('&Low_Date',1,10) into &Low_date_10 from dual;
prompt "Variable value is: &Low_date_10"
WHICH PRODUCES:
old:select substr('&Low_Date',1,10) into &Low_date_10 from dual
new:select substr('2013-09-01 00:00:00',1,10) into yyyy-mm-ds from dual
Error starting at line 8 in command:
select substr('2013-09-01 00:00:00',1,10) into yyyy-mm-ds from dual
Error at Command Line:8 Column:55
Error report:
SQL Error: ORA-00905: missing keyword
00905. 00000 -  "missing keyword"
*Cause:   
*Action:
old:prompt "Variable value is: &Low_date_10"
new:prompt "Variable value is: yyyy-mm-ds"
"Variable value is: yyyy-mm-dd"
"I need to get to "Variable value is: 2013/09/01"

Hi,
SELECT ... INTO only works in PL/SQL.
In SQL*Plus, you can use COLUMN ... NEW_VALUE, like this:
DEFINE  low_date = '2013-09-01 00:00:00'
COLUMN low_date_10_col        NEW_VALUE  low_date_10
SELECT  REPLACE ( SUBSTR ( '&Low_Date', 1, 10)
                )    AS low_date_10_col
FROM  dual;
PROMPT  Variable value is: &Low_date_10

Similar Messages

  • Copy using Variables with multiple single values in BEX

    Hi,
    I have a requirement wherein on executing the planning function, the system should take the FROM and TO values of 0FISCPER and copy the data accordingly.
    Source variable is 'Single Value'.
    Target variable is 'Multiple Single Value'.
    I tried to give the Command Range as below:
    $A$30:$C$31.
    The button sequence is as below:
    VAR_NAME_1      0         ZFISCPER
    VAR_VALUE_1     0
    VAR_NAME_2      1         ZFISCPER_M
    VAR_VALUE_2     1
    In the Analyzer, I entered the values as
    In A30, VAR_NAME_1     0     =C20
    In A31, VAR_NAME_2     1     =C21:C24
    The values that I entered are as below:
    C20 =   2007001 - Source value
    C21 =   2007002 - Target values
    C22 =   2007003
    C23 =   2007004
    C24 =   2007005.
    The problem that Im facing is the system is unable to identify the multiple values that I enter for Target Fiscper and it displays as :#VALUE!
    How to enter multiple single values and reference them accordingly?
    Rgds,
    Shyam

    Hi,
    I have tried to enter multiple single values as below:
    VAR_VALUE_1     0     000  - Source
    VAR_VALUE_1     1     003  -  Target
    VAR_VALUE_2     1     010
    VAR_VALUE_3     1     080
    VAR_VALUE_4     1     099
    When I tried to execute the planning function, the system copies the data from version 000 to ALL versions irrespective of values entered above.ie:
    1
    2
    3
    10
    80
    99
    100
    110
    Rgds
    Shyam

  • How to assign to variable from XML type values with extract function?

    Hi ,
    I have XMLTYPE variable LeXml having below record
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <AddListing xmlns="http://www.christielites.com/">
    <sComCode>string</sComCode>
    <sLocCode>string</sLocCode>
    <dStart>dateTime</dStart>
    <dEnd>dateTime</dEnd>
    <sEcode>string</sEcode>
    <iAvail>int</iAvail>
    <iOwned>int</iOwned>
    <sPostTrans>string</sPostTrans>
    </AddListing>
    </soap:Body>
    </soap:Envelope>
    I want to get sEcode value string into one varialbe using extract function or alternate?
    can any one give me syntax fro it?
    I tried with Mstring:=LeXml.extract('AddListing/scomcode/text()').getStringval(); but iam getting error
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: 'soap:Envelope/text()'
    ORA-06512: at "SYS.XMLTYPE", line 111
    ORA-06512: at "BLUEWATER.CREATELERESPONSELOG", line 12
    ORA-06512: at line 1
    Please guide Me..

    Hi Ravi kumar,
    I have similar type of problem like above . My xml file is like below:
    <doSingleRecordResponse xmlns="urn:mdWebService">
    <doSingleRecordResult xsi:type="ResponseRecord" id="1" version="2.30" action="Response" timeout="10" timestamp="12-17-2009" transmissionReference="ABCDEF" TimeToProcess="31.25" xmlns:xsi="http://www
    .w3.org/2001/XMLSchema-instance">
    <CustomerCredentials>
    <CustomerID>111111</CustomerID>
    </CustomerCredentials>
    <ServiceResult>
    <ErrorCode> </ErrorCode>
    <ErrorDesc>OK;</ErrorDesc>
    </ServiceResult>
    <Address version="2.30">
    <Faults count="0"/>
    <Result>
    <ErrorCode> </ErrorCode>
    <ErrorDesc>OK</ErrorDesc>
    <StatusCode>9</StatusCode>
    <StatusD
    esc>(U.S.) The address was fully coded.</StatusDesc>
    </Result>
    <Company/>
    <Urbanization>
    <Name/>
    <Code/>
    </Urbanization>
    <Type>
    <String>Highrise</String>
    <Code>H</Code>
    </Type>
    <Street>XXXXXXXXXXXXX</Street>
    <Street2/>
    <Suite/>
    <PrivateMailBox/>
    <CarrierRoute>C048</CarrierRoute>
    <Lacs> </Lacs>
    <LacsLink>
    <LacsStatusCode/>
    <LacsReturnCode/>
    </LacsLink>
    <DeliveryPointCode>99</DeliveryPointCode>
    <DeliveryPointCheckDigit>6</DeliveryPointCheckDigit>
    <DPV>
    <Footnotes/>
    <CMRA/>
    <AddressStatus/>
    </DPV>
    <DeliveryIndicator>
    <Code/>
    </DeliveryIndicator>
    <City>
    <Name>String</Na
    me>
    <Abbreviation>Memphis</Abbreviation>
    </City>
    <County>
    <Name>String</Name>
    <Fips>41111</Fips>
    </County>
    <State>
    <Name>Tennessee</Name>
    <Abbreviation>TN</Abbreviation>
    </State>
    <Zip>
    <Type> </Type>
    <Zip5>38111</Zip5>
    <Plus4>1111</Plus4>
    </Zip>
    <GeoCode>
    <Latitude/>
    <Longitude/>
    </GeoCode>
    <TimeZone>
    <Name/>
    <Code/>
    </TimeZone>
    <Msa>
    <Code/>
    </Msa>
    <Pmsa>
    <Code/>
    </Pmsa>
    <Census>
    <Block/>
    <Tract/>
    </Census>
    <CongressionalDistrict>
    <Code/>
    </CongressionalDistrict>
    <Parsed>
    <StreetName/>
    <AddressRange/>
    <Suffix/>
    <Direction>
    <Post/>
    <Pre/>
    </Direction>
    <Suite>
    <Name/>
    <Range/>
    </Suite>
    <PrivateMailBox>
    <Name/>
    <Range/>
    </PrivateMailBox>
    <Garbage/>
    </Parsed>
    <Country>
    <Abbreviation>US</Abbreviation>
    <Name>United St
    ates of America</Name>
    </Country>
    </Address>
    <Telephone version="" action="">
    <Result>
    <ErrorCode/>
    <ErrorDesc/>
    <StatusCode/>
    <StatusDesc/>
    </Result>
    <Number/>
    <PhoneAreaCode/>
    <NewAreaCode/>
    <Prefix/>
    <Suffix/>
    <Extension/>
    <City>
    <Name/>
    </City>
    <State>
    <Name/>
    <Abbreviation/>
    </State>
    <GeoCode>
    <Latitude/>
    <Longitude/>
    </GeoCode>
    <TimeZone>
    <Name/>
    <Code/>
    </TimeZone>
    <Msa>
    <Code/>
    </Msa>
    <Pmsa>
    <Code/>
    </Pmsa>
    <County>
    <Name/>
    <Fips/>
    </County>
    <Country>
    <Abbreviation/>
    <Name/>
    </Country>
    </Telephone>
    <Name version="" action="">
    <Result>
    <ErrorCode/>
    <ErrorDesc/>
    <StatusCode/>
    <StatusDesc/>
    </Result>
    <Company/>
    <Prefix/>
    <Suffix/>
    <Full/>
    <First/>
    <Middle/>
    <Last/>
    <Gender/>
    </Name>
    </doSingleRecordResult>
    </doSingleRecordResponse>
    This is the response i got from a webservice , from this i need to extract customer id .
    I tried like this :
    response := UTL_DBWS.invoke ( l_call,request);
    if RESPONSE.extract('/doSingleRecordResponse/doSingleRecordResult/CustomerCredentials/CustomerID/text()','xmlns:xsi="http://www
    .w3.org/2001/XMLSchema-instance" xmlns="urn:mdWebService"') is not NULL
    then
    errorcode :=RESPONSE.extract('/doSingleRecordResponse/doSingleRecordResult/CustomerCredentials/CustomerID/text()','xmlns:xsi="http://www
    .w3.org/2001/XMLSchema-instance" xmlns="urn:mdWebService"').getStringVal;
    end if;
    I am getting null value into errorcode,
    Can youplease let me know what i am doing wrong?
    Thanks

  • Unable to assign the variable value

    Hi,
    I am trying to capture the error message into a variable using statement in the Refreshing tab :
    Select '<%=odiRef.getPrevStepLog("MESSAGE")%>' from dual
    After getting the error log into variable, I am making a call to Scenario which will generate a file and email it stating the error log.
    Now the issue is when i assign this variable to the Scenario variable it throws the following error:
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Invalid parameter
         at com.sunopsis.dwg.function.SnpsFunctionBase.getSunopsisApi(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    If i set the variable with any default value, it successfully makes a call to the scenario and generates the file.
    Please help!
    Thanks,
    Ritika

    Hi,
    i created a variable and assigned the value to another variable in a procedure, am getting the following error, as it says in the error i don't have any ";" that is causing the problem.
    the variable name is table_nm
    inside the procedure am assigning the value to lv_table_nm :=#SESSNAME.table_nm;
    If i change the variable name tos ome constant or any other value, the package is working fine. Any ideas why am getting error assigning the variable?
    6550 : 65000 : java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    continue avg count current exists max min prior sql stddev
    sum variance execute forall merge time timestamp interval
    date <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively
    java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:

  • Report script - using substitution variable with multiple values

    Hi All,
    Substitution variable with multiple values is not working correctly with Report scripts. Can you please let me know what is the syntax to assign multiple values to a sub variable using maxl:
    alter database samp.samp set variable 'ExtractQuarter' 'Q1,Q2,Q3,Q4';
    alter database Samp.Samp set variable 'ExtractQuarter' 'Q1:Q4';
    I tried both of the above but they are errored out with the below error:
    Error: 1001005 - Unknown Member [Q1:Q4] in Report.
    my requirement is different for both Actual and forecast data extract so i would like to make use of this variable to extract whole year data for Forecast and current quarter data for Actual with out duplicating the report scripts for both processes.
    Thanks,
    PRaveen

    Hi,
    Please refer following thread,
    range of months in report script?
    Hope it helps.
    Regards

  • Automation of assigning Substitution Variable Values

    Hi All,
    I have 3 substitution variables with values in my server as follows:
    Prev Month - "January"
    Curr Month - "February"
    Next Month - "March"
    I want to automate the assigning of values to the substitution variables so that in the next month, the values change automatically as follows:
    Prev Month - "February"
    Curr Month - "March"
    Next Month - "April"
    Is there any way available to accomplish the above task.
    Any help appreciated.
    Thanks,
    Raja

    Ditto Sean V. Except the date logic I built into a Perl script. So basically one answer is to use your favorite scripting/programming language to do the date manipulation and either pass to a MAXL script as a variable, or to build the MAXL script dynamically

  • Creating Variable with Replacement Path to get value from ANOTHER Variable

    Hi all,
        Is anyone has created the Variable with Replacement Path to get the value from another User Entry Variable, PLEASE ? 
    First created the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next created the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we should get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error 'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path for my requirement, PLEASE ?
    The following is from help.sap..com:
    Replace with Characteristic Value
    Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variable editor, on the General tab page, you specify under Reference Characteristic the characteristic that is to be referenced by the replacement. On the Replacement Path tab page, you can choose whether the variable is replaced with the From or the To Value and with the Key or the Name of the characteristic value. You can also specify the Offset Start and Offset Length for the output.
    Replace with Variable
    Characteristic value variables, hierarchy variables, text variables, and formula variables with the Replacement Path processing type can take their values from a different variable.
    The following prerequisites need to be fulfilled:
    Variable
    ●      The variable must not be input-ready
    ●      The variable must represent a single value
    Source Variable
    ●      The source variable must not be a hierarchy node variable
    ●      The source variable must be input-ready
    ●      The source variable must be available in the query
    ●      The source variable must represent a single value or an interval
    In the variable editor, on the Replacement Path tab page, you specify the source variable from which the value is to be determined. The value is either determined from the key, the external attribute of the key, the description, or the attribute value. You can specify an Offset Start and an Offset Length for the output here. The variable is replaced on the variable screen upon each data release.
    Thanks,
    Venkat.

    Hi Eve,
    It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
    In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
    We are using the scenario in a couple of places, and it works very well.
    Hope this helps...

  • Formula variable with replacement path to another input variable

    Hi @ all,
    i have a question regarding "Formula variable with replacement path to another input variable".
    My Problem is that in selection screen and for info-fields the input variable is shown with its key and not with its description.
    Scenario:
    A formula variable (X) is used to get an input value of a characteristic variable (Y) for 0Fiscper3 to realize a IF-Then scenario.
    The formula variable (X) uses replacement path by variable (Y) replace by "key".
    In selection screen of the query variable (Y) is named with its key "ZAB_BUPE01" and not with its description " fiscal period". Same as for info-fields where the description is "ZAB_BUPE01" and not " fiscal period".
    Does anybody have a solution to display the selection variable correctly?
    Regards
    Tobias

    Issue Solved!
    The input varaible (y) for 0Fiscper3 was saved globally on the InfoProvider. This results in that the formula variable with replacement path only shows its technical name. I put the input variable in the query itself and it soved the problem. The variable is displayed with its description in selection screen.
    Regards

  • How to replace one variable with another in large number of queries

    Hello guys!
    I have this situation: our company needs to use one variable instead of another for certain amount of queries.
    Is there some way to automatically replace one variable with another for a certain characteristic in big number of queries ( like 150 - 200 ) ? Doing this manually would take lots of time)
    Apreciate your help!

    you could try (at your own risk) the following:
    1. search the technical id (ELTUID) of your variable in table RSZELTDIR
    2. see where this variable is used in table RSZELTXREF (by filling RSZELTDIR-ELTUIID in RSZELTXREF-TELTUID)
    3. add similar entries for your new variable
    4. delete the entries for the old variable (they're part of the key, so you can't simply "change" them)

  • Replacement Path Variable with Another Variable

    Hi,
    I am currently trying to create a report that would need me to have the same values for different characteristics (e.g. clearing date, posting date, net due date). I have seen that there is a way in the replacement path variable that would replace its value with another variable that is ready for input. I also looked into SAP help but I can't seem to figure out on how to do it specifically. Does anyone know a step-by-step process on how to do this? How does this work?
    Thank you in advance!

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

  • Oracle Service Bus - Assign Variables with max occurs of unbounded

    Hello,
    I have the following response document from a call to a Tuxedo Service. I need to assigned the values for all &lt;SOC&gt; tags below to the response document which was created with a min occurs of 1 and max occurs of unbounded. When I try to assign the values from all &lt;SOC&gt; tags from the response document below, only the first value of SOC get assigned. When I run a test in the XQuery Expression Editor, I get back all 7 values for SOC below using the following expression: $outputCsLsSrvAgr00/SOC. However, the variable this data gets assigned to only has the first SOC node.
    &lt;FML32&gt;
    &lt;SERVICE_TYPE&gt;R&lt;/SERVICE_TYPE&gt;
    &lt;SERVICE_TYPE&gt; &lt;/SERVICE_TYPE&gt;
    &lt;SERVICE_TYPE&gt; &lt;/SERVICE_TYPE&gt;
    &lt;SERVICE_TYPE&gt;P&lt;/SERVICE_TYPE&gt;
    &lt;SOC_EFFECTIVE_DATE&gt;20080924&lt;/SOC_EFFECTIVE_DATE&gt;
    &lt;SERVICE_TYPE&gt;R&lt;/SERVICE_TYPE&gt;
    &lt;SOC_EFFECTIVE_DATE&gt;20080802&lt;/SOC_EFFECTIVE_DATE&gt;
    &lt;SERVICE_TYPE&gt;R&lt;/SERVICE_TYPE&gt;
    &lt;SOC&gt;DTMMSBUIN&lt;/SOC&gt;
    &lt;SOC&gt;FN0132007&lt;/SOC&gt;
    &lt;SOC&gt;DTUNLB004&lt;/SOC&gt;
    &lt;SOC_EFFECTIVE_DATE&gt;20080922&lt;/SOC_EFFECTIVE_DATE&gt;
    &lt;SOC_EFFECTIVE_DATE&gt;20080924&lt;/SOC_EFFECTIVE_DATE&gt;
    &lt;SOC_EFFECTIVE_DATE&gt;20080608&lt;/SOC_EFFECTIVE_DATE&gt;
    &lt;SOC_EFFECTIVE_DATE&gt;20080924&lt;/SOC_EFFECTIVE_DATE&gt;
    &lt;SOC_EFFECTIVE_DATE&gt;20080923&lt;/SOC_EFFECTIVE_DATE&gt;
    &lt;SERVICE_TYPE&gt;R&lt;/SERVICE_TYPE&gt;
    &lt;SOC&gt;VMA0.00&lt;/SOC&gt;
    &lt;SOC&gt;OUTRSTRCN&lt;/SOC&gt;
    &lt;SOC&gt;SMSBAN202&lt;/SOC&gt;
    &lt;SOC&gt;VM&lt;/SOC&gt;
    &lt;/FML32&gt;
    Can someone tell me how to populate the response variable structures with all 7 values of SOC?
    Thanks,
    David Walaski

    can you post your schema, this XML looks strange, there seems to be no order or logic to the way it is being represented.
    This could be causing you the issues. The test function in workshop can behave differently to when run at runtime.
    cheers
    James

  • Assigning the value to VARCHAR variable with special characters

    Hi Gurus,
    In declare section I have
    sql_text VARCHAR2(500);
    in procedure body
    I have to assign the variable sql_text =' SELECT TO_CHAR (MAX (A.START_DATE_TIME), 'MMYY')
    FROM
    JTF_IH_ACTIVITIES A, JTF_IH_INTERACTIONS B WHERE A.INTERACTION_ID =
    B.INTERACTION_ID AND B.PARTY_ID = :B1 AND A.ACTION_ITEM_ID = (SELECT
    ACTION_ITEM_ID FROM JTF.JTF_IH_ACTION_ITEMS_TL WHERE UPPER (ACTION_ITEM) =
    'LETTER') AND A.ACTION_ID = (SELECT ACTION_ID FROM JTF.JTF_IH_ACTIONS_TL
    WHERE UPPER (ACTION) = 'SENT')'
    the due to the special character like ( , ' = : ) I am not able to assign the above sql to the sql_text variable. Can someone please help how I can pass above SQL statement as varchar variable.
    Thanks
    Naveed

    Naveed_CG wrote:
    Mr Copy and Past (sb what ever)... post this here and you will not see the last ] is not visible in the forum window... try yourself .... however, I happen to see your history on the forum, and you have some problem somewhere.. so please stay away from my question and let the mentors help.Hey Mr ImBeingRudeToValuableForumVolunteerWhenImNotFollowingTheMostBasicRulesMyself look at that :Scott@my11g SQL>ed
    Wrote file afiedt.buf
      1  declare
      2  url_text varchar(100);
      3  begin
      4  url_text := q'[amar's web log is http://amar.blog.com:80/oracle ] ' ;
      5  dbms_output.put_line('url_text => '||url_text);
      6* end;
    Scott@my11g SQL>/
    ERROR:
    ORA-01756: quoted string not properly terminated
    Scott@my11g SQL>ed
    Wrote file afiedt.buf
      1  declare
      2  url_text varchar(100);
      3  begin
      4  url_text := q'[amar's web log is http://amar.blog.com:80/oracle ]' ;
      5  dbms_output.put_line('url_text => '||url_text);
      6* end;
    Scott@my11g SQL>/
    url_text => amar's web log is http://amar.blog.com:80/oracle
    PL/SQL procedure successfully completed.Maybe you should consider apologize to sb92075 +(whose status is Guru which we could consider likely to "mentor")+ and also start marking your threads as answered ?

  • How to build an URL to filter a variable with the # (Not Assigned) as value

    Hello Gurus,
    We need to build the URL that is calling a query with a filter value = #.
    We need to query only those records that have "Not Assigned" in a particular Infoobject.
    Example of our URL: that is not working
    http://ustwa427.xxx.com:8000/sap(bD1lbiZjPTQwMA==)/bc/bsp/sap/zlabw_tempos/main.htm?INFOCUBE=CRMLORSLM&QUERY=ZCRMLORSEL_SELLOUTMT_Q006&VAR_NAME_1=L_TOSALE&VAR_NAME_2=ZLOBWCTY&VAR_NAME_8=0S_MAT&VAR_NAME_9=0S_MAT&VAR_OPERATOR_2=EQ&VAR_OPERATOR_8=EQ&VAR_OPERATOR_9=EQ&VAR_SIGN_2=I&VAR_SIGN_8=I&VAR_SIGN_9=I&VAR_VALUE_EXT_1=3&VAR_VALUE_LOW_EXT_8=000000000030002200&VAR_VALUE_LOW_EXT_9=#&VAR_VALUE_LOW_EXT_2=CR
    You can see in VAR_VALUE_LOW_EXT_9 that we are asking for the Not Assigned values with #.
    Any suggestions?
    Regards,
    Andrea.

    Hi,
    finally we found the way, is with %23.
    So the URL is :
    http://ustwa427.xxx.com:8000/sap(bD1lbiZjPTQwMA==)/bc/bsp/sap/zlabw_tempos/main.htm?INFOCUBE=CRMLORSLM&
    QUERY=ZCRMLORSEL_SELLOUTMT_Q006&
    VAR_NAME_1=L_TOSALE&
    VAR_NAME_2=ZLOBWCTY&
    VAR_NAME_8=0S_MAT&
    VAR_NAME_9=0S_MAT&
    VAR_OPERATOR_2=EQ&
    VAR_OPERATOR_8=EQ&
    VAR_OPERATOR_9=EQ&
    VAR_SIGN_2=I&
    VAR_SIGN_8=I&
    VAR_SIGN_9=I&
    VAR_VALUE_EXT_1=3&
    VAR_VALUE_LOW_EXT_8=000000000030002200&
    VAR_VALUE_LOW_EXT_9=%23&
    VAR_VALUE_LOW_EXT_2=CR
    Regards,
    Andrea.

  • How to get a "char variable" with presentation variable???

    I want to pass a char variable with presentation variable, I don't have problems if I pass "int".
    For example in answers page I add a column that contains years of my dimension. 2000 until 2012 and prompted my presentation variable "year" (from my dashboard prompt) and when I go to dashboard if I choose in my prompt 2006 in my report appear 2006...any problem and easy. But my problem is if I would pass a char variable, in my prompt also I have months but not numbers else names: January, February, March...and a presentation variable that name is "month". If I do the same report but change column year to month (name) I don't have any results and I have an error.
    How can I solucionate this???
    Thank you!!

    Alex,
    Do you have separate columns for Year and Month Name. If Yes, Then why it is so confusing?
    1. create a dashboard prompt with month name column
    2. Assign it to monthname variable
    3. In your report use above variable any where.., but what ever you are doing should be logical and valid to get some data.
    In general above approach will work.
    You said, "No! I don't want to do a filter with month! I would like to pass this variable, in this example don't make sense but I need to pass a char variable with presentation variable to do another things..."
    what does that mean, what you are trying to do with the variable in your report. If you give a example that would be better.
    - Madan

  • How to declare a bind variable with 'date' data type in command prompt?

    how to declare a bind variable with 'date' data type in command prompt?
    sql>variable q date;
    when i execute it show list of datatypes

    Hi,
    As Lokanath said, there are no DATE bind variables.
    You can use a VARCHAR2 bind variable, and convert it to a DATE in your SQL statment.
    If you're using SQL*Plus, consider a substitution variable. It won't be as efficient as a bind variable, but it will be as convenient.
    For example:
    DEFINE  first_entrry_date = "DATE '2010-06-20''
    SELECT   ...
    WHERE   entry_date >= &first_entry_date
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for