Lenght of ds string

Folks,
We are trying to store xml documents in LDAP. What is the sizelimit? We can load a 2mb file but nothing larger.
thanks,
keith

Hi Frank,
Can u tell me how u have solved this solution which u posted in sdn long back...
<b>Hallo,
when i have a rfc-destination i need to assign a queue for destination?
Because this error occured by invoking a bapi over plain http-adapter (QoS=EOIO):
Result:
<SAP:Error>
<SAP:Category>XIServer</SAP:Category>
<SAP:Code>INTERNAL.ATTRIBUTE_INITIAL</SAP:Code>
<SAP:P1>QUEUE_NAME</SAP:P1>
<SAP:Stack>Attribute QUEUE_NAME is initial</SAP:Stack>
</SAP:Error>
</b>
I am also getting same error ...
please can u let me know how u have solved this
Regards,
Sridhar

Similar Messages

  • Regarding the lenght of the string?

    hai friends,
       can any one tell me how to find the length of the string..?
    ex: data x type string
    x = 9989.
    where now length of x is 4.
    so how can i  find what is the length of the string,..?
    regards
    satish.v

    Define another variable type I
    DATA:v_length type i.
    v_length = strlen( X ).
    That will give you the length of the string.
    Reward poin ts if sueful.
    Regards,
    Nageswar

  • Getting lenght of String array

    Hi,
    How can i find the lenght of a string array, i have used length method to calculate length of single string value,e.g
    String value = "test"
    int length = value.length()
    Now i want to calculate length of a string array.e.g
    String csv_values = "test,by,random"
    String[] str = csv_values.split(",")
    int lenght = str.length()
    As you can see i want to calculate total number of entries in an array after i split it dynamically.
    Currently it is giving me exception, "Unable to parse exception; Undefined method: length for class: [Ljava.lang.String]"
    Thanks

    This is a tricky one.  An Array has a length property, unlike a String which has a length method.
    So...
    int length = str.length
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • How to know the size of the string with out using the length() method

    i want to find the lenght of the
    String s="Sudha";
    with out using the lenght() method.

    Not true (I mean the part about "The only String
    call"). But if it had been true, I might haveagreed
    with this:
    Assuming one uses the 'exception' approach thenwhat
    method other than charAt() is needed?I probably misunderstood your post, I thought you
    meant that the only alternative to length() would be
    charAt() and catching the exception.There are many ways and if the teacher had said find 5 ways of finding the length of a String then I would have fealt happier because it would have meant the student would have to read and study the whole of the String API.
    I like
    int length = (s+"sabre").lastIndexOf("sabre");

  • Best way to put binary-data into string?

    Hi there!
    What I want to do is to transfer binary data via HTTP/GET so what I have to do is to transfer binary data into a string.
    Currently I do this the follwing way:
          byte[] rawSecData = new byte[4]; //any binary datas
          ByteArrayOutputStream secBOS = new ByteArrayOutputStream(4);
          DataOutputStream secDOS = new DataOutputStream(secBOS);
          for(int i=0; i < rawSecData.length; i++)
            secDOS.writeByte(rawSecData);
    secDOS.flush();
    String secData = secBOS.toString();
    System.err.println("Lenght of resulting String: "+secData.length());
    I know that this way already worked fine, however I now set up my system up again with another linux-distro and now strange things happen.
    e.g. the secData string differs in lenght from run-to-run between 2 and 4 and I don know at all why?
    Transferring the binary-stuff into string-stuff (e.g. short-binary 255 255, String: 65536) is not possible for me because of various reasons.
    The funny thing is that I remeber that this already worked some time ago and I can figure out why it now doesnt...
    Please help!

    First of all thanks a lot for your help!
    Yes, I already think its an encoding problem, but how can I specify the encoding in my application in a portable way. I dont have an idea what to do.
    My applikation should run as applet on many different 1.1+ VMS (msjvm, netscape-1.1.5, ...).
    Thanks again, lg Clemens

  • Formatting String

    Hello!
    Does someone know if exists a JAVA class or method able to format a String in order to make it printed out in a wanted way (for example putting automatically "/n" when lenght of a String is bigger than a value specified...)?
    Something like this:
    String original = new String("   //a String....  ");
    String formatted = original.format(columnLenght //.....other parameters);
    System.out.print(formatted);
    ....Thank you all in advance
    Diego

    org.apache.commons.lang.WordUtils.wrap()
    This is in the Jakarta Commons Lang library.
    ~

  • Error in converting Spool to HTML format.

    Hi Gurus,
    I am reading SPool and converting that into HTML formt. Please do find below code for the same.
    Submit report to convert the spool to HTML format
      SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN
      WITH rqident = p_spoolno.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = gt_listobj
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Convert the spool to HTML format
      CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
       EXPORTING
       REPORT_NAME         =
         template_name       = 'WEBREPORTING_REPORT'
        TABLES
          html                = p_html_tab
          listobject          = gt_listobj.
    >>>>>>>>>>>>>>>>>>>
    And i send p_html_tab as attachement to email.
    When I opened the attachement, i can view only half page in htm.
    How can i get the full page in htm.

    First convert the spool to internal table by using FM
    RSPO_RETURN_ABAP_SPOOLJOB
    Next from internal table to HTML....
    Link: /people/rammanohar.tiwari/blog/2006/01/29/abap-utility-print-screen-to-html
    or try the following
    Please try the follwoing:
    1. define HTML internal table with ref to type W3HTML
    2. download it as BIN type and give total lenght of the strings as a parameter in the down load.
    See the code extract below:
    describe table html lines entries.
    read table html into w_html index entries.
    size = ( entries - 1 ) * 255 + strlen( w_html ).
    concatenate p_path file into file.
    call function 'WS_DOWNLOAD'
    exporting
    bin_filesize = size
    filename = file
    filetype = 'BIN'
    tables
    data_tab = html

  • Having issues finding out how many bytes are sent/recieved from a socket.

    Hello everyone.
    I've searched the forums and also google and it seems I can't find a way to figure out how many bytes are sent from a socket and then how many bytes are read in from a socket.
    My server program accepts a string (an event) and I parse that string up, gathering the relevant information and I need to send it to another server for more processing.
    Inside my server program after receiving the data ( a string) I then open another port and send it off to the other server. But I would like to know how many bytes I send from my server to the other server via the client socket.
    So at the end of the connection I can compare the lengths to make sure, I sent as many bytes as the server on the other end received.
    Here's my run() function in my server program (my server is multi threaded, so on each new client connection it spawns a new thread and does the following):
    NOTE: this line is where it sends the string to the other server:
    //sending the string version of the message object to the
                        //output server
                        out.println(msg.toString());
    //SERVER
    public class MultiThreadServer implements Runnable {
         Socket csocket;
         MultiThreadServer(Socket csocket) {
              this.csocket = csocket;
         public void run() {
              //setting up sockets
              Socket outputServ = null;
              //create a message database to store events
              MessageDB testDB = new MessageDB();
              try {
                   //setting up channel to recieve events from the omnibus server
                   BufferedReader in = new BufferedReader(new InputStreamReader(
                             csocket.getInputStream()));
                   //This socket will be used to send events to the z/OS reciever
                   //we will need a new socket each time because this is a multi-threaded
                   //server thus, the  z/OS reciever (outputServ) will need to be
                   //multi threaded to handle all the output.
                   outputServ = new Socket("localhost", 1234);
                   //Setting up channel to send data to outputserv
                   PrintWriter out = new PrintWriter(new OutputStreamWriter(outputServ
                             .getOutputStream()));
                   String input;
                   //accepting events from omnibus server and storing them
                   //in a string for later processing.
                   while ((input = in.readLine()) != null) {
                        //accepting and printing out events from omnibus server
                        //also printing out connected client information
                        System.out.println("Event from: "
                                  + csocket.getInetAddress().getHostName() + "-> "
                                  + input + "\n");
                        System.out.println("Waiting for data...");
                        //---------putting string into a message object-------------///
                        // creating a scanner to parse
                        Scanner scanner = new Scanner(input);
                        Scanner scannerPop = new Scanner(input);
                        //Creating a new message to hold information
                        Message msg = new Message();                    
                        //place Scanner object here:
                        MessageParser.printTokens(scanner);
                        MessageParser.populateMessage(scannerPop, msg, input);
                        //calculating the length of the message once its populated with data
                        int length = msg.toString().length();
                        msg.SizeOfPacket = length;
                        //Printing test message
                        System.out.println("-------PRINTING MESSAGE BEFORE INSERT IN DB------\n");
                        System.out.println(msg.toString());
                        System.out.println("----------END PRINT----------\n");
                        //adding message to database
                        testDB.add(msg);
                        System.out.println("-------Accessing data from Map----\n");
                        testDB.print();
                        //---------------End of putting string into a message object----//
                        //sending the string version of the message object to the
                        //output server
                        out.println(msg.toString());
                        System.out.println("Waiting for data...");
                        out.flush();
                   //cleaning up
                   System.out.println("Connection closed by client.");
                   in.close();
                   out.close();
                   outputServ.close();
                   csocket.close();
              catch (SocketException e) {
                   System.err.println("Socket error: " + e);
              catch (UnknownHostException e) {
                   System.out.println("Unknown host: " + e);
              } catch (IOException e) {
                   System.out.println("IOException: " + e);
    }Heres the other server that is accepting the string:
    public class MultiThreadServer implements Runnable {
         Socket csocket;
         MultiThreadServer(Socket csocket) {
              this.csocket = csocket;
         public void run() {
              try {
                   //setting up channel to recieve events from the parser server
                   BufferedReader in = new BufferedReader(new InputStreamReader(
                             csocket.getInputStream()));
                   String input;
                   while ((input = in.readLine()) != null) {
                        //accepting and printing out events from omnibus server
                        //also printing out connected client information
                        System.out.println("Event from: "
                                  + csocket.getInetAddress().getHostName() + "-> "
                                  + input + "\n");
    System.out.println("Lenght of the string was: " + input.length());
                        System.out.println("Waiting for data...");
                   //cleaning up
                   System.out.println("Connection closed by client.");
                   in.close();
                   csocket.close();
              } catch (IOException e) {
                   System.out.println(e);
                   e.printStackTrace();
    }Here's an example of the program works right now:
    Someone sends me a string such as this:
    Enter port to run server on:
    5656
    Listening on : ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=5656]
    Waiting for client connection...
    Socket[addr=/127.0.0.1,port=4919,localport=5656] connected.
    hostname: localhost
    Ip address: 127.0.0.1:5656
    Waiting for data...
    Event from: localhost-> UPDATE: "@busch2.raleigh.ibm.com->NmosPingFail1",424,"9.27.132.139","","Omnibus","Precision Monitor Probe","Precision Monitor","@busch2.raleigh.ibm.com->NmosPingFail",5,"Ping fail for 9.27.132.139: ICMP reply timed out",07/05/07 12:29:12,07/03/07 18:02:31,07/05/07 12:29:09,07/05/07 12:29:09,0,1,194,8000,0,"",65534,0,0,0,"NmosPingFail",0,0,0,"","",0,0,"",0,"0",120,1,"9.27.132.139","","","","dyn9027132107.raleigh.ibm.com","","","",0,0,"","","NCOMS",424,""
    Now my program makes it all nice and filters out the junk and resends the new string to the other server running here:
    Enter port to run server on:
    1234
    Listening on : ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=1234]
    Waiting for client connection...
    Socket[addr=/127.0.0.1,port=4920,localport=1234] connected.
    Parser client connected.
    hostname: localhost
    Ip address: 127.0.0.1:1234
    Event from: localhost-> PacketType: UPDATE , SizeOfPacket: 577 , PacketID: 1, Identifer: UPDATE: "@busch2.raleigh.ibm.com->NmosPingFail1" , Serial: 424 , Node: "9.27.132.139" , NodeAlias: "" , Manager: "Omnibus" , Agent: "Precision Monitor Probe" , AlertGroup: "Precision Monitor" , AlertKey: "@busch2.raleigh.ibm.com->NmosPingFail" , Severity: 5 , Summary: "Ping fail for 9.27.132.139: ICMP reply timed out",StateChange: 07/05/07 12:29:12 , FirstOccurance: 07/03/07 18:02:31 , LastOccurance: 07/05/07 12:29:09 , InternalLast: 07/05/07 12:29:09 , EventId: "NmosPingFail" , LocalNodeAlias: "9.27.132.139"
    Lenght of the string was: 579
    The length of the final string I sent is 577 by using the string.length() function, but when I re-read the length after the send 2 more bytes got added, and now the length is 579.
    I tested it for several cases and in all cases its adding 2 extra bytes.
    Anyways, I think this is a bad solution to my problem but is the only one I could think of.
    Any help would be great!

    (a) You are counting characters, not bytes, and you aren't counting the line terminators that are appended by println() and removed by readLine().
    (b) You don't need to do any of this. TCP doesn't lose data. If the receiver manages get as far as reading the line terminator when reading a line, the line will be complete. Otherwise it will get an exception.
    (c) You are assuming that the original input and the result of message.toString() after constructing a Message from 'input' are the same but there is no evidence to this effect in the code you've posted. Clearly this assumption is what is at fault.
    (d) If you really want to count bytes, write yourself a FilterInputStream and a FilterOutputStream and wrap them around the socket streams before decorating them with the readers you are using. Have these classes count the bytes going past.
    (e) Don't use PrintWriter or PrintStream on socket streams unless you like exceptions being ignored. Judging by your desire to count characters, you shouldn't like this at all. Use BufferedWriter's methods to write strings and line terminators.

  • Encryption in PL/SQL

    Hi all,
    Has anyone came across encryption code, such as DES, written in PL/SQL?
    I found two files in Oralce 8.1.6, namely $ORACLE_HOME/rdbms/admin/dbmsobtk.sql & prvtobtk.plb. These files created a package called DBMS_OBFUSCATION_TOOLKIT which contains the following procedures:
    PROCEDURE DESEncrypt(
    input IN RAW,
    key IN RAW,
    encrypted_data OUT RAW);
    PROCEDURE DESEncrypt(
    input_string IN VARCHAR2,
    key_string IN VARCHAR2,
    encrypted_string OUT VARCHAR2);
    PROCEDURE DESDecrypt(
    input IN RAW,
    key IN RAW,
    decrypted_data OUT RAW);
    PROCEDURE DESDecrypt(
    input_string IN VARCHAR2,
    key_string IN VARCHAR2,
    decrypted_string OUT VARCHAR2);
    I compiled the package, using sys, then granted execute privilege to a user. However I encountered error when compiling my PL/SQL function which calls the DESEncrypt procedure. The following is my code and error message
    My Code
    CREATE OR REPLACE FUNCTION DESEncrypt(pv_string VARCHAR2, pv_despin VARCHAR2) RETURN VARCHAR2
    AS
    lv_encrypted VARCHAR2(128);
    BEGIN
    DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT(pv_string, pv_despin, lv_encrypted);
    RETURN(lv_encrypted);
    END;
    Error Message
    LINE/COL ERROR
    5/2 PLS-00307: too many declarations of 'DESENCRYPT' match this call
    5/2 PL/SQL: Statement ignored
    Appreciate if someone can tell me where to find Encrypt code written in PL/SQL or help me resolve this problem (I can't change the package body for DBMS_OBFUSCATION_TOOLKIT since the prvtobtk file is wrapped.
    Thank you.
    Rdgs,
    Lau

    You must ensure that the lenght of the string to encrypt is divisible by 8. Perform the following before calling
    /* Pad the string with spaces until it's length is a multiple of 8 */
    while mod(strLength, 8) <> 0
    loop
    encryption_string := encryption_string &#0124; &#0124; ' ';
    strLength := length(encryption_string);
    end loop;
    /* Encrypt the string the was passed to the procedure */
    dbms_obfuscation_toolkit.desencrypt(input_string => encryption_string,
    key_string => v_key_string,
    encrypted_string => v_encrypted_form);
    Thanks
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by hlau:
    Hi all,
    Has anyone came across encryption code, such as DES, written in PL/SQL?
    I found two files in Oralce 8.1.6, namely $ORACLE_HOME/rdbms/admin/dbmsobtk.sql & prvtobtk.plb. These files created a package called DBMS_OBFUSCATION_TOOLKIT which contains the following procedures:
    PROCEDURE DESEncrypt(
    input IN RAW,
    key IN RAW,
    encrypted_data OUT RAW);
    PROCEDURE DESEncrypt(
    input_string IN VARCHAR2,
    key_string IN VARCHAR2,
    encrypted_string OUT VARCHAR2);
    PROCEDURE DESDecrypt(
    input IN RAW,
    key IN RAW,
    decrypted_data OUT RAW);
    PROCEDURE DESDecrypt(
    input_string IN VARCHAR2,
    key_string IN VARCHAR2,
    decrypted_string OUT VARCHAR2);
    I compiled the package, using sys, then granted execute privilege to a user. However I encountered error when compiling my PL/SQL function which calls the DESEncrypt procedure. The following is my code and error message
    My Code
    CREATE OR REPLACE FUNCTION DESEncrypt(pv_string VARCHAR2, pv_despin VARCHAR2) RETURN VARCHAR2
    AS
    lv_encrypted VARCHAR2(128);
    BEGIN
    DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT(pv_string, pv_despin, lv_encrypted);
    RETURN(lv_encrypted);
    END;
    Error Message
    LINE/COL ERROR
    -------- <HR></BLOCKQUOTE>
    null

  • Message mapping strange behaviour

    Hi, all.
    I have designed simple message mapping:
    Source Message
    mt_Object
    -ObjectVersion [1..1]
    --TimeStamp [string][1..1][lenght=13]
    --UID [string][0..1]
    -Name [string][0..1]
    Target Message
    Z_TEST (imported RFC function description)
    -TIMESTAMP [string][0..1][length=13]
    -NAME [string][0..1]
    So mapping looks like that:
    mt_Object/ObjectVersion/TimeStamp -> Z_TEST/TIMESTAMP
    mt_Object/Name -> Z_TEST/NAME
    When I test this mapping in Integration Repository (IR) manually (enter values in test XML instance) mapping works properly.
    But when i load XML-instance from XML file after mapping target tag Z_TEST/TIMESTAMP is not produced however tag Z_TEST/NAME is produced properly.
    Where am I incorrect?
    Best regards.

    Maxim,
    You might also want to check what "Context" Z_TEST/TIMESTAMP has been assigned to. The error could be because when the message is processed in the queue, it is not picking the right context object.
    regards,
    SK

  • Help with JAVA StringObject - & assign user input; StringMethod

    Hi Everyone! I need help with this Java Program, I need to write a program, single class, & file. That will prompt the user to enter a word. The output will be separted by hypens and do this until the user enters exit. I think this is done by using a string variable. Then use the length of the word to setup a loop to print each letter out with hypens. (example c-a-t)
    1. I think I should store the word like this: Word.Method(). Not sure of this the API was confusing for me because I wasn't sure of what to do.
    2. A string method to find out how many letters are in the user's word in order to setup a loop to print each letter out. I think I can use a While loop to accomplish this?
    3. A string method to access each letter in a string object individually in order to print individual letters to the screen with those hypens. This is really confusing for me? Can this be accomplished in the While loop? or do I declare variables in the main method.
    Any examples you can refer me to would be greatly appreciated. Thanks

    Getting user input:
    This may look strange to a newbie but there's nothing much you can do since you wanted a single class file:import java.io.*
    public class InputTest {
       public static void main(String[] args) {
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
          System.out.println("Hi! Please type a word and press enter.");
          String lineReadFromUser = in.readLine();
          System.out.println("You typed " + lineReadFromUser);
    }You can get the lenght of a String using the length() method. Example: int len = "Foobar".length();
    You can get the individual characters of a String with the charAt() method. Example: char firstCharOfString = string.charAt(0);
    (remember that the argument must be from 0 to length-1)
    You can access the documentation of all classes, including java.lang.String, at http://java.sun.com/j2se/1.3/docs/api/index.html You can also download the docs.

  • FM for conversion of graphical display of spool to html

    Hi abapers,
              Please help.  This is the scenario, what I need is to convert the graphical display of spool to html.  The html output has to be the same with the graphical display of the spool with all the colors, fonts etc without using the shortcut in the system menu.  Please, please, help.  I need to know how.  It's really, really urgent.  Points will be given to the person who can help me.  Thanks.

    Hi,
    First convert the spool to internal table by using FM
    RSPO_RETURN_ABAP_SPOOLJOB
    Next from internal table to HTML....
    Link: /people/rammanohar.tiwari/blog/2006/01/29/abap-utility-print-screen-to-html
    or try the following
    Please try the follwoing:
    1. define HTML internal table with ref to type W3HTML
    2. download it as BIN type and give total lenght of the strings as a parameter in the down load.
    See the code extract below:
    describe table html lines entries.
    read table html into w_html index entries.
    size = ( entries - 1 ) * 255 + strlen( w_html ).
    concatenate p_path file into file.
    call function 'WS_DOWNLOAD'
    exporting
    bin_filesize = size
    filename = file
    filetype = 'BIN'
    tables
    data_tab = html
    Regards,
    Raj.

  • Russian characterset insert fails..Request for guidance.

    Guys,
    I've been trying to insert the Russian character string "СТАВРОПОЛЬСКИЙ КР" into my database object-column defined as VARCHAR (25) -using GUI.
    The insert is failing, it doesn't give information about the cause of the failure though.
    Could somone guide me...Could it be becaz of the lenght of the string exceeding 25 characters?
    Is there a way that I can get the lenght of the string. Please note, it's Russian character string.
    Thank you All!!!
    -Bhagat

    Russian characters will be displayed as inverted questions "¿¿¿¿¿ ¿¿¿¿¿¿" in toad.
    So the query won't help determining the lenght of the string.
    -Bhagat

  • ABAP Trim Statement

    hi,
    Have an issue where special characters you can't see via se16 are at the end of a character field. I need a way to strip them off via abap. Is there a good way to do this? New to abap, so be gentle. Have tried about everything including shift. Is there a trim command that can be used?
    Thanks in advance.

    HI,
    The VB "trim" sentence is CONDENSE in ABAP. But CONDENSE drops all spaces before and after the string. I think you are looking for something like mid$, Left$ or Right$ (in VB again).
    You can use substrings to do that, like
    Code:
        DATA: chars TYPE I.
    chars = strlen( yourstring ) - 1.
    IF yourstring+chars = yourspecialchar.
      yourstring = yourstring(chars).
    ENDIF.
    That mini-code sample takes the lenght of your string (minus the last character), and checks that last character. If that last one is the special one you are trying to drop, the sentence between IF-ENDIF drops it.
    Substrings are used like
    Code:
            string+pos1(pos2)
    where pos1 is the amount of characters displaced from the beguinning and pos2 the number of characters taken.
    IE: string+pos1(pos2) would be the same than VB's Mid$(string, pos1, pos2)
    Wish it helps,
    Cheers,
    Chandra Sekhar.

  • Calculation of  container check digit

    Dearest All.
    i hv a requirement .. i hv to calculate check digit for Conatiners for Export and Import.
    i tried a lot  but failed.....
    the logic is as follow...
    Every container-number needs its own check digit. This check digit is the last figure of the container-number, that behind the -.
    Of course, you can calculate this check digit yourself.
    First start with the prefix.     Then there is the number itself.
    This is the simplest part of the calculation.     Last but not least the calculation:
    with an example: OOLU 708695.
    Each letter of the prefix has its own value:
    A     10     J     20     S     30
    B     12     K     21     T     31
    C     13     L     23     U     32
    D     14     M     24     V     34
    E     15     N     25     W     35
    F     16     O     26     X     36
    G     17     P     27     Y     37
    H     18     Q     28     Z     38
    I     19     R     29           
    Each figure of the number has its own value.
    1     1
    2     2
    3     3
    4     4
    5     5
    6     6
    7     7
    8     8
    9     9
    0     0
    We know that:     Now calculate:
    O     26     26 X 1 =     26
    O     26     26 X 2 =     52
    L     23     23 X 4 =     92
    U     32     32 X 8 =     256
    7     7     7 X 16 =     112
    0     0     0 X 32 =     0
    8     8     8 X 64 =     512
    6     6     6 X 128 =     768
    9     9     9 X 256 =     2304
    5     5     5 X 512 =     2560
         Total =     6682
    Of course we can understand if you don't want to calculate all these check digits by hand.
    Therefore we made you a little tool.
    Enter the container-number as followed: XXXX123456, just try it.
    Container-number:
         Check digit:     
         Calculate the check digit           Clear the form
    Now divide this total by 11:
    6682 / 11 = 607,4545
    and take the figures after the comma
    and multiply it by 11 to get the check digit.
    0,4545 X 11 = 5
    The complete container-number is:
    OOLU 708695-5

    HEY ,
    don't get panic
      you can do this 
      go step by step 
      if you are aware of Dialog programing  then you can do this
      OR  if you want to do in simple  basic report then also it is possible  just use your logic  .
    1)   create one  module pool  
    2)   create  one  screen   
       in screen give  one button  to get EVENT in  PAI 
      in PAI  you can write code 
      now for 
    albhabets and  there numbers you can ceate either one ztable  or you can create one internal table  with cloumn
    albhabet , value 
    A              20
    B              30
    etc
    also same for
    1 ,1
    2,2
    3,3
    etc
    when user will enter  this number  say  OOLT 78432
    use spilt function to split the entered string   into two string 
    check the length of BOTH string 
    using DESCRIBE  FUNCTION 
    NOW UP TO THAT LENGTH 
    IF LENGHT OF 1ST STRING IS  4
    AND LENGTH OF SECOND IS 5
    THEN
    for 1st character  check with  albhabet value 
    get 1st value  and multiply with 1
    get 2nd and multiply with  2 .
    get 3rd and multy with 4 .
    and so on  .
    same for  numbers 
    you can do and 
    use you logic for  other steps
    you can do that  .
    just go step by step how you have explained .
    Regards
    Deepak.
    Edited by: Deepak Dhamat on Oct 9, 2010 8:53 AM

Maybe you are looking for

  • My low volume button doesn't work on my Iphone 4, how can I fix it?

    Okay so I dropped my iphone in the parking lot garages of my apartment complex and the ground was cement, when i picked it up the screen wasn't cracked or anything so i thought it was okay but once i started listening to music and I wanted to lower t

  • What is the default time settings in Process chains

    Hi, What is the default time settings in Process chains. How to set time settings for daily,weekly,monthly loads in Process chains. What is the time settings that we have to take care when creating meta chains. Thanks, Madhu.

  • Group by position

    Does Oracle support group by position. I am receiving an error. I read somewhere that Oracle does not support but I just want to confirm. For example select empid, empname from employee group by 1 Thanks,

  • Something's going wrong while exporting...

    It's been a while since I've actually needed to export something in FCP to a quicktime movie...but now that I have to do just that, I'm getting back to an old problem with FCP that I never solved. Whenever I export full frame video (4:3) the exported

  • Inprocess inspection & 04 Inspection

    Gurus, When i am working with both 03 & 04,can i make GR for production order and take the material stock skipping 04 inspection?