Problem in converting SI to char with 'FLTP_CHAR_CONVERSION_FROM_SI'

hi friends i am using following code in one of my program but the output is comming as
I have checked in the debugging mode.
REPORT  ZTEST5.
data : hexvalue like IMRG-RECDV,
      charval(4) type c.
hexvalue = '2.6000000000000000E+04' .
          CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
          EXPORTING
          char_unit = 'EA'
          unit_is_optional = 'X'
          decimals = 0
          exponent = 0
          fltp_value_si = hexvalue
          indicator_value = 'X'
          masc_symbol = '_'
          IMPORTING
          char_value = charval
          EXCEPTIONS
          no_unit_given = 1
          unit_not_found = 2
          OTHERS = 3.
         write : 'charvalue',charval.
i have to use char value further.Please guide me where is the problem

Hi Achal,
If it is solved, pl. mark is as closed/solved.
Regards,
Maharshi.

Similar Messages

  • Not able to convert date in char with interval

    When i run below
    SQL> select to_date('20120229','YYYYMMDD') + interval '1' day from dual;
    TO_DATE('
    01-MAR-12
    How can i change this output to YYYYMMDD format.
    Desired output - *20120301*
    I tried with to_char making on above query,It didn't work !

    Hi,
    Not really a SQL Developer tool question. Next time, please try the SQL and PL/SQL forum in the Oracle Database section:
    PL/SQL
    But this will do the trick:
    select to_date('20120229','YYYYMMDD') + interval '1' day from dual;
    select to_char(to_date('20120229','YYYYMMDD') + 1, 'YYYYMMDD') as mydateformat from dual; produces this
    TO_DATE('20120229','YYYYMMDD')+INTERVAL'1'DAY
    01-MAR-12                
    MYDATEFORMAT
    20120301     Regards,
    Gary
    SQL Developer Team

  • Question: Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages? - Problem: I have 1400 e-mails with attachments that need to be conv

    Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
    - Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
    System: PC Windows 7 using Acrobat X Prof. - Thank you!

    Hi ,
    There is an option of embedding index for faster search while converting email to a PDF .
    However I am not sure that will serve your purpose or not .
    I would recommend you to get in touch with Microsoft support as well .
    Meanwhile I'll work on it and get back to you in case I get a desired solution .
    Regards
    Sukrit Dhingra

  • Problem in converting char * to java objects

    Hi All,
    When I am trying to compile the following JNI code, I am getting the under-mentioned errors.
    <code>
    JNIEXPORT jboolean JNICALL Java_XXXAPI_nativeCheckSomeAccess
    (JNIEnv *jnv, jobject jobj, jstring fresource, jstring uname){
         jboolean accessible;
         int     ierror;
         // convert jstring to char pointers
         const char resname = (jnv)->GetStringUTFChars(jnv, fresource, 0);
         const char u = (jnv)->GetStringUTFChars(jnv, uname, 0);
         // pass parameters and check access
         int canAccess = checkSomeAccess(resname, user, &ierror);
         if(!ierror && canAccess == 1)
              accessible = true;
         else
              accessible = false;
         // release variables from JNI environment
         (*jnv)->ReleaseStringUTFChars(jnv, fresource, resname);
         (*jnv)->ReleaseStringUTFChars(jnv, uname, u);
         return accessible;
    the checkSomeAccess in "someCfile.h" actually looks like this:
    int checkSomeAccess(char resname, char u, <enumeration> *ptr_to_enum_containing_integers);
    </code>
    When compiled the code... I am getting the following errors:
    some_jni.c: In function `Java_XXXAPI_nativeCheckSomeAccess':
    some_jni.c:65: warning: passing arg 1 of `checkSomeAccess' discards qualifiers from pointer target type
    some_jni.c:65: warning: passing arg 2 of `checkSomeAccess' discards qualifiers from pointer target type
    some_jni.c:65: warning: passing arg 3 of `checkSomeAccess' from incompatible pointer type
    some_jni.c:67: `true' undeclared (first use in this function)
    some_jni.c:69: `false' undeclared (first use in this function)
    Please tell me, what is the problem here.
    thank you,
    Ran.

    Hi All,
    How to convert an enum in C to Java-JNI ? I have the following enum defined in C.
    typedef enum{
        ERR_NOERROR=0,
        ERR_INTERNAL,
        ERR_NOOBJECT,
        ERR_INVALIDOBJ,
    }error_t;I am using this enum in my C function (in the header file) as:
    int isSuccess(char* some_name, error_t *error);Now, while writing the JNI implementation for this, I have actually passed an integer which is giving compile time warning:
    int result;
    char *sn = (char*)(*env)->GetStringUTFChars(env, jstring_val, 0);
    int errorCode;
    result = isSuccess(sn, &errorCode);I would like to know, how to represent the enum type in JNI. It would be grateful If you provide an example code snippet.
    thanks in advance,
    Ran.

  • Problems porting a legacy C++ library with "const char *"

    I need some help, i'm trying to "port" a legacy Windows C++ library into a Windows Runtime Component Static Library.
    I am getting hundreds of errors of the this type:
      argument of type "const char *" is incompatible with parameter of type "const wchar_t *"
    Short of a global edit, is there a better solution for this?

    Without context it's hard to say. Depending on what the library does you may be able to provide an interface on the edge which takes wchar_t*s and converts them to char*s then calls the internal functions.

  • Performance question when compare date with date or char with char

    Hello from Germany (Frankfurt) !
    I am working on Oracle 9.2.0.8.0
    and have to solve following problem:
    Comparison of a date and char fields.
    Now two ways to do it.
    Either I compare char with char and convert date to char,
    or I compare date with date and convert char to date.
    Now the performace question. Which operation takes more effort for the database?
    So why not to try and to see the results?
    First create table:
    CREATE TABLE TEST (
    char_date VARCHAR2(8),
    real_date DATE
    NOLOGGING;
    Then insert 1.000.000 rows
    BEGIN
    for x in 1..1000000
    loop
    insert into test (char_date, real_date) VALUES('19990101', TO_DATE('2006.01.01', 'YYYY.MM.DD'));
    end loop;
    COMMIT;
    END;
    Collect statistics
    EXEC dbms_stats.gather_table_stats('TESTER', 'TEST');
    Now run some selects for date to char conversion:
    Elapsed: 00:00:00.00
    SQL> select * from test t where TO_DATE(char_date, 'YYYYMMDD') > real_date;
    no rows selected
    Elapsed: 00:00:03.02
    SQL> select * from test t where TO_DATE(char_date, 'YYYYMMDD') > real_date;
    no rows selected
    And some selects for char to date conversion:
    Elapsed: 00:00:03.02
    SQL> select * from test t where char_date > TO_CHAR(real_date, 'YYYYMMDD');
    no rows selected
    Elapsed: 00:00:02.05
    SQL> select * from test t where char_date > TO_CHAR(real_date, 'YYYYMMDD');
    no rows selected
    Elapsed: 00:00:02.05
    SQL>
    As you see when I compare char with char and convert date to char it seems to be faster (almost 1 second)
    Is the test correct?
    I still not sure, what gets better performance...
    Any idea?
    Thanks!

    Depends on whether you want the right results or not.
    Why don't you run the following two queries and see if the difference in results tells you anything?:
    with t as (select to_date('01/02/2007', 'dd/mm/yyyy') date_col from dual
               union all
               select to_date('02/02/2007', 'dd/mm/yyyy') from dual
               union all
               select to_date('03/02/2007', 'dd/mm/yyyy') from dual
               union all
               select to_date('03/03/2006', 'dd/mm/yyyy') from dual)
    select *
    from   t
    where  date_col < to_date('04/03/2006', 'dd/mm/yyyy');
    with t as (select to_date('01/02/2007', 'dd/mm/yyyy') date_col from dual
               union all
               select to_date('02/02/2007', 'dd/mm/yyyy') from dual
               union all
               select to_date('03/02/2007', 'dd/mm/yyyy') from dual
               union all
               select to_date('03/03/2006', 'dd/mm/yyyy') from dual)
    select *
    from   t
    where  to_char(date_col) < '04/03/2006';

  • Groupwise API and Chars with Accents

    All,
    Having problems with API import of users from a ldap extract from another
    email system. The API file placed into the API_IN dir works without any
    problems except International chars appear as ?.
    Checking a working Exchange - GroupWise connector I found the chars are
    replaced with \\ and then a normal ascii char. The API then converts this
    normal char to the correct international char.
    Trying to find more information on the conversion the API is using or a
    table showing ascii chars to API Chars.
    Thanks,
    Craig

    The API docs specifically warn you not to use the API GW to create users,
    for this among other reasons. (synch of eDirectory)
    "Craig Cram" <[email protected]> wrote in message
    news:Opbeh.11364$[email protected]..
    > All,
    >
    > Having problems with API import of users from a ldap extract from another
    > email system. The API file placed into the API_IN dir works without any
    > problems except International chars appear as ?.
    >
    > Checking a working Exchange - GroupWise connector I found the chars are
    > replaced with \\ and then a normal ascii char. The API then converts this
    > normal char to the correct international char.
    >
    > Trying to find more information on the conversion the API is using or a
    > table showing ascii chars to API Chars.
    >
    > Thanks,
    > Craig
    >
    >

  • Convert Float to Char

    Hi,
    I'm having problem when converting a float variable to char - it seems like the float value is automatically rounded into the char variable, but I don't want that.
    Does anybody know a wafunction or a way of avoiding this convertion round?
    Thanks,
    Nuno Afonso

    With the input parameters you gave me...
    Error in ASSIGN: Memory protection error
    The current program "SAPLSCFL " uses the ASSIGN statement. 
    However, the offset of the segment (536) plus the length (1)
    is greater than the length of the segment (536).           
    This is not allowed.                                       

  • Really bad banding and artifacts in 16-bit layered greyscale file. Bad banding is retained when converted to 8-bit with No flattening. Flatten 16-bit image and banding and artifacts disappear even with no dither or noise layer. Is this a known bug?

    Has anyone else experienced this?
    I thought it was a monitor problem at first, but I'm using a 10-bit per channel Eizo. It seems to be a Photoshop bug based on many layers interacting with each other. When I flatten everything is fine. But I need to work on this image with layers and decent fidelity. Interestingly when I convert to 8-bit without flattening (and utilising the dither function to potentially reduce banding even further), it uses the terrible artifact laden/banding to do the conversion even though when I zoom into 1:1 in my 16-bit document it looks fine. But 50% or 25% zoom I suddenly get these awful artifacts.
    Here's some screenshots to clarify. Please note I've used Photoshop for 24 years so I'm no slouch but this is the first time I've seen this. The problem is I need to do some subtle airbrush and texture work on this and it's almost unusable unless I flatten (please note, it does the same in the original 8-bit file and just to say I Gaussian-Blurred every layer with a 30px radius after converting to 16-bit so the there's no longer any 8-bit information in there or reasons for banding/artifacts). I can only think it is some of bug in Photoshop's layering engine.
    Has anyone seen this before - dealt with this before?
    Thanks in advance.
    Not sure these embedded images will work.
    8% zoomed - see all the strange banding and triangular artifacts
    <a href="http://imgur.com/izrGuia"><img src="http://i.imgur.com/izrGuia.png" title="source: imgur.com" /></a>
    Flattened view - all smooth:
    <a href="http://imgur.com/Pn35IAK"><img src="http://i.imgur.com/Pn35IAK.png" title="source: imgur.com" /></a>
    50% zoom, still there:
    <a href="http://imgur.com/Z207hFd"><img src="http://i.imgur.com/Z207hFd.png" title="source: imgur.com" /></a>
    100% artifacts disappear:
    <a href="http://imgur.com/6aGOz0V"><img src="http://i.imgur.com/6aGOz0V.png" title="source: imgur.com" /></a>
    100% 16-bit layered
    <a href="http://imgur.com/0XJfe5e"><img src="http://i.imgur.com/0XJfe5e.png" title="source: imgur.com" /></a>
    and finally 8-bit layered converted from 16-bit with dither.
    <a href="http://imgur.com/PSxiu43"><img src="http://i.imgur.com/PSxiu43.png" title="source: imgur.com" /></a>
    help!

    I can't speak to why, perhaps someone more knowledgeable than I can speak to that.   But if it only happens at certain views then it's purely a display issue; it won't happen in print or when you downsample to display size.  Such banding issues have always disappeared for me when I output to 8 bit.
    I'd assume that it's because of your monitor; it can't display all the colors and when zoomed out there's too wide of a range in a small area so banding occurs.  But that's just my guess.

  • Problem in converting Spool Request into PDF format

    Hi,
      I am facing problem to convert spool request (which store output of sap script) in to PDF format. Actually I have converted it with function module 'CONVERT_OTFSPOOLJOB_2_PDF' and it is working properly but the problem occurs where the BOLD fonts are used. I am unable to see the Text/Address where i have used Bold Font in script (PDF FORMAT). Even though in (SPO1) spool request shows every thing perfectly (along with Bold Font). It will great if you could suggest me something.
    Thanks,
    Pradeep

    Hi Pradeep,
    Use ,
    Closing the Sapscript, we save data (OTF) in a table
    CALL FUNCTION 'CLOSE_FORM'
    TABLES
    otfdata = t_otfdata
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    OTHERS = 5.
    DATA: BEGIN OF t_otfdata2 OCCURS 0.
    INCLUDE STRUCTURE solisti1.
    DATA: END OF t_otfdata2.
    Move OTF data to another table with lenght 255
    LOOP AT t_otfdata.
    CONCATENATE t_otfdata-tdprintcom t_otfdata-tdprintpar INTO t_otfdata2.
    APPEND t_otfdata2.
    ENDLOOP.
    Convert OTF format to PDF
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = 'OTF'
    format_dst = 'PDF'
    devtype = 'PRINTER'
    FUNCPARA =
    len_in = len_in
    IMPORTING
    len_out = len_out
    TABLES
    content_in = t_otfdata2
    content_out = t_pdfdata
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    Have a look at Progs. RSTXPDF4 and RSTXPDFT2 for converting the Spool to PDF.
    Regards,
    Raj
    Message was edited by: Rajasekhar Dinavahi
    Message was edited by: Rajasekhar Dinavahi

  • Problem in converting Spool to PDF file, having non-English characters

    Hi All,
            I have problem in converting Spool to PDF format.
    Scenario : I have a spool which has non-English characters. I am using CONVERT_ABAPSPOOLJOB_2_PDF  FM to perform conversion. But my output is having junk values( ie # ) for non-English characters. Any pointers to solve this issue will be appreciated.
    I even tried with report RSTXPDFT4 , it also gives me the same junk characters.
    Regards,
    Navin.

    Hi All,
            I have problem in converting Spool to PDF format.
    Scenario : I have a spool which has non-English characters. I am using CONVERT_ABAPSPOOLJOB_2_PDF  FM to perform conversion. But my output is having junk values( ie # ) for non-English characters. Any pointers to solve this issue will be appreciated.
    I even tried with report RSTXPDFT4 , it also gives me the same junk characters.
    Regards,
    Navin.

  • Hyperlink problem when converting Word to PDF

    Hi everyone.
    I am using Adobe Acrobat 7.0 Standard version 7.1.4 on a Windows 2000 environment.
    I am using Word XP/2002 SP3.
    I have a couple of problems when converting Word to PDF.
    When converting a long link which is in 2 lines, PDF just takes one line into account, not considering the whole link
    When I have hyperlinks that links to a web page, the link works fine in Word but in pdf, it gets the few words after the url address making the link not work.  For example.  I have a hyperlink that http://www.google.com/ and after this I have the words: "This is a sample text".  The hyperlink in pdf would then become http://www.google.comThisisasampletext
    Do you have any ideas how I can correct this?
    Thanks.

    To get the cross references, you have to use Convert to PDF (PDF Maker part of the Acrobat product). However, you first need to go to the print menu and set the printer to the Adobe PDF printer. Close the print menu and then do a reflow and link update of the document (ctrl-A, then F9 I think). This is needed to get the links correct since WORD reflows the document based on the printer (problem with them going to the wrong place).
    Printing to the Adobe PDF printer (the step of print to file is not needed, just print to the printer and the rest is automatic) does not include the links. PDF Maker is a PreProcessor for the Adobe PDF printer that adds PDF Marks to the PS file before it is sent to Distiller (OK, the printer when used normally creates a PS file and then invokes Distiller to complete the process - your steps did with the Adobe PDF printer is the same process done manually).
    Summary:
    1. Fix document after setting the printer to Adobe PDF.
    2. Use PDF Maker (create PDF button)

  • Problem in converting spool to pdf

    Hi Experts,
    I want an internal table to be converted to the PDF. For this RSPO_OPEN_SPOOLREQUEST, RSPO_WRITE_SPOOLREQUEST and RSPO_CLOSE_SPOOLREQUEST to create the spool. However, somehow the table tsp01 does not gets updated as a result i could not convert the data to PDF. Can any one help me how this problem could be solved.
    Thank.
    Warm Regards,
    Harshad.

    Hi,
    you can refer this sample code.
    DATA: t_otfdata_tab LIKE ITCOO OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'CLOSE_FORM'
    TABLES
    OTFDATA = t_otfdata_tab
    fill the exceptions..
    IF SY-SUBRC = 0.
    ENDIF.
    then pass the t_otfdata_tab to this function module..
    CONSTANTS: c_pdf(03) VALUE 'PDF'.
    PDF File size
    DATA: w_file_size TYPE I.
    Internal Table to hold Form contents in PDF format
    DATA: t_pdfdata_tab LIKE tline OCCURS 0 WITH HEADER LINE.
    for converting. the output format from OTF to PDF
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT eq c_pdf
    IMPORTING
    BIN_FILESIZE = w_file_size
    TABLES
    OTF eq t_otfdata_tab
    LINES eq t_pdfdata_tab
    EXCEPTIONS...
    use these links, hope it will be useful to you....
    Problem in converting spool to PDF file
    Problem in converting the spool to PDF.
    Thanks and Regards,
    Ahamed.

  • Converting MS Word docs with coloured bacgrounds to pdf

    Forgive an Acrobat 'dope' but this outwardly appears to be a simple problem ....... that I can't figure out!
    For work I am using Microsoft Office Word 2003 (MS Office Pro 2003) and Acrobat 8 Pro.  I have no problem converting an MS Word doc, with background or foreground images and text, into a pdf.  However, if I give any MS Word doc a coloured background, using the Format Menu > Background > and then selecting a colour, that colour is not carried across in the conversion to pdf - I end up with a standard white page, instead of the coloured one!
    Where am I going wrong?  Or is this coloured background something that Acrobat won't convert, whatever I do?  I don't wish to produce a 'pseudo' effect by placing a coloured image behind the text (which I know will work) because the pdf file sizes become larger than I want.  I want to 'colour the paper' using MS Word's menu, and convert to a pdf with that same 'coloured paper' being the result.  Is it possible?  If so, how?
    Thanks, in advance, for any help that may be available out there ......

    In WORD: TOOLS>Options>Print>Background Colors and Images (I already had background printing checked, but that refers to the printing process, not the background. Checking this other box does the trick. It is probably off by default to keep from using ink in regular printers.)

  • Problem in converting some images

    Hi all,
    I have a problem when converting a word document in pdf (using acrobat 9). If i use the standard settinings, everything works fine. If I use personalised options to mantain bookmarks and links in the final pdf, some images (png) after the conversion appear with some black stripes on top of them.
    Does someone encountered the same problem?
    Thank You!

    Sorry for the delay in my response. I was on vacation.
    I tried following code (giving the type as related). But still it didn't work out :(
    I am sure i am doing some silly mistake. I guess mistake is in how i use cid:imageDo i need to use four unique cid tag if i attach four images? If yes can someone help me how? Thanks
    MimeMultipart multiPart = new MimeMultipart("related");
    MimeBodyPart msgBody = new MimeBodyPart();
    String htmlText = content+"<H1></H1><img src=\"cid:image\">";
    msgBody.setContent(htmlText, "text/html");
    multiPart.addBodyPart(msgBody);
    File folder = new File("./result");
    File[] listOfFiles = folder.listFiles();
    for (int i = 0; i < listOfFiles.length; i++)
    MimeBodyPart attachmentPart = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(listOfFiles.getAbsolutePath());
    attachmentPart.setDataHandler(new DataHandler(fds));
    attachmentPart.setFileName(listOfFiles[i].getName());
    attachmentPart.setHeader("Content-Type", "image/png" );
    //attachmentPart.setDisposition("inline");
    attachmentPart.setHeader("Content-ID","image"+i);
    mp.addBodyPart(attachmentPart);
    System.out.println("Attached the file " + listOfFiles[i].getAbsolutePath());
    mess.setContent(multiPart);

Maybe you are looking for

  • How to connect my BBZ10 to a PPPoE wireless internet?

    Hi, I have an ADSL PPPoE wireless internet connection to which I'm not able to connect my BB Z10? My internet provider says I cannot connect mobiles to PPPoE dial up connection? Also I tried to connect to my cousin's hotspot which I could not not est

  • MDM ABAP API.

    Hi All, We have installed MDMTECH_554_700 on our 2004s. We also configured all post installation steps like 1)MDM Repositories 2)MDM Server Connections 3)Mdm Dbms Hosts 4)ABAP Implementation for MDM Version Support 5)MDM API Trace Configuration. It s

  • Costco ICC profiles

    Does anybody know how to install Costco ICC profiles in light room three

  • 500 Internal Sever Error...rejected by he HTTP filter

    Hi All, I'm new to OBIEE 11g (so bear with me) and running into an issue with action links and looking for help. I have an action link on a dashboard which navigates to BI content, specifically a Pivot Table Analysis. When I select this link I'm gett

  • Serial number won't work reinstalling Adobe Acrobat Pro X

    I purchased CS6 Design and Web Premium which includes Adobe Acrobat Pro X. I've had continuing problems using Acrobat, so I decided to reinstall it. I was able to download it, but when I enter my serial number it tells me it's invalid. I'm copying it