Language data type problem

I am executing a FM from XI to create a Material with several languages in the form of ES, EN, FR and so on, what is the type that I have to use in the FM for this languages? I use a simple Char 2 type and does not work from XI but If I use SPRAS works fine, the problem is SPRAS is a Char 1 type so the system get confuse with for instance PL and PR.

Hi
The language in R3 is a field of 1 char, so you have to use a data type like SPRAS, if the system gets confuse I believe you need a routine to translate the language symbols from 2 char to 1 char.
In R3 there're the table T002: here it can find both symbols: 1 char and 2 char.
U can use the fm CONVERSION_EXIT_ISOLA_INPUT for translation:
DATA: LANGUAGE_IN(2),
      LANGUAGE_OUT(1).
CALL FUNCTION 'CONVERSION_EXIT_ISOLA_INPUT'
     EXPORTING
          INPUT            = LANGUAGE_IN
     IMPORTING
          OUTPUT           = LANGUAGE_OUT
     EXCEPTIONS
          UNKNOWN_LANGUAGE = 1
          OTHERS           = 2.
Max

Similar Messages

  • Custom Data Type Problem

    Hi,
    Im just starting in corba so his might be something simple, anyway..
    Im adapting the HelloWorld example. And in my idl interface I want to use a custom custom data type named SongPreview. I have a class file for this in the same directory as my java code.
    module HelloApp
    interface Hello
    string sayHello();
    SongPreview getFile(in String name);
    The problem is that I get an error saying that SongPreview is an undeclared type.
    Any idea what im doing wrong?
    Thanks

    Just like any other language you have to define the return
    type. In this case, it is SongPreview.
    You must define SongPreview in IDL.
    You could do it in the same IDL file or in another IDL.
    But you MUST define in IDL.
    ====================================
    Hi,
    Im just starting in corba so his might be something
    simple, anyway..
    Im adapting the HelloWorld example. And in my idl
    interface I want to use a custom custom data type
    named SongPreview. I have a class file for this in the
    same directory as my java code.
    module HelloApp
    interface Hello
    string sayHello();
    SongPreview getFile(in String name);
    The problem is that I get an error saying that
    SongPreview is an undeclared type.
    Any idea what im doing wrong?
    Thanks

  • Single Line Data Type to Collection Data type, Problem in Message mapping

    I have a csv file, the file has the following lines
    hdr1
    line1
    line2
    lineN
    hdr2
    line1
    lineN
    I want it to map it to an object with the ff structure
    root object 1..1
    object 1..1
    subobject 0...n
    hdr 1..1
    line 1...n
    How is the mapping of the said data types?  Is it possible?  Please help....thanks in advance

    Hi Raymond,
    as you have two different strutures:
    - HEAD
    - ITEM
    and the occurences of the structures are not fix (say: e.g. HEADER occurs always 3 times), you need a key-field, which identifies each row as HEAR or ITEM.
    If you do not have a key-field, you must design a "generic structure" that fits to both:
    HEAD & ITEM. After the conten-conversion into this generic structure you need a message-mapping that identifies your HEADs and ITEMs.
    File content conversion sites
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards Mario

  • Float data type problem!

    Hi ALL,
    I have a problem with float data type. Please tell me how to fix it if you know.
    THANKS!
    Source code:
    class testFloatType {
    public static void main(String args[]) {
    float i = 0.9f, j = 0.8f, k = 0.1f;
    System.out.println("i = " + i);
    System.out.println("j = " + j);
    System.out.println("k = " + k);
    System.out.println("i - j = " + (i - j));
    System.out.println("i - k = " + (i - k));
    Result:
    i = 0.9
    j = 0.8
    k = 0.1
    i - j = 0.099999964
    i - k = 0.79999995

    Hi garazdawi,
    I try to use the double to instead of float, but it still has a bit error!
    Source code:
    class testFloatType {
    public static void main(String args[]) {
    float i = 0.9f, j = 0.8f, k = 0.1f;
    System.out.println("i = " + i);
    System.out.println("j = " + j);
    System.out.println("k = " + k);
    System.out.println("i - j = " + (i - j));
    System.out.println("i - k = " + (i - k));
    double a = 0.9d, b = 0.8d, c = 0.1d;
    System.out.println("a = " + a);
    System.out.println("b = " + b);
    System.out.println("c = " + c);
    System.out.println("a - b = " + (a - b));
    System.out.println("a - c = " + (a - c));
    Result:
    i = 0.9
    j = 0.8
    k = 0.1
    i - j = 0.099999964
    i - k = 0.79999995
    a = 0.9
    b = 0.8
    c = 0.1
    a - b = 0.09999999999999998
    a - c = 0.8

  • XML data type problem

    I am trying to unflatten data from an xml file but my input type for the type on the unflatten I believe is invalid and I am getting error 1106. 
    Attached is the xml file and VI
    XML file is in text due to upload constraints
    Paul Power
    I have not lost my mind, it's backed up on a disk somewhere
    Solved!
    Go to Solution.
    Attachments:
    TestData.txt ‏2 KB
    XML Cluster.vi ‏35 KB

    Your data type cluster does not match your XML file. Fixed VI (LV version 2013) is attached. However, the file you posted appears to be a single element, not the entire file, so I cannot verify it works.
    If you have an earlier version of LabVIEW, the cluster was missing a timestamp and had a cluster at the end which should have been a string.
    Duplicate post from here.
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    XML Cluster.vi ‏44 KB

  • Data type problem in a table

    I have a column as
    col1 which takes the combination of numbers and alphabets
    for eg. col1=1234abc
               col1= 1234what should be the data type of the column and how to insert data in it
    Edited by: Rahul_India on Sep 7, 2012 2:11 AM
    Edited by: Rahul_India on Sep 7, 2012 2:20 AM

    Rahul_India wrote:
    I have a column as
    col1 which takes the combination of numbers and objects
    for eg. col1=1234abcDo you mean Alphabet?
    what should be the data type of the column VARCHAR2
    and how to insert data in itinsert into <table>(col1) values('1234abc')?
    If this is not what you expect, help us in helping you by reading {message:id=9360002}
    and providing relevant details.

  • How to handle DATE type problems in migrating from mysql to oracle.?

    Hi,
    I'm migrating only the data from mysql to oracle with the help of sql loader.But with this type i cannot able to insert the date values from mysql to oracle.In mysql i have defined date as "DATETIME" type and in oracle it is in TimeStamp.Whenever i'm inserting the values thru CTL file ,i'm getting an error invalid date format entered.How to solve this problem?
    Thanks in Advance
    JAI

    you need to supply a mask to the timestamp entry. see http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm#i1006714 for details on datatypes within the ctl file
    B

  • Multiple Language  : Data Display Problem

    Hi ,
    I have one problem regarding NLS_LANG, please advice.
    I have a table on source machine which stores the data in different language (German, Danish, Russian Cyrillic) but these data shows as "???????" on command prompt as well as on Toad when access it from client machine.
    I know that displaying any kind of data depends on local NLS_LANG but what NLS_LANG I have to set so that it can display different language together. I am able to display data separately for German, Danish and Russian Cyrillic when I change NLS_LANG and location in client accordingly but unable to display all language together.
    Default setting for NLS_LANG on client machine is AMERICAN_AMERICA.WE8MSWIN1252.
    Please advise common NLS_LANG for all three language (German, Danish, Russian Cyrillic).
    Thanking You

    Pl continue the discussion in your original thread for continuity purposes.
    Multiple data display problem

  • Data type problems

    Hello all!
    So I'm actually writing a pretty big program that simulates the pick up sticks game, between the user and the computer...and I'm having a problem with a remove method that I made...
    when I wrote the user and computer classes, each one is supposed to remove a certain amount of sticks from the Pile( another class which I have written).
    In the Pile class, there is a method that is supposed to remove a certain amount of sticks from the pile.
    In the user and the computer class, I have this int varible maxOnATurn which is supposed to be their turn by removing the sticks from the pile..
    when i wrote
    maxOnATurn = sticks.remove(3);I got the error "int cannot be dereferenced." ....but I think all I'm using is ints when i do this...I have no idea whats wrong???? Any help is appreciated.
    Here one of the methods for the user to take a turn:
    public void takeTurn( Pile pile, int maxOnATurn)
        int sticks = pile.getSticks();
        Scanner scan = new Scanner(System.in);
        System.out.print("Please enter a number to take ( a positive integer, no more than 3):");
        int sticksTaken = scan.nextInt();
        if(sticksTaken > 0 && sticksTaken <= 3)
          maxOnATurn = sticks.remove(sticksTaken);  // here is where the error is
        else
          System.out.println(" Invalid Entry");
      }and here is the Pile class, which contains the remove method
    import java.util.*;
    public class Pile
      private int sticks;
      public Pile( int sticks)
        Scanner scan = new Scanner(System.in);
        sticks = scan.nextInt();
      public int getSticks()
        return sticks;
      public void remove(int number)
        sticks = sticks - number;
      public String toString()
        return "Sticks in Pile: " + sticks;
    }

    Right, that will make if function, but will that specifically remove the sticks from the pile???? I need to make sure it does that so other classes can use the same pile as well.
    Also,
    when I use pile.remove(int) I get another error saying "incompatible types... Found: void Required: int"

  • Data Type Problem

    Hi to all
    I am writing a java basic program. my program is
    public class FirstJava {
         public static void main(String[] args) {
              short a,b,c;
              a=2;
              b=5;
              c=a*b;
              System.out.println(c);
    }But when i am running above program i am getting following error. FirstJava.java:8: possible loss of precision
    found   : int
    required: short
                    c=a*b;
                       ^
    1 error . Really i dont understand whats wrong with my code.
    But when i change my code from c=a*b to a*=a then its working fine. Please help me.
    Another problem, when i am trying to store 07 to a integer as int a=07; then i am getting error like value too large to store. whats wrong here. please help me..

    praveen_nlg wrote:
    Hi to all
    I am writing a java basic program.Great! Which tutorial are you following?
    But when i am running above program i am getting following error. No! You get that error when you are compiling the program. That's an important distinction and you better learn it as early as possible.
    FirstJava.java:8: possible loss of precision
    found   : int
    required: short
    c=a*b;
    ^
    1 errorPretty much all numeric calculations are done with int types in Java (except if they include float/double values).
    So "a*b" will be calculated as an int value. Then you assign it to c, which is a short. The Java compiler just tells you that you might be losing information here.
    There is almost no reason in Java to use short values, simply use int for your whole numbers and you won't run into thisissue.
    Another problem, when i am trying to store 07 to a integer as int a=07; then i am getting error like value too large to store. whats wrong here. please help me..07 should be fine, 08 will break. A leading 0 tells Java that the number is written in [base 8|http://en.wikipedia.org/wiki/Octal]. Don't do that.

  • Oracle Long Data type Problem

    Hi,
    I am using ORACLE 7.3.4 database. I am having a problem in updating a column of long datatype in a table t1 with another column from table t2 of long datatype. I have tried setting LONG 1000000 also but this doesn't work. I appreciate any kind of suggestions.
    The error it gives is ORA-00997: illegal use of LONG datatype.
    Thanks
    Reddy

    I had the same problem too with a newest thin driver. I found that I can read all my characters (bytes) using getBinaryStream() and single-byte read(), but read() never returns -1; instead reading the character before last causes the ArrayOutOfBoundsException you mentioned.
    So I just blindly caught the exception and let it go to QA. (sort of
    InputStream r = rs.getBinaryStream(field);
    if(r == null) ...
    StringBuffer sb = new StringBuffer();
    try { for(int c = -1;  (c = r.read()) != -1;)  sb.append((char) c); }
    catch(IndexOutOfBoundsException e)
    {} // ignore Oracle idiosyncrazy.
    finally { r.close(); }
    ). Please note that getCharacterStream() or getAsciiStream() did not work for me. I did not try deprecated getUnicodeStream(): I decided I would better correctly extract characters in Java from binary data myself if I need them rather than allowing this junky thin Oracle driver to do an extra thing for me.

  • Date type problem

    Hello,
    I have a program that goes like this :
    DATA : p_audatto, p_audatfrom TYPE sy-datum.
      p_audatto = sy-datum.
      p_audatfrom = sy-datum - 3.
    when i debug this i have
    p_audatto == 2,
    p-audatfrom == 20070521 and
    sy-datum ==20070524
    Can somebody explain me why my p_audatto value is 2 ?
    Thanks

    Hi
    Because you've defined it as field of <b>ONLY 1 CHAR</b>, so it can store only the first number of the date.
    DATA : p_audatto   TYPE SY-DATUM, "<---- Right definition
           p_audatfrom TYPE sy-datum.
    p_audatto = sy-datum.
    p_audatfrom = sy-datum - 3.
    Max

  • Non-build-in-data type mapping error

    Hi,
    I started a new web service design using a pre-defined Schema. I created a schema project and use XML bean as my web service method parameter.
    It works fine in workshop test IDE. But when I deployed it and tried to generate client jar, it gave me Failed to do type mapping error.
    What steps I should do to fix this non-build-in data type problem?
    thanks
    May

    Hi,
    I started a new web service design using a pre-defined Schema. I created a schema project and use XML bean as my web service method parameter.
    It works fine in workshop test IDE. But when I deployed it and tried to generate client jar, it gave me Failed to do type mapping error.
    What steps I should do to fix this non-build-in data type problem?
    thanks
    May

  • Cant find data type

    hi all, sorry ive not been back for a while but ive got a problem i cant solve
    i have a data type problem, i have a complex formula that i need to implement but both excel and java have give up because the number is too big, excel gave up at 1.19425116332374E+308 and the value needs to go alot higher. can anyone suggest a way of storing more than this vaule in a data type.
    thanks in advance, any help is welcome

    Matt06 wrote:
    no thats not working, the bigDecimal class wont allow more multipliations Are you trying to use the multiply operator (*) on the BigDecimals? Won't work. Read the javadocs on BigDecimal, it has methods for common operations. But it isn't a primitive type, so you can't simply drop it in place of a long and expect the same operators to work on it. You're dealing with actual objects, so it's all down to method calls. Example:
    BigDecimal finalValue = new BigDecimal("1.0000000000"); // a BigDecimal accurate to ten places
    BigDecimal twentyOne = new BigDecimal("21");
    for(int i = 0; i < 480; i++){
        finalValue = finalValue.multiply(twentyOne);
    System.out.println(finalValue);A bit more long-winded, but that's just tough heh heh

  • Problem accessing basic data types

    Hi,
    I am a newbie at using JNI so please don't mind if I am asking something trivial.
    I have a JNI wrapper for a native C code. The C code is a Gtk+ application using GLib library. This library has it's own basic data types. For example, "gchar" corresponding to "char". I have generated the JNI Wrappers using the tool named "Swig" which is an interface between the C and other programming languages such as Java. What Swig has come up with is since "gchar" is not understood by it as "char" so it has taken the "gchar" as come Reference Type and generated another class for it. And instead of accepting simple char it is expecting a long.
    Even if I pass a numerical value like 11111 after instantiating this newly generated gchar class while running the program the JVM is crashing complaining SIGSEGV recieved from the underlying libraries.
    I am confused first of all since the error is not understood and secondly how can I tell the JNI that gchar is similar to char.
    What approach should I follow to solve the problem that I am facing? Any feedback on this will be appreciated.
    Thanks & Regards

    At run time you can see all the data........ like what i have shown...
    but if you clearly see, DATE will be in the internal format..but if you print it, it will be in dd:mm:yyyy
    can you suggest me if i have a dynamic field symbol (table data) ,,,, How can i convert data types dynamically..
    if it is a static internal table i am achieving with WRITE TO statement.....but i have huge data in field symbols...
    Instead of all these , please specify the exact problem your are facing . What is it with date field ? . In SAP while printing the internal format will be converted to external. What is your requirement with this date field?
    My output looks some thing like this:
    04 36876 15.09.2011 39600 1999
    06 36960 15.09.2011 39600 2632
    07 36874 15.09.2011 39541 9232
    My expected output
    04 36.876 15.09.2011 39.600 1.999
    06 36.960 15.09.2011 39.600 2.632
    07 36.874 15.09.2011 39.541 9.232
    I dont see any problems mentioned in your date field. Both your actual and expected outputs reflects the same in date field.
    In SCN you will only get solutions if your question is precise.
    Kesav

Maybe you are looking for

  • How to Handle Junk Characters in BI Publisher Report?

    Hi Team, I have Created a column in obiee analytics report which has logic as '1/0'. After creating this column I am not getting result for this column(blank). When Extracted the report into XML file,I am not able to see value for that column as well

  • Interface determination condition

    Hi Experts, I am working on File to IDoc scenario, where I want to send IDocu2019s based on source data, in flat file if order number  exists then I have to send MATMAS idoc , if order number does not exists then I want send DEBMAS. I  developed 2 ma

  • Iphoto trashed

    i trahsed my iphot saftware, how do i download again?

  • IPad requirements vs. MacBook OS 10.4.11

    I have not purchased the iPad yet buy I'm worried I won't be able to use one with my MacBook. I do not have OS 10.5 or higher. I don't believe I have enough RAM (need 1 GB) to upgrade. Does this mean I have to get a new laptop??? My MacBook specs are

  • Canvas programming!!

    I am using game canvas .. on which i am displaying words,, but i want before displaying new word old word should be erased , and new word should take same position as old word.. Can any one please tell me how do i do this? Thanks.