Txt output problem,cannot order the output

Hi,
I'm working with forms and reports 6i, and I have a problem when generating the .txt output.
My report consists in some columns (database-scalar) from the main query and in some columns(formula).
What I'm trying to do is to mix the order of columns (database-scalar) and columns(formula),but
I can't do it. The columns(formula) are always in the end of the output...
I've put the right order in the report editor,but It only works to put the order of the columns (database-scalar) .
Example
query
select a,b,c from..where...
formula colum: desc_a,desc_b
The desired output
a desc_a b desc_b c
The output I get
a b c desc_a desc_b
Thanks in advance

Solved,reading anothers posts found the error.
Just need to play with the "break order" and separating in groups the formula column and the database-scalar colum.

Similar Messages

  • I cannot get the Output Module to work. I was able to get the button to show up, but when I click on it, nothing happens. i need to export a PDF asap

    I cannot get the Output Module to work. I was able to get the button to show up, but when I click on it, nothing happens. i need to export a PDF asap. I am trying to export 33 PSD files in BRIDGE to a PDF like I used to do on my other computer with bridge.

    Let's start with the general things.
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?

  • Cannot read the output from windows command.

    Hello
    I have the following classes
    package cmd;
    import java.io.IOException;
    public class CMD {
        public CMD(){
            ProcessBuilder pb = new ProcessBuilder()
            .command("cmd.exe","/c","del *.*")
            .redirectErrorStream(false);
            Process p;
            try {
                p = pb.start();
                StreamGobbler errorGobbler = new StreamGobbler(p.getErrorStream(), "ERROR");
                // any output?
                StreamGobbler outputGobbler = new StreamGobbler(p.getInputStream(), "OUTPUT");
                // start gobblers
                outputGobbler.start();
                errorGobbler.start();
            } catch (IOException e) {
                // TODO Auto-generated catch block
            System.out.println("eee "+e.getMessage());;
        public static void main(String[] args) {
            System.out.println("x");
            new CMD();
            System.out.println("x");
    and
    package cmd;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    public class StreamGobbler extends Thread {
        InputStream is;
        String type;
        StreamGobbler(InputStream is, String type) {
            this.is = is;
            this.type = type;
        @Override
        public void run() {
            try {
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line = null;
                while ((line = br.readLine()) != null)
                    System.out.println(type + "> " + line);
            catch (IOException ioe) {
                ioe.printStackTrace();
    Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
    I I will replace the above command with the dir command then the output of the command is visible.
    Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
    Please note that the above example is important because I am developping a tool and it is mandatory for that tool to parse the output from a windows batch command.
    Best regards,

    Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
    I I will replace the above command with the dir command then the output of the command is visible.
    Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
    No - but I will give you a hint about ProcessBuilder and how to develop software properly.
    Hint #1: Don't try to automate something that you don't know, or understand, how to do manually.
    a. Do you know how to execute 'del *.*' manually in a command window?
    b. Did you try that manually to see what happens?
    My guess is 'no'. If you had you would know that the response to a 'del *.*' command is going to be this:
    Are you sure (Y/N)?
    And your 'java class execution' doesn't finish because the 'del' command is waiting for you to answer that question.
    Hint #2: Don't try to use ProcessBuilder for an application that requires console input unless you first know how to provide that console input via your Java code.
    Your code will wait forever since it does NOT answer that question.
    Search the net and The Java Tutorials and  you can find examples of executing command line utilities. Then try those examples first and make sure that:
    1. They work for you
    2. You understand HOW they work
    Then you can modify those examples to do what you want to do.

  • Cannot see the output file in my first project

    Hi,
    I follow the instructions of Exercise in Chapter 4 of CAP-0501 to make the project. I wonder why I cannot see the output file in 'C:\CAPExercises\0501\exercises\Active_Project\Output'.
    There are two things I would like you know.
    1. I do not have the file 'prjFileXferInput.xml', but find and copy a xml file. Is this a problem? Does CAPS have any special requirement on schema for the input file?
    2. Is '\' and '/' a problem for Java CAPS? I notice the book using 'C:/CAPExercises/0501/exercises/Active_Project/Output�, while it is 'C:\CAPExercises\0501\exercises\Active_Project\Output' on windows. I am working on a standalone Windows 2000 computer.
    By the way, can anyone give me a confirmation that '/' and '\' is not a problem for Java CAPS, as the server or application take care of it? Is it true?
    Thanks,

    I am answering my own question. The project works.

  • After I upgraded to Mavericks my Epson 5000V scanner is not working properly.  I can scan by going into Preference/PrintersScanners to operate the scanner, but I cannot find the output.

    After I upgraded to Mavericks my Epson 5000V scanner is not working properly.  I can scan by going into Preference/PrintersScanners to operate the scanner, but I cannot find the output.  I am trying to save the scan as a PDF in Documents.

    Have you installed Apple's latest Epson drivers?
    They are here:
    http://support.apple.com/kb/DL1398

  • Ordering the output file

    Is there a way to order the output files so the pieces come out in order by pallet so we don't get zero pallets in the middle of our container and address files?
    Thanks.

    Bill,
    You may want to take a look at Mailflow in Presort.  I think the below steps may give you the results you are looking for...
    VIEWS:
    1. Open presort job
    2. Double-click Execution options
    3. Select Sequence by Mailflow
    4. Click OK
    5. Expand Mailflow Setup
    6. Double-click Mailflow
    7. Select Alternate Mailstream Hierarchy Seq
    8. Click OK
    9. Double-click Alternate Mailstream Hierarchy Sequence
    10. Set Presort Scheme to 1
    11. Set Segment (or Entry Point) to 2 as desired
    12. Set Entry Point (or Segment) to 3 as desired
    13. Click OK
    JOBFILE:
    1. Open .pst in an editor
    2. Go to the Execution block
    3. Set the parameter + Sequence Output by Mailflow (Y/N) to Y
    4. Go to the Mailflow block (if block is not available, copy it from master.pst)
    5. Set the parameter Use Alt Mailstream Hierarchy Seq (Y/N) to yes
    6. Go to the Alternate Mailstream Hierarchy Sequence block (if block is not available, copy it from master.pst)
    7. Set Presort Scheme to 1
    8. Set Segment (or Entry Point) to 2 as desired
    9. Set Entry Point (or Segment) to 3 as desired
    Thanks,
    Kendra

  • Problem in determining the output (Print, ALE, etc)  for Exchange document

    Hi Experts,
    I am facing a problem in getting the output for certain Exchange netting documents. If I remove Exchange contract number from the netting document, The out put is getting generated as required. But if a Exchange contract number is mentioned in the Netting documents ( the case is appearing only for couple of netting documents) the out is not getting generated. On analysing, system gives message that it is not able to find the required partner role ( its Bill to party in this case). But BP partner roles is  set.
    Please let me know which are the partner roles that are required for this output determination.
    Thanks a lot,
    Amit Kothari
    Edited by: Amit Kothari on Apr 28, 2009 1:07 PM
    Edited by: Amit Kothari on Apr 28, 2009 1:08 PM

    Hi Experts,
    I am facing a problem in getting the output for certain Exchange netting documents. If I remove Exchange contract number from the netting document, The out put is getting generated as required. But if a Exchange contract number is mentioned in the Netting documents ( the case is appearing only for couple of netting documents) the out is not getting generated. On analysing, system gives message that it is not able to find the required partner role ( its Bill to party in this case). But BP partner roles is  set.
    Please let me know which are the partner roles that are required for this output determination.
    Thanks a lot,
    Amit Kothari
    Edited by: Amit Kothari on Apr 28, 2009 1:07 PM
    Edited by: Amit Kothari on Apr 28, 2009 1:08 PM

  • Cannot get the output

    anybody know whats wrong with this code
    I cannot get the output it should be 9
    public class Arrays
    public Arrays()
    int a[] = { 7, 8, 9, 9, 8, 7 };
    System.out.println("\n\n\findMax():");
    System.out.println(findMax(a));
    public int findMax(int a[], int max)
    for (int i = 0; i < a.length; i++)
    if(a[i] > max)
    max = array;
    return max;

    public class Arrays {
         public static void main(String[] args) throws Exception{
              int a[] = { 7, 8, 9, 9, 8, 7 };
              System.out.println("FindMax():");
              System.out.println(findMax(a));
         public static int findMax(int a[]) throws Exception{
              int max = a[0];
              for (int i = 0; i < a.length; i++)
                   if (a[i] > max)
                        max = a;
              return max;

  • Cannot change the output medium for contract

    Hi Everyone,
    In the contract we have "Output" tab to change the output medium for the contract.
    So the issue is when I click on the change button and try to change e-mail address,I am not able to do that.
    The e-mail address is grayed out though I am in the change mode.
    This is happening for some contracts only.
    How should I change the e-mail address of the contract?
    Thanks & Regards,
    Khushbu.
    Edited by: Khushbu Brahmbhatt on Feb 25, 2011 9:01 PM

    Hi,
    Have a look at the foll thread for more pointers;
    Re: Change medium of output for Changed PO in SRM
    BR,
    Disha.
    Do reward points for useful answers.

  • Problem in diplaying the output in ALVLIST

    Hi all,
    iam having problem in ALVLIST display.
    My requirement is to display the output in the following format in ALVLIST,
    <b>field1  field2  field3 </b>
    DRP      200     
    DRP      200
                          400   SubTotal per DRP
    DRE      300
    DRE      300
                          600   SubTotal per DRE
    Total    1000
    I have to display the Subtotal under <b>field3</b> and total under <b>field2</b>.
    thanx & regards,
    donthula

    See the example program :
    net value is coming as total
    within fieldcatalog - do_sum = 'X'.
    REPORT zsharad_test1.
    TABLES: ekko.
    TYPE-POOLS: slis. "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    statu TYPE ekpo-statu,
    aedat TYPE ekpo-aedat,
    matnr TYPE ekpo-matnr,
    menge TYPE ekpo-menge,
    meins TYPE ekpo-meins,
    netpr TYPE ekpo-netpr,
    peinh TYPE ekpo-peinh,
    line_color(4) TYPE c, "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
    wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    gd_tab_group TYPE slis_t_sp_group_alv,
    gd_layout TYPE slis_layout_alv,
    gd_repid LIKE sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    PERFORM data_retrieval.
    PERFORM build_fieldcatalog.
    PERFORM build_layout.
    PERFORM display_alv_report.
    *& Form BUILD_FIELDCATALOG
    Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
    I.e. Field type may be required in-order for
    the 'TOTAL' function to work.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order'.
    fieldcatalog-col_pos = 0.
    fieldcatalog-outputlen = 10.
    fieldcatalog-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    fieldcatalog-do_sum = 'X'.
    fieldcatalog-no_zero = 'X'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'EBELP'.
    fieldcatalog-seltext_m = 'PO Item'.
    fieldcatalog-col_pos = 1.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'STATU'.
    fieldcatalog-seltext_m = 'Status'.
    fieldcatalog-col_pos = 2.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'AEDAT'.
    fieldcatalog-seltext_m = 'Item change date'.
    fieldcatalog-col_pos = 3.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material Number'.
    fieldcatalog-col_pos = 4.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MENGE'.
    fieldcatalog-seltext_m = 'PO quantity'.
    fieldcatalog-col_pos = 5.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Order Unit'.
    fieldcatalog-col_pos = 6.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'NETPR'.
    fieldcatalog-seltext_m = 'Net Price'.
    fieldcatalog-col_pos = 7.
    fieldcatalog-outputlen = 15.
    fieldcatalog-datatype = 'CURR'.
    fieldcatalog-do_sum = 'X'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    fieldcatalog-fieldname = 'PEINH'.
    fieldcatalog-seltext_m = 'Price Unit'.
    fieldcatalog-col_pos = 8.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    ENDFORM. " BUILD_FIELDCATALOG
    *& Form BUILD_LAYOUT
    Build layout for ALV grid report
    FORM build_layout.
    gd_layout-no_input = 'X'.
    gd_layout-colwidth_optimize = 'X'.
    gd_layout-totals_text = 'Totals'(201).
    Set layout field for row attributes(i.e. color)
    gd_layout-info_fieldname = 'LINE_COLOR'.
    gd_layout-totals_only = 'X'.
    gd_layout-f2code = 'DISP'. "Sets fcode for when double
    "click(press f2)
    gd_layout-zebra = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text = 'helllllo'.
    ENDFORM. " BUILD_LAYOUT
    *& Form DISPLAY_ALV_REPORT
    Display report using ALV grid
    FORM display_alv_report.
    gd_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_special_groups = gd_tabgroup
    IT_EVENTS = GT_XEVENTS
    i_save = 'X'
    is_variant = z_template
    TABLES
    t_outtab = it_ekko
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    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. " DISPLAY_ALV_REPORT
    *& Form DATA_RETRIEVAL
    Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
    DATA: ld_color(1) TYPE c.
    SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
    UP TO 10 ROWS
    FROM ekpo
    INTO TABLE it_ekko.
    *Populate field with color attributes
    LOOP AT it_ekko INTO wa_ekko.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
    i.e. wa_ekko-line_color = 'C410'
    ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
    IF ld_color = 8.
    ld_color = 1.
    ENDIF.
    CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
    wa_ekko-line_color = 'C410'.
    MODIFY it_ekko FROM wa_ekko.
    ENDLOOP.
    ENDFORM. " DATA_RETRIEVAL
    Reward Points if it is helpful
    Thanks
    Seshu

  • Weird problem when downloading the output to an excel sheet

    Hi to all,
          when i download the list, output by an alv grid, i observe a weird problem..in the excel sheet the last digit (10th digit) of the first col. which is delivery no., is getting truncated...0001802563 is getting downloaded as 000180256..couldn't understand why...when i use conversion_exit fm, the values are not getting truncated and downloading correctly...curious to know what's gone wrong in this funcationality? thanks all
    cheers,
    Shankar. M.

    actually the problem is in the field catalog.if u can send me the code, i shall bug fix it for u.

  • Problem in printing the output !

    I have around 45 fields to show in the output !
    i have given linesize 1023 because i have to get the output horizontally.
    but still i am not able to  adjust.
    IS there any other way so that I can customize my print out

    Friend,
    My answer is available for this problem in this thread...
    https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=4317216
    Goto Se11
    In the datatype give TBLISTBR (it is a standard element, it will ask you access code for changes)...
    go into change mode...
    in the value range ...change teh upper limit as 2000....
    save and activate
    now go into menu utitilities->setttings->data browser->output list width->set to 2000....

  • Problem While Exporting the Output

    Dear All ,
    I am facing a problem while exporting the ALV output to Spreadsheet.
    When I click on Menu LIST->Export-->Spreadsheet, One pop is coming with title "Save XXL list object in SAPOffice" In that it is asking me to save Name of the List object and a Title.
    Please guide me what needs to be done for this.
    Regards,
    Nikhil

    Hi, Nikhil
    You can USE a Short Cut Key Ctrl + Shift + F9 and than select the type in you want to download in your case you will select Spreadsheet
    Regards,
    Faisal

  • Problem in printing the output of a script.

    dear friends,
    I have a script program which is running fine and the it has generated the desired output in one page on the screen. But when i am transfering the output to the printer the same output is splitting into 3 pages and special character is printing in begining and ending of every line. In the first page It is printing the special character, in the second it is printing the first line output and in the third page rest of the output.
    In my script i have only the main window. i want the script output to be printed only in one page on the printer . Please help me with your suggestions.

    Sravan,
    Check ur printer as sometimes it so happens that the printers act up and spoil output...

  • Problem in getting the output.

    I am able to get the output when i run the report program.But if i run the same program, via T-code ,its going back to the initial screen.
    Any help/input regarding this is highly appreciated.
    Thanks in advance.
    Regards,
    Booma

    hi,
    follow the below procedure to create Tcode for Report
    1) Go to SE93 and enter transaction name
    2) Select 2nd radio button ie program and selection screen (report program)
    3) Enter your report Program name in Program
    4) Selection screen as 1000
    5) Select SAP GUI for Windows checkbox
    Reward points if it is helpful.
    Regards,
    Srilatha.

Maybe you are looking for

  • FireWire is the only way to import Canon HV20 Camcorder videos into iMovie?

    As a followup to my last post a moment ago tonight 1/30/08: Is it true that I need a FireWire cable to import Canon HV20 Camcorder videos into iMovie? If so, the Apple salesperson is wrong. He told me last Monday that purchasing the new iLife 2008 (t

  • Problem about fill set up table

    Hi all, I got a problem when I run the fill set up table for sales billing data source. what I did is: first delete the setup table then oli9bw->type in a sales document no.(as I only want this order data), then give a run name, last execute, but I g

  • BAM Server issue

    Hi, We have One Data Object,where 6 EMSs are poiting and the dataobject is being used by 17 reports(all reports have 2 views).We are facing Thread stuck issue very frequently.We tried to restart the server.After restarting the server,its working for

  • 10.4.7 completely killed my system

    MacBook Pro, I updated to 10.4.7. THe update said it could not completely install. I put the computer to sleep and then reopened it a little later. Everything was frozen, so i had to power down the bad way. I powered back up and the grey apple screen

  • How do you delete Calender entries?

    I have synced my Outlook calendar with the iPod Touch. However, since most of those calendar entries have meeting reminders, they keep popping up when I am listening to my music, interrupting it. I can live without the calendar entries, but am not su