Formatting output to a file? 1.4.2

I am writing an application that writes result sets from an oracle 10g database query. This output combines both text and numeric.
I cannot figure out how to justify the output to the right or left or force the fields to use a set amount of space regardless of the width of the text.
As a result I get an outfile with perfectly lined up columns except for the one or two where instead of a four digit number there is a single number. This change in width shifts all of the output over.
My customer goes nuts over this, surely there is a way to format output?

OK, I tried today, I really did, I just can't get my brain around how to do what I need to accomplish so here is a pseudo example and i am hoping someone can shed some light.
My application is abstract to enable easy addition of instances of automated reports.
I have a 2d array that contains the column names for a given query. [0] = column name, [1] = space to be applied after results are added to a string buffer.
So, something like this:
StringBuffer entireQueryResults = new StringBuffer();
String[][] QueryColumns = someObject.getQueryColumnNames();
ResultSet currResults = someObject.getResultset();
while(currResults.next()){
String currRow = "";
for(int i = 0; i < QueryColumns.length; i++){
   currRow = currRow + currResults.getString(QueryColumns[0])+currResults.getString(QueryColumns[i][1])+"\n";
entireQueryResults.append(currRow);
Now, the problem is that there are columns in the queries that have digits, these can range from a single val to 5 and while 98% of them are 3 digits there are random instances where they are a single digit or even a -1. When this happens it throws the output way off and makes it difficult to read in the resulting email report.
How can I incorporate this into a MessageFormat or ChoiceFormat object to make the output pretty ?

Similar Messages

  • Formatting output to text file

    Hi,
    I need some help with formatting the output to a file. Is there a way we can change the size or font of the text written to a text file?
    Also can we set the line length (for eg. 80 characters).
    I want to ouput description and amount king of stuff how do i achieve uniformity in the output.
    I am using FileWriter or BufferedWriter to write the contents of the file.
    The output i am looking for is in the following format
    Desciprtion Amount
    1.XXXXXXXXXXXXX $nn,nnn.nn
    2.XXXXX $nn,nnn.nn
    Thanks
    vir

    Is there a way we can change the size or font of the
    text written to a text file?Not before you define "text file"... For me a text file means a file that consists of mostly text (=letters and numbers). If the text should contain formatting like font size it doesn't really fit in this category anymore.
    You can write as many characters per line as you want.
    The format
    1.XXXXXXXXXXXXX $nn,nnn.nn
    2.XXXXX $nn,nnn.nn
    is easily achieved - line number, period, text, space, and a formatted number. Something like
    1. XXXXXXXXXXXXX $nn,nnn.nn
    2. XXXXX $nn,nnn.nn
    is a lot more trickier unless you know how long the description can be in maximum.

  • Format output so file is readable

    Hi All.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE 9.2.0.3.0 Production
    TNS for Solaris: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    on
    SunOS rcworaprd 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Fire-480R
    I have a script that is running some sql to report free space in tablespaces. The output goes to a file and the formatting is great when I vi the file but once I email it the columns don't line up. I was wondering if there is an easy way to get everything lined up correctly:
    Here is the sql I run:
    sqlplus <<! > $SCRIPTHOME/shrink.tmp
    / as sysdba
    set pagesize 100
    set linesize 300
    set verify off
    column file_name format a50 word_wrapped
    column currsize format 999,999,990 heading "Current|Size|(MB)"
    column smallest format 999,999,990 heading "Smallest|Size|(MB)"
    column savings format 999,999,990 heading "|Savings|(MB)"
    break on report
    compute sum label "TOTAL SPACE SAVED BY SHRINKING" of savings on report
    column value new_val blksize
    select value from v\$parameter where name = 'db_block_size'
    select file_name,
    ceil( blocks*&&blksize/1024/1024) currsize,
    ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) smallest,
    ceil( blocks*&&blksize/1024/1024) -
    ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) savings
    from dba_data_files a,
    ( select file_id, max(block_id+blocks-1) hwm
    from dba_extents
    group by file_id ) b
    where a.file_id = b.file_id(+);
    exit
    Output in report file all lines up but don't line up in email (tabs are different etc...)
    Any way to get this formatted?
    Thanks
    Jamie

    Most likely it is an issue with the fonts that are being used for display. Typically, telnet or ssh applications use a fixed width font for display so all characters are the same size. Most Windows applications tend to use a proportional font by default, so different characters have different widths.
    So, unless you can persuade all of the recepients to use a fixed width font in their email readers, you are likely out of luck.
    John

  • Email attachment for text file using ABAP with funny format output

    Hi All,
    I am developing an ABAP program to generate an email to an external email address by using Function Module FUNCTION 'SO_DOCUMENT_SEND_API1. There is an attachment included in this program. The attachment is generated by reading through a data file from an Application Server and place it in the internal table before attaching it to the function module.
    Currently when I download the data file through SO01, I found that the data file looks a bit funny as below. It seems that all the letters are separated with an additional space in between.
    Funny Output:
    A B C D  1 2 3  A B C
    Suppose Output:
    ABCD 123 ABC
    I am not too sure if there is any output format that I need to set in order to make it works?

    hi Sree Ram,
    Thanks for your quick reply. The following is my code. I am not too sure if your reply will help to change the format of my data file or attachment sent through email.
    Thanks.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = w_doc_data
          put_in_outbox              = 'X'
          sender_address             = ld_sender_add
          sender_address_type        = ld_sender_add_type
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = w_sent_all
        TABLES
          packing_list               = t_packing_list
          contents_bin               = t_attachment
          contents_txt               = it_message
          receivers                  = t_receivers
        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.

  • Formatting output to file

    I want to format the output of a file to say 10 spaces no matter what the size of the string. For example if I did this
    out.write("dog");
    out.write("horse");
    out.write("cat")
    I want the output to be
    dog horse cat.
    Thanks for the help

    Wait... you mean you want to add a certain amount of spaces to a String so that the String has a length of 10?
    If that's what you want you could do something like this.
    final int LENGTH = 10;
    public String addSpaces(String str) {
        if (str.length() >= LENGTH) {
            return str;
        while (str.length() != LENGTH) {
            str += ' ';
        return str;
    }Then you could do
    out.write(addSpaces("dog"));
    out.write(addSpaces("horse"));
    out.write(addSpaces("cat"));
    // etc..and you would get:
    dog       horse     cat      

  • Statement of Accounts Output to PDF file format and email to customers

    Hi,
    Would appreciate inputs from contributors on the issues/requirements below.
    I have two requirements regarding the output of Customer Statement Of Accounts (form):
    1. The output is to be in Adobe PDF file format;
    2. The file has to be emailed automatically to customers based on the email address maintained in the Customer Master;
    I envisage that the program would be executed online (on demand) or in the background via scheduled jobs. Due to complexity of the customer's requirements, we will be using a customized program to generate the form.
    I am not familiar with both requirements. Would appreciate contribution on how to set up the above.
    Teck Liang

    Hello,
    In FIBF transaction code, you can configure the same
    SAMPLE_PROCESS_00002840
    If you do not think this is not suffice your requirement, you can take help from ABAPer and create you own function module.
    Refer SAP Note. 836169 how payment advice is being emailed.
    It will emailed in PDF format.
    Once you run F.27 the entries should flow to SOST.
    Regards,
    Ravi

  • REPORT output to possible files formats

    Hi Folks
    How can we tranasfer a REPORT output to any file like( .XLS, .XML, or to anyother possible file). Can u give all the possible file procedures.
    Thanks in advance.
    I wont forget to reward points.
    Regards,
    Ram

    Hi Ram,
    Use can very well use the function module 'GUI_DOWNLOAD'.
    The below code clarifies your doubt as how to mention the path in the selection screen.
    tables: mara.
    data: itab type standard table of mara.
    select-options: s_matnr for mara-matnr.
    parameters: filename like rlgrap-filename default 'C:\materail_details.xls'.        " download filename
    start-of-selection.
    select *
    from mara
    into table itab
    where matnr in s_matnr.
    perform file_download.
    *&      Form  file_download
          text
    -->  p1        text
    <--  p2        text
    form file_download .
    data: filename1 type string.
    filename1 = filename.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = filename1
       FILETYPE                        = 'DAT'
      tables
        data_tab                        = itab
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " file_download
    Here C:\material_details.xls is the path to save your file. In the same way you can save a text file also.
    Hope this clarifies your doubt.
    Regards
    Sayee

  • Report Output in Notepad File

    hi i'm using oracle ERP EBS R12
    Oracle database 10g
    i have a report . and i define the output in XML format
    when i click on view output and save in the xls file [excel] then it works
    i want the output in notepad file?
    is there any possiblity to view output in notepad file without any space between the columns?
    or
    is there any possibility to make a tab delimited text format report?

    Hi,
    Please see these docs.
    How To Export Form Or Report Data From Oracle Applications And Into Excel [ID 372353.1]
    How to Setup The Report Output to Different Viewer Types in Oracle Applications 11i [ID 184375.1]
    How to Control the Name and the Application that Opens the Concurrent Request Output File on the Client? [ID 316752.1]
    Thanks,
    Hussein

  • Compare two text files in Powershell and if a name is found in both files output content from file 2 to a 3rd text file

    Is it possible using PowerShell to compare the contents of two text files line by line and if a line is found output that line to a third text file?
    Lets say hypothetically someone asks us to search a text file named names1.txt and when a name is found in names1.txt we then pair that with the same name in the second text file called names2.txt
    lets say the names shown below are in names1.txt
    Bob
    Mike
    George
    Lets say the names and contents shown below are in names2.txt
    Lisa
    Jordan
    Mike 1112222
    Bob 8675309
    Don
    Joe
    Lets say we want names3.txt to contain the data shown below
    Mike 1112222
    Bob 8675309
    In vbscript I used search and replace commands to get part of the way there like this
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.OpenTextFile("testing.txt", ForReading)
    strText = objFile.ReadAll
    objFile.Close
    strNewText = Replace(strText, "Mike ", "Mike 1112222")
    Set objFile = objFSO.OpenTextFile("testing.txt", ForWriting)
    objFile.WriteLine strNewText
    objFile.Close
    That script works great when you know the name you are looking for and the correct values. Lets say someone gives you a list of 1000 employees and says import these names into a list in the correct format and one sheet has the correct names only and
    the other sheet has lots of extra names say 200000 and you only need the 1000 you are looking for in the format from names2.txt.

    Sure,
    Here's a simple one:
    $names1 = "C:\names1.txt"
    $names2 = "C:\names2.txt"
    $names3 = "C:\names3.txt"
    Get-Content $names1 | ForEach-Object {
    $names1_Line = $_
    Get-Content $names2 | Where-Object {$_.Contains($names1_Line)} | Out-File -FilePath $names3 -Append
    This basically just reads $names1 file, line by line, and then read $names2 file line by line as well.
    If the line being evaluated from $names2 file contains the line being evaluated from $names1 file, then the line from $names2 file gets output to $names3 file, appending to what's already there.
    This might need a few more tinkering to get it to perform faster etc depending on your requirements. For example:
    - If either $names1 or $names2 contain a lot of entries (in the region of hundreds) then it will be faster to load the whole content of $names2 into memory rather than opening the file, reading line by line, closing and then doing the same for every single
    line in $names1 (which is how it is currently works)
    - Make sure that your comparison is behaving as expected. The .Contains method always does a case sensitive comparison, this might not be what you are after.
    - You might want to put a condition to ignore blank lines or lines with spaces, else they'll also be brought over to $names3
    Hopefully this will get you started though and ask if you have further questions.
    Fausto

  • Output to DivX file, but as .avi

    My client has requested I output a sequence as a DivX (.avi) file.
    This is for playback to a large screen monitor from a CF card.
    I downloaded the DivX software, so that now within FCP, under export using QT conversion, there is an option DivX
    I downloaded from here:
    http://www.divx.com/en/faq/view/supportFAQen079
    I have successfully output a DivX file.  But how do I make this .avi?  An associate said just change the extension.  Is that all?  I tried this, and the video file still plays, using the DivX player and QT player.  But there must be a more sophisticated way to do this conversion to .avi, isn't there?
    About the sequence settings:
    1920 X 1080
    Square pixel aspect ratio
    The QT video sittings come up automatically as XD CAM EX 1080P25 35 mbps, but the material was shot on a Canon XF100 camera, which is not XD CAM format.
    Can anyone help with a step by step on procedures for this kind of output?
    Thanks so much.   Desparate to finish this project for client deadline...everything was fine till I hit the output specs!

    Thanks for that tip!
    I did find out that at this website
    http://www.divx.com/en/movies/faq
    You can download software that then within FCP creates a new export as QT conversion option, where you can make a new divX file.  I was then told by the company that makes the software:
    The DivX Plus Converter will create .mkv files if the DivX Plus HD output profile is selected. If the HD 1080p, HD 720p, Home Theater, or Mobile profiles are selected, it will create a .divx file, which is based on the AVI format. The .divx extension can then be changed to .avi by simply renaming the file, i.e. from mymovie.divx to mymovie.avi. This does not require additional conversion.
    If you create a DivX-encoded file in a third-party application, this will usually be an .avi file. If you are on Mac, you can export from QuickTime Player Pro to export to DivX. To learn more about this, consult this FAQ. If you are on Windows, using a program such as VirtualDub allows you to select the DivX codec for export into an AVI file.
    Hope this helps anyone out there who is asked to deal with DivX for the first time, as I just was!

  • List format output to excel sheet

    Hi,
        I have a report output in list format. I need to download that into excel sheet. Is it possible to download a list format output to excel sheet or shall I need to convert that into grid format?
    Thanks Barnita.

    HI,
    Use Menu path
    List->Save/Send->File path

  • How to download a smartform output as excel file WITH EXACT LAYOUT.

    Hi,
         I have searched the forum but could not found any satisfactory answer. I have a smartform with a table, some texts and a logo. I have to write a code which will save the smartform output as excel file in the system keeping the layout of the smartform output EXACT.
    i.e., the excel file will contain the output with EXACTLY THE SAME layout as would have been for a pdf file (if the smartform output is converted to a pdf file) and the client can then edit the fields of the table in the excel file.  How can I achieve this? Please give a suggestion.. Thanks in advance.

    Hi Anirban,
    Your Requirement is to download a smartform to  microsoft  Excel .
    Well unfortunately we can only download data into excel which is in a tabular format i.e stored in internal tables we have function modules to do the same even u can do that using OLE2.
    If u try to download a smartform to Excel only format supported will be ASCII, if u will continue with that the smartforms text's will get downloaded to excel but whole data would be downloaded in a single Cell.
    Code to do the same is -
    >>>>
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
      EXPORTING
      i_language = v_language
      i_application = 'SAPDEFAULT'
      IMPORTING
      e_devtype = v_e_devtype.
       CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = w_form
    *   VARIANT                  = ' '
    *   DIRECT_CALL              = ' '
       IMPORTING
         FM_NAME                  =  w_fmname
       EXCEPTIONS
         NO_FORM                  = 1
         NO_FUNCTION_MODULE       = 2
         OTHERS                   = 3
      IF sy-subrc <> 0.
        MESSAGE E002(zcpm) WITH 'Smartform call fails'.
      ENDIF.
    wa_outopt-tdprinter = v_e_devtype.
    wa_ctrlop-no_dialog = 'X'.
    wa_ctrlop-getotf    = 'X'.
      CALL FUNCTION w_fmname "'/1BCDWB/SF00000025'
        EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = WA_CTRLOP
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
        OUTPUT_OPTIONS             = WA_OUTOPT
    *    USER_SETTINGS              = ' '
        IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            = T_OTFDATA
    *   JOB_OUTPUT_OPTIONS         =
    *    document_output_info       = st_document_output_info
    *    job_output_info            = st_job_output_info
    *    job_output_options         = st_job_output_options
        TABLES
          T_FINAL                    = T_FINAL
          T_ZSDT_WAGONS              = T_ZSDT_WAGONS_1
          T_QTY                      = T_QTY
          T_QTY1                     = T_QTY1
          T_CON1                     = T_CON1
          T_CON2                     = T_CON2
          "T_ZTMM_OUTWB_TXN           = T_ZTMM_OUTWB_TXN
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    T_OTF[] = T_OTFDATA-OTFDATA[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
              format = 'ASCII'
              max_linewidth = 132
    * ARCHIVE_INDEX = ' '
    IMPORTING
              bin_filesize = w_bin_filesize
    TABLES
              otf   = t_otf
              lines = t_pdf_tab
    EXCEPTIONS
              err_max_linewidth = 1
              err_format = 2
           err_conv_not_possible = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if tabix_m = 1.
    *CALL METHOD cl_gui_frontend_services=>file_save_dialog
    *CHANGING
    *filename = w_FILE_NAME
    *path     = w_FILE_PATH
    *fullpath = w_FULL_PATH
    ** USER_ACTION =
    ** FILE_ENCODING =
    *EXCEPTIONS
    *CNTL_ERROR = 1
    *ERROR_NO_GUI = 2
    *NOT_SUPPORTED_BY_GUI = 3
    *others = 4
    *IF sy-subrc <> 0.
    *MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    CALL function 'TMP_GUI_BROWSE_FOR_FOLDER'
    EXPORTING
    WINDOW_TITLE = 'Select A File Folder'
    INITIAL_FOLDER = 'C:\'
    IMPORTING
    SELECTED_FOLDER = W_PATH.
    endif.
    CONDENSE W_PATH.
    concatenate W_PATH '\' wa_final-vbeln '.XLS' into w_FULL_PATH.
    ****************************************************************************Saving the PDF file on to Application server************************
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       BIN_FILESIZE                     = w_bin_filesize
       FILENAME                         = w_FULL_PATH
       FILETYPE                         = 'BIN'
    *   APPEND                          = ' '
    *   WRITE_FIELD_SEPARATOR           = ' '
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    IMPORTING
       FILELENGTH                      = w_filesize
      TABLES
        DATA_TAB                        = t_pdf_tab
    *   FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
    As u said ,u want to download a smartform to Excel it could be done but only if u r using a internal table and exactly printing line by line values in the smartform, But if u are performing calculation in between, using multiple internal table Work areas, structures, etc i.e if whole smartform is developed with many distributed windows , unfortunately it wont be possible to download a smartform to excel in such cases, because the whole output comes from multiple internal tables, calculations, etc all the data is not printed in a tabular manner so in such a case it would be just impossible to download the smartform  to excel.
    But we definitely have a workaround which could be done to download the data into excel.
    you can develop a ALV report with a header and footer u can define the header and footer of the alv according to the smartform and the middle portion would contain the tabular kind of data which u must be using as Smartform table to print the same.
    So if u have a similar kind of smartform with some header data, tabular data, and some footer data, then u can use ALV to do the same thing , advantage with ALV would be that u can easily download the same into excel.
    Other alternative is that u can Convert and download the smartform to PDF  and copy the same to an Excel wooksheet.
    These are all the possibilities with which u can do the same.
    Regards,
    Akash Rana

  • How to download the blocked ALV output to PDF file.

    How to download the blocked ALV output to PDF file.
    I am able to download the BLocked ALV output in PDF format,
    but the each bolck in ALV is displaying different pages of PDF.
    In my report I have 4 block in 1 page, I am able to see the output in PDF but in different page.
    How to avoid the Page-break in PDF.
    Thanks,
    Ravi Yasoda.

    hi,
    I believe that your have 4 containers on the screen with individual ALV display. in this case, there is no way to get combined PDF output to my knowledge.
    However you can use Smartform/Sapscript as output which would allow you to display ALV in blocks and also print it in one.
    Regards,
    Nirmal

  • Advice on constructing a test engine and formatting a spreadsheet test file to perform command line interface testing on a product through telnet or serial interface

    Advice on constructing a test engine and formatting a spreadsheet test file to perform command line interface testing on a range of products through telnet or serial interface and output pass/fail results.

    If I understand correctly, you want to do the following:
    1. Create one or more tab-delimited files that specify a series of query strings (that LabVIEW will send to your products) and expected reply strings (that LabVIEW will look for in response to each query)
    2. Run your LabVIEW program (the test engine) and have it execute one or more test scripts from file using either TCP/IP or serial communication to your units under test
    3. Track how many of the queries are met with the expected response, and output an indication of whether each step passed or failed
    If this is close to correct, then I've attached a sample test file and LabVIEW VI as an example; I chose the TCP/telnet method because it allowed me to use the ni.com Web site to simulate my tes
    t hardware. If you happen to own the LabVIEW Internet Toolkit, there's a VI called "Telnet Play Script" in the Telnet palette that does something fairly similar using TCP. The same general model would also work for Serial communications.
    Hope it helps,
    John Lum
    Attachments:
    test_engine.zip ‏24 KB

  • Redirecting spool output to a file on app. server

    I'm running a SAP report as a background job.
    I hve a requirement to send the spool output to a file on app. server. This needs to happen automatically in background.
    I'll appreciate any suggestion.

    Hi,
    use report from Re: output to pdf format and substitute pc-download with file transfer
    good luck
    Andreas

Maybe you are looking for

  • How to change Service Item using BAPI_ENTRYSHEET_CREATE.

    Hi All, There's a requirement for me to upload/ Create Entry Sheet using BAPI_ENTRYSHEET_CREATE from the source file. The Header was given to me but the Service Item, they would like the flexibility to change the existing lines that was adopted from

  • How do I transfer files from a PowerBook 3400c to a MacBook Pro

    The subject header says it all. I've got an old Mac PowerBook 3400c (OS 8.6) and a MacBook Pro (OS 10.4.8) and I'll like to transfer files from the 3400c to the Pro. How do I do this? Thanks.

  • BARCODE FORMS in Acrobat Reader 9.2 - disappears the barcode

    Hi,   I have a trial version of Adobe Acrobat 9 Pro installed on my computer for try the barcodes forms funcionality but have a problem with this. When create a forms barcode, then test this in Adobe Reader 7, 8 and 9.2, and in the Adobe Reader 9.2 t

  • Embed  lightroom gallery in Adobe Muse

    can you embed a lightroom gallery within an Adobe Muse site and confine the rendering of it to the actual page? everything I have tried allows the gallery to open to a full screen when you click on it and you lose the navigation of the site . . . .do

  • Render all options: all options selected?

    After reading the manual I got more confused... I am exporting a self-contained QT. I want the best quality. Before exporting, I want to render. Am I 100% safe if I : RENDER ALL > Select all the options (all the colors, even the ones I don`t need!) >