Problem of columns entitled to empty in report painter

Hi,
We have a problem in the report painter.
We have just implemented the support package and some columns entitled are empty.
I was advised to execute transaction GR59.
Can you give me information about this transaction ?
Do you have another solution ?
Thanks for you answer..

Hi ,
u can do it in both the ways , but i am not much sure abt second option.
Useful Tcodes are GR21.
Regards
Prabhu

Similar Messages

  • Report painter problem

    Hi All,
    Please note that I have copied a standard SAP report(6000-6o1) internal order : actual /plan.The report displays cost element, actual, plan variance and variance in %.I also can see the Order group but it comes seperately on left side of screen where the order can be selected and report refreshes accordingly.
    However I want to have order just to the left of Cost element and don't want to have it as selection.i.e when i run a report for a period i should be able to see all internal orders and their cost elements.However the report is not allowing me to do that.I am unable to add column to the section.
    I even tried changing the variations however the result is not as required.
    I would like to know as to whether two lead columns are not possible in report painter.
    Can any one please help me with this .
    Thanks in advance.
    Regards
    Pranay

    Hi Eli,
    Thanks for your reply.Can you please throw some light on thsi.Kindly note that I have copied a standard report(6000-6o1)internal order plan/actual./variance.
    I tried changing the layout but was unsuccesful.
    currently as per standard report this is what i see
    Order group                                     cost element Actual  Plan Var Var(%)
    order1
    order2
    order3
    order group appears seperately due togeneration setting(expand)
    What i want is
    order cost element Actual Plan Var Var(%).
    Please help me with the steps.
    Thanks in advance.
    Regards
    Pranay

  • Problem in creating report in report painter

    Hi,
    I am creating a report in Tcode GRR1 and while creating it,i am getting a error i.e. :-
    CO Area must be specified -> Add in general data selections or rows/c
    Please provide me guidelines how to solve this problem as i am new to the report painter.

    well...As per the message did you try to Provide the CO Area..
    PS: I am not infront of my system. As per message try to give the required information
    PPS: I am now infront of my system, I am able to crate the report with out any issues
    Edited by: Vijay Babu Dudla on Jul 24, 2009 4:41 AM

  • GRCT    HOW TO ADD Z TABLES IN REPORT PAINTER

    Hi Gurus
    Could you please send me information about how to activate z tables in report painter ?   someone said me that i can user transaction GRCT  to do that...¿ what aspects must I consider to add a table ?
    mail: [email protected]
    Regards
    Andrés Moreno

    hi Andres,
    below are the steps for the Report Painter.....
    Create a new report.
    Menu Path: Information Systems > Ad hoc reports > Report Painter > Report > Create
    On the Report Painter: Create Report screen, enter:
    Library – 1VK
    Report RSS-A
    Report Description – Report w/Total Row
    Hit <Create> button to move to the next screen.
    Create the Rows of the Report – The first four rows are cost element characteristics
    Screen: Report Painter: Create Report
    Type ‘Cost Elements’ in the lead column cell
    Double click on Row 1
    In the Pop-up window 'Element definition: Row1", enter:
    Note: If Pop-up window (select element type) appears, choose 'characteristics' and hit <Enter>.
    Select 'Cost Element' as the characteristic in the 'Available characteristics' section
    Hit <Move selected to left> button to move the characteristic 'Cost element' to the 'Selected characteristics' section
    From – 430000
    Hit <Change short, middle and long texts> icon (at the bottom of the window)
    In the Pop-up for Enter Texts, Enter:
    Short – Description from Table above for this Account
    Click on the <Copy short text> button to copy this description to the other fields.
    Hit <Confirm> to close the Pop-up
    Hit <Confirm/Enter> to check consistency and close.
    Repeat the above steps for the other 3 accounts
    Create a formula row to calculate the total of the Cost Element rows
    Screen: Report Painter: Create Report
    Double click on Row 5 or the next empty row.
    In the Pop-up for Select Element Type select 'Formula'
    Hit <Enter> to close the Pop-up
    In the Pop-up 'Enter Formula'
    Use the calculator buttons to create the formula Y001 + Y002 + Y003 + Y004
    Hit <Enter> to close the Pop-up
    In the Pop-up 'Enter Texts'
    Short – Total
    Click on the <Copy short text> button to copy this description to the other fields.
    Hit <Enter> to close the Pop-up
    Make sure your cursor is in the cell containing the word ‘Total’
    Follow the Menu Path: Formatting > Row
    In the Pop-up 'Row Formatting'
    Overscore – checked
    Underscore – checked
    Hit <Enter> to close the Pop-up
    Create the first column for actual costs
    Screen: Report Painter: Create Report
    Double click on the ‘Column 1’ cell.
    In the Pop-up 'Select element type'
    Select Predefined Key Figure radio button, and press <Enter>.
    In Pop-up 'Choose predefined column'
    Select Actual Costs as the predefined column, and press <Enter>.
    In the Pop-up 'Element definition: Actual costs'
    Press <Confirm> to check consistency and close.
    Define the second column for plan costs
    Screen: Report Painter: Create Report
    Double click on the ‘Column 2’ cell.
    In the Pop-up 'Select element type'
    Select Key Figure with Characteristics as the element type, and press <Enter>.
    In the Pop-up 'Element definition: Column 2'
    Value Type – 01   (Plan)
    Version – 0   (Actuals)
    Valuation – 0   (Legal valuation)
    Hit <Change short, middle and long texts> icon
    In the Pop-up for Enter Texts, Enter:
    Short – Plan
    Click on the <Copy short text> button to copy this description to the other fields.
    Hit <Confirm> to close Pop-up.
    Hit <Confirm> to check consistency and close.
    Create a formula column to calculate the variance between actual and plan costs
    Screen: Report Painter: Create Report
    Double click on the ‘Column 3’ cell
    Assign the points....
    Ranjit

  • Report painter horizontal page

    I have written a report, in report painter, for planning, whereby you have the option to select two years and each year can have 12 months: all, any or none.  The 24 columns are using variables for PERIOD, VERSION, RECORD TYPE, FISCAL YEAR.  I am using two horizontal pages.  Page size width is 253.
    The report runs correctly, but, when I choose less than 12 months in the first fiscal year, I want the second fiscal year to display & print adjacent to the first fiscal year.  However, it won't, it displays & prints on a separate page.  It is as if there is a horizontal page break and I can find no data on such.
    Any solutions?
    Thanks,
    Dan
    SAP 4.6C

    I found the problem.  I created a report in Report Writer by copying this one.  In the Column Block set, there were two page breaks.  These coincided with the beginning of each horizontal page. (I earlier said there were two, but actually there are three) I took the breaks out and the report displays & prints correctly.
    Now, how can I identify and delete the Column Block Page Breaks in Report Painter.
    Is this the right forum for this question?  If not, where should it be posted?
    Dan

  • Drill Down - Report Painter (Urgent)

    Hi,
    I need to add drill down i.e. transactions CJ74 and CJI4. IN transaction GR52, I added CJ74, CJI4 as  TR and RKPEP003 as RT.
    My problem :
    When I execute the program, and doble click on the O/P row, pop is showing all the three options i.e
    1. CJ74
    2. CJI4
    3. RKPEP003
    If I select 1st two, it is throwing me out of the report.
    In the last case, it is going to the o/p of report RKPEP003  and not displaying any data as it is taking the default values as they are when I execute RKPEP003 pgm in SE38 and it is not taking values from the row/column I selected in the report painter output.
    Can you please let me know how to correct this.
    Thanks in advance.
    Regards,
    Kiran.

    Hi,
    Since the report is running on the server, the output shall be as well. I don't think you can use desname to specify a local folder as the server knows nothing about local machine. It only has acces to it's resources.
    The user will need to generate the report and then save to local disk. You could also think about other delivery methods such as email.
    Hope that helps.

  • Re : How to configure report painter

    hii kings
    could u tell me how to create report . what are the steps require to report painter. In that what is the purpose of  Library , how is create the same. We can report Create report Under the library sothat which purpose.

    Hi,
    now i will send it steps
    Report Painter
    Key Features of Report Painter
    Prepare Plan/Actual/Variance Expense Report
    Cost Elements Actual            Plan           Variance
    Salaries Xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx
    Office         Xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx
    Travel         Xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx
    Supplies Xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx
    Total         Xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx
    Use the following account numbers and descriptions in your report:
    Account number Description
    430000         Salaries
    470000         Office
    474100         Travel
    476000         Supplies
    Create a new report.
    Menu Path: Information Systems > Ad hoc reports > Report Painter > Report > Create
    On the Report Painter: Create Report screen, enter:
    Library – 1VK
    Report RSS-A
    Report Description – Report w/Total Row
    Hit <Create> button to move to the next screen.
    Create the Rows of the Report – The first four rows are cost element characteristics
    Screen: Report Painter: Create Report
    Type ‘Cost Elements’ in the lead column cell
    Double click on Row 1
    In the Pop-up window 'Element definition: Row1", enter:
    Note: If Pop-up window (select element type) appears, choose 'characteristics' and hit <Enter>.
    Select 'Cost Element' as the characteristic in the 'Available characteristics' section
    Hit <Move selected to left> button to move the characteristic 'Cost element' to the 'Selected characteristics' section
    From – 430000
    Hit <Change short, middle and long texts> icon (at the bottom of the window)
    In the Pop-up for Enter Texts, Enter:
    Short – Description from Table above for this Account
    Click on the <Copy short text> button to copy this description to the other fields.
    Hit <Confirm> to close the Pop-up
    Hit <Confirm/Enter> to check consistency and close.
    Repeat the above steps for the other 3 accounts
    Create a formula row to calculate the total of the Cost Element rows
    Screen: Report Painter: Create Report
    Double click on Row 5 or the next empty row.
    In the Pop-up for Select Element Type select 'Formula'
    Hit <Enter> to close the Pop-up
    In the Pop-up 'Enter Formula'
    Use the calculator buttons to create the formula Y001 + Y002 + Y003 + Y004
    Hit <Enter> to close the Pop-up
    In the Pop-up 'Enter Texts'
    Short – Total
    Click on the <Copy short text> button to copy this description to the other fields.
    Hit <Enter> to close the Pop-up
    Make sure your cursor is in the cell containing the word ‘Total’
    Follow the Menu Path: Formatting > Row
    In the Pop-up 'Row Formatting'
    Over score – checked
    Underscore – checked
    Hit <Enter> to close the Pop-up
    Create the first column for actual costs
    Screen: Report Painter: Create Report
    Double click on the ‘Column 1’ cell.
    In the Pop-up 'Select element type'
    Select Predefined Key Figure radio button, and press <Enter>.
    In Pop-up 'Choose predefined column'
    Select Actual Costs as the predefined column, and press <Enter>.
    In the Pop-up 'Element definition: Actual costs'
    Press <Confirm> to check consistency and close.
    Define the second column for plan costs
    Screen: Report Painter: Create Report
    Double click on the ‘Column 2’ cell.
    In the Pop-up 'Select element type'
    Select Key Figure with Characteristics as the element type, and press <Enter>.
    In the Pop-up 'Element definition: Column 2'
    Value Type – 01   (Plan)
    Version – 0   (Actuals)
    Valuation – 0   (Legal valuation)
    Hit <Change short, middle and long texts> icon
    In the Pop-up for Enter Texts, Enter:
    Short – Plan
    Click on the <Copy short text> button to copy this description to the other fields.
    Hit <Confirm> to close Pop-up.
    Hit <Confirm> to check consistency and close.
    Create a formula column to calculate the variance between actual and plan costs
    Screen: Report Painter: Create Report
    Double click on the ‘Column 3’ cell
    In the Pop-up 'Select element type'
    Select Formula as the element type, and press <Enter>.
    In the Pop-up 'Enter Formula'
    Use the calculator functions to create the formula X001 – X002.
    Hit <Confirm> to close the Pop-up
    Enter Variance as the text for all three fields.
    Hit <Enter> to close.
    Define the parameters for general data selection
    Screen: Report Painter: Create Report
    Follow the Menu Path: Edit > Gen. data selection
    In the Pop-up 'Element definition: General data selection'
    Select Controlling Area, Cost Center, Fiscal Year, and Period as the selection characteristics
    Hit <move selected to left> icon to move the selected characteristics to the selected characteristics section of the window
    Enter the following values for your characteristics:
    Controlling area – RSS   ('from' field)
    Cost center - 1000 to 2000
    Fiscal year - Current year
    Period - 1 to 12
    Hit <Confirm> to check consistency and close.
    Check the report for any errors and save it
    Screen: Report Painter: Create Report
    Follow the Menu Path: Report > Check or press < Shift + F6>.
    When the system comes back with a message of ‘No errors were found’, click <Save> to end.
    Assign the report to a report group using the function in Report Painter
    Screen: Report Painter: Create Report
    After the system has come back with ‘Report RSS-A was saved’
    Follow Menu Path: Environment > Assign report group
    On the Insert Report in Report Group Screen:
    Enter Z0#A as the group
    Hit <Enter>
    In the 'Create report group' pop-up window
    Click <Yes> to create the group
    Make sure the system has come back with ‘Report RSS-A was saved in Report Group Z0#A’.
    Execute the report
    Screen: Report Painter: Create Report
    Follow the Menu Path: Report > Execute
    Notice that there are no selection criteria to enter. These were hard coded in the general selection characteristics.
    Click the <Execute> icon.
    It is a very basic report of plan, actual, and variance costs for a group of predefined cost centers.
    it's useful assigne points as a way to say Thanks
    Regards
    gvr

  • Selection screen fields order in report painter report..

    hi experts,
    i have a  problem with selection screen fields order in report painter report.
    Actually in report painter report selection screen order is different compare to report writer report selection screen.
    how should i get the same selection screen fields order For  Report painter  report compare to Report Writer report ?
    For example, Report Writer selection screen order is:
      ledger:
      company code:
      period:
      current fiscal year:
      previous fiscal yer:
      previous quarter end period:
    where as Report Painter selection screen order is:
      ledger:
      previous fis year:
      current fis year:
      company code:
      period:
      previous quarter end period:
    please help me regarding with this.
    Thanks and Regards,
      NAGARJUNA.

    hi nagarjun,
    Go to Sq01, select the query and goto to change mode.go to the next screens till u reach Selection fields. Here u enter the NO field in the sequence which u want ot appear in the selection screen and it is done. Save and execute.
    Ex:
    Selection fields No
    Exclude Cancelled Lots 5
    Material number 1
    Plant 2
    Material type 3
    Inspection Lot Origin 4
    Regards,
    Lokesh

  • SAP Report Painter (Drill down)

    Hi, SAP Experts,
    I'm Henry. This is my first post on SCN.
    I'm trying to solve a problem on drill down report of report painter.
    I don't have much experiences. I really need your help. 
    The problem is that I developed one report painter (Balance Sheet) and one query (Line item report by account code).
    I put the query on the report painter as drill down report. So, when I click a row on the report painter,
    It should go to the query and see appropriate data on it.
    However, somehow, company code is NOT copied to the query. Therefore, the result is the query shows all compnies data.
    *My client has several compnay codes.
    <Example>
      [Selection field on the report painter (BS)]
       *Table: FAGLFLEXT
       1. Company code: "A1"
       2. Fiscal Year: "2014"
       3. Fiscal Month: "3"
      [Selection field on the query (Line item report by account code)]
       *Logical DB: SDF
       1. Company code: blank  (This is the problem. I need to know why the company code isn't copied)
       2. Account code: xxxxxxxxx (The account code is copied from the report painter. This is no problem.)
       3. Fiscal Year: "2014" (No problem)
       4. Fiscal Month: "3" (No problem)
       *After clicking a row on the report painter, I can see all companise data on the query. The query should give only one company which is selected.
    If you have any solution or knowledge, could you please share it with me?
    If you give me some advice, I would really appreciate it.
    Best Regards,
    Henry

    Hiii Sai Krishna,
    can u forward the same documentation to me..plsss
    my mail id - [email protected]
    thanks in advance
    regards
    ramki

  • Report Painter problem with empty selection variant

    Hello,
    I use the cost center selection variant for the column definition in Report Painter as characteristic value. This selection variant get only the cost centers which are valid from 1.1.2003 to 31.12.2004. The column of the report created by Report Painter which uses this selection variant display value without taking into account limitations follow from this selection variant. I expect value zero for year fiscal year 2007 in this column, because the cost centers are invalid in 2007 year but the report displays different value. The problem appeared after upgrade from 4.6C to ECC 6.0.
    Best Regards
    ZD

    My problem with Report Painter occurred when I was creating my own report based on 1VK library.
    In my example I used in the column definition characteristic Cost
    Center, which is determined by selection variant, and Basic Key Figure
    equal SWKG-Costs. For system date (18.07.2007) there are no valid
    master data for the characteristic Cost Center but when I execute
    report for fiscal year 2007 the column display no-zero value without
    taking into account value of Characteristic Cost Center. I expected
    zero value in this column because there are no postings for Cost
    Centers (no valid cost centers were selected) in financial year 2007.
    Could you help me with this problem ?

  • Report painter GRR3...Division problem.

    Hi All
    In report painter i have a division problem. I am calculationg Gross profit percentage as
    Gross Profit % = ( Gross Profit / Sales ) * 100.
    So the value should be
    GP % = ( 2523302.56 / 14067690 )*100 = 17.93 ( As per calculator )
    But the SAP is showing the value as 18.09. Can you please guide me what could be the problem?
    Moderator message: not directly related to ABAP development, please post again in the appropriate functional forum.
    locked by: Thomas Zloch on Oct 4, 2010 1:26 PM

    Thanks,
    I didn't chosse the copy function, instead I insert  row 104(other current asset) , but I find the first column (which should be a formula)corresponds to row 104 is empty, and I check all formula ID under formula components, there is no other current asset
    formula ID, what should I do?
    Row 103(current asset) has a formula ID, but new inserted rows can't find formula ID

  • Report Painter - Display two characteristics on one line in lead column

    I have a requirement to produce a Report Painter report to display values by Cost Centre and Cost Element.
    The requesting user wants to see the Cost Centre AND Cost Element keys displayed on each row of the report, to allow for manipulation in Excel.
    I have no problem grouping Cost Element within Cost Centre or vice-versa, but am not aware of any way of displaying both key values on each row in the lead column (or anywhere else).
    Has anybody done this?

    Hi Robin,
    the request is not unusual. However, report painter does not allow for two key columns or a key column combining two characteristics. You might consider using SAP Query (with table COEP or COSS/COSP for aggregates) if you do not want to resort to developing the report in ABAP.
    Regards
    Nikolas

  • New column to report painter

    Hello ABAP Gurus,
    There is a report created with Report Writer (S_ALR_87013000) and I should add some extra columns to the end of it. The problem is that the new columns are not contained by the basic keyfigures of Report Painter; they should be red from masterdata: different fields from table AUFK.
    How can I add these columns? Is it possible to define own keyfigures? Or is any other way to enhance this report?
    Thanks,
    Krisztian

    HI  Pradeep,
    Goto the transaction code (Change Report) GR32.
    Give you library name and report name
    And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element  and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
    How to enter formula: you can see the formula components in that id and description.
    Id is columns that are present and description indicates explanation of that column.
    Enter formula according your requirement.
    Examples:
    Enter formula screen:
    ID :    des
    X001  amount
    X002  pt000
    X003  test
    1. Enter formula as: ( X001 u2013 X002)
    The above formula is for fist column u2013 second column.
    2. ( ( X001 u2013 X002) / X003) * 100
    First column u2013 second column and devide by third column after that multiple with 100.
    Hope this will help you
    Regards
    Manohar

  • All the columns of an alv grid report are not downloading in excel in 1 lin

    Hi All,
    I have some 60 columns in my alv grid report and user can download the report using list->export->localfile->spreadsheet.
    What the issue is that all the columns are not downloading in one line, instead they split in two rows.
    Please help.
    Regards,
    Neha Patel

    hi,
    just use this procedure it will solve your problem:
    Firstly export  the data to memory using the FM LIST_FROM_MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = t_listobject
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE e000(su) WITH text-001.
    ENDIF.
    then i converted it into ASCII using LIST_TO_ASCI,
    CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
    listasci = t_xlstab
    listobject = t_listobject
    EXCEPTIONS
    empty_list = 1
    list_index_invalid = 2
    OTHERS = 3.
    IF sy-subrc NE 0.
    MESSAGE e003(yuksdbfzs).
    ENDIF.
    This gives the data in ASCII format separated by '|' and the header has '-', dashes. If you use this internal table directly without any proccesing in SO_NEW_DOCUMENT_ATT_SEND_API1, then you will not get a good excel sheet attachment. To overcome this limitation, i used cl_abap_char_utilities=>newline and cl_abap_char_utilities=>horizontal_tab to add horizontal and vertical tabs to the internal table, replacing all occurences of '|' with
    cl_abap_char_utilities=>horizontal_tab.
    Set the doc_type as 'XLS', create the body and header using the packing_list and pass the data to be downloaded to SO_NEW_DOCUMENT_ATT_SEND_API1 as contents_bin.
    This will create an excel attachment.
    Sample code for formatting the data for the attachment in excel format.
    u2022     Format the data for excel file download
    LOOP AT t_xlstab INTO wa_xlstab .
    DESCRIBE TABLE t_xlstab LINES lw_cnt.
    CLEAR lw_sytabix.
    lw_sytabix = sy-tabix.
    u2022     If not new line then replace '|' by tabs
    IF NOT wa_xlstab EQ cl_abap_char_utilities=>newline.
    REPLACE ALL OCCURRENCES OF '|' IN wa_xlstab
    WITH cl_abap_char_utilities=>horizontal_tab.
    MODIFY t_xlstab FROM wa_xlstab .
    CLEAR wa_xlstab.
    wa_xlstab = cl_abap_char_utilities=>newline.
    IF lw_cnt NE 0 .
    lw_sytabix = lw_sytabix + 1.
    u2022     Insert new line for the excel data
    INSERT wa_xlstab INTO t_xlstab INDEX lw_sytabix.
    lw_cnt = lw_cnt - 1.
    ENDIF.
    CLEAR wa_xlstab.
    ENDIF.
    ENDLOOP.
    Sample code for creating attachment and sending mail:
    FORM send_mail .
    u2022     Define the attachment format
    lw_doc_type = 'XLS'.
    u2022     Create the document which is to be sent
    lwa_doc_chng-obj_name = 'List'.
    lwa_doc_chng-obj_descr = w_subject. "Subject
    lwa_doc_chng-obj_langu = sy-langu.
    u2022     Fill the document data and get size of message
    LOOP AT t_message.
    lt_objtxt = t_message-line.
    APPEND lt_objtxt.
    ENDLOOP.
    DESCRIBE TABLE lt_objtxt LINES lw_tab_lines.
    IF lw_tab_lines GT 0.
    READ TABLE lt_objtxt INDEX lw_tab_lines.
    lwa_doc_chng-doc_size = ( lw_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
    lwa_doc_chng-obj_langu = sy-langu.
    lwa_doc_chng-sensitivty = 'F'.
    ELSE.
    lwa_doc_chng-doc_size = 0.
    ENDIF.
    u2022     Fill Packing List For the body of e-mail
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = 'RAW'.
    APPEND lt_packing_list.
    u2022     Create the attachment (the list itself)
    DESCRIBE TABLE t_xlstab LINES lw_tab_lines.
    u2022     Fill the fields of the packing_list for creating the attachment:
    lt_packing_list-transf_bin = 'X'.
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = lw_doc_type.
    lt_packing_list-obj_name = 'Attach'.
    lt_packing_list-obj_descr = w_docdesc.
    lt_packing_list-doc_size = lw_tab_lines * 255.
    APPEND lt_packing_list.
    u2022     Fill the mail recipient list
    lt_reclist-rec_type = 'U'.
    LOOP AT t_recipient_list.
    lt_reclist-receiver = t_recipient_list-address.
    APPEND lt_reclist.
    ENDLOOP.
    u2022     Finally send E-Mail
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = lwa_doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = lw_sent_to_all
    TABLES
    packing_list = lt_packing_list
    object_header = lt_objhead
    contents_bin = t_xlstab
    contents_txt = lt_objtxt
    receivers = lt_reclist
    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.
    Hope it will help you
    Regards
    Rahul sharma

  • Count a distinct column value in an interactive report

    Hi,
    I'm struggling with this and would appreciate any pointers.
    I have built a view here:
    http://apex.oracle.com/pls/otn/f?p=11189:1
    The report can have duplicate column values. I'm tying to find a way using the interactive report functionality (i.e. without modifying the underlying SQL) to count a distinct column value. For example, in the example following the link I'd like to be able to count the unique customer_ids and return 7.
    This may be fundametally impossible depending on the way the SQL is generated for the interactive reports. If this is the case can anyone confirm this?
    Many thanks
    Yog.

    <B>"Not modifying views is fair enough. But not wrapping a SELECT around them? Really? Why? And as I said, that's imposible, the IR already does it."</B>
    This is not a problem. However for the IR's it's a development decision to keep all reported columns ( and analysis on these columns ) as a seperate development process to be controlled centrally by a seperate team. The point to remember is that the app looks at hundereds of views and it was decided that modifying each report to fit each instance would become cumbersome to manage and to put it simply there are not the resources to do it.
    again, I'm not here to justify any of that!
    <B>SELECT *" ? Every single time? Even when you want to populate a LOV with some names</B>
    No just the Reports. It is a very very simple app; a big list an a page for each report.
    <B>"I think you should always ask what you want, not less, not more"</B>
    I agree, and that should include select * from view.
    <B>"Why fetch data you don't want to see"</B>
    Some users will want to see some data from the view and other users will want to see other data, Over the whole user base someone somewhere will want to see all of it.
    <B> Actually, there is something good in this, in the future, when you will be asked to check and try to improve the load time of some page, here is the first place where you should look</B>
    Brilliant! Like it!!
    <B>Does it by any chance fetch a bunch of 20 meg LOBS and then discards them</B>
    No, Thankfully a few varchar2 columns and a lot of numeric columns, nothing huge. The reports are acutally pretty fast at the moment...

Maybe you are looking for