ALV totals row ,should not download in EXCEL
Hello ,
I have developed a ALV report with subtotals.
In the output, it will display an extra row with the Grand total, but when we try to downalod into Local PC excel file,
it is downlaoding the totals row also. But the requirement is not to download that.
Any option is there to not to downlad that row ?
Let me know if anything needed.
Thanks,
AV
Hi,
I will suggest one thing.
<li>Define layout structure
DATA: wa_layout type SLIS_LAYOUT_ALV.
<li>One checkbox on selection-screen for with or without total line.
PARAMETERS: p_check AS CHECKBOX.
<li>Now set the below on based on checkbox value
IF p_check = 'X'. "Lets say without total line.
wa_layout-no_totalline = 'X'.
ENDIF.
<li>Now pass wa_layout through REUSE* function module.
Thanks
Venkat.O
Similar Messages
-
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 Patelhi,
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 -
Help remittance does not download into excel fully!
Hi have purchased the PDF to excel converter for business purposes. I often receive remittances that are in excess of 400 lines that I spend a great deal of time trying to reconcile. Why oh why does the converter only download half a page of each remittance for me instead of the whole page and all the data.
The frustrating thing is it does a specific amount of lines and hen jumps to the next page I wold rather it did not do any at all at least I would know then that it is just not possible.
Ay input would make my life a hell of a lot easier and lessen he speed of the grey hairs am beginning to grow with all the stress of this programme.
Many thanksWhat is the exact name of your product? This forum is for Acrobat that can do the conversion, though not necessarily well -- depends a lot on how the PDF was created. It may be that you are not talking about an Adobe product.
-
SALV - ALV selected row Index - Not getting in second time
I am having a ALV grid using CL_SALV_TABLE class. and its have PF-status button "Display" and user select a line and press "Display" button system will display a PDF document from content server.
The following is the code i am using for getting index of selected row.
My problem is user select a line for the first time i am getting the index, but user select second time i am not getting the index
module user_command_0300 input.
call method cl_gui_cfw=>dispatch.
case ok_code.
when c_hist.
perform f_show_history.
when others.
endcase.
clear ok_code.
endmodule.
then
form f_show_history.
data : p_wa_rows type int4.
data : p_i_rows type salv_t_row.
gr_table->get_metadata( ).
p_i_rows = gr_selections->get_selected_rows( )." Here Its failing in second time. P_I_ROWS showing blank second time
clear: wa_output.
read table p_i_rows into p_wa_rows index 1.
if sy-subrc eq 0.
read table i_output into wa_output index p_wa_rows.
if sy-subrc eq 0.
perform f_display_document.
endif..
endif.
refresh : p_i_rows. clear : p_i_rows.
gr_selections = gr_table->get_selections( ).
gr_selections->set_selected_rows( p_i_rows ).
gr_table->refresh( ).
call method cl_gui_cfw=>set_new_ok_code( new_code = 'REFR' ).
endform. " F_show_history
PS : I don't want to place the button in the ALV application toolbar
a®Hi Dear,
I have some clue regarding your problem but that is in simple Alv not in oops.
declare a first field of your internal table i.e. you are passing to alv as cell type c.
then in layout
add
gs_layout-box_fieldname = 'SEL'.
pass this layout to alv.
then you are able to get exact row number.
LOOP AT gt_gi INTO gs_gi WHERE sel = 'X'.
gs_gi-sel = ' '.
APPEND gs_gi TO gt_gi.
CLEAR gs_gi.
ENDLOOP.
Hope this clue will help you.
Regards,
Vijay -
KNA1 table records not downloading to excel correctly
Folks,
Im trying to download KNA1 table records into excel sheet. I can see total number of records in table as 22513, but when i download them into excel sheet then total records are coming to 22521.
When i dig the excel sheet for 4 customers record is present in 2 lines(where because of special characters data truncated to next line). However rest all customers are downloaded in single line.
What steps i need to follow to download that 4 records also into single line along with the special characters.
will be waiting for your valuable answers.
Regards
VEnk@No i checked in table all four records are unique no duplicates present.
-
Constraint for insertion in a table if inserted rows should not more than 2
Problem: A Teacher only can assigned for maximum 2 Subjects in the same class Standard.
actually i want to create a table like following
create table teaches
teacherid int,
standard varchar(10),
subjectcode varchar(10),
constraint cpk_teaches primary key(teacherid, standard, subjectcode)
and i want that when any data inserted in the table,
a constraint will work in the manner that there is
NO POSSIBILITY TO INSERT the data for
(teacherid, standard) columns THRICE (3rd time)
actually i want that only maximum of 2 different data will insert in
(subjectcode) for the same (teacherid, standard)Thanks for the suggestion,
But, my original problem remains on the same stage.
Actually this table has all the keys as foreign key of other tables.
Why?, is not necessary this time.
If you don't mind kindly give me the code of constraint, if any to solve my problem.
Problem: I want to insert only maximum of two different Subjects for same Teacher and Standard and not more.
In real life like following.
Mr. TCHR-1 is teaching subject SUB-1 in standard STD-1.
Mr. TCHR-1 is teaching subject SUB-2 in standard STD-1.
But, can't Mr. TCHR-1 is teaching subject SUB-3 in standard STD-1.
My table structure is not in the state of changing due to some reasons.
It is, as previously described.
create table teaches
tchrid int,
std varchar(10),
subcode varchar(10),
constraint cpk_teaches primary key(tchrid, subcode, std)
) -
% is not getting correctly for the Grand Total Row in OBI10g
Hi,We have a report in table view with the following structure.
Name Target Act %Ach
ABC 100 50 50
XYZ 200 10 5
Total 300 60 27.5
The value for the %Ach Total row should be 20% but in the report it is showing as 27.5.
any one observed this ,how to correct this??
ThanksHi,
To get grand total correctly..configure instanceconfig.xml and put..
<ReportAggregateEnabled>true</ReportAggregateEnabled> between <serverinstace>..
refer..
http://obiee101.blogspot.com/2009/09/obiee-grand-totals-with-calculated.html
Hope it solves ur problem -
Data download in excel based on conditions
Hi ,
I need to download data in excel for selected months from report .
These are the following examples:
A. If on selection screen month is given 4 to 5, then data for 4 and 5 month should be downloaded in
excel and rest other month should'nt downloaded.
B. If on selection screen month is given 1 to 12, then data for 1 to 12 month should be downloaded in
excel( means all month data should be downloaded).
Please suggest me any logic.
Thanks in advance.
Have a good day!
GauravHi,
As far as my knowledge, below are the Suggestions.
1. You need to declare a special Excel download button(New) in the GUI status of your report.
2. handle the above Button Functionality in the User command of your ALV report.
3. For handling the data: In the User command,,,
Loop at the Final Output table, Inside the Loop, check for the entries in the Selection screen Month Entry & Filter the data into another Table.
4. Download the above data in to the Excel file by using custom Download FM's.
Ex: FM: GUI_DOWNLOAD
Note: Also use F4_FILENAME for asking the user for the Path to download excel file.
If this way of solution is Ok for you, Please revert me for any more Help.
Chaitanya... -
Field should not display when it is null
Hi,
I am creating a xml report,I dont want to display row when its value is 0.
eg column1 column2 column3 column4 column4
1 ABC BCA 0 0 0
2 XYZ YXZ 0 1 0
So if 1 is not having any value then that row should not display,it should dispaly only row with values as in 2.
Thanks in Advance....Instead of <?for-each:G_CF_SUB_SEG_VALUE?>
use
<?for-each:G_CF_SUB_SEG_VALUE[TOTAL_CUST_AMT!=0 or TOTAL_CUST_B0!=0 or TOTAL_CUST_B2!=0 or TOTAL_CUST_B3!=0 or TOTAL_CUST_B4!=0 or TOTAL_CUST_B5!=0 or TOTAL_CUST_B6!=0]?> -
Add total row with a webservice
Hi there,
Im trying to update a list view to add the totals to a column subtotal. Im following the instructions given on
Webservice Page
When check the response of the webservice I'm not seeing the aggregation response and the total row is not being added. When I add or remove columns through this webservice it does work. Has anyone experiencing the same issue or knows how
to solve this ?
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateView xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>User1</listName>
<viewName>{LIST VIEW GUID}</viewName>
<viewProperties/>
<query/>
<viewFields/>
<Aggregations Value="On">
<FieldRef Name="subtotal" Type="Sum"/>
</Aggregations>
<formats/>
<rowLimit/>
</UpdateView>
</soap:Body>
</soap:Envelope>Hi,
Is this “subtotal” a valid field name and the type of this column is “Number”?
Also, please add this column into the <viewFields/> and do the test again.
Feel free to reply with the test result if the issue still exists.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
Totals not displaying in excel when download from ALV?
Hi,
I have a program that displays the output in ALV with totals. I am using REUSE_ALV_GRID_DISPLAY. The output in the ALV is correct, totals are also displayed correctly. But when I click on the excel button, data is shown in excel correctly but the TOTALs are not displayed. Please let me know what could be the reason.
I am also trying to put the totals text as
gb_layout-zebra = 'X'.
gb_layout-totals_text = 'Totals'.
but Totals text is not printed in the total of ALV.
Thanks,
DeepthiHi Deepti,
Check your field catalog whether you have missed any parameter.
W_FLDCAT-FIELDNAME = 'NETWR'.
W_FLDCAT-SELTEXT_L = 'Net_Value'.
W_FLDCAT-COL_POS = 6.
W_FLDCAT-OUTPUTLEN = 10.
W_FLDCAT-DO_SUM = 'X'.
W_FLDCAT-DATATYPE = 'CURR'.
My guess you might be getting #### symbols if yes the no problem just extend the excel sheet cell(drag the cell are extend ) you can see the values removing #### symbols.
Cheers!!
VEnk@
Edited by: Venkat Reddy on Nov 1, 2008 11:17 AM -
Field should not display in the subtotal row in ALV report after sorting .
we have a requirement, after sorting and subtotaling, the output in ALV is -
vbeln amount1 amount2 amount3
123 11 12 13
123 12 13 14
123 23 25 27
133 11 12 13
133 12 13 14
133 23 25 27
Now the customer wants the ALV outpput in this fashion -
123 11 12 13
123 12 13 14
23 25 27 --->123 (vbeln) should not come in subtotaling row
133 11 12 13
133 12 13 14
23 25 27--->133(vbeln) should not come in subtotaling rowHi,
if it helps you could create a hierachy. In this way you can define the field catalog for the lines and for the subtotal columns. The only thing is that you would always show the subtotal rows.
You have references of hierachy alvs in
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f
ALV Hierarchy
alv hierarchy
In this case it also sorts
Sorting for ALV hierarchy
I hope it helps.
Edited by: Oscar Pecharroman on Aug 2, 2010 1:13 PM -
One field is not downloading properly from ALV to EXCEL
Hi,
while downloading ALV out put to EXCEL sheet one field(CSTCTR) is not displaying properly it's truncating left and right side digits,
I have used function REUE_ALV_GRID_DISPLAY
FORM SUMMARY_REPORT .
PERFORM BUILD_FIELDCATLOG.
IF I_FINAL[] IS INITIAL.
MESSAGE I000 WITH 'NO DATA EXIST'.
EXIT.
ENDIF.
ST_SETTINGS-EDT_CLL_CB = 'X'.
V_REPID = SY-REPID.
SORT I_FINAL BY WERKS GEBNR PERNR.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_GRID_SETTINGS = ST_SETTINGS
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
IT_SORT = IT_SORT[]
IT_FIELDCAT = IT_FLDCAT[]
IT_EVENTS = IT_EVENTS[]
TABLES
T_OUTTAB = I_FINAL[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ENDFORM. " alv_display summary_report
*& Form build_fieldcatlog
text
FORM BUILD_FIELDCATLOG.
WA_FLDCAT-FIELDNAME = 'WERKS'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'PA'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '1'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'GEBNR'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'LOC'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '2'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PERNR'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'SAP #'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '3'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ADPFN'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'ADP #'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '4'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PERID'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'SSN'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '5'.
WA_FLDCAT-KEY = 'X'.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'KOSTL'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'CSTCTR'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '6'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'NACHN'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'LAST NAME'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '7'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'VORNA'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'FORST NAME'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '8'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'HIREDATE'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'HAL DATE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '9'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'VACDATE'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'VAC DATE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '10'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'GBDAT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'BIRTHDT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '11'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'SENDAT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'SRDATE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '12'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'SERADJDAT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'SVCADJDT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '13'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'TERMDATE'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'TERMDT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '14'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'MGTXT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'TERM REASON'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '15'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'GESCH'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = '***'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '16'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'RACKY'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'RACE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '17'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'VTEXT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'VET STAT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '18'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'EXPAT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'EXPAT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '19'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'DISAB'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'DISAB'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '20'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PTEXT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'STAT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '21'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'STELL'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'JOB'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '22'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'STLTX'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'JOB TITLE'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '23'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PLANS'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'POSITION'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '24'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'PLSTX'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'POSITION T'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '25'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'AAPCT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'JOBGP'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '26'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'EEOCT'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'EEO'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '27'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ZBAND'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'BAND'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '28'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'EEOEX'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'FLSA'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '29'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
*WHEN DIVG
WA_FLDCAT-FIELDNAME = 'BETRG'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'BW/HR'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '30'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ANSAL'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'ANNSAL'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '31'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'WOSTD'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'HRS'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '32'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ZBONPLAN'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'PLAN'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '33'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
WA_FLDCAT-FIELDNAME = 'ZTARGET'.
WA_FLDCAT-OUTPUTLEN = '10'.
WA_FLDCAT-SELTEXT_M = 'TGT'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
WA_FLDCAT-COL_POS = '34'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
ENDFORM. " BUILD_FIELD CATLOGAlso make sure if the reference field name and reference table name in the field cat .
There will be some fields where in when dropped to excel will not hold the field properties and may not download properly,In such cases pass the reference fileds to the field cat .
In the field cat u r using, pass this and check .
WA_FLDCAT-FIELDNAME = ' '. "
WA_FLDCAT-OUTPUTLEN = 'XX'.
WA_FLDCAT-SELTEXT_M = 'XXXXXXXXXXXXXXXXXXx'.
WA_FLDCAT-TABNAME = 'I_FINAL'.
wa_fldcat- -
>reference field name,
wa_fldcat----
>reference table name
WA_FLDCAT-COL_POS = '25'.
WA_FLDCAT-KEY = ' '.
APPEND WA_FLDCAT TO IT_FLDCAT.
CLEAR WA_FLDCAT.
Br,
Vijay. -
PO No is not coming complete in length while downloading in excel from ALV
Hi to all
My problem is
I have declared
EBELN LIKE EBAN-EBELN.
length is 10.
Now in ALV report it is showing complete PO no but
when downloading itto excel , last digit is cut, only 9 digits are displayed.
Why it is so.
Please guide me...
Thanks & regards
AnubhavHi
Please try to declre the field EBELN as character of length 10 in the internal table for ALV.
EBELN type char(10)
<REMOVED BY MODERATOR>
Thanks
Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:00 PM -
Download to Excel is hiding rows in a pivot view
Hello ,
When downloading a report to excel from OBIEE Dashboard , certain rows are getting hidden . For instance , I have total 15 rows in my pivot view and when I download that report into excel format , the rows from 8-13 are not showing up . After 7th row I see 14th row .
But when I download the same report from Answers I can see all rows in the pivot view .
I tried looking at the formatting options of the pivot view and everything is normal . This is happening only with this particular report , other reports in dashboard download normally .
Please let me know if anybody has ideas .
Thank you
Karthikkarthik,
From where ur downloading to excel ...use the download option available at "preview " button ,if you are using the same go with report links download button option
Last option create a new report (without any filters in case if u have)
Thanks,
Saichand.v
Maybe you are looking for
-
Open up "Save As" dialog in javascript
Hello all, I am a newbie to scripting and to be honest it makes my head hurt lol, Kudos to all that make this look easy. I found some good resources but following everything is going to take a bit. I have am using the object model viewer and its
-
Have used PSE11 since Apr, no problems, Organizer wont open
Have used PSE for years, many versions. Yesterday, Organizer wont open. Editor still works fine. Using PSE 11 on W8 machine with "classic shell". Help
-
I inserted an <image> element in a DITA file. In the dialog box, I selected a screen shot (JPG). FM inserted an anchored frame with the graphic in it. The anchored frame was cropped, so I did Special>Anchored Frame and cleared Cropped. Worked fine, s
-
Is updating from Robohelp X5.0.2 to latest version a difficult task?
I realize this is a pretty subjective question, but for someone who is fairly comfortable using version X5.0.2, would it take a day, or a week, or possible a couple months to update a project that contains three chm files, with hundreds of htm files?
-
Talk21 email not working on my Android phone
For over a week now I've been unable to receive any of my talk21 emails on my Android (HTC Desire Z) phone. I can still send emails however. I have been into the Vodafone shop twice and they've tried everything they can think of and I've even done a