Building a report with a text based on table rows

Hello!
I have in my database a table named "Support_Request" and another table named "Request_Advance", the first one have a brief description of each support request problem and some information related, the second one have each participation of technicians and customers in the resolution of the case (i.e a knowledge base about the request)....
Well, i want to take each advance related to a support_request and concat them in a unique text to show this information in a report, how i do that?....
acctually iam trying without results with a before report trigger with the following code:
function BeforeReport return boolean is
     advance_report request_advance.advance%type;
cursor cur is
select advance from request_advance
where id_caso=:id_caso;
begin
open cur;
loop
fetch cur into advance_report;
:TOTAL_ADVANCE:=:TOTAL_ADVANCE || advance_report || '********';
exit when cur%NOTFOUND;
end loop;
return (TRUE);
end;
please can somebody help me? :$

Thanks Claudine, i do the following function (spanish version) and works:
CREATE OR REPLACE FUNCTION Avance_Total(caso IN soportebwv2.avance_caso.id_caso%type) RETURN VARCHAR2
IS
     avance_total VARCHAR2(15000);
     avance_reporte soportebwv2.avance_caso.avance%TYPE;
     CURSOR cur IS
     SELECT avance FROM avance_caso
     WHERE id_caso=caso;     
BEGIN
     OPEN cur;
LOOP
     FETCH cur INTO avance_reporte;
     avance_total:= avance_total || avance_reporte || '*************************************';
     EXIT WHEN cur%NOTFOUND;
END LOOP;
CLOSE cur;
RETURN avance_total;
END;
SHOW ERRORS;
but my advance appear repeating several times, you have any idea why?
Beatriz

Similar Messages

  • Report Generation: linebreak text in Word table row

    Hello everybody.
    Im trying to add some pretty tables to my Word report created with the Report Generation Toolkit.
    I build my 2d string array with the table data and that works fine. But if I add a text to the array cell that has a linebreak constant it breaks the table. I.e my strings is not in the right place and some are missing in the table if linebreaks exists in the strings in the 2d string array that I feed to the 'Word Easy Table' VI. Se my lw 7.1 example below.
    Any one have an ide how to solve this?
    Attachments:
    WordTable-LinebreakProblem.vi ‏82 KB

    Paul,
    You last response got me think about the complex nested grouping of my for loops that are surrounding and embedded in my table(s). I analyzed my groupings and found that two of my levels had similiar values. When I moved those groupings outside my table, the 3 TOC entries FINALLY appeared !!! Newbie error!!! Anyway, the only problem left to resolve is the page number is not generating with the TOC entries (Getting Bookmark Not Defined Problem). I am wondering if this is a context problem ...or still part of a looping problem. I also can't seem to get the table headers to replicate on page breaks in RTF mode. They do work in PDF generation mode. It is sort of difficult to pass info because I nature of the info I am working with. Thanks for your time and patience. I have learned alot just trying to get this complex template to work.
    Thanks,
    Tom

  • NI report with Cyrillic text

    Hi all,
    I need to produce a pdf report with Russian text.
    As you can see in the code, I using the "NIReport_SetTextAttribute"command for transliterate the charset to russian.
    if I set the system language to Russian I can type Russian characters in to pdf, there is no error.
    But when I change the system language ( exp:to English),there is not any characters in to pdf.
    How can I solve this problem?
    Attachments:
    result_pdf.png ‏34 KB
    code.png ‏51 KB

    Hello Basil and Humphrey;
    I will try to explain the problem. Let's go over a CVI example, so you can reproduce it on your own.
    In the NI report example (nirsample.cws) shipped with CVI installation, an attribute called NIR_TEXT_ATTR_FONT_CHARSET is used.
    In one case, it is changed to "NIRConst_CharsetSymbol".
    As a result of this symbol charset setting, if you type "qwerty" as a string in your code, it is displayed as 6 different symbols side-by-side in the resultant PDF report file (we print the file to a PDF printer not on paper).
    This means, the report toolbox gets the character codes representing the letters "q,w,e,r,t,y" and prints corresponding symbols instead whose character codes match those latin letters. To obtain this result, you do not need to change any computer setting (system locale, CVI editor font charset, etc).
    So we thought, if we type some the same "qwerty" string and then select the Russian charset instead of symbol we would see corresponding characters from the Russian alphabet. But that is not the case.
    The only way to print Russian into NI report is to change the system locale (Control panel > Regional Options > Default language for non-unicode programs) to Russian. In that case, we can print Russian characters in the code as strings.
    (we also set the keyboard input language to Russian, but that is not a must, you can type Russian using combinations like ALT + 0215 once the locale is Russian and still get the same result)
    After this locale setting, the created PDF displays Russian characters even if the NIR_TEXT_ATTR_FONT_CHARSET attribute is not NIRConst_CharsetRussian.
    It look like the font charset attribute is not fully implemented. It works for symbol charset but not for Russian.
    So the questions are:
    - Is this expected behaviour?
    - Why symbol charset behaves different then Russian for instance?
    - What is your suggested method for printing Russian text in pdf reports?
    Thank you.
    S. Eren BALCI
    www.aselsan.com.tr

  • Is it possible to add new columns with format "Text" once a table is linked to a form

    Is it possible to add new columns with format "Text" once a table is linked to a form in Numbers for iPhone or is it impossible and thus a serious bug?(Rating stars and numeric vales seem to work.)
    Those bugs happen both for new speadsheets as well as existing onces, like the demo. When you are in the form only the numeric keyboard shows up.
    Pat from the Apple Store Rosenstrasse/Germany approved that it looks like a Bug during the Numbers Workshop I was in: It is not possible to add new columns with format "Text". I reported the error for Version 1.4 but there is no update nor do I get statement of understanding the issue.

    Hi Knochenhort,
    I see what you are talking about now. Without knowing how the program actually works, I think this is what's going on:
    When you add a new column to an already existing table (with already existing formats), the new cells come already formatted like the previous column. So when you add a column to the end of the demo table, the cells are already formatted like stars, and when you add a column to the beginning, they're already formatted like number.
    I think this is why it's different when if you add columns to a table with blank (unformatted) columns. In that case, the new cells aren't already "tainted" with a set format, so you can change to text format without issue.
    It seems like the problem is that you can't format cells that are already formatted as "number" as "text" format (even if it doesn't look like they are, because they are blank). IMO, this is a bug! This is why you don't see this issue when adding columns to a new table, because the new cells don't already come with a format.
    To workaround, you can highlight the body cells after adding the new column, and delete the cells. This will "clear" the formatting, so you can then go in the inspector, format them as text, and the correct keyboard will pop up.
    Hope that helps!

  • Word report with Cyrillic text

    Hi all,
    I've never used one of these forums before so hope I'm doing right.
    I need to produce a word report with Russian & English text , if I set the system language to Russian I can type Russian characters in to word, but if I have a string constant in labview which I insert into a table in word the text from string constant changes.
    Thanks for any help anyone can give.

    Hi Mike 
    Thanks for the reply.
    The document that I will be working on hasn't been translated yet, so I took the string constant from UM_confirm Exit.vi http://digital.ni.com/public.nsf/allkb/24D845629A22AB6A86257473005ECF35?OpenDocument and wrote a small vi (see attachment) to see if I could put the Russian string constant into a table in word I separated the Russian & English strings and entered them into different cells in a word table. The Russian characters no longer look like Russian characters (see attachment 2). If I set the system language to Russian on the language bar I can Type Russian characters into word.
    Regards
    John B 
    Attachments:
    Russian doc.doc ‏1 KB
    russian report vi.JPG ‏36 KB

  • Report with several radiogroup based on Collection, onChange event?

    Hello all,
    my Re: Report with multiple choice Radio Group possible thread gave me a report with three radiogroup items.
    The report is based now on a collection with 50 members.
    Checking /unchecking the state of an option should change the value for one member_attribute of the affected member.
    Each change Event should fire a update_member_attribute against the collection.
    A submit Item after completing will bulk insert all members into a different table.
    Can I implement a simple onChange process against the Apex_Item.Radio_Group statement of the query ?
    Or is there a process type which suits my needs ?
    Regards
    Franz

    I was able to schedule the report based on the event by hardcoding the id with the code snippet that you provided - Thanks
    But actually my question really should have been...
    I have an event with the following attributes:
    Type: File
    Event Name: Indicative Data
    Description: Indicative data trigger file.
    Server:  XXXXXXX.eventserver 
    Filename: D:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Trigger\Indtrigger.txt
    My assumption is that I would need to query CI_SYSTEMOBJECTS to get the ID of this event using this query:
    Select * From CI_SYSTEMOBJECTS Where SI_NAME = 'CrystalEnterprise.Event'
    But unsure how to proceed from there to get event information that I need.  If this is not the correct way of retrieving events, would you be able to provide me the correct query and/or code snippets?

  • Simple Abap PO report with Item text

    Hello Abap,
    Need some help as am more on functional side and our abaper is 2months holiday.
    Need to develop simple reports with the following information.
    EKKO-EBELEN,
    EKKO-WAERS,
    EKPO-EBELP
    EKPO-TXZ01
    EKPO-MENGE
    EKPO-NETPR
    EKPO-NETWR
    ITEM TEXT (TEXT ID-F01) - 100char to be printed.
    Tried to developed from scratch but no luck. Need it asap. Thanks in advance.

    Hi,
    I don't have test data but I think the following code will give you an idea, try to fill in the FM "READ_TEXT" below with your own parameter (check with table STXH).
    REPORT ZTEST.
    TYPES: BEGIN OF TY_RESULT,
       EBELN TYPE EKKO-EBELN,
       WAERS TYPE EKKO-WAERS,
       EBELP TYPE EKPO-EBELP,
       TXZ01 TYPE EKPO-TXZ01,
       MENGE TYPE EKPO-MENGE,
       NETPR TYPE EKPO-NETPR,
       NETWR TYPE EKPO-NETWR,
       ITEM_TEXT TYPE CHAR100,
       END OF TY_RESULT.
    DATA: GT_EKPO TYPE STANDARD TABLE OF EKPO,
           GS_EKPO TYPE EKPO,
           GT_EKKO TYPE STANDARD TABLE OF EKKO,
           GS_EKKO TYPE EKKO,
           GT_RESULT TYPE STANDARD TABLE OF TY_RESULT,
           GS_RESULT TYPE TY_RESULT,
           LV_TAB_IND TYPE SY-TABIX,
           GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           GS_FIELDCAT TYPE LINE OF SLIS_T_FIELDCAT_ALV,
           GV_NAME TYPE CHAR70,
           GS_TLINE TYPE TLINE,
           GT_TLINE TYPE STANDARD TABLE OF TLINE.
    SELECT-OPTIONS: SO_EBELN FOR GS_EKKO-EBELN,
                     SO_WAERS FOR GS_EKKO-WAERS.
    START-OF-SELECTION.
       PERFORM SELECTION.
       PERFORM BUILD_FIELDCAT.
       PERFORM DISPLAY.
    *&      Form  SELECTION
    *       text
    FORM SELECTION.
       SELECT EBELN WAERS FROM EKKO INTO CORRESPONDING FIELDS OF TABLE GT_EKKO
         WHERE EBELN IN SO_EBELN
         AND WAERS IN SO_WAERS.
       IF GT_EKKO[] IS NOT INITIAL.
         SELECT EBELN EBELP TXZ01 MENGE NETPR NETWR FROM EKPO INTO CORRESPONDING FIELDS OF TABLE GT_EKPO
           FOR ALL ENTRIES IN GT_EKKO
           WHERE EBELN EQ GT_EKKO-EBELN.
         SORT GT_EKPO BY EBELN.
       ENDIF.
       LOOP AT GT_EKKO INTO GS_EKKO.
         CLEAR GS_RESULT.
         CLEAR LV_TAB_IND.
         MOVE-CORRESPONDING GS_EKKO TO GS_RESULT.
         READ TABLE GT_EKPO TRANSPORTING NO FIELDS WITH KEY EBELN = GS_EKKO-EBELN BINARY SEARCH.
         IF SY-SUBRC EQ 0.
           LV_TAB_IND = SY-TABIX.
           LOOP AT GT_EKPO INTO GS_EKPO FROM LV_TAB_IND.
             IF GS_EKKO-EBELN NE GS_EKPO-EBELN.
               EXIT.
             ENDIF.
             MOVE-CORRESPONDING GS_EKPO TO GS_RESULT.
             CONCATENATE GS_RESULT-EBELN GS_RESULT-EBELP INTO GV_NAME.
             CONDENSE GV_NAME NO-GAPS.
             CALL FUNCTION 'READ_TEXT'
               EXPORTING
                 CLIENT         = SY-MANDT
                 ID             = 'F01'
                 LANGUAGE       = SY-LANGU
                 NAME           = GV_NAME
                 OBJECT         = 'TEXT'
               TABLES
                 LINES          = GT_TLINE
               EXCEPTIONS
                 NOT_FOUND      = 1.
             LOOP AT GT_TLINE INTO GS_TLINE.
               IF SY-TABIX EQ 1.
                 GS_RESULT-ITEM_TEXT = GS_TLINE-TDLINE.
               ELSE.
                 CONCATENATE GS_RESULT-ITEM_TEXT GS_TLINE-TDLINE INTO GS_RESULT-ITEM_TEXT.
               ENDIF.
             ENDLOOP.
             APPEND GS_RESULT TO GT_RESULT.
           ENDLOOP.
         ENDIF.
       ENDLOOP.
    ENDFORM.                    "SELECTION
    *&      Form  BUILD_FIELDCAT
    *       text
    FORM BUILD_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  1.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'EBELN'.
       GS_FIELDCAT-SELTEXT_L       =  'Purchasing Document Number'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  2.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'WAERS'.
       GS_FIELDCAT-SELTEXT_L       =  'Currency Key'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  3.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'EBELP'.
       GS_FIELDCAT-SELTEXT_L       =  'Item No'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  4.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'TXZ01'.
       GS_FIELDCAT-SELTEXT_L       =  'Short Text'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  5.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'MENGE'.
       GS_FIELDCAT-SELTEXT_L       =  'Purchase Order Quantity'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  6.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'NETPR'.
       GS_FIELDCAT-SELTEXT_L       =  'Net Price'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  7.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'NETWR'.
       GS_FIELDCAT-SELTEXT_L       =  'Net Order Value'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  8.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'ITEM_TEXT'.
       GS_FIELDCAT-SELTEXT_L       =  'Item Text'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
    ENDFORM.                    "BUILD_FIELDCAT
    *&      Form  DISPLAY
    *       text
    FORM DISPLAY.
       CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
           I_CALLBACK_PROGRAM      = SY-REPID
           IT_FIELDCAT             = GT_FIELDCAT[]
         TABLES
           T_OUTTAB                = GT_RESULT
         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
    Thanks.
    Regards,
    Keng Haw

  • ALV report with dynamic columns, and repeated structure rows

    Hey Guys,
    I've done some ALV programming, but most of the reports were straight forward. This one is a little interesting. So here go the questions...
    Q1: Regarding Columns:
    What is the best way to code a report with columns being dynamic. This is one of the parameters the user is going to enter in his input.
    Q2: Regarding Rows:
    I want to repeat a structure(say it contains f1, f2, f3) multiple time in rows. What is the best way to do it? The labels for these fields have to appear in the first column.
    Below is the visual representation of the questions.
    Jan 06  , Feb 06, Mar 06....(dynamic)
       material 1
    Current Stock
    current required
    $Value of stock
       material 2
    Current Stock
    current required
    $Value of stock
       material 3
    Current Stock
    current required
    $Value of stock
    Thanks for your help.
    Sumit.

    Hi Sumit,
    Just check this sample from one of the SAP site
    ABAP Code Sample for Dynamic Table for ALV with Cell Coloring
    Applies To:
    ABAP / ALV Grid
    Article Summary
    ABAP Code Sample that uses dynamic programming techniques to build a dynamic internal table for display in an ALV Grid with Cell Coloring.
    Code Sample
    REPORT zcdf_dynamic_table.
    * Dynamic ALV Grid with Cell Coloring.
    * Build a field catalog dynamically and provide the ability to color
    * the cells.
    * To test, copy this code to any program name and create screen 100
    * as described in the comments. After the screen is displayed, hit
    * enter to exit the screen.
    * Tested in 4.6C and 6.20
    * Charles Folwell - [email protected] - Feb 2, 2005
    DATA:
    r_dyn_table TYPE REF TO data,
    r_wa_dyn_table TYPE REF TO data,
    r_dock_ctnr TYPE REF TO cl_gui_docking_container,
    r_alv_grid TYPE REF TO cl_gui_alv_grid,
    t_fieldcat1 TYPE lvc_t_fcat, "with cell color
    t_fieldcat2 TYPE lvc_t_fcat, "without cell color
    wa_fieldcat LIKE LINE OF t_fieldcat1,
    wa_cellcolors TYPE LINE OF lvc_t_scol,
    wa_is_layout TYPE lvc_s_layo.
    FIELD-SYMBOLS:
    <t_dyn_table> TYPE STANDARD TABLE,
    <wa_dyn_table> TYPE ANY,
    <t_cellcolors> TYPE lvc_t_scol,
    <w_field> TYPE ANY.
    START-OF-SELECTION.
    * Build field catalog based on your criteria.
    wa_fieldcat-fieldname = 'FIELD1'.
    wa_fieldcat-inttype = 'C'.
    wa_fieldcat-outputlen = '10'.
    wa_fieldcat-coltext = 'My Field 1'.
    wa_fieldcat-seltext = wa_fieldcat-coltext.
    APPEND wa_fieldcat TO t_fieldcat1.
    wa_fieldcat-fieldname = 'FIELD2'.
    wa_fieldcat-inttype = 'C'.
    wa_fieldcat-outputlen = '10'.
    wa_fieldcat-coltext = 'My Field 2'.
    wa_fieldcat-seltext = wa_fieldcat-coltext.
    APPEND wa_fieldcat TO t_fieldcat1.
    * Before adding cell color table, save fieldcatalog to pass
    * to ALV call. The ALV call needs a fieldcatalog without
    * the internal table for cell coloring.
    t_fieldcat2[] = t_fieldcat1[].
    * Add cell color table.
    * CALENDAR_TYPE is a structure in the dictionary with a
    * field called COLTAB of type LVC_T_SCOL. You can use
    * any structure and field that has the type LVC_T_SCOL.
    wa_fieldcat-fieldname = 'T_CELLCOLORS'.
    wa_fieldcat-ref_field = 'COLTAB'.
    wa_fieldcat-ref_table = 'CALENDAR_TYPE'.
    APPEND wa_fieldcat TO t_fieldcat1.
    * Create dynamic table including the internal table
    * for cell coloring.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = t_fieldcat1
    IMPORTING
    ep_table = r_dyn_table
    EXCEPTIONS
    generate_subpool_dir_full = 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.
    * Get access to new table using field symbol.
    ASSIGN r_dyn_table->* TO <t_dyn_table>.
    * Create work area for new table.
    CREATE DATA r_wa_dyn_table LIKE LINE OF <t_dyn_table>.
    * Get access to new work area using field symbol.
    ASSIGN r_wa_dyn_table->* TO <wa_dyn_table>.
    * Get data into table from somewhere. Field names are
    * known at this point because field catalog is already
    * built. Read field names from the field catalog or use
    * COMPONENT <number> in a DO loop to access the fields. A
    * simpler hard coded approach is used here.
    ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'ABC'.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'XYZ'.
    APPEND <wa_dyn_table> TO <t_dyn_table>.
    ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'TUV'.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'DEF'.
    APPEND <wa_dyn_table> TO <t_dyn_table>.
    * Color cells based on your criteria. In this example, a test on
    * FIELD2 is used to decide on color.
    LOOP AT <t_dyn_table> INTO <wa_dyn_table>.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    * Get access to internal table used to color cells.
    ASSIGN COMPONENT 'T_CELLCOLORS'
    OF STRUCTURE <wa_dyn_table> TO <t_cellcolors>.
    CLEAR wa_cellcolors.
    wa_cellcolors-fname = 'FIELD2'.
    IF <w_field> = 'DEF'.
    wa_cellcolors-color-col = '7'.
    ELSE.
    wa_cellcolors-color-col = '5'.
    ENDIF.
    APPEND wa_cellcolors TO <t_cellcolors>.
    MODIFY <t_dyn_table> FROM <wa_dyn_table>.
    ENDLOOP.
    * Display screen. Define screen 100 as empty, with next screen
    * set to 0 and flow logic of:
    * PROCESS BEFORE OUTPUT.
    * MODULE initialization.
    * PROCESS AFTER INPUT.
    CALL SCREEN 100.
    * MODULE initialization OUTPUT
    MODULE initialization OUTPUT.
    * Set up for ALV display.
    IF r_dock_ctnr IS INITIAL.
    CREATE OBJECT r_dock_ctnr
    EXPORTING
    side = cl_gui_docking_container=>dock_at_left
    ratio = '90'.
    CREATE OBJECT r_alv_grid
    EXPORTING i_parent = r_dock_ctnr.
    * Set ALV controls for cell coloring table.
    wa_is_layout-ctab_fname = 'T_CELLCOLORS'.
    * Display.
    CALL METHOD r_alv_grid->set_table_for_first_display
    EXPORTING
    is_layout = wa_is_layout
    CHANGING
    it_outtab = <t_dyn_table>
    it_fieldcatalog = t_fieldcat2.
    ELSE. "grid already prepared
    * Refresh display.
    CALL METHOD r_alv_grid->refresh_table_display
    EXPORTING
    i_soft_refresh = ' '
    EXCEPTIONS
    finished = 1
    OTHERS = 2.
    ENDIF.
    ENDMODULE. " initialization OUTPUT
    Regards
    vijay

  • Report with characteristic and calculation in the rows

    Hi,
    I need to do a report that has to have in the rows a characteristic, a selection and calculation based in the result line of the characteristic, as presented following:
                 Column X Column Y ...
    Characteristic
            Result line
    Selection (hided)
    Calculation (Selection / Result line *100)
    Then its necessary to be possible to drill down to another characteristic.
    Please if you have done some report like this one please give me some ideas on how to do it.
    I'm thinking to make a workbook with two queries but this arise some issues in terms of the layout because I would need to put the query with the calculation above the other because otherwise it would be overwrote.
    I have some doubts also on how to make the drilldown possible???
    If you can help me I would be very grateful and I will assign points...
    Best regards,
    Ana

    Hi Ane,
    It seems little tricky here.
    Try this way to see all your values of  Asset class in single selection(Hope it works!!)
    Rows -> First Drag Asset Class
    Then create a structure jsut below this Char -> In New selection,define the name as you want & Use Asset Class as Restriction
    It should look like this in rows:
    Asset Class (Char)
    Structure
    Asset Class (Name of your selection - restricted with Asset class)
    Please check n lemme know if it works
    Sriman

  • Weird problem with vertical text in a table

    Hello,
    I am new on this forum, usually I don't post because I always find the answer to my question, but this is something quite weird...
    I have a table with vertical text in it (it has to be vertical because the cells are narrow). And I want it to be centered in the cell, both vertically and horizontally. When the cell is high enough, no problem. But as it becomes shorter, the text moves to the left. It is exactly as if there was a right margin within the cell, which is not the case.
    See the example below : I had the text right-aligned (this is to say, bottom-aligned, as it is 270° rotated) to make it more visible.
    Can someone help me there ? I already spent hours on that problem..!
    Thank you very much !

    Only, my table contents both vertical and horizontal text, so I can't. But thanks for the suggestion.
    Thank you kindly for all your answers. Anyway, re-writing the text in separate frames won't be so difficult (anyway it'll always take less time than what that problem already did..).
    So I have a solution, thanks to Phorna
    But remains the frustration of not finding the reason of this ! I will live along with it
    Thanks to all

  • Removing overset text in empty table rows (InDesign CS5.5)

    I have some overset text in a table that appears to be empty rows.  I've opened story editor so I can remove the text, but I can't select the area that's overset (the red lines).  How does one remove this overset stuff if you can't select it.

    Have you tried adjusting the height of the row to reveal the over set text?
    Or try placing your cursor in the cell in question and just hit the delete key...Sometimes invisible characters like column break can be accidently added.
    Or perhaps, highlighting the entire row and hit the backspace key.

  • Hints on building a report with multiple queries

    Hi all,
    I know this is not the best forum to address this question, but i know
    a lot of people here are using XML publisher with jdev to produce reports.
    any help is appreciated.
    Im a begginner with XML publisher and i am facing a problem!
    I had no troubles with reports containing one query but when i need more than
    one query inside my report I really dont know how to manage the whole thing
    I would love to know if someone could guide to some steps or to web site explaining
    the method to follow.
    I am using word to build my templates ---- if you could help towards this direction or
    tell what to use instead I would greatly appreciate
    Best Regards,
    Carl

    repost anyone?..

  • Shift Report with Long Text

    how do i  get a shift report out of the PLM (plant maintenance) module that includes the following:
    Work Order Number
    Person Responsible
    Time and date
    Equipment
    Hours Confirmed
    Goods Movement
    Long Text Description of what was done to correct the problem.
    IW40 displays all the necessary fields that we are looking for with the exception of the long text description.
    Thank you
    Nikhil

    Hi ,
          I found an enhacement spot ES_RIAUFK10  - ECC6.0 ,EHP3 ,SE18 for IW40 programme , check the possibility to add a field via this one ..
    For longtext u need to read from STXH Table using FM READ_TEXT
    regrds
    pushpa

  • How to build a document with conditional text

    So, I created a condition for a feature that is new to my document and until it's stable, I want to hide that text. No problem. I selected the condition and from the Show/Hide Conditional Text pod, I moved it over to hide. When I created the conditional text, I gave it a background color of gray so I could easily distinguish the conditional text from the non-conditional text. However, if I leave the conditional text visible and go to generate a PDF, the gray background style appears on the conditional text in the PDF. Is there something I'm missing here when it comes to building a PDF? I don't want the style I see in the FM file to appear in the final PDF. I only want that background color as an indicator while I'm editing it. I don't want to have to remember to change the style every time I want to build with the condition visible. Here's a screenshot from the PDF. The bits in gray are what I had applied the condition to.
    After selecting the book file, I tried both doing a Save as PDF and a Print Book but both options ended up with my conditional text having the gray background style in the final output.

    No, you have misunderstood the problem. Yes, If I want to hide the condition so it doesn't print, that works great. But, once the feature is active (or say I have two customers, one that has the feature and one that doesn't), If I want to print the document with the conditional text visible, then I want the text but I don't want the background style that shows up in FM. The conditional style should only appear in FM, not the generated PDF.
    I worked for years with Madcap's Flare and you could set the color of the conditional text in order to distinguish what text was conditioned and with what condition (different colors for different conditions). However, when you generated the output, those colors never showed up. The only thing that displayed was the text that was set to be visible. That's what I was expecting from FM. And the FM tutorials I have taken, that's what they stated should happen. Here's a transcript from the FrameMaker 10 tutorial on Lynda.com:
    When we go down to the Conditional Text pod, you'll notice that we have a number of radio buttons for In, Not In, As Is, and then we also have our tags down below. So this is going to be in the US version. So we'll click the US tag. We'll change the radio button to In. You'll see the status change over here to In, and then we'll apply that by clicking the first button in our group of buttons here to apply it. Now, you'll see something change here in the document and if we deselect our text, you can see it's now blue with the overline and that's how we decided the style and color would appear for our US tags. That's not how it's going to print. It's just for our own visual purposes.

  • 2.1EA2 - Still problems with trigger text tab on table panel

    I'm currently running SQLDeveloper 2.1 EA2 and I'm experiencing problems to display text of tables triggers.
    In fact I have found that file displaying this text has an mistake : It's assumed that trigger owner is the same as table owner.
    In file oracle/dbtools/raptor/oviewer/base/xml/tables.xml of extension oracle.sqldeveloper.oviewer.jar version11.1.1.63.10.
    This file contains an section dedicated to triggers :
    select dt.trigger_NAME, dt.trigger_type, dt.triggering_Event, dt.status, :OBJECT_OWNER sdev_link_owner,
    dt.trigger_NAME sdev_link_name,'TRIGGER' sdev_link_type
    from DBA_triggers dt
    where dt.table_owner = :OBJECT_OWNER
    and dt.table_name = :OBJECT_NAME;
    And the source part :
    select text sql
    from dba_source
    where name=:TRIGGER_NAME
    and owner=:OBJECT_OWNER;
    I Think the glitches is the owner=:OBJECT_OWNER.
    I made some tests by replacing the table.xml in archive (I know it's hugly). My modifications are :
    1) add an trigger_owner column in firsts selects
    2) use :TRIGGER_OWNER instead of :OBJECT_OWNER
    This seems to solve problems.
    I don't know how to report this as a bug, bu I hope that someone of the devel team will push it forward to solve the problem on 2.1 final.

    It's there; it's just very small. Consider either giving it some rows or column int values or a preferred size, or putting it in a JScrollPane with a preferredSize set.
    another thought is to use a BorderLayout for the whole thing, and place the JScrollPane/JTextArea BorderLayout.CENTER, put the JTextField and JLabels in a JPanel using GridBag and placing this into the main BorderLayout.NORTH, and placing the buttons into their own panel which is added to the main BorderLayout.SOUTH.
    Edited by: Encephalopathic on Sep 24, 2008 9:51 AM

Maybe you are looking for