CR2008 exports to editable word -- carriage return on each line

Hi,
I exported a CR2008 report to "editable" WORD format.  However, we found there is a "carriage return"(CR)  at the end of each line which is not expected in a paragraph, is this the normal behavior of Crystal Report, is there a workaround ?
Any idea and suggestion is appreciated. Thanks.
Regards,
Gloria

Hi Gloria
Can you please update us with the following information:
What is the database that you are using and its version?
What is the field type?(String,memo,..etc.)
Have you installed Service Pack 1 for Crystal Reports 2008?
Regards
Ashwini Yadav

Similar Messages

  • Using a Macro to add a Carriage Return after each data entry within all cells of an imported range of cells

    I have a macro that copies data from a Target workbook then pastes the data into a destination workbook.  I then wish to use lookups in the destination workbook to view specific data from the pasted range of data on a separate sheet. 
    The problem is, the cells that contain numbers from the pasted data have the green dogeared error flags associated with the cell. The only way I can make a lookup function work, is to go to each cell and manually enter a carriage return after each entry. 
    The code for the macro is given below.  What can be done so that the pasted data contains no errors associated with the number cells?  Or can a second macro be written to clean the data.  If so can you help me out?  Thanks in advance.
    Kindest Regards
    Sub ImportData()
     ' ImportData Macro allows user to select an Excel workbook (i.e. Orchestrate Excel Output),
     ' then copy & paste it into the MediaSpreadsheet.
        Dim wbk As Workbook
        Set wbk = Application.Run("MediaSpreadsheet_1.0.xlsm!OpenFile")
        If wbk Is Nothing Then
            Beep
            Exit Sub
        End If
        Set wbk = ActiveWorkbook
        Range("A9:S116").Copy
        Workbooks("MediaSpreadsheet_1.0.xlsm").Activate
        Sheets("OrchestrateData").Select
        Range("A1").Select
        ActiveSheet.Paste
        With Selection.Font
            .ColorIndex = xlAutomatic
            .TintAndShade = 0
        End With
        With Selection.Interior
            .Pattern = xlNone
            .TintAndShade = 0
            .PatternTintAndShade = 0
        End With
        Selection.Borders(xlDiagonalDown).LineStyle = xlNone
        Selection.Borders(xlDiagonalUp).LineStyle = xlNone
        Selection.Borders(xlEdgeLeft).LineStyle = xlNone
        Selection.Borders(xlEdgeTop).LineStyle = xlNone
        Selection.Borders(xlEdgeBottom).LineStyle = xlNone
        Selection.Borders(xlEdgeRight).LineStyle = xlNone
        Selection.Borders(xlInsideVertical).LineStyle = xlNone
        Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
        wbk.Close
        Sheets("MediaSchedule").Select
    End Sub
    DAPulliam64

    Hi DAPAugust64,
    The green "dogeared error flags" of the cells means that you paste numbers in these cells, but they're formated as Text.
    So you need to change the cells back to the correct format so that the lookup function works fine. You can simply call this method after pasting:
    ActiveSheet.Cells(1, 1).NumberFormat = "General"
    ActiveSheet.Cells(1, 1) = ActiveSheet.Cells(1, 1).Text
    Or use PasteSpecial method to paste the numbers as well as it's format:
    https://msdn.microsoft.com/en-us/library/office/ff837425.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • File sender  - carriage return and new line as endseparator

    Hi All,
    I'm stumbled with a problem to set carriage return and newline character as the endseparator (record delimiter)
    Scenario: The input file PI is receiving has got few fields which has text in it and the content in this text has got newline characters. So to identify record separator, at  the end of each record the combination of carriage return and new line is added.
    In file sender content conversion I've set the folllowing parameters to achieve this:
    Row.fieldSeparator :   ,  (comma)
    Row.endSeparator  :  '0x0D''0x0A'
    Problem: In my sample input file, the first row has a text field with a newline character. When executed PI is splitting the record at the newline character in the text field (instead of combination of carriagereturn and newline which is set in the endSeparator paramter).
    Pls advice on how to resolve this .
    Happy Holidays!!
    amar

    Rajesh..Thanks for your quick response
    I'm trying with the actual file being provided by the trading partner. I did not generate the file nor changed the file..
    Before identifying the combination of carraige return and new line, the adapter is splitting the record when encountered with new line character within one of the text fields.
    As you said it worked for you, you do have new line characters within fields in a record?..pls throw some light..let me know for any information..
    Thank you
    amar--

  • Pasring multiple fields into the Description field with a carriage return between each in Orchestrator

    I have a Service Request that is entered in through the Self Service Portal.  This service request has 4 different prompts in the Request Offering.
    This will actually eventually become a Change Management Request.
    What I would like to do, is grab the 4 User Inputs, and place them in the Description field of the Change Management Request.  I can get them to show up in the Description, however, I would like to be able to add a carriage return between each User
    Input (along with a description of what's being put in).  How can I do that?
    Right now, it looks like this Username: Name Manager: Manager
    Start Date: Start Date Needs Mail?: Y or N
    I want it to look like this:
    Username: Name
    Manager: Manager
    Start Date: Start Date
    Needs Mail?: Y or N

    Thank you.  This is what I was looking for.
    For those figuring out what to do:
    Add the Run .Net Script command to your Runbook.
    Under Details, selec PowerShell for the Type, and in the Script $Desc = "Username:
    Username field from the Published Data" + "`n" + "Manager: Manager field from the Published Data" + "`n" + "Start Date:
    Start Date field from the Published Data" + "`n" + "Needs Mail:
    Needs Mail field from the Published Data"
    ($Desc is just the variable I used, and can be whatever you want)
    Under Published Data, Add the field you want to output and make the Variable name what you used above without the $
    Then do Update Object and Update the Description with the published data from your PowerShell Command.
    I do this, and my data is passed successfully and it shows up in my notifications, however the carriage returns are not there. It looks the same as it did before I added the powershell right before Update Object. 
    ? Anybody else not getting this to work ? 

  • How to find a specific word in sentence in each line?

    How to find a specific word in sentence in each line and output will show start from the beginning from specific word plus with small description from each sentence?
    For example: I need to find a "+Wednesday+" and "+Thursday+" word in each sentence by line by line from "myfile.txt".
    Go ballet class next Wednesday.
    On the Wednesday is going to swim class.
    We have a meeting on Thursday at Panda's.
    Then it will show the output:
    Wednesday : ballet class
    Wednesday : swim class
    Thursday: meeting at Panda's
    I am going to figure out in Java console to read from a file for specific word from each line and how to make it output in correct way. I know already to make input/file codes.

    I got it and understand much better. Thank you very much. There is a problem with it because I knew how to make
    a specific word in sentence but how I should make Output for specific word and some words from sentence.
    For example:
    Input:
    +"On Thursday go to ballet class"+
    +"Swim class on Friday one time a month at 2 p.m."+
    I used the codes for that:
    class FindSchedule{
         String firstline = "On Thursday go to ballet class ";
         String secondline = "Swim class on Friday one time a month ";
         FindSchedule(){
              System.out.println(firstline + findTheIndex("Thursday", firstline));
              System.out.println(secondline + findTheIndex("Friday", secondline));
         public int findTheIndex(String word, String sentence){
              int index;
              index = sentence.indexOf(word);
              return index;
         public static void main (String[] args){
              new FindSchedule();
    }The output will be:
    Thursday: ballet class
    Friday: 14:00 swim class one time a week
    Notice that time is changing in output complete different from input.
    I need to find out how to extract some words from each sentence for output. Do you know how to do it?

  • While printing from word appl. printer after each line puts in number of page,

    while printing from word appl. printer after each line puts in number of page, so I do not print 3 pages but 5 instead. What to do?

    What printer models is this intended for?  I assume it is aimed at the lower end inkjets, with the suggestion of loading 10-25 sheets of paper.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Pdfs created on my iMac add hidden carriage returns after each word

    Hello Community,
    This problem exists on my iMac but not my wife's Powerbook.
    Whenever I created a pdf from Preview by printing and then selecting "save as pdf" I got a lovely looking pdf which I could send to anyone and they could view just fine.  However, if I or anyone else selected text from that pdf and pasted it into any other program, it came out with an exclamation point instead of the space between words which is, needless to say, quite undesirable.  Searching around, one thing that was suggested was clearing the font cache so I did this (several times).  It did indeed make a difference:  now instead of exclamation points a carriage return appears after every word!  Once again the pdf looks just fine, but when you copy and paste text from the pdf into any other text program this happens.
    So then I downloaded Adobe Acrobat (the one month fully functional trial program) and made pdfs with this program to see if that was the problem but, no, the same thing occurs.  So it really seems to be a strange glitch in my iMac and my system?
    Any advice would be greatly appreciated.
    Best regards,
    ---Norm

    There is no Flash player version 15... as in your code:
    <param name="swfversion" value="15.0.0.0" />
    For some reason Adobe thought it would be a good idea to target a Flash player version (15) as default.....which may be out a couple years in the future. Go figure!!!
    If you don't like player version 9, change to 10 or 11.... just not 15 (yet).
    Best wishes,
    Adninjastrator

  • Search for a word and return all the  lines (row) from the text file..

    Hi all,
    I need a help on how to search a string from the text file and returns all the lines (rows) where the searched string are found. I have included the code, it finds the indexof the string but it does not return the entire line. I would appreciate your any help.
    public class SearchWord
         public static void main(String[] args){
         //Search String
         String searchText = "man";
         //File to search (in same directory as .class file)
         String fileName = "C:\\Workspace\\MyFile.txt";
         //StringBuilder allows to create a string by concatinating
         //multiple strings efficiently.
         StringBuilder sb =
         new StringBuilder();
         try {
         //Create the buffered input stream, which reads
         //from a file input stream
         BufferedInputStream bIn =
         new BufferedInputStream(
         new FileInputStream(fileName));
         //Holds the position of the last byte we have read
         int pos = 0;
         //Holds #of available bytes in our stream
         //(which is the file)
         int avl = bIn.available();
         //Read as long as we have something
         while ( avl != 0 ) {
         //Holds the bytes which we read
         byte[] buffer = new byte[avl];
         //Read from the file to the buffer
         // starting from <pos>, <avl> bytes.
         bIn.read(buffer, pos, avl);
         //Update the last read byte position
         pos += avl;
         //Create a new string from byte[] we read
         String strTemp =
         new String(buffer);
         //Append the string to the string builder
         sb.append(strTemp);
         //Get the next available set of bytes
         avl = bIn.available();
         catch(IOException ex) {
         ex.printStackTrace();
         //Get the concatinated string from string builder
         String fileText = sb.toString();
         int indexVal = fileText.indexOf(searchText);
         //Displays the index location in the file for a given text.
         // -1 if not found
         if (indexVal == -1)
              System.out.println("No values found");
         else
              System.out.println("Search for: " + searchText);     }
    }

    Hi, you can use servlet class and use this method to get the whole line of searched string. You can override the HttpServlet to treat that class as servlet.
    public class ReportAction extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    //write your whole logic.
    BufferedReader br = new BufferedReader(new FileReader("your file name"));
    String line = "";
    while(line = br.readLine() != null) {
        if(line.contains("your search string")) {
            System.out.println("The whole line, row is :"+line);
    }

  • Carriage Returns in Discoverer Viewer 10

    Hi,
    I have a Discoverer 10g report based on a view, within the view one of the fields is defined as:
    , pvs.address_line1||Chr(13)||Chr(10)
    ||pvs.address_line2||Chr(13)||Chr(10)
    ||pvs.address_line3||Chr(13)||Chr(10)
    ||pvs.city||Chr(13)||Chr(10)
    ||pvs.state||Chr(13)||Chr(10)
    ||pvs.zip||Chr(13)||Chr(10)
    …this returns multiple values in a single fields with carriage returns after each line, IE:
    NASH HOUSE
    OLD OAK LANE
    LONDON
    NW10 6DH
    This works fine within the database and also in Discoverer 10 Plus, however in Discoverer 10 Viewer the same record is displayed as:
    NASH HOUSE OLD OAK LANE LONDON NW10 6DH
    Is it possible to ‘configure’ Discoverer Viewer to display carriage returns?
    Regards
    Carl

    Hello Marias,
    To disable the warning message, Connect to the Admin Edition and navigate to Tools -> privilege -> click Select button and provide the username and hit GO button.
    Now in the "Desktop and plus privileges" section uncheck the option "Save workbooks to Database" and apply it.
    This will remove the privilege only to that particular user. To remove this privilege from all the users, select the public role and revoke the privilege.
    Hope this helps,
    Gianluca

  • No carriage return

    Hello all,
    I used OPEN DATASET <filename> FOR OUTPUT IN TEXT MODE to create a text file, but when I look at the ouput, there was no carriage return after each line.
    Any idea why.
    Thanks,
    Ricky

    Here's the code, look at the FORM 'output_error_log'
    Thanks!
    REPORT  zclureconciledebt
    LINE-SIZE 132
    LINE-COUNT 000(03)
    MESSAGE-ID zz
    NO STANDARD PAGE HEADING.
    *INTERNAL TABLE - LOAD RECORDS FROM TEXT FILE
    DATA: BEGIN OF it_recs OCCURS 0,
           kunnr LIKE zclcrrptd-kunnr,
           belnr LIKE zclcrrptd-belnr,
           zzrty LIKE zclcrrptd-zzrty,
           zzsrc LIKE zclcrrptd-zzsrc,
           skip  TYPE flag,
           mess(64) TYPE c,
    END OF it_recs.
    DATA: wgf_idx TYPE syindex.
    DATA: BEGIN OF gt_err OCCURS 0,
           kunnr LIKE zclcrrptd-kunnr,
           belnr LIKE zclcrrptd-belnr,
           zzrty LIKE zclcrrptd-zzrty,
           zzsrc LIKE zclcrrptd-zzsrc,
           skip  TYPE flag,
           mess(64) TYPE c,
    END OF gt_err.
    DATA: wgf_rec_err TYPE flag.        "Record Error
    DATA: wgf_glb_err TYPE flag.        "Global Error
    TABLES:
      zclcrrptd, "DETAIL TABLE
      zclcustst. "CUSTOMER STATUS TABLE
                         SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK fileinfo WITH FRAME TITLE text-099.
    PARAMETERS: rb_reg RADIOBUTTON GROUP regr DEFAULT 'X'.
    PARAMETERS: rb_err RADIOBUTTON GROUP regr.
    PARAMETERS: p_file LIKE rlgrap-filename DEFAULT
      '/sapfs/sapftp/camftp/tsap/debt_extract_rec.txt'
      LOWER CASE OBLIGATORY.
    PARAMETERS: p_rename AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK fileinfo.
                         START OF SELECTION
    START-OF-SELECTION.
      PERFORM get_file.
      PERFORM get_document.
      LOOP AT it_recs WHERE NOT belnr IS initial.
        MOVE sy-tabix TO wgf_idx.                              "+DEVK970676
        PERFORM delete_zclcrrptd.
        PERFORM delete_status.
        PERFORM commit_work.
      ENDLOOP.
      IF NOT p_rename IS INITIAL.
        PERFORM file_rename.
      ENDIF.
      PERFORM error_log.
      PERFORM output_error_log.
    END-OF-SELECTION.
                         FORMS
    *&      Form  get_file
          text
    -->  p1        text
    <--  p2        text
    FORM get_file.
      DATA: wlf_string(500) TYPE c,
            wlf_start TYPE i,
            wlf_stop TYPE i,
            wlf_temp(10) TYPE c.
    Open Mainframe File
      OPEN DATASET p_file IN TEXT MODE.
      IF sy-subrc <> 0.
        MESSAGE e003(zz) WITH p_file.
        STOP.
      ENDIF.
      IF NOT rb_reg IS INITIAL.
      Regular Run - Get records AS PER METRO2 FILE DEFS.
        DO.
          READ DATASET p_file INTO wlf_string.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          wlf_temp =  wlf_string+421(10).
          OVERLAY wlf_temp WITH '0000000000'.
          CLEAR: it_recs.
          it_recs-kunnr = wlf_temp.
          it_recs-zzsrc = wlf_string+432(21).
          it_recs-zzrty = wlf_string+455(4).
          APPEND it_recs.
          CLEAR it_recs.
        ENDDO.
      ELSE.
      Open Error File (from previously failed MF run)  +DEVK968120|
        DO.
          READ DATASET p_file INTO wlf_string.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          CLEAR: it_recs.
          it_recs-kunnr = wlf_string(10).
          it_recs-belnr = wlf_string+10(10).
          it_recs-zzrty = wlf_string+20(4).
          it_recs-zzsrc = wlf_string+24(21).
          APPEND it_recs.
          CLEAR it_recs.
        ENDDO.
      ENDIF.
    ENDFORM.                    " get_file
    *&      Form  delete_zclcrrptd
          text
    -->  p1        text
    <--  p2        text
    FORM delete_zclcrrptd.
      DATA: wlf_rc TYPE sysubrc.
    Clear record error variable (used later for commit work)
      CLEAR wgf_rec_err.
      CLEAR wlf_rc.
    DELETE RECORDS FROM DETAIL TABLE
      DELETE FROM zclcrrptd WHERE
      kunnr = it_recs-kunnr AND
      zzsrc = it_recs-zzsrc AND
      zzrty = it_recs-zzrty.
      IF sy-subrc <> 0.
      Capture return code
        MOVE sy-subrc TO wlf_rc.
      Set record level error variable
        wgf_rec_err = 'X'.
      Set global level error variable
        wgf_glb_err = 'X'.
      Job Log
        IF sy-batch = 'X'.
          MESSAGE i045(zz) WITH
          wlf_rc
         ' - Record could not be deleted from zclcrrptd-Customer/Document'
          it_recs-kunnr it_recs-belnr.
        ENDIF.
      Spool
        WRITE :/ 'ERROR - Record could not be deleted from zclcrrptd',
              it_recs-kunnr, it_recs-belnr, ' RC:', wlf_rc.
      Note record should be skipped.
        WRITE wlf_rc TO it_recs-mess.
        CONCATENATE it_recs-mess
                    ' - Record could not be deleted from zclcrrptd'
                    INTO it_recs-mess.
        it_recs-skip = 'X'.
        MODIFY it_recs INDEX wgf_idx.
    DEVK970676 - Remove
    ELSE.
       WRITE :/ 'RECORD DELETED FROM ZCLCRRPTD', it_recs-kunnr,
                 it_recs-belnr.
      ENDIF.
      CLEAR wlf_rc.
    ENDFORM.                    " delete_zclcrrptd
    *&      Form  DELETE_STATUS
          text
    -->  p1        text
    <--  p2        text
    FORM delete_status.
      DATA: wgf_zclcustst_out_tab LIKE zclcustst OCCURS 1 WITH HEADER LINE.
      DATA: wlf_rc TYPE sysubrc.
    Skip Record?  (if error in previous processes)
      IF it_recs-skip IS INITIAL.
        CLEAR wgf_zclcustst_out_tab.
        CLEAR wlf_rc.
        wgf_zclcustst_out_tab-kunnr = it_recs-kunnr.
        wgf_zclcustst_out_tab-belnr = it_recs-belnr.
        wgf_zclcustst_out_tab-collstat = 'RE'.
        wgf_zclcustst_out_tab-ersda    = sy-datum.
        wgf_zclcustst_out_tab-expired  = 'X'.
      Mark status as deleted
        wgf_zclcustst_out_tab-xreason  = 'D'.
        wgf_zclcustst_out_tab-lstmodby = sy-uname.
        wgf_zclcustst_out_tab-lstmoddt = sy-datum.
        wgf_zclcustst_out_tab-lstmodtm = sy-uzeit.
        APPEND wgf_zclcustst_out_tab.
        CALL FUNCTION 'Z_COL_STATUS_SET'
             TABLES
                  cust_stat_tab      = wgf_zclcustst_out_tab
             EXCEPTIONS
                  foreign_lock       = 1
                  insert_error       = 2
                  invalid_status     = 3
                  document_missing   = 4
                  document_not_blank = 5
                  invalid_customer   = 6
                  OTHERS             = 7.
        IF sy-subrc <> 0.
        Capture return code
          MOVE sy-subrc TO wlf_rc.
        Set record level error variable
          wgf_rec_err = 'X'.
        Set global level error variable
          wgf_glb_err = 'X'.
        Job Log
          IF sy-batch = 'X'.
            MESSAGE i045(zz) WITH wlf_rc
            ' - RE Status could not be deleted - Customer/Document '
            it_recs-kunnr it_recs-belnr.
          ENDIF.
          WRITE: / 'ERROR - CANNOT DELETE/REMOVE RE STATUS', it_recs-kunnr,
                   it_recs-belnr, ' RC:', wlf_rc.
        Note record should be skipped.
          WRITE wlf_rc TO it_recs-mess.
          CONCATENATE it_recs-mess
                      ' - Cannot Delete/Remove RE Status'
                      INTO it_recs-mess.
          it_recs-skip = 'X'.
          MODIFY it_recs INDEX wgf_idx.
       DEVK970676 - Remove
       ELSE.
         WRITE: / 'STATUS DELETED', it_recs-kunnr, it_recs-belnr.
        ENDIF.
      ENDIF.
      CLEAR wlf_rc.
    ENDFORM.                    " DELETE_STATUS
    *&      Form  DISPLAY_OUTPUT
          text
    -->  p1        text
    <--  p2        text
    *FORM display_output.
    SKIP 2.
    WRITE:/'****RECORDS REMOVED FROM CREDIT REPORTING***'.
    LOOP AT it_recs.
       WRITE:/ sy-tabix, '-', it_recs-kunnr, it_recs-zzsrc,
             it_recs-zzrty.
    ENDLOOP.
    *ENDFORM.                    " DISPLAY_OUTPUT
    *&      Form  getdocument
          text
    -->  p1        text
    <--  p2        text
    FORM get_document.
    Get document number from detail table zclcrrptd.
      DATA: wlf_belnr LIKE zclcrrptd-belnr.
      LOOP AT it_recs.
      Keep track of this in case of errors (see Modify below)
        MOVE sy-tabix TO wgf_idx.
        SELECT SINGLE belnr FROM zclcrrptd INTO wlf_belnr WHERE
        zzsrc = it_recs-zzsrc AND
        kunnr = it_recs-kunnr AND
        zzrty = it_recs-zzrty.
        IF sy-subrc = 0.                            "+DEVK968120
          CLEAR it_recs-belnr.
          it_recs-belnr = wlf_belnr.
          MODIFY it_recs.
        ELSE.
        Set global level error variable
          wgf_glb_err = 'X'.                        "+DEVK968146
          IF sy-batch = 'X'.
            MESSAGE i045(zz) WITH
            'Could not find doc. in zclcrrptd - Customer/ZZSRC/ZZRTY'
                                   it_recs-kunnr
                                   it_recs-zzsrc
                                   it_recs-zzrty.
          ENDIF.
        Spool - Note record should be skipped.
          it_recs-mess = 'Document not found in zclcrrptd'.
          it_recs-skip = 'X'.
          MODIFY it_recs INDEX wgf_idx.
        ENDIF.
        CLEAR it_recs.
      ENDLOOP.
    Stop if no records
      IF it_recs[] IS INITIAL.
        MESSAGE s045(zz) WITH 'No Records to process - stopping'.
        WRITE: 'No Records to process - stopping'.
        STOP.
      ENDIF.
    ENDFORM.                    " get_document
    *&      Form  file_rename
          text
    -->  p1        text
    <--  p2        text
    FORM file_rename.
    *NEED TO KEEP FILES FOR AUDIT PURPOSES.
    *RENAME FILE WITH CURRENT DATE AND TIME.
      DATA: status2 LIKE btcxp3-exitstat.
      DATA: wlf_sy_subrc(2) TYPE n.
      DATA: BEGIN OF exec_protocol OCCURS 0.
              INCLUDE STRUCTURE btcxpm.
      DATA: END OF exec_protocol.
      DATA: wlf_filename LIKE sxpgcolist-parameters.
      MOVE p_file TO wlf_filename.
      CALL FUNCTION 'Z_CAM3_RENAME2_UNIX_FILE'
           EXPORTING
                parameters                 = wlf_filename
           IMPORTING
                status                     = status2
           TABLES
                exec_protocol              = exec_protocol
           EXCEPTIONS
                no_permission              = 1
                command_not_found          = 2
                parameters_too_long        = 3
                security_risk              = 4
                wrong_check_call_interface = 5
                program_start_error        = 6
                program_termination_error  = 7
                x_error                    = 8
                parameter_expected         = 9
                too_many_parameters        = 10
                illegal_command            = 11
                OTHERS                     = 12.
      IF sy-subrc NE 0.
        wlf_sy_subrc = sy-subrc.
        FORMAT COLOR 6.
        WRITE: /'File:', 7 p_file.
        WRITE: /7 'Could not be Copied.  Return Code = ', wlf_sy_subrc.
        FORMAT RESET.
      ENDIF.
    ENDFORM.                    " file_rename
    *&      Form  commit_work
          text
    -->  p1        text
    <--  p2        text
    FORM commit_work.
    Commit work when successful delete from detail table and status delete
      IF wgf_rec_err IS INITIAL.
        IF sy-batch = 'X'.
          CALL FUNCTION 'DB_COMMIT'.
          WRITE: / 'Record Deleted', it_recs-kunnr, it_recs-belnr.
        ELSE.
          COMMIT WORK.
          WRITE: / 'Record Deleted', it_recs-kunnr, it_recs-belnr.
        ENDIF.
      ELSE.
        ROLLBACK WORK.
      ENDIF.
    ENDFORM.                    " commit_work
    *&      Form  error_log
          text
    -->  p1        text
    <--  p2        text
    FORM error_log.
      IF NOT wgf_glb_err IS INITIAL OR NOT wgf_rec_err IS INITIAL.
      More error records to error table
        LOOP AT it_recs WHERE NOT skip IS initial.
          APPEND it_recs TO gt_err.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " error_log
    *&      Form  output_error_log
          text
    -->  p1        text
    <--  p2        text
    FORM output_error_log.
      DATA: wlf_filename LIKE sxpgcolist-parameters.
      DATA: status2 LIKE btcxp3-exitstat.
      DATA: BEGIN OF exec_protocol OCCURS 0.
              INCLUDE STRUCTURE btcxpm.
      DATA: END OF exec_protocol.
      DATA: ls_err LIKE LINE OF gt_err.
    Check there is at least 1 error
      IF NOT gt_err[] IS INITIAL.
      Build error file file name
        CONCATENATE p_file
                    '.Err'
                    INTO wlf_filename.
      Open output file
        OPEN DATASET wlf_filename FOR OUTPUT IN TEXT MODE.
        IF sy-subrc <> 0.
          MESSAGE e004(zz) WITH p_file.
        ENDIF.
      Transfer data to output file
        LOOP AT gt_err INTO ls_err.
          TRANSFER ls_err TO wlf_filename.
        ENDLOOP.
        CLOSE DATASET wlf_filename.
      Rename Error File
        CALL FUNCTION 'Z_CAM3_RENAME2_UNIX_FILE'
             EXPORTING
                  parameters                 = wlf_filename
             IMPORTING
                  status                     = status2
             TABLES
                  exec_protocol              = exec_protocol
             EXCEPTIONS
                  no_permission              = 1
                  command_not_found          = 2
                  parameters_too_long        = 3
                  security_risk              = 4
                  wrong_check_call_interface = 5
                  program_start_error        = 6
                  program_termination_error  = 7
                  x_error                    = 8
                  parameter_expected         = 9
                  too_many_parameters        = 10
                  illegal_command            = 11
                  OTHERS                     = 12.
      Update Spool
        WRITE 'Error(s) Occurred - Please check then process error file'.
        WRITE 'Rerun program with flag "Error File (Re-Running Job)"'.
        WRITE 'and set input file to latest .Err file'.
      Update Log
        IF sy-batch = 'X'.
          MESSAGE i045(zz) WITH 'Error(s) Occurred - '
                                'Please check then process error file.'.
          MESSAGE i045(zz) WITH 'Rerun program with flag '
                                '"Error File (Re-Running Job)"'.
          MESSAGE e045(zz) WITH 'and set input path to latest .Err file'.
        ENDIF.
      ELSE.
        MESSAGE s045(zz) WITH 'Processing Successfully Completed'.
      ENDIF.
    ENDFORM.                    " output_error_log

  • Extra carriage returns in footnotes of exported RTF

    All documents containing footnotes in Indesign are exported with extra hard returns after each footnote when exporting to Word .rtf.
    I am using Indesign CS5 but this has always been the case since earlier versions of Indesign.
    Does anyone know a way to avoid this or of a way to fix it afterwards in Word. Search end replace for double paragraph marks in Word doesn't seem to be working in footnotes.

    The email is formatted poorly by the sender.
    The screen width for a PC is min 640x480, which is large enough to display the email with the extar carriage returns on every line.
    The  Blackberry has a much smaller resolution, even with smaller text (which you could try but I wouldn't count on).
    The BB removes extra CR/LF's (ie if you have three or four per line, it will only show one), but it isnt going to reformat the entire email.
    Especially since the email is generally formatted for a reason.
    The sender has not formatted the email (thatws an auto-reply email, right?) for small screens or mobile devices.
    If you open the email in outlook and then reduce the window size to 1/4 or smaller than you will see the exact same thing on the Outlook email...
    So, there is nothing you can do on the BB. Its the sender who needs to change their emails.
    Checked out my Blackberry FAQ's and Links to Needed Articles here
    http://darkeen.homelinux.com/index.php/Blackberryfaq

  • Cl_gui_frontend_services= gui_download without carriage return

    Hi,
    Is there a way to get download a file to PC that way, that in the end of every lines there is a carriege return character except the last one? (Special format required by az external bank application)
    I tried to add carriage return to every lines, except the last one and use cl_gui_frontend_services=>gui_download.
    Although the "write_lf" parameter is set to space, the # is still inserted in the end of the last lines.
    Any suggestion, idea?
    Thanks in advance,
    Peter

    Hi
    When second time you call method just add the following
    CALL METHOD cl_gui_frontend_services=>gui_download
         EXPORTING
           filename                  = v_value
           append                    = 'X'        <------- Just add this line

  • Importing XML Text files with Indesign friendly 'Carriage Returns'

    Hi,
    I have a question wrt importing XML into Indesign.  I have my text stored in Excel (Fig A) and intend to export as an XML file where each line will represent each page.  However, my first attempt failed to treat the 'carriage returns' as I'd envisaged:
    The 'carriage returns' used within an Excel cell (ALT-ENTER) are maintained when transforming to a CSV file (Fig B).  However, when converting to an XML file, the conversion only takes place on a line by line basis and hence the XML file becomes incomplete (Fig C).
    So, it appears I need to make sure that the CSV file contains one line per entry, while also maintaining the actual carriage returns in my source spreadsheet and for Indesign to recognise them.  In order to do this, I'll need to substitute the 'carriage returns' in my excel column to be represented by a new set of characters.  My question is how can I let Indesign know to recognise this set of characters to be converted to a carriage return, when importing text.
    For example, if this set of characters was '%%%%%%', then my new csv file would look like Figure D and the XML would be produced correctly, like Figure E.  Then importing this XML file to InDesign, the carriage returns would automatically be reinstated, hopefully.
    I hope someone can help me as I am only starting out in Indesign and feel Im running before I can walk by venturing into the XML/Indesign arena too soon.
    Best Regards
    Luke

    Hi,
    Thanks for all the responses.
    With regard to XML, it could well be an issue has crept in because I am using another utility to convert my csv's to xml and maybe there are better options out there. I will take a look for other utilities and try that (Its not possible from Excel easily, even though there is an option to save as an XML file).
    Secondly, because the XML was readable by internet explorer, I assumed it had a satisfactory standard XML format which would be accepted by any program, including InDesign.  This proved true, since the XML file i generated was actually recognised by my Indesign document and populated the tags correctly, albeit without any carriage returns. 
    When I save my excel sheet as a csv, it does actually hold the carriage returns causing multiple lines per entry, hence why I need to substitute the actual carriage returns in my excel sheet to a alternative character set so that the entry remains on one line.
    Re: Double quotes on text fields.  Im sorry, I didnt realise I had commas in my sample csv example.
    I should have corrected it, but I intend on using semi-colons as my csv delimiter and don't intend on having semi-colons in my excel sheet itself, so I possibly won't need any double-quotes.
    So, it looks like this is what I need to do ;
    i)   Add a column in Excel which substitutes all the carriage returns with a line break identifier (^n).
    ii)  Convert Excel file to a semi-colon csv holding this new column,
    iii) Convert csv file to XML using a good CSV->XML utility,
    iv)  Add the respective XML tags to my INDD document,
    v)   Add a GREP rule which does a find/replace on all instances of ^n and replace with a line break,
    vi)  Import the XML file,
    vii) Apply the find/replace GREP rule on the whole document. Carriage returns on my text fields should be consistent with my original excel sheet.
    Thanks for all your help fellas.  Will report on how I get on once Im done.
    Best Regards
    L

  • Outputting XML carriage return in HTML via XSLT

    Hi,
    I have a scenario where I execute a View Object query in ADF to retrieve results from a particular table in the Database. I then iterate through the results in my Java managed bean and manually construct an XML file with all the appropriate tags. I then pass the XML file through a Transformer class in the Java bean based on an XSLT I have created to produce an HTML page. However I have an issue when it comes to handling carriage returns. One of the database table columns can contain carriage returns within its value but in the final HTML page the carriage returns don't have any effect and the text just displays on one line.
    In the database, the values are stored with the carriage return and in SQL Developer, Toad etc this can be seen e.g. Text1 Text2 Text3 Text4 will display on separate lines. In the XML, the carriage return seems to still be there as when I open the file my element which contains the carriage returns shows each part on a new line e.g. <textElement>Text1
                                                           Text2
                                                           Text3
                                                           Text4</textElement>     (The Text2, Text3 and Text4 all start on a new line at the beginning and there's no prior white space as shown in this post)
    The XML file in JDeveloper also shows carriage return arrow symbols where there is one.
    The HTML page just shows them as Text1 Text2 Text3 Text4 all on one line. Inspecting the source of the HTML shows that the carriage return is in fact there as it also displays as per the XML with the values on separate lines.
    Outputting the value from the View Object in Java to the log shows the value coming out like this - Text1 Text2Text3Text4, which is strange but I know the carriage returns are there so I'm not too fussed about this.
    I have tried escaping the characters in the Java by doing str.replaceAll("[\\r\\n]", ""); (but replacing the "" with &#xD; &#xA; or &x0A;) so in the XML it replaces carriage returns and line feeds with these escaped characters. However, when the XSLT parses the XML it doesn't pick these up and instead actually outputs these actual characters as they are e.g. Text1&x0A;Text2&x0A;Text3&x0A;Text4
    So I can confirm that the carriage return is carrying all the way through to the XSL but I can't help but think that maybe I need to do something in the XSL to process this somehow, e.g. doing the equivalent of the 'replace' in Java but I don't know what I need to search for in the XML and also what to actually replace it with..Do I just replace it with a </BR> in HTML?
    We also parse the XML using PDF and Excel XSL Transformer class and see the same results.
    Any help would be appreciated.
    Thanks

    That's a very commonly asked question.
    HTML doesn't preserve linefeeds, except for the <pre> tag.
    You'll have to replace those characters with <BR/> tags in the XSLT.
    Search the Internet for terms like "XSLT HTML LF", you'll find some XSLT sample templates to handle the replacement.

  • Carriage Return in Oracle

    I'm writing a to file and need to add a Carriage Return/New Line after every line. I've tried CHR(10) and CHR(13) and when opened in a Windows environment they both display an unrecognised character.
    Has anyone come across a similar problem or know what I'm doing wrong with this?
    Thanks
    Jay

    hello
    you need append both characters to the end of the line chr(13)||chr(10) not chr(10)||chr(13). 13 is carriage return, 10 is line feed and they are both needed on windows.
    hth

Maybe you are looking for

  • Query in alv using oops

    Hello ...... i have developed z table, initially there are no entries in it. i create a z program and create a alv display using method SET_TABLE_FOR_FIRST_DISPLAY then i have used method set_ready_for_input . i will now execute the z program.. i wil

  • XIadapter instead of RFC adapter  very urgent

    i am not using and proxies but iam using a file adapter in sender side and XI adapter in receving side , and i am calling a RFC in the mapping , instead of using a RFC adapter i am using XI adapter is possiable , if so what is the parametrs i must gi

  • Configuration Wizard in ID is not using existing Communication Channel

    Hi, I am using PI 7.1. I created a Communication channel FileSenderCC for a Business System Sys_Sample_One_D with Party as blank. After creating i can see below object in the list of communication channels in the left pane. |Sys_Sample_One_D|FileSend

  • Creating model relations

    I am using the Java Bean model importer in Web Dynpro. I understand that you can not import objects (only primitive types) using the Java Bean importer so you have to create model relations in Web Dynpro. But I have not seen any examples or how to's

  • How do i resolve "An unknown error occurred (-42110)?

    when launching iTunes on my new Win8 laptop, it give the error box An unknown error occurred (-42110) iTunes appears to 'work' ok, but my real library (which is on my external hard drive) does not seem to be found - even tho looking in the advanced s