Conversion of NUMC variable into a  CHAR one

I have come accross an issue wherein i need to change the NUMC value into a CHAR value. Kindly let me know whether there is any function module for this purpose.
<removed_by_moderator>
Edited by: Julius Bussche on Dec 31, 2008 10:09 AM

what is the problem??????????/
data: var(10) type n.
data: var1(10) type c.
var = '0123456789'.
var1 = var.
this type of conversions will done , so what is your case???????/
Regards,
Arjun.

Similar Messages

  • Truncate long variable into a short one

    Hi,
    I have a 40 character variable that needs to be truncated in a 20 character variable.
    How do I do this?
    Thanks,
    John

    data:   var1(40) type c.
    data:   var2(20) type c.
    if u want first 20 chars of var1 to be moved to var2..
    then simply use...  var2 = var1.  " First 20 chars will be moved to var2 from var1
    If u want last 20 chars then
    var2 = var1+20(20).
    if u want 20 chars of specific position like  pos 10 to 30.. then
    var2 = var1+10(20).
    Reward if helpful
    Regards
    Prax

  • How to pass a variable into a cfc?

    prior to calling the cfinvoke, I have coding that determins a
    variable "X"
    I need to pass X into a cfc so it can complete the query held
    there.
    So I tried
    <cfinvoke component="A"
    method="AList"
    returnvariable="AResults">
    <cfinvokeargument name="x" value="#X#"
    /></cfinvoke>
    correct so far?
    Now over on the cfc page is where I'm getting stuck
    Inside my cffunction I'm adding <cfargument name="X" />
    But how do I get the value in?

    I don't quite understand your question. Can you rephrase?
    But before all that, bear in mind that one doesn't pass a
    variables into a
    *CFC*, one passes it into a function within the CFC. And as
    with all
    functions, one passes values into the function by passing it
    as an
    argument. But - of course - the function has to be coded to
    expect the
    argument.
    Your own sample code demonstrates this in action:
    <cfinvokeargument name="abbrCode"
    value="#companyAbbrCode#" />
    (NB: lose the trailing slash: this is CFML, not XML).
    So you know how to do that.
    Hence me not quite understanding what you're actually asking.
    Adam

  • How to store serval char variables into a string variable?

    I have serval char variables, but i don't know how to put them together (without using arrays). I am thinking to store these char variables into a string variable but i don't know how to do it. For example,
    char letter1 = 'a', letter2 = 'b', letter3 = 'c';
    String letters;
    then how can i do to make letters = "abc" from using letter1,2,3?
    I am just a beginner of Java, if anyone can help me, i will appreciate that very much!!!

    String letters=""+leter1+letter2+letter3;is fine and dandy. What it actually compiles to is
    String letters = new StringBuffer().append(letter1).append(letter2).append(letter3).toString();Which ofcourse is much more code to write, but still good to know.
    So do see the API for java.lang.StringBuffer.
    Heikki

  • How to insert the data which is present in the variable into the table

    Hi,
    Let's consider that I have one table and I have stored the table column names in one variable and their values in another variable.
    I want to insert the data that is present in the variables into the table.
    I tried the following way :
    Declare
    V_columns    Varchar2(50) := 'Empno';
    V_values       Number(10) := 101;
    Begin
    Insert Into Emp (V_columns) Values (V_values);
    End;
    The above procedure gives an error : PL?SQL : ORA-00904 : "V_COLUMNS": invalid identifier
    Using the Execute Immediate, we can insert the data which is present in the variables into the table.
    Is there any other way to insert the data which is present in the variable into the table..?
    Can anyone please give me the solution..?
    Thanks..

    plz use this...
    DECLARE
       v_columns   VARCHAR2 (50) := 'Empno';
       v_values    NUMBER (10)   := 101;
    BEGIN
       EXECUTE IMMEDIATE    'Insert Into Emp ('
                         || v_columns
                         || ') Values ('
                         || v_values
                         || ')';
       COMMIT;
    END;

  • How to SIMPLY use the %DIMENSION_TO_SET% variables into logic scripts

    hello,
    I'm using a prompt of type "COPYMOVE" or "COPYMOVEINPUT". In this type of prompt, there are 2 columns of dimension members list, one for defining the "source zone" and one for defining the "target zone" of logics.
    The left colum of the prompt (for source zone) feeds the variables %DIMENSION_SET% : %ACCOUNT_SET%, %ENTITY_SET%, %CATEGORY_SET%, etc...and these variables can be used in the logic scripts in *XDIM_MEMBERSET instructions for example.
    The right colum of the prompt feeds the variables %DIMENSION_TO_SET% : %ACCOUNT_TO_SET%, %ENTITY_TO_SET%, %CATEGORY_TO_SET%, etc...and I don't know how to SIMPLY use these variables in the logic scripts.
    I've found a tricky way to do that but I meet 2 problems :
    - it is complicated
    - the multi-info instruction (BEGININFO/ENDINFO) seems to be bugged as blank lines are added all the time in the code and sometimes I have to wait for minutes when I try to modifiy the package code through BPC for excel eData/modify package menu.
    So the question is how to SIMPLY get the %DIMENSION_TO_SET% variables into logic scripts and use them ? Thanks, R.
    Here is the tricky package code I use at this time (I build one function for each %DIMENSION_TO_SET% variable and I pass these functions to the logic) :
    PROMPT(COPYMOVE,,,,"ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
    TASK(Execute formulas,USER,WS-WW\PlauchuR)
    TASK(Execute formulas,APPSET,US)
    TASK(Execute formulas,APP,SV)
    TASK(Execute formulas,SELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\FROM_1561_.TMP)
    TASK(Execute formulas,TOSELECTION,D:\BPC\Data\WebFolders\US\SV\PrivatePublications\PlauchuR\TempFiles\TO_1561_.TMP)
    BEGININFO(%FSS%)
    *FUNCTION TARGETACCDETAIL=%ACCDETAIL_TO_SET%
    *FUNCTION TARGETACCOUNT=%ACCOUNT_TO_SET%
    *FUNCTION TARGETCATEGORY=%CATEGORY_TO_SET%
    *FUNCTION TARGETDATASRC=%DATASRC_TO_SET%
    *FUNCTION TARGETENTITY=%ENTITY_TO_SET%
    *FUNCTION TARGETTIME=%TIME_TO_SET%
    *FUNCTION TARGETYEARS=%YEARS_TO_SET%
    ENDINFO
    TASK(Execute formulas,FORMULASCRIPT,%FSS%)
    TASK(Execute formulas,LOGICFILE,D:\BPC\Data\WebFolders\US\SV
    ..\AdminApp\SV\_TEST.Lgf)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    Edited by: ALEXANDRE BEDIER on Jun 16, 2010 3:15 PM

    hello,
    finally I've discovered that there is no need of BEGININFO instruction.
    One can pass several functions to a logic with one FORMULASCRIPT task. The functions definitions have to be separated by instructions. See below :
    PROMPT(COPYMOVEINPUT,%FTARGETS%,,"select source and target zone for category and datasource.","ACCDETAIL,ACCOUNT,CATEGORY,DATASRC,ENTITY,TIME,YEARS")
    TASK(Execute formulas,FORMULASCRIPT,*FUNCTION TACCDETAIL=%ACCDETAIL_TO_SET% *FUNCTION TACCOUNT=%ACCOUNT_TO_SET% *FUNCTION TCATEGORY=%CATEGORY_TO_SET% *FUNCTION TDATASRC=%DATASRC_TO_SET% *FUNCTION TENTITY=%ENTITY_TO_SET% *FUNCTION TTIME=%TIME_TO_SET% *FUNCTION TYEARS=%YEARS_TO_SET%)
    TASK(Execute formulas,USER,%USER%)
    TASK(Execute formulas,APPSET,%APPSET%)
    TASK(Execute formulas,APP,%APP%)
    TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
    TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\_TEST.LGF)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    Then one will be able to use the functions TACCDETAIL, TCATEGORY, TACCOUNT,... in the logic script.
    Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:31 AM
    Edited by: ALEXANDRE BEDIER on Jun 24, 2010 10:33 AM

  • How to replace regex match into a char value (in the middle of a string)

    Hi uncle_alice and other great regex gurus
    One of my friends has a peculiar problem and I cant give him a solution.
    Using String#replaceAll(), i.e. NOT a Matcher loop, how could we convert matched digit string such as "65" into a char of its numeric value. That is, "65" should be converted into letter 'A'.
    Here's the failing code:
    public class GetChar{
      public static void main(String[] args){
        String orig = "this is an LF<#10#> and this is an 'A'<#65#>";
        String regx = "(<#)(\\d+)#>";
        //expected result : "this is an LF\n and this is an 'A'A"
        String result = orig.replaceAll(regx, "\\u00$2");
        // String result = orig.replaceAll(regx, "\\\\u00$2"); //this also doesn't work
        System.out.println(result);

    I don't know that we have lost anything substantial.i think its just that the kind of task this is
    especially useful for is kind of a blind-spot in the
    range of things java is a good-fit for (?)
    for certain tasks (eg process output munging) an
    experienced perl programmer could knock up (in perl)
    using built-in language features a couple of lines
    which in java could takes pages to do. If the cost is
    readability/maintainability/expandability etc.. then
    this might be a problem, but for a number of
    day-to-day tasks it isn't
    i'm trying to learn perl at the moment for this exact
    reason :)Yes. And when a Java source-code processor(a.k.a. compiler) sees the code like:
    line = line.replaceAll(regexp,  new String(new char[] {(char)(Integer.parseInt("$1"))}));or,
    line = line.replaceAll(regexp,  doMyProcessOn("$1")); //doMyProcess returns a Stringa common sense should have told him that "$1" isn't a literal string "$1" in this regular expression context.
    By the way, I abhor Perl code becaus of its incomprehensibleness. They can't be read by an average common sense. Java code can be, sort of ...

  • How to pass a JavaScript variable into a java method

    I would like to know how to pass a JavaScript variable into a java method with in a <% %> tag inside a JSP file like so:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <script LANGUAGE="JavaScript">
    myValue = someDynamicValue;
    <% System.out.println(myValue)%>
    </script>
    </head>
    <body>
    </body>
    </html>
    obviously "System.out.println(myValue)" will not work because myValue is seen as a java variable and not a JavaScript variable.
    I would like to know how to let the jsp file, that I wrote in the above code, see myValue as a JavaScript variable and not a java variable so that I can pass it to a java method.
    NOTE: the java method does not have to be a println() method, it can be any method of my choice.
    NOTE: someDynamicValue is a JavaScript value that can dynamically change

    I don't believe you can. JSPs are really just elaborate templates that an engine such as Tomcat parses and generates an HTML page based on. That page is then displayed to the user. By the time you want to use some function in Javascript, the JSP has already been parsed and generated.
    Basically, Javascript and JSPs can't talk to each other. One's server-side and the other is client-side.

  • How to pass a jsp variable into javascript??

    <p><%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
    <p><%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <p><html>
    <p><c:set var="binrmapi" value="http://localhost/paas-api/bingorooms.action;jsessionid=XXXXXX?userId=TEST2&sessionId=1&key=1" />
    <p><c:import var="testbinrm" url="${fn:replace(binrmapi, 'XXXXXX', jsessionid)}"/>
    <p><c:set var="tuples" value="${fn:split(testbinrm, '><')}" />
    <p>Time until next game
    <p><c:forEach var="tuple" items="${tuples}">
    <p><c:if test="${fn:contains(tuple, 'row ')}">
    <p> <p><code>
    <p> <c:set var="values" value="${fn:split(tuple, '=\"')}" />
    <p> <font color="blue">
    <p> <c:out value="${values[17]}" />
    <p><c:set var="remainingtime" value="${values[17]}" />
    <p> </font>
    <p> </code>
    <p></c:if>
    <p></c:forEach>
    <p><form name="counter"><input type="text" size="8" name="d2"></form>
    <p><script>
    <p>var milisec=0
    <p>var seconds=eval("document.myForm.remaining").value;
    <p>function display(){
    <p> if (milisec<=0){
    <p> milisec=9
    <p> seconds-=1
    <p>}
    <p>if (seconds<=-1){
    <p> milisec=0
    <p> seconds+=1
    <p> }
    <br>else
    <p> milisec-=1
    <p> document.counter.d2.value=seconds+"."+milisec
    setTimeout("display()",100)
    <p>}
    <p>display()
    <p></script>
    <p></body>
    <p></html>
    <p>This is my code that i was working on, in the jsp part of the script, i get a api call and save a value of time in the variable remainingtime.. and in the javascript, i try to have a countdown clock counting down the remaining time.. but i guess it doesnt work.. how can i get that working? thanks alot
    Message was edited by:
    hamham3001
    Message was edited by:
    hamham3001
    Message was edited by:
    hamham3001
    Message was edited by:
    hamham3001

    Re: How to pass a jsp variable into javascript??Here is the sameple one, hope it will solves your problem.
    <html>
    <body>
    <form name=f>
    <%!
    String str = "A String"
    %>
    <script>
    var avariable = <%=str%>
    <script>
    </form>
    </body>
    </html>
    Let me know if you face any problem

  • How to get a variable into another block?

    Hello,
    (I am from Germany, so be patient due my english please)
    We do a project at our University where we have to do with wordfrequencies. The app works fine, but it cannot works with the variable wich contains the information to analyse.
    Look, I am more or less new in Java and I found a code and modyfied that. So I had to initalize the variable with the data from another class. I did the following thing.
    Thats is the class, where the variable is come from:
    class Lesen extends HTMLEditorKit.ParserCallback                                        
         String zeile;                                                                           
         String fileName;                                                                
         Wortfrequenz aha;                                 // name of the class where I need the variable                                                                                                                                                                      public Lesen (String fileName)                                                          
              this.fileName = fileName;                                                      
    public void handleText(char[] data, int pos)                                            
                    String strom = new String (data);                                       
                    aha = new Wortfrequenz ();                                              
                    aha.verb(strom);                // "strom" is the variable here in this class which caontains the data
    ....and within the class "Wortfrequenz" I tryed to do the following thing:
    import java.util.*;                                                                     
    import java.io.*;                                                                       
    public class Wortfrequenz
         static String flus;                                                                     
         public void verb (String o)                                                             
              flus = o;                                                                       
    HashMap words = new HashMap();                                                         
    HashMap stopWords = new HashMap();                                                      
    String delim = " \t\n.,:;?!-/()[]\"\'";                                                 
    String file;                                                                            
    String word;               
    Count count;                                                            
                    try
                            FileReader kl = new FileReader("stopwords.txt");                
                            BufferedReader mk = new BufferedReader(kl);                     
                            String einlesen;
                            Lesen eins = new Lesen(flus);                                   
                            while ((einlesen = mk.readLine()) != null)                      
                                    stopWords.put(einlesen, einlesen);                      
                            mk.close();  if I test the app and do a "System.out" direktly after
    flus = o;then I can see that the information is within the variable, but when I test the variable within the next block where I need it, for example after
    Count count;or anywhere in this block, then I get
    null
    null
    null
    null
    null
    ...if anyone tell me how I can get the information of this variable into the nex block, that would be great.
    Thanks a lot for helping...
    Stephan

    This: public void verb (String o)                                                             
      flus = o;                                                                       
    }Is the whole verb method. That's all it does is assign the flus variable. This:{               
    HashMap words = new HashMap();   
    // etcIs an initializer, which runs as soon as the object is created, ie before the verb method.

  • How do I insert a session variable into a record?

    I can’t figure out how to insert the value passed by a
    session variable into a record.
    I have a form I want to use to insert a record. I pass
    session variables to this page and want to insert one of them into
    the record. The session information is:
    session_start();
    $_SESSION['usename'] = $_POST['username'];
    $idvar = $_SESSION['id'];
    $_SESSION[‘id’] is the user_id that I want to
    insert into the record.
    I know $idvar is getting to the page with the form because I
    can echo it.
    The insert code looks like this:
    if ((isset($_POST["MM_insert"])) &&
    ($_POST["MM_insert"] == "register")) {
    $insertSQL = sprintf("INSERT INTO h_genres (user_id,
    username, contrib_to, Advertising, Annual_Reports, Leader_Content,
    Member_Content, Brochures) VALUES (%s, %s, %s, %s, %s, %s, %s,
    %s)",
    GetSQLValueString($_POST['user_id'], "int"),
    GetSQLValueString($_POST['username'], "text"),
    GetSQLValueString($_POST['contrib_to'], "text"),
    GetSQLValueString(isset($_POST['Advertising']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Annual_Reports']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Leader_Content']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Member_Content']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Brochures']) ? "true" : "",
    "defined","'Y'","'N'"));
    mysql_select_db($database_hauw, $hauw);
    $Result1 = mysql_query($insertSQL, $hauw) or
    die(mysql_error());
    I have a hidden field for the user_id:
    <input name="user_id" type="hidden" id="user_id" />
    I think I need to get the value in $idvar into user_id but I
    don’t know how.
    Any help is appreciated.

    awsweb wrote:
    > I have a hidden field for the user_id:
    > <input name="user_id" type="hidden" id="user_id"
    />
    >
    > I think I need to get the value in $idvar into user_id
    but I don?t know how.
    <input name="user_id" type="hidden" id="user_id"
    value="<?php echo
    $idvar; ?>" />
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Convert document variable into DocumentForm

    I'm working with a LC ES process in wich I use send and receive services.
    I send by email this attachment xpath: "/process_data/pdfForm/object/@document"
    Users are involved in process by submitting pdf form from their email after signing them.
    documents are signed and returned by email to the LC process.
    I retrieve the attachments with receive service and I save them into document variable using SetValue service assigning this variable
    "/process_data/pdfFirma1/object/@document" the value of
    this one(document type):
    "/process_data/attachments_list[1]"
    wich is the first attachment in the email.
    I have the need to assign the document variable into documentpart of the Document Form.
    I tried to assign to the document part of the documentform variable my input document. There aren't errors in the log, but when I try to open the document form in the workspace I can't.
    Is this the correct way?
    can Anyone help me?
    thanks a lot

    Like you said you need to put the "document" variable in a "Document Form" variable and then assign that variable ("Document Form") to the Input and Output data mapping of the User step.
    The xPath should be similar to this:
    /process_data/myDocForm/object/@document = /process_data/@myDocument
    Jasmin

  • Select values from table%ROWTYPE variable into a cursor

    I have a stored procedure which has an OUT parameter of table1%ROWTYPE.
    In future we might have to add more OUT parameters of table2%ROWTYPE etc. But at any point of time only one will have values.
    So instead of having table%ROWTYPE as OUT parameter, can I send these single row ( with variable values) in a cursor, so that declaration part atleast will not change.
    Is it possible to select values from table%ROWTYPE variable into a cursor.
    cursorOUT IS
    SELECT * FROM varREC;
    where varREC is table.ROWTYPE variable.
    Or which is the better solution in this situation.
    Thanks.

    SQL> var a refcursor
    SQL> declare
      2   bb emp%ROWTYPE;
      3  begin
      4   select * into bb from emp where rownum = 1;
      5   open :a for select bb.ename ename, bb.empno empno from dual;
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> print a
    ENAME                                 EMPNO
    SMITH                                  7369Rgds.

  • I've been importing all my old CDs into itunes but one of them which was unknown imported as single tracks. How can I combine these into one album

    I've been importing all my old CDs into itunes but one of them which came up as unknown has imported as single tracks named track 1, track 2 etc. It wasn't an obscure CD (Paul Carrack - the journey so far) but not one that's available in the itunes store. I've manually changed the track names but they all appear as single tracks in the "Albums" section. Is there a way to put them all into an album to show up as an album with the other albums. Other "unknown" CDs I imported have imported with the correct track names but just don't have the album artwork so I don't understand why this one is behaving totally different?

    If you select the tracks all together in iTunes/ Songs then go to File/Get info you will be asked "Are you sure you want to edit information for multiple items?" Go ahead and you can make them into an album, putting in the artist name, etc.

  • How can I create a new behance account and migrate the content of the old behance account into the new one?

    I can't change the url of my old behance account so I need to start afresh with a new behance account... how can i migrate all content from the old url into the new one? thanks

    If you have a login questions - please contact Behance support directly. Behance is transitioning all logins to Adobe IDs this Spring 2014. If you signed up for Behance post April 10, 2014, your Behance login matches your Adobe ID exactly. If you signed up before this and are having trouble logging in, visit this section for more help, or contact Behance support. Please do not comment on this forum with login questions, as we're able to provide much faster, one-on-one support elsewhere.

Maybe you are looking for

  • Lightroom 4.3 Update and Camera Profiles.

    Hello there! First let me start by mentioning that im running Lightroom on a Mac OS X (10.8.2). I was running v4.2 for a while until the v4.3 update came out about a week and a half ago. I updated to v4.3 and everything was working fine until I notic

  • Prob. in execution of t-code

    I have created t-code for executable programm...when i put this t-code it shows respective transaction but at the time of execution it exits to sap easy access screen...what should i do??

  • VMware tools installation fails

    Hi, I decided to try out Arch Linux in VMware Player before installing it on my system. The installation so far has gone well but I can't succeed in installing the VMware tools services. During installation I get several errors and warnings. These ar

  • How to create services for sql querry with joint 2 tables ?

    Hi all, I start to learn the php services function for mysql querry in flex 4.5 and all seam to be ok. But i don't find anny help or tutorial to create service that call a sql querry with joint to tables, like this : Select table01.fieldA table02.fie

  • Button to upload Excel spreadsheet or CSVinto table

    Hello, I know it is possible to add a button to a report in HTML Db that when clicks downloads the contents of the report into a .CSV file that can be read by Excel. I would like to know if it's possible to have a button in HTML Db that when clicked