Formula Field Outputs Junk Characters

Post Author: mgemmill
CA Forum: .NET
I have a formula that is concatenating string values within a group like so:
// in group header I have formula:
WhilePrintingRecords;
StringVar invoices;
invoices := ""
// in detail field I have formula:
WhilePrintingRecords;
StringVar invoices;
invoices := invoices + {data.INVOICENO} + ", "
// in group footer I have formula:
WhilePrintingRecords;
StringVar invoices;
Left(invoices,Length(invoices) - 2)
The output from this on the report is garbage data.  I have tried a number of things to rectify this: changed the font (same font shows up ok everywhere else), changed the data source (from integer to string and visa versa).  I've noted that the same thing happens with the "Page N of M" formula as well, so I'm thinking this may be a problem with the grouping or aggregate functioning within the report. I have 3 separate groups - SHIPPER, CONSIGNOR, CONSIGNEE (this is a shipping manifest) and I'm doing all my aggregating on the last group.  If I do a simple MIN and MAX aggregate on my INVOICE field the value shows up OK, except that it only shows the first value for the entire report and a COUNT always shows "1".
I'm using the version of Crystal Report that ships with VS 2005.
Any thoughts?

Hi,
  Have seen these things in debugging mode?
If 'YES' when it converts OTF to PDF it will show like that only.
IF 'NO'   may be probelm at this area...
Transfer the 132-long strings to 255-long strings
  LOOP AT it_pdf_output.
    TRANSLATE it_pdf_output USING ' ~'.
    CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
  ENDLOOP.
  TRANSLATE gd_buffer USING '~ '.
  DO.
    it_mess_att = gd_buffer.
    APPEND it_mess_att.
    SHIFT gd_buffer LEFT BY 255 PLACES.
    IF gd_buffer IS INITIAL.
      EXIT.
    ENDIF.
  ENDDO.

Similar Messages

  • Report Pdf output getting Junk characters for some boiler Plate fields

    Hi All
    For Dunning Letter Report registered in Oracle Applications,made changes in Column headings like added customer number as Kunde for German Letter
    but in pdf output it's appearing as junk characters even date field is happening like that. It's happening for German, Spanish, Italy and French Letters. Working ok for Netherlands, English.
    any input to fix this solution will be great
    Thanks
    Kamalakar.G

    Maybe you check the NLS_LANGUAGE-settings on the client where you "edit" the reports-definition.

  • Report Output in text giving junk characters

    Hi All
    I have created custom report in rdf file format. When running the report set output as PDF means its come good. Incase i will change report output as text means its shows lot of junk characters in output time .
    How can i will solve the issue
    Sample Text Output :
    (s7BTAN CHONG MOTOR ASSEMBLIES S(s0B
    <-(s7BNo: 249, Jalan Segambut, 51200 Kuala <-(s0B
    <-(s7BSTATEMENT OF ACC(s0B
    <-(s7BAS ON(s0B (s7B16-APR-13<-(s0B
    <-(s7BSupplier (s0BAFM MART SDN BHD <-(s7BSupplier Account N<-(s0B
    NO 6 JALAN SS 4C/5
    TAMAN RASA SAYANG
    TAMAN RASA SAYANG
    PETALING JAYA
    PETALING JAYA
    SELANGOR
    Malaysia-47301
    03-78048099 Document Cur Base Curr
    Docume Curre --------- ---------------
    nt Ref Num Doc T Tranx Due D !CurRa Deb Cred Deb Cred Balan
    (s7BOpen I(s0B
    *****TESTINGABC STD INV ***********MYR 456 456 456
    *****TESTING123 STD INV ***********MYR 1000 1000 1000
    (s7BTotal Pa<-(s0B (s7B0(s0B (s7B1456(s0B (s7B1456(s0B
    (s7BTotal Outstandin(s0B (s7BCurrent(s0B (s7B31 - 60 Days(s0B (s7B61 - 90 Days(s0B (s7BAbove 90 D(s0B
    (s7B1456(s0B (s7B0(s0B (s7B0(s0B (s7B0(s0B (s7B0(s0B
    Edited by: 993525 on Apr 16, 2013 10:25 AM

    Hi
    What is your database/application characterset? - AL32UTF8
    NLS_LANG : AMERICAN_AMERICA.WE8ISO8859P1
    concurrent request log file
    -------------------+
    XXTC Custom: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXTCM_SUPPLIER_SOA module: XXTC Supplier Statement
    Current system time is 16-APR-2013 10:40:18
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_VENDOR_NUM_FROM='2'
    P_VENDOR_NUM_TO='2'
    P_INVOICE_DATE_TO='2013/04/16 00:00:00'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_MALAYSIA.AL32UTF8
    Enter Password:
    Report Builder: Release 10.1.2.3.0 - Production on Tue Apr 16 10:40:19 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    446
    ------------- 1) PRINT   -------------
    Printing output file.
    Request ID : 607096      
    Number of copies : 0      
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 16-APR-2013 10:40:20
    Thanks Sanjay
    Edited by: 993525 on Apr 16, 2013 11:38 AM

  • Barcode related Template output Printing Junk characters  in XML Publisher

    Hi Gurus,
    Could you please help me out..
    I have a bar code related Template and registered to Concurrent Program(i.e. Report type as Executable) and i run the Program in PDF Output.
    I am using free "3 of 9 font" for Bar code in my template
    Problem Occurrence Procedure
    1) When i submit the Concurrent Program and Click the View Output Button
    2) the out put looks good with Bar code and Text in Table Format.
    3) when i assign a printer, while Concurrent Program Submission then the printer prints output with Junks Characters and no data in it.
    4) if i save the PDF Output file in Desktop and give print then it prints Good with barcode and text in Table Format.
    The main problem is when printer is assigned to the Concurrent Program while submission of Request then the Printer output is printing Junk Characters but through View Output Button in Request Window we get Barcode Output Good with data in it
    Could you please give me the Solution in Step by step Procedure
    It would be grateful to me..
    Thanks,
    Vijay

    Hi Schavali,
    Ours Database Server
    RDBMS : 10.2.0.4.0
    Oracle Applications : 11.5.10.2
    OS:- IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    If you are using UTF8, direct PDF printing is not supported. Has the barcode font been installed ?
    i am using free 3 of 9 bacode font..
    Could you please give me the step by step procedure for printing the Output with barcode labels..
    Thanks,
    Viajy

  • Junk characters in output print. Is it related to User profile?

    Hi friends,
    My user generated Invoices using MRRL and generated output using MR90.
    Spool created for these invoices. But in the print, we are getting some lines with junk characters. It looks like chinese characters.
    1. If I see the Spool print preview, still I see the junk characters. That means there is no problem with printer. And it should be a problem either with Output triggering or MR_PRINT form.
    Important this is that, user facing this problem from yesterday only. Earlier to that everything was fine.
    Are there any chances of this problem due to User profile?
    In MIR4 transaction, in the Header output messages. I find in the Menu Edit -> Repeat output. But this is disabled for me. How to enable this?
    Thanks in advance.
    Regards,
    AK

    Lesson learned: Always go and check SPAD (devices) if you face any printer issues. My issue was because the Basis has changed some settings in SPAD for LOCL device

  • Junk Characters in the Output of  Reports2.5

    I have created Report in Reports2.5 which is giving good output display
    But when I Register the Report in Oracle Apps & see output
    it shows Junk Characters in the place of Labels
    e.g. Revenue Report
    will come like sg0Revenue o7Report
    Can any-one give me the solution for this
    Regards / Shailesh ( [email protected] )

    This is probably due to the prt file that's being used to format the output. I'm willing to bet that the headings are in bold, and the prt file being used has includes some control characters to tell the printer to switch on and off bold - when you view the output file those are the characters you're seeing.
    To switch this off simply remove the control characters from the prt file being used.
    Hope this helps,
    Danny

  • PO custom XML report output shows junk characters

    Hi,
    One of our PO custom XML report's output(pdf) shows junk characters. when these junk characters are copied to any text editor, it shows correct text characters.
    Below are our environment  details:
    RDBMS: 10.2.0.
    Oracle E-Business suite: 12.0.6
    OS: Oracle Sun 10
    This is a clone system and the issue started after cloning
    Please suggest.
    Thank you.

    Hi,
    I would appreciate if any one has any suggestion on this issue.
    Thank You,
    Mohammed

  • UTL File output shows junk characters

    Hi,
    I have a interface where i'am displaying the details in a text file using the UTL package.
    The output is showing correctly but there are few junk characters at the end of the string like small boxes.
    Can anybody advice as why this is happening and how to fix it.
    Thanks in advance,

    Hi,
    I would appreciate if any one has any suggestion on this issue.
    Thank You,
    Mohammed

  • Report displaying Arabic characters in output as junk characters

    Hi
    We have few Arabic reports which are giving output as junk characters. Below are version details
    EBS Version : 11.5.10
    Reports : Oracle 6i
    Database : 10g
    Any pointers how to resolve this issue
    Thank You
    Arjun

    may be font is not available in client side
    or
    database is not configured unicode
    thanks
    mostafiz mitul
    Dhaka Bangladesh

  • Complete record to be deleted if any field consist of any JUNK characters

    Hi
    I have the data in a structure, from there some of the table fields are updating. Let's say
    Loop at itab into wa
        zvaluetab-field1 = ztable-wa-fil1.
        zvaluetab-field2 = ztable-wa-fil2.
        zvaluetab-field3 = ztable-wa-file.
        zvaluetab-field4 = ztable-wa-fil4.
        zvaluetab-field5 = ztable-wa-fil5.
        zvaluetab-field6 = ztable-wa-fil6.
        zvaluetab-field7 = ztable-wa-fil6.
        zvaluetab-field8 = ztable-wa-fil7.
    append wa to itab.
    end loop.
    modify zvaluetab from itab.
    Along with this I have fieldname called File_Name, which contains 12 chars length.
    1.  I want that file name need to be splitted and to be updated into zvaluetab in four other fields. Since these four fields are mandatory for updating the above fields. So, along with these fields the above 7 fields also to be updated.
    2.  Some time data will be having some special(junks) characters, If at all any field will have such junk characters then the whole record(4 +7 fields) need to be deleted.
    It is greatful for me if at all any one edits that above code and include's my requirment.
    Swara.
    Thanks much.

    Hi Swarna   ,
    If you want the file name need to be splitted and to be updated into zvaluetab in four other fields.
    you can use this syntax..
    SPLIT File_Name AT space INTO: str1 str2 str3 ..(other four fileds)
    If you are familar with that  junk characters in that string use string operations such as
    CO--Contains Only
    CS--Contains String
    CN--Contains Not Only
    CA-- Contains Any
    NA--Contains Not Any
    NS--Contains No String
    CP--COntains Pattern
    NP--No Pattern
    and find it ..
    Then check if that following field is junk
    Then delete that intenal table...
                                                       or  YOU CAN USE  FM
    SWA_STRING_SPLIT
    check the sample code :
    data : d_string type string.
    data: begin of i_inst occurs 0.
    include structure swastrtab.
    data: end of i_inst.
    call function 'SWA_STRING_SPLIT'
    exporting
    input_string = d_string
    max_component_length = 100
    tables
    string_components = i_inst
    exceptions
    max_component_length_invalid = 1
    others = 2.
    Hope this solves
    ALL The Best !!!
    Regards,
    Vinu.R

  • Junk Characters in Report Output(While redirecting the output to text file)

    While generating the report (Reports 9i) output to a text file, I get the report output that contains junk characters. The other output formats viz. pdf, rtf have no problem.
    Please share how to correct it.
    Thanks.

    Yes, the MODE is set to Character and DESFORMAT is set to DFLT.
    Still the problem exists.
    Any idea please?

  • Junk characters are displayed in report output

    Hi Gurus,
    We are facing an issue while generating a report developed in Oracle 10g, while fetching the data in one column the report is displaying junk characters although while running the query on the database the value is coming correct for the same column. We are writing the report data on the AIX and with the help of WEBUTIL the reports gets transferred on the client machine which is having windows XP as operating system. Although we have many reports running on the same concepts but only in this particular report the issue is coming.
    Our AS Version is 10.1.2.3.0
    OS Version is AIX 5.3
    Please provide some solution.
    Thanks in advance.
    Regards,
    Pradip

    Hi Roberto,
    Thanks for your reply.
    As per your suggestion , I had checked with both DB & AS both are same i.e.
    In DB it displays the value AMERICAN and for AS it displays NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    Please give some idea. Sometimes this report gives the right output and sometimes gives output having one column with junk character of CSV file.
    Regards,
    Pradip

  • Report displaying junk characters or Greek or some other language

    Hi All,
    I have one Custom report in PDF. It is a simple tabular report. When I run this report from Report Builder, it runs fine but when I register it in Oracle Apps and run it from there, it displays all the characters in Greek or some other language or junk characters. Sometimes it works if I change font. But its a trial and error. I dont understand why is it happening. This has happened with one of my other reports too. It worked when I changed the font and its size. This time it didnt work. Any clue how can I fix this issue?
    Any lead will be appreciated.
    Thanks,
    CAH
    Edited by: user638181 on Sep 3, 2009 7:05 AM

    Hi Hussein,
    We have similiar issue with our custom PDF reports. We are in the process of upgrading from 11.5.9 to R12.
    All these reports work fine in 11.5.9.
    Following are the details of our R12 environment:
    1) What is the application release? Application release is 12.1.1
    2) What is application/database characterset? Database - 11.1.0.7.0 and characterset is UTF8.
    3) Is this a text or bitmap report? What is the report language? - It is a text report and Language is English
    4) Do you use PASTA for printing? - Yes we do
    5) Do you get the correct printout if you print the concurrent request output file from the OS? - If I run the report from report builder directly, Yes. If from Oracle Apps, no.
    6) Expected output: "Days in Queue"
    Actual Output: when I copy and paste the output here it is showing correct. But on the report it is showing
    something like ∆Ωµ.....
    7) If I try changing the font, it works
    8) A different text field on the same report with the same font shows good.
    I would appreciate your help on this one.
    Thanks
    Vishnu

  • Oracle Report ouput is coming in english and junk characters

    Hi ,
    I am facing an issue with oracle report output in R12.
    The Report out is coming in english and junk characters.
    this report is custom report.
    Migrated from 11i to r12 instance.it is working fine in 11i with output as PDF.
    Sample out put is attached.

    Pl see if MOS Doc 1321874.1 is relevant

  • Junk characters like" � � "displayed in the jsp page please help.

    Hi,
    I am getting junk characters like � � displayed in the jsp page.
    In the JSP page i used javascript "& nbsp" for appending spaces to a string "CCR" to get "CCR " .
    Now the Resultant string "CCR " has three spaces appended to its right.
    This String is set in session in that JSP page.
    In the next JSP page i am getting that string from session.
    After getting the string the "substring" function is performed to get only the first 5 charcters of the string. Now the result is displayed as " CCR� � " with has last 2 characters as junk values � � insteed of displaying as "CCR ". Please help me in solving this issue.
    Please note that initially the sting "CCR" is got from the Oracle database in Solaris Machine.
    Regards,
    Vijay

    have you tried:
    strenuously inspecting the string that is coming from the db? do an actual loop over the string, character by character, dumping to System.out to make sure the characters are EXACT coming out of the db.
    note you have to append " " not just "& nbsp"
    post the code that is doing the output. the relevant bean code, the jsp, everything relevant - WITH COMMENTS discussing where things are happening.
    Also, is it "weird characters" in the browser only? have you done a view source on the actual html source that the browser is rendering (right click in IE and click view source). browsers can act odd if you don't feed then exactly what they want, and it looks like you're feeding it escaped characters that it is rendering as something else.

Maybe you are looking for