How to convert a Raw data of length 16 to Char of length 18

Dear All,
I want to convert a Product RAW data of 16 length to 18 character length material. How can this conversion be done? Can anyone please help me?
Thanks and regards,
Atanu

Nice solution! Unfortunately my code example might have been a bit too simplistic. Actually I'm writing a table wrapper that allows you to add columns including a comparator that can be used for sorting elements in the column. So a slightly altered example would look like:
public class GenericCompare
    // Note, the forum's formatter seems to think an extra > is needed right after Comparator?
    Vector<Comparator<?>> cmps;
    public int myCompare( int column, Object e1, Object e2 )
        return cmps.get(i).compare(e1,e2);
}In which myCompare can be called with any e1, e2 Object type. Joachim seems to be right there is no type-safe way to write this down, the above example triggers an error, and using a raw Comparator cast to solve that triggers a type safety warning.
Regards,
Wieant

Similar Messages

  • How to convert   (pdf raw data) binary to (bitmap/TIFF) image.

    Dear gurus,
    I'm facing a problem to converting my raw data(binary), which i got from my uploaded PDF file.  I try a few methods from SDN itself to make the raw file can be download to my local PC as images.
    I already try to download the raw data, directly using FM GUI_DOWNLOAD, even though it is successfully downloaded to my local drive, but the file still cannot be opened. I debug a few program, which is use to download the bitmap inside the SAP directories to local directory but when i compared both debug data it's something differently written.
    Is there any other way for me to solve this problem? It's there the a way for me to convert the PDF's raw data into bitmap first, before change convert them to binary and download them to my local drive?
    Helping is a rewards. Thanks a lot.
    Edited by: muhamad husin on Mar 25, 2008 5:55 AM

    HI,
    Try this Standard program
    RSTXLDMC  -->    Uploading TIFF Files to SAPscript Texts
    Regrads,
    S.Nehru

  • How to convert internal table data to PDF format

    HI,
         I have an internal table data having one field with 255 chars. length.I want to send that intenal table data as attachemnt with external mail. i am thinking of converting that data into PDF format and use the FM to send the mail. How to convert internal table data to PDF format.
    Kishore

    In which format is your data in the internal table currently. Is it returned by a smartform/script or its just data fetched from some database table into an internal table. Since its obvious that the data should appear in the PDF with some Layout, you should be using smartform to format the data properly. See the Link
    Smartform to PDF to EMAIL
    This shows convertion of smartform to pdf and send it through email
    Regards,
    Abhishek

  • How to convert milliseconds to date format in sql query

    Hi All,
    The following code is in java.     
    String yourmilliseconds = "1316673707162";**
    Date resultdate = new Date(Long.parseLong(yourmilliseconds));
    could you plese tell me how to convert milliseconds into date format in query and comparing with another date like(sysdate-3)

    Hello,
    http://stackoverflow.com/questions/3820179/convert-epoch-to-date-in-sqlplus-oracle
    Regards

  • How to convert files into DAT?

    Does anyone know how to convert files into DAT? Not The other way around please.

    This might do it:
    http://www.videoconverterformac.com/dat-converter-for-mac.html
    but can't imagine why you would want to!

  • How to Convert internal table data into text output and send mail in ABAP

    Hi All,
    Good Morning.
    Taking a glance at a code that converts internal table data to an Excel file in ABAP. also checked how to send this excel to mailing list as attachment.
    But thought of doing it without excel.
    I mean, I have an internal table which contains fields of all types (character,integer,date,time). Since it is only around 4 to 5 rows in it (output),why to convert it to excel. not required!!.  Instead I  want to send this output to User's mails as Normal mail body with No attachments.
    Could anybody please suggest me a way as to how to send internal table data as a mail ( not as an excel or PDF etc).
    as of now my findings are, it is quite complex to convert internal table data to email (Text) format. but i believe if there is some way of doing it.
    Best Regards
    Dileep VT

    here's something I have used in the past where we send out information about failed precalculation settings (which are stored in internal table gt_fail)
    notice we use gt_text as "mail body"
    TRY.
    *     -------- create persistent send request ------------------------
           gv_send_request = cl_bcs=>create_persistent( ).
    *     -------- create and set document -------------------------------
    *     create text to be sent
           wa_line = text-001.
           APPEND wa_line TO gt_text.
           CLEAR wa_line.
           APPEND wa_line TO gt_text.
           LOOP AT gt_fail ASSIGNING <fs_fail>.
             MOVE <fs_fail>-retry_count TO gv_count.
             CONCATENATE text-002
                         <fs_fail>-setting_id
                         text-003
                         gv_count
                         INTO wa_line SEPARATED BY space.
             APPEND wa_line TO gt_text.
             CLEAR wa_line.
           ENDLOOP.
           APPEND wa_line TO gt_text.
           wa_line = text-007.
           APPEND wa_line TO gt_text.
    *     create actual document
           gv_document = cl_document_bcs=>create_document(
                           i_type    = 'RAW'
                           i_text    = gt_text
                           i_length  = '12'
                           i_subject = 'Failed Precalculation Settings!' ).
    *     add document to send request
           CALL METHOD gv_send_request->set_document( gv_document ).
    *     --------- set sender -------------------------------------------
           gv_sender = cl_sapuser_bcs=>create( sy-uname ).
           CALL METHOD gv_send_request->set_sender
             EXPORTING
               i_sender = gv_sender.
    *     --------- add recipient (e-mail address) -----------------------
           LOOP AT s_email INTO wa_email.
             MOVE wa_email-low TO gv_email.
             gv_recipient = cl_cam_address_bcs=>create_internet_address(
                                               gv_email ).
             CALL METHOD gv_send_request->add_recipient
               EXPORTING
                 i_recipient = gv_recipient
                 i_express   = 'X'.
           ENDLOOP.
    *     ---------- set to send immediately -----------------------------
           CALL METHOD gv_send_request->set_send_immediately( 'X' ).
    *     ---------- send document ---------------------------------------
           CALL METHOD gv_send_request->send(
             EXPORTING
               i_with_error_screen = 'X'
             RECEIVING
               result              = gv_sent_to_all ).
           IF gv_sent_to_all = 'X'.
             WRITE text-004.
           ENDIF.
           COMMIT WORK.
    *   exception handling
         CATCH cx_bcs INTO gv_bcs_exception.
           WRITE: text-005.
           WRITE: text-006, gv_bcs_exception->error_type.
           EXIT.
       ENDTRY.
    with the following declarations
    * TABLES                                                               *
    TABLES:
       adr6,
       rsr_prec_sett.
    * INTERNAL TABLES & WORK AREAS                                         *
    DATA:
       gt_fail          TYPE SORTED TABLE OF rsr_prec_sett
                             WITH UNIQUE KEY setting_id run_date,
       gt_text          TYPE bcsy_text,
       wa_fail          LIKE LINE OF gt_fail,
       wa_line(90)      TYPE c.
    FIELD-SYMBOLS:
       <fs_fail>        LIKE LINE OF gt_fail.
    * VARIABLES                                                            *
    DATA:
       gv_count(4)      TYPE n,
       gv_send_request  TYPE REF TO cl_bcs,
       gv_document      TYPE REF TO cl_document_bcs,
       gv_sender        TYPE REF TO cl_sapuser_bcs,
       gv_recipient     TYPE REF TO if_recipient_bcs,
       gv_email         TYPE adr6-smtp_addr,
       gv_bcs_exception TYPE REF TO cx_bcs,
       gv_sent_to_all   TYPE os_boolean.
    * SELECTION-SCREEN                                                     *
    SELECT-OPTIONS:
       s_email          FOR adr6-smtp_addr NO INTERVALS MODIF ID sel.
    DATA:
       wa_email         LIKE LINE OF s_email.

  • How to delete the raw-data out of the meta data (file information)

    Hi guys,
    I am definetely going crazy: since half an hour I can´t find a solution than copy (image) paste and save as a virgin jpeg: I`ve just converted some 0,5 GB tif files which I elaborated heavily in ACR and the 550 by 367 PIXEL JPEG @ quality 9 has 1,1 MB. As all your moves are saved in the raw-data (last field inthe fileinformation) there´s quite a bit on the file, also on 3 by 2 Pixel (!) "big" derivates. It seem´s there´s no intellegent way to discard this information. If you know, please let me know!
    Thanks, Sebastian

    You could try the following code to remove all the metadata, run it from within ExtendScript Toolkit and select the files in Bridge.
    #target bridge
    removeXMPData();
    function removeXMPData(){
    if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var sels = app.document.selections;
    for (var a in sels){
    var thumb = new  Thumbnail(app.document.selections[a]);
    var md = thumb.synchronousMetadata;
    var xmp = new XMPMeta(md.serialize());
            try{
            XMPUtils.removeProperties(xmp, "", "", XMPConst.REMOVE_ALL_PROPERTIES);
            var updatedPacket = xmp.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
            thumb.metadata = new Metadata(updatedPacket);
            }catch(e){alert(e);}

  • How to convert Milliseconds into Date format

    Hi all,
    I am getting the output of a variable in milliseconds format, how can I convert it into date format
    For ex: I am getting input variable as 1366664691000 and I need to convert it to April 22, 2013 5:04:51 PM EDT ( or of SOA format). is there any function for this in XSL or XPath?
    Thanks,

    It is working fine if i test it in provided site...
    But it is returning "-1366664691001", If i am running it in EM. This is the code in my xsl
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="WSDL">
    <schema location="../JavaProcess.wsdl"/>
    <rootElement name="process" namespace="http://xmlns.oracle.com/SampleApplication/JavaEmbeddingActivity/JavaProcess"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="WSDL">
    <schema location="../JavaProcess.wsdl"/>
    <rootElement name="processResponse" namespace="http://xmlns.oracle.com/SampleApplication/JavaEmbeddingActivity/JavaProcess"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.4.0(build 110106.1932.5682) AT [TUE MAY 07 10:21:02 EDT 2013]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:client="client"
    exclude-result-prefixes="xsi xsl bpws xp20 mhdr bpel oraext dvm hwf med ids bpm xdk xref bpmn ora socket ldap">
    <xsl:template match="/">
    <xsl:variable name="lastMTime" select="1366664691000"/>
    <xsl:copy-of select="$lastMTime"/>
    <client:processResponse>
    <client:result>
    <xsl:value-of select='xsd:dateTime("1970-01-01T00:00:00") + $lastMTime * xsd:dayTimeDuration("PT0.001S")'/>
    </client:result>
    </client:processResponse>
    </xsl:template>
    </xsl:stylesheet>

  • How to Convert internal table data into xml and xml data into internal tab

    Hi Guys,
          I have a requirement  that  i have to convert the internal table data into xml format and viceversa . for my requirement  i came to know that i have to use Transformations concept.  i done the converting the data from internal table into xml data by using standard Tranformations. My Question is 
    1) Can i use same Transformation to convert the xml data into abap internal table. if it is possible then how ???
    2) Is it possible using the standard Transformation  or I have to go for XSLT approach
    Please help me out from this guys,
    Thanks and Regards
    Koti

    Hi Koti,
    This is possible. There is a link. With the help of this link you can convert ABAP data to XML and vice versa.
    Link: http://www.heidoc.net/joomla/index.php?option=com_content&view=article&id=15:sapxslt&catid=22:sap-xslt&Itemid=31

  • How to convert digital array data into analog signal

    i want help to convert digital data array into analog signal

    shubham62 wrote:
    We are implimenting real time audio trans-receiver. We have converted input audio data(analog form) into digital data. At the receiver side we received digital data which is in the form of digital data array.But we are unable to recover back our original input data. So please help us to sort out the problem.
    Still no useful information.  How was the data converted to digital in the first place?  What conversion parameters did you use?  As was said, you just need to do the math backwards to get it back into the analog.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to Convert DateTime to Date ?

    This sounds easy, but I'm not progressing as I should.
         element MyDate : Date;
         MyDate = contract.ValidityPeriod.TimePointPeriod.StartTimePoint.DateTime. ;
    The above complains about "Assignment of type DateTime to type Date is not possible".
    I've looked into DateTime functions, but am not getting anywhere.
    Any tips on how to convert a DateTime field to Date field ?

    Afaik, AP.Common.GDT.DateTime does not have a ConvertToGlobalDateTime method, furthermore retrieving the date from the globalDateTime could give you the wrong local date since it does do not consider time zones.
    I would use the similar to the following (no guarantee about correctness):
    import ABSL;
    import AP.Common.GDT;
    var In = contract.ValidityPeriod.TimePointPeriod.StartTimePoint.DateTime;
    // convert To GlobalDateTime
    var timeGlobal = GlobalDateTime.ParseFromString(In.content.ToString()); // not sure whether this is correct -> please verify yourself
    // convert to LOCAL_DateTime using timeZone
    var timeZone = In.timeZoneCode;
    var localDateTime = timeGlobal.ConvertToLocalDateTime(timeZone);
    var localDateTimeStr = localDateTime.ToString();
    // cut off time suffix (starts with "T")
    var localDateStr = localDateTimeStr.Substring(0, localDateTimeStr.Find("T"));
    var date = ABSL:Date.ParseFromString(localDateStr);
    Best regards,
    Ludger

  • How to convert balance to data?

    I've topped up the credit balance for my USB mobile WIFI dongle, and now I'm told I need to convert it to data.It's not clear how to do this on the webpage that shows the balance. What's the secret, please?

    The device isn't a phone. Can I text from a dongle? 

  • How to convert a dynamic data type to array of strings

        I want to perform a serial communication between two
    computers that I´ll call them A and B. The computer A (transmitter)
    will send a signal (sinusoidal) to computer B (receiver). I´m using a
    VISA Serial Communications Set (VISA Configure Serial Port.vi, VISA
    Write.vi, VISA Read.vi and VISA Close.vi).  VISA Write accepts
    only string data type and VISA Read reads only string data type, but
    the signal that I generated (on transmitter) is dynamic data and I need
    to perform this conversion to run my program sucessfully. How can I
    perform this conversion?!

    Hi Rafael,
    You can configure the From DDT Express VI to convert your dynamic data to any number of different types.  By default, the Express VI will convert to a 1D array of numerics...however, you can configure it (either when you first drop it, or by double-clicking it) to convert to a 2D array of numerics...additionally, you can configure it to convert based on channel data being in columns or rows.  I have attached another screenshot that shows converting the dynamic data into a 2D numeric array. 
    I hope this helps.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    FromDDT2D.jpg ‏164 KB

  • How to convert internal table data into excel format?

    Hi all,
    I want to convert internal table data in excel format and then
    send it as email attachment in workflow.
    Please tell me how do i perform this.
    Regards,
    Arpita.

    Hi Arpita,
    Try this sample code::
    Send mail
    maildata-obj_name = 'TEST'.
    maildata-obj_descr = 'Test Subject'.
    loop at htmllines.
    mailtxt = htmllines.
    append mailtxt.
    endloop.
    mailrec-receiver = 'your receiver mail id'.
    mailrec-rec_type = 'U'.
    append mailrec.
    call function 'SO_NEW_DOCUMENT_SEND_API1'
    exporting
    document_data = maildata
    document_type = 'EXL'
    put_in_outbox = 'X'
    tables
    object_header = mailtxt
    object_content = mailtxt
    receivers = mailrec
    exceptions
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    others = 8.
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Hope it will help you.
    Regards,
    NIkita

  • How flash player takes raw data from webcam to display it ?

    Hello,
    I would like to know that how flash player takes data from webcam and display it on video display object, does flash player process the raw data comes from webcam meanscompress it or apply any kind of matrix / filter and then display it on video display object or stage ?
    Thanks,
    Jankrut

    to create a movieclip button:
    create a movieclip (insert/new symbol/movieclip) and attach a stop() to its first frame and label it "up".  create whatever graphics you want for the button movieclip's up-state.  create an "over" frame and, if needed, a "down" frame.
    when you place this movieclip button on-stage give it an instance name (say, printer1) and use:
    printer1.onRollOver=function(){
    this.gotoAndStop("over");
    printer1.onRollOut=printer1.onDragOut=function(){
    this.gotoAndStop("up");
    printer1.onPress=function(){
    this.gotoAndStop("down");
    // and add your onRelease to do whatever.
    if you also wanted to add a textfield that displays the button's instance name when the button is rolled-over, place a textfield on the "over" frame and give it an instance name (say tf) and attached to the movieclip's "over" frame use:
    tf.text=this._name;

Maybe you are looking for

  • Spool Request in job scheduling

    Hi All, I have scheduled one report in background. But in the spool I am not getting the display of the output in proper manner. The columns are displayed on two lines. Please tell me how can I get all the columns in one line. I tried by setting the

  • Integrate j2ee sdk 1.4 with netbeans

    Hi! I'm working on a Win2k server with j2ee sdk 1.4. I've read taht you can integrate it with netbeans 3.6. I don't want to work with the netbeans 3.6 integrated Tomcat 5 server, but with the one from Sun because of some requirements at work (We've b

  • J1INCHLN-Post-Error

    Hi, When I am posting vendor challan in "J1INCHLN-Post" getting below erro "Number group not maintained for CO code IN07 section IN07 and business place 194I" I have checked setting I have maintained number ranges, but not find reason for peculiar er

  • Subcontracting challan reconcilation & re credit

    Hi, Please suggest me about Subcontracting challan reconcilation & re credit in case material is recieved after 180 days. how challan is handled & regarding credit what needs to be done. We can reverse challan & reconcile using j1ifq but what steps t

  • Searching pdfs in an internet knowledge center

    after creating pdfs and uploading them to our knowledge center we are unable to search on text. only the title and description is searched. how do you make pdf text, the whole document, searchable on a knowledge center?