Dump while downloding the ALV output
Hi,
My requirement is to Develop an ALV report with new Function Keys in the Application Toolbar of the ALV.
For that I have copied the Status of the program 'SAPLSLVC_FULLSCREEN' Status - 'STANDARD_FULLSCREEN' and added few more Function Key's on the Application Toolbar. The new Key's added are working fine but when I try to download the ALV Output using the Download file option on the application toolbar its giving and dump saying 'Field symbol has not yet been assigned'
Runtime Errors GETWA_NOT_ASSIGNED.
Regards,
Ramu N.
Hi, Add this code to the alv report. the report will get downlaoded as an excel sheet to ur hard drive.
FORM DOWNLOAD .
DFILENAME = 'D:\log.xls'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = DFILENAME
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ','
TABLES
DATA_TAB = IT_MDKP
IF SY-SUBRC <> 0.
ENDIF.
ENDFORM. " DOWNLOAD
REWARD POINTS IF USEFUL
Similar Messages
-
Problem while downloading the alv output to excel file.
Hii,
While downloading the alv output to an excel file i am facing a problem. Either the output comes as 1.23456E+11 or the values get cut .
Cant put in txt file as the users require to calculate directy and i have even tried to increase the output length .But both doesnt help.
So what are the other ways to do so.
Edited by: mansi_v27 on Mar 24, 2010 12:35 PMHi,
Welcome to SCN!!!.
Please go through the forum rules. This has been discussed many times. You can search in the forum for this.
Infact there is no problem. Just expand that excel cell. You can see the full value. This is standard excel property.
Thanks,
Vinod. -
Want to save the alv output in local file
Hi,
i want to save the alv output to local file throuh menu.
in out put
system>LIst>save
using oops alv
Regards
Jagadeeshwar.BHi,
I get the following dump when i try to download alv output to local file.Please suggest what is to be done:-
Runtime Errors PERFORM_NOT_FOUND
Except. CX_SY_DYN_CALL_ILLEGAL_FORM
Date and Time 09/23/2008 22:09:28
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FORM', was
not caught in
procedure "METHOD_PRINT_TOP_OF_PAGE" "(FORM)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The program "SAPLSLVC_FULLSCREEN" is meant to execute an external PERFORM,
namely the routine "TOP_OF_PAGE_BATCH " of the program "ZRTCLT06_ALV ", but
this routine does not exist.
Line SourceCde
133 endif.
134
135 export alv_form_html from abap_false
136 to memory id 'ALV_FORM_HTML'.
137
138 endform. " METHOD_END_OF_LIST
139 &----
140 *& Form METHOD_PRINT_TOP_OF_PAGE
141 &----
142 * text
143 ----
144 * --> p1 text
145 * <-- p2 text
146 ----
147 form method_print_top_of_page using value(i_table_index) type syindex.
148
149 if gt_grid-r_salv_fullscreen_adapter is bound.
150 if not gt_grid-i_callback_top_of_page is initial and
151 not i_callback_program is initial.
152 perform (gt_grid-i_callback_top_of_page)
153 in program (i_callback_program) using i_table_index.
154 endif.
155 else.
156 if not gt_grid-i_callback_top_of_page is initial and
157 not i_callback_program is initial.
158 perform (gt_grid-i_callback_top_of_page)
159 in program (i_callback_program).
160 endif.
161 endif.
162
>>>> endform. " METHOD_PRINT_TOP_OF_PAGE
164 ----
165 * FORM METHOD_PRINT_END_OF_LIST *
166 ----
167 * ........ *
168 ----
169 form method_print_end_of_list.
170 if not gt_grid-i_callback_end_of_list is initial and
171 not i_callback_program is initial.
172 perform (gt_grid-i_callback_end_of_list)
173 in program (i_callback_program).
174 endif.
175
176 endform. " METHOD_PRINT_END_OF_LIST
177 &----
178 *& Form METHOD_DOUBLE_CLICK
179 &----
180 * text
181 ----
182 * --> p1 text -
Total is not getting displayed in the ALV output.
Hi,
Total is not getting displayed in the ALV output.
I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY
Are there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY
source code:
DATA: layout TYPE slis_layout_alv,
IT_eventS TYPE slis_t_event,
fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
rec_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
TYPES: BEGIN OF ty_tab,
belnr TYPE dberchz-belnr,
belzart TYPE dberchz-belzart,
net TYPE dberchz-nettobtr,
END OF ty_tab.
DATA: lt_tab TYPE STANDARD TABLE OF ty_tab.
SELECT belnr belzart nettobtr
FROM dberchz
INTO TABLE lt_tab[]
WHERE belnr eq '000000000001'.
if sy-subrc ne 0.
ENDIF.
* defining layout
layout-colwidth_optimize = 'X'.
layout-def_status = 'X'.
*defning event
*event
*defining field catalog
fcat-col_pos = 1.
fcat-fieldname = 'BELNR'.
fcat-tabname = 'LT_TAB'.
APPEND fcat.
fcat-col_pos = 2.
fcat-fieldname = 'BELZART'.
fcat-tabname = 'LT_TAB'.
APPEND fcat.
fcat-col_pos = 3.
fcat-fieldname = 'NET'.
fcat-tabname = 'LT_TAB'.
fcat-do_sum = 'X'.
APPEND fcat.
*calling alv
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = 'YZ_PLR'
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* IT_EXCLUDING =
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = layout
it_fieldcat = fcat[]
i_tabname = 'LT_TAB'
it_events = IT_EVENTS[]
* IT_SORT =
* I_TEXT = ' '
tables
t_outtab = lt_tab[]
* EXCEPTIONS
* PROGRAM_ERROR = 1
* MAXIMUM_OF_APPENDS_REACHED = 2
* OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
Thanks,
GauravHi
No I don't think, this is my code (based on your code) and it works fine:
TYPE-POOLS SLIS.
DATA: BEGIN OF LT_TAB OCCURS 0,
BELNR LIKE BSEG-BELNR,
GJAHR LIKE BSEG-GJAHR,
WRBTR LIKE BSEG-WRBTR,
WAERS LIKE BKPF-WAERS,
END OF LT_TAB.
DATA: LAYOUT TYPE SLIS_LAYOUT_ALV,
IT_EVENTS TYPE SLIS_T_EVENT,
FCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
REC_FCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
START-OF-SELECTION.
FCAT-COL_POS = 1.
FCAT-FIELDNAME = 'BELNR'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-REF_FIELDNAME = 'BELNR'.
FCAT-REF_TABNAME = 'BSEG'.
APPEND FCAT.
FCAT-COL_POS = 2.
FCAT-FIELDNAME = 'GJAHR'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-REF_FIELDNAME = 'GJAHR'.
FCAT-REF_TABNAME = 'BSEG'.
APPEND FCAT.
FCAT-COL_POS = 3.
FCAT-FIELDNAME = 'WRBTR'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-CFIELDNAME = 'WAERS'.
FCAT-REF_FIELDNAME = 'WRBTR'.
FCAT-REF_TABNAME = 'BSEG'.
FCAT-DO_SUM = 'X'.
APPEND FCAT.
FCAT-COL_POS = 4.
FCAT-FIELDNAME = 'WAERS'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-REF_FIELDNAME = 'WAERS'.
FCAT-REF_TABNAME = 'BKPF'.
FCAT-DO_SUM = SPACE.
APPEND FCAT.
SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE LT_TAB
WHERE BUKRS = 'MAAB'
AND BELNR = '0000000001'.
LT_TAB-WAERS = 'EUR'.
MODIFY LT_TAB FROM LT_TAB TRANSPORTING WAERS WHERE WAERS = SPACE.
*CALLING ALV
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
I_CALLBACK_PROGRAM = 'ZPROVAMAX5'.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FCAT[]
I_TABNAME = 'LT_TAB'
IT_EVENTS = IT_EVENTS[]
TABLES
T_OUTTAB = LT_TAB[].
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
I've also inserted a currency field
Max -
Hi all,
System is giving dump while saving the changes in the project.
Short text
The current application triggered a termination with a short dump.
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
Short text of error message:
Profitability segment number 0026636665 does not exist in operating conc
ern XXXX!
Long text of error message:
Diagnosis
The system discovered a serious inconsistency in the data basis of
Profitability Analysis (CO-PA) This message should never occur in
the course of normal operations.
The system tried to find characteristics from the segment table
CE4XXXX using the segment number 0026636665 in operating concern
This profitability segment number does not exist.
This can occur if you have deleted data from table CE4XXXX and have
already assigned data to profitability segments in this operating
concern.
Another cause may be that you have changed the assignment of your
controlling area to an operating concern. When this happens, the
system tries to interpret the segment numbers in the new operating
concern.
System Response
Do not continue processing.
Procedure
The data in the segment table needs to be reconstructed. It may be
possible to re-enter the assignments to profitability segments.
Look in OSS for notes regarding error message KE499. You may find
information there that could help you solve the error.
Otherwise contact your CO-PA consultant or create a problem
message.
Technical information about the message:
Message class....... "KE"
Number.............. 499
Variable 1.......... 0026636665
Variable 2.......... "XXXX"
Variable 3.......... " "
Variable 4.......... " "
Process -
From WBS element user fields, charactertics value are assigned to profitability segment through derivation rule
WBS element values settles to Profitability segmnet.
WBS element has system staus REL ACPT RESA SETC
System is giving dump while saving any changes in the project. can anybody tell what is root cause and solution for this issue?
Thanks,
SudhirRequest you to refer this note 199959. Take help of you CO cosultant.
Edited : Request you to check with your CO consultant as PSG has been deleted, take help fo ABAP as well. ( May be above note may not help you much, WIth help of ABAP and CO define problem and than seach with your message KE499 in Service market place ) That would be better approach.
With Regards
Nitin P.
Edited by: Nitin Patoliya on Mar 10, 2010 5:02 PM -
Dump while copying the entries in view cluster
Hi Experts,
I am having a scenario where i am getting the dump while copying the entries through the vies cluster.
I have 2 tables CU00 and CU01. CU01 is depended on CU00.
CU00- it is having schema which are defined by the user.(SCHEMA-P,DESC)
CU01- this table is having the different tabs in a tab strip for a each of the user defined schema.(SCHEMA-P,SEQNO-P,TABID)
the data will be as follows
In CU00
SCHEMA1 first schema
SCHEMA2 second schema
In CU01
SCHEMA1 01 TAB1
SCHEMA1 02 TAB2
SCHEMA2 01 TAB2
SCHEMA2 02 TAB3
I maintained above 2 tables in a view cluster by making CU00 is the start point and defined the field dependencies as well.
in the T-code SE54 i tried to copy the existing schema and all its dependencies(means all the dependent entries in the CU01 table also).
when i pressed the SAVE button it is going for the dump by saying due to duplicate entries in the table CU01.
but it should check the consistency and display the error message when i pressed the COPY key.
I am badly struck up here. Please help me on this issue.
thanks in advance.Hi Gouri,
CU01 and CU00 both are dictionary tables.
What I think is, while copying all the dependencies for a particular schema the system ha to check whether the data can be inserted into the child tables or not. I too dont know whether this can be done or not.
If not, it should display an error message stating that " primary key violation occurs please use different key values..."
thanks for the reply. -
Dump while Executing the Report HINUINFU
Dear All
I am getting Dump while executing the T.Code - HRPBSIN_IN_INFU (HINUINFU). As per my Configuration it should update the IT0267 and the IT0582. While debugging the We found out that its updating the IT0267 internally. But while reaching to IT0582 its reflecting on the feature 40CEA and the T549D.
here we are having the Telephone Reimbursement for this i copied the Tax code SEXM to ZTEL and assigned to my wage type
I also maintaied this Subtype to the feature 40CEA.
Checked also the IT0582 and its subtype time constraint.
Still the the DUMP persisisting. Please provide the solutions if any of you come across with the same situation.
Thanks & Regards
Srikanth ReddyHi
Issue has been resoved internally. Return value to feature set as HINUOSD0 to MOLGA. hence closing the thread
Regards
Srikanth Reddy -
Getting a dump while executing the standard report BUSCHDOC
Hi,
I am getting a dump while executing the standard report BUSCHDOC.
I am specifying the following values:-
Application Object : BUPA
Business partner:<some business partner>
Changed on: <some date>
Changed by:<some userid>
Below are the dump details
Short text
CREATE DATA: The specified type "BUSSRCH_401BUPAT" is no valid data type.
Any suggestions to avoid the dump are welcome.
Thanks,
RavindraHi Ravindra,
Can you execute report BUP_BUSSRCHGF_REPAIR and try again ?
Also, go to transaction BUS10, click the button Geneate Selection. On next screen, give Application object = BUPA, Max no. of tables per view = 1.
Regards,
Rishu. -
Short dump while changing the end date of infotype 0167 through PA30
Hi all,
I am getting short dump while changing the end date of infotype 0167(Health Plans) through Tcode PA30.
dump descript is as below
An exception occurred that was not caught.
Runtime Errors UNCAUGHT_EXCEPTION
Except. CX_HRPA_VIOLATED_POSTCOND
Date and Time 11.03.2010 07:06:26
What happened?
The exception 'CX_HRPA_VIOLATED_POSTCONDITION' was raised, but it was not
caught anywhere along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_HRPA_SAPUP50R_ADAPTER======CP' has to be
terminated.
thanks
shahidSearch OSS Notes for that.
-
Some fields are missing in the ALV output
Hi ,
I have created a normal ALV report using REUSE_ALV_GRID_DISPLAY . It shows the output correctly. But when I take the prin out or download to an excel sheet some fields are not there. Can I know how to solve this issue ?
Regards,
Beenahi Beena,
If you are downloading the ALV output to excel, please make sure that the DDIC structure is passed as a parameter to the REUSE_ALV. I doubt you are creating field catalog from the program and that DDIC structure is not used.
Hope this helps,
Sajan Joseph. -
Is it possible to create the ALV output with dropdown list for the columns
Hi forum experts,
Could the ALV output contain the dropdown list for the column names? if yes, then how we can acheive this to happen.
Thanks in advance,
Regards,
Samad.
Edited by: Samad arif on Aug 21, 2009 4:40 PMHi Arif,
Yes we can .FOr the codding check the article,
[dropdowns in ALV|https://wiki.sdn.sap.com/wiki/display/Snippets/DropdownsinALV]
regards,
Archana
Edited by: Archana Kumari on Aug 21, 2009 1:22 PM -
How to put the alv output into the spool request?
Hi guys,
How to put the alv output into the spool request?
Thanks!Hi
Sending an ALV List screen output to SPOOL
Convert ALV list to PDF and send mails to respective persons
Regards
Pavan -
ABAP dump while running the tcode MIGO
Hi All,
I am getting the abap dump while running the tcode MIGO when I searched I got two relevant sap notes but our functional team said that its not applicable in our case.
Please find the details of ST22 analysis-:
Runtime Errors MESSAGE_TYPE_X
Date and Time 17.04.2009 13:18:45
Short text
The current application triggered a termination with a short dump.
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
Error analysis
Short text of error message:
No RFC destination is defined for SAP Global Trade Services
Long text of error message:
Technical information about the message:
Message class....... "/SAPSLL/PLUGINR3"
Number.............. 002
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"MESSAGE_TYPE_X" " "
"SAPLMBWL" or "LMBWLU21"
"MB_POST_GOODS_MOVEMENT"
SAP Notes i have reffered 1098491, 1041122
Currently we are running on SAP_APPL 600 0007 SAPKH60007
Regards,
PrashantHi Rohit,
This particular note is valid for
Support
Packages Release Package
Name
PI 2004_1_46B SAPKIPZI38
PI 2004_1_46C SAPKIPZI48
PI 2004_1_470 SAPKIPZI58
PI 2004_1_500 SAPKIPZI68
Our system is running on PI_BASIS 2006_1_700 0005 SAPKIPYM05
Pls suggest.
Regards,
Prashant -
DUMP while running the program RSAR_RSISOSMAP_REPAIR
Hi Experts,
I am facing the dump while executing the DTP. the dump is ITAB_DUPLICATE_KEY.to fix the error ITAB_DUPLICATE_KEY I am referring to the below link :
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a04c82eb-ec7c-2c10-7fae-ca6e764c483a&overridelayout=true
i have run the program RSAR_RSISOSMAP_REPAIR with the repair indicator set.
the issue is its not executing successfully.kinldy help me in this.
the abap errror i m getting while execution of program RSAR_RSISOSMAP_REPAIR is as :
TSPREFIX for TCD500-1 not found.
Kindly help me in resolving the above error TSPREFIX for TCD500-1 not found, where TCD500-1 is my development R/3 system .
Kindly advise.
thanks & regards ,
M.S
Edited by: M.S on Dec 9, 2009 6:41 AMHi,
1) TCD for testing transactions, especially those that do not use controls
2)TCD has the following advantages
3)It has a built in screen simulation for standard screen element
4) No GUI is required for playback
5) It is suitable for load testing
6) The TCD command has the same limitations as the CATT function of the same name. The flow of data to and from controls, as well as screen input values, are recorded. When the test script runs, the controls are deactivated and the user's actions are simulated by reading the recorded data flows
For more info on TCD go through the below link
http://help.sap.com/saphelp_sm32/helpdata/en/83/77cd3b4261706fe10000000a11402f/content.htm
Regards,
Marasa. -
How to extract in the ALV output the old data using EXTRACT
Dear Friends,
I have requiremnt where the user executes the report -
using REUSE_ALV_GRID_DISPLAY FM. On the output
i have given an option to user to edit values on the output. So user will edit the values and updating to the data base this
the functionality which we have given to the custom report till now . Now the user came back and asking to provide a SAVE
option on the ALv output so that before updating the total records to the database he can re edit the values which he
has entered previous day . To do this functionality i have read in ALV documentation using the EXTRACT- INCLUDE vex01top.
I have added this but iam not getting exactly how to do this option when the user saves on the ALV output how can he retrive back the saved data on to the output again( i.e on the ouput screen) using the Extract functionality . If any body has done this
do help me . I would like to know should we maintain any custom table for this,for saving the records when user press
save button? .
Thanks & Regards
Madhuri.> i have read in ALV documentation using the EXTRACT- INCLUDE vex01top.
I don't know where you got that. You have to define your own GUI status (first, copy it from standard status STANDARD_FULLSCREEN of function group SLVC_FULLSCREEN) with your button, and define as follows:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'USER_STATUS' EXCLUDING rt_extab.
ENDFORM. "set_pf_status
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF r_ucomm = 'SAVE'.
ENDIF.
ENDFORM.
> I would like to know should we maintain any custom table
Of course. Create your own custom table. Where else do you want to store data?
Maybe you are looking for
-
Hooking up my Mini to my Linksys wrt54gs wirelessly
I have been trying for hours to get my new mini hooked up wirelessly. I can get it to work if i hook up the ethernet cable, but it will not hook up wirelessly.
-
Hi, We need to automate the returns process. Our client has a non sap returns application. This application has all the details of the returns goods. The application output is a flat file. The client has also SAP installed. In SAP we need to create
-
Exchange server 2010 - Resource mailbox not showing up in GAL
i created a new resource user and mailbox and can not see it in the GAL when I go to set a new meeting. If I go to the Outlook Web Acces I can see the new resource. How can I get the GAL to see the new resource so all staff can start signing up for
-
Printing Reports to Dot-Matrix Printer
I have a customer that is trying to print a report to my company's dot-matrix printer and we keep seeing a "bold/unbold" command (7B, OB) where we should be getting actual bolded text. Is there anyone who has experience printing Oracle reports to a s
-
Customize Send for Review dialog?
Contribute 3.11 Windows Is there any way to customize the Send for Review dialog in order to disable the "Send the draft to another Contribute user" choice? None of our reviewers have Contribute, and editors have the ability to publish. I just had a