Delete the data in alv report
Hi frnds,
Ouput for alv
matnr desc uom alternative Uom
10 scrb kg nos
10 scrb kg EA
But i want to display ths order (delete the duplicates of second line item Except alternative UOM)
matnr desc uom alternative Uom
10 scrb kg nos
xx xxxx xx EA
Pls any one help me.
Thanks in advance.
Hi Kumar,
Populate the Internal table for sorting as mentioned below and pass it to export structure IT_SORT of FM 'REUSE_ALV_GRID_DISPLAY' and then Just Declare ITAB and WA for grouping ( DATA :it_gr TYPE slis_t_sp_group_alv, wa_gr LIKE LINE OF it_gr ) and pass it to exporting structure IT_SPECIAL GROUP of FM 'REUSE_ALV_GRID_DISPLAY' as shown below.
This will display the output as you required but Without XX.
wa_sort-fieldname = 'MATNR'.
wa_sort-tabname = 'ITAB_NAME'.
wa_sort-up = ' '.
wa_sort-down = ' '.
wa_sort-group = ' '.
APPEND wa_sort TO it_sort.
CLEAR wa_sort.
wa_sort-fieldname = 'DESC'.
wa_sort-tabname = 'ITAB_NAME'.
wa_sort-up = ' '.
wa_sort-down = ' '.
wa_sort-group = ''.
APPEND wa_sort TO it_sort.
CLEAR wa_sort.
wa_sort-fieldname = 'UOM'.
wa_sort-tabname = 'ITAB_NAME'.
wa_sort-up = ' '.
wa_sort-down = ' '.
wa_sort-group = ''.
APPEND wa_sort TO it_sort.
CLEAR wa_sort.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repid
is_layout = g_layout
it_fieldcat = it_fieldcat
it_special_groups = it_gr
it_sort = it_sort
TABLES
t_outtab = ITAB_NAME
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.
Similar Messages
-
How to refresh after delete the records in ALV report ?
Hi Friends,
How to refresh after delete the records in ALV report.
I am deleting records in ALV report .
After successful delete the screen should refresh.
u201C Deleted records should not appear in the screen u201C.
Please guide me.
Regards,
SubashHi subhash,
FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
WHEN 'BACK'.
Refresh the internal table from the ALV grid
PERFORM update_alv_tab.
ENDFORM. "user_command
FORM update_alv_tab .
DATA : e_grid TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = e_grid.
CALL METHOD e_grid->check_changed_data.
"update_alv_tab
CALL METHOD e_grid->refresh_table_display.
ENDFORM. " UPDATE_ALV_TAB
Then see in Debug mode is it updating or not..
Please confirm .
And please paste the code if you can.
Regards. -
To add/delete the rows in ALV report outpout
Hi,
Is there any way by which we can add/delete the rows in ALV report output.
Thanks
AnkulHi,
Try out this way:
data: i_modified TYPE STANDARD TABLE OF mara,"For getting modified rows
w_modified TYPE mara.
CASE e_ucomm.
WHEN 'EDIT'.
perform save_database.
CALL METHOD ref_GRID->REFRESH_TABLE_DISPLAY.
ENDCASE.
FORM SAVE_DATABASE .
data: i_selected_rows TYPE lvc_t_row, "Selected Rows
w_selected_rows TYPE lvc_s_row.
* Getting the selected rows index
CALL METHOD ref_grid->get_selected_rows
IMPORTING et_index_rows = i_selected_rows.
* Through the index capturing the values of selected rows
LOOP AT i_selected_rows INTO w_selected_rows.
READ TABLE it_tab INTO wa_it_tab INDEX w_selected_rows-index.
IF sy-subrc EQ 0.
MOVE-CORRESPONDING wa_it_tab TO w_modified.
APPEND w_modified TO i_modified.
ENDIF.
ENDLOOP.
MODIFY mara FROM TABLE i_modified.
Thanks,
Krishna -
Deleting the data in the infocube will delete the data in explorer reports?
Hi,
I have some explorer reports based on the BW queries.
1. I have deleted the data in BW but when I go and check the data is still visible in the explorer reports ? Is there any option once I delete the data in BW the data should also be deleted in the explorer?
2. Once I transport these explorer reports from dev to Quality, if the quality system cube does not have the data then these explorer reports does not show up any data or else it carries the data as well from the devlopment system?
Regards
Ahi,
Explorer reports will take data from Indexes in BWA, so it will show data even if you delete the data from cubes.
you will have to index your queries/ cubes again if you need the latest data.
I guess this can be scheduled through process chains.
Regards, Mayur -
To display the date in ALV report
Hi All,
In the header part of the ALV report, how to write a particular date by the day,month & year and simultaneously how to get the orders due for the week with displaying the weekend date..by the day, month & year.
example :
monday, december 16 2007
orders for the weekend : sunday, december 22 2007.
**and the orders will be displayed here..**
How to get it? is there any function module to display as such, <REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 21, 2008 10:42 AMHi,
Please refer to the below code:
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
*Use FM DATE_TO_DAY to get the day, month and year by specifying the date.
*Date
wa_header-typ = 'H'.
wa_header-info = <variable>.
append wa_header to t_header.
clear wa_header.
* Time
wa_header-typ = 'H'.
wa_header-info = <variable>.
append wa_header to t_header.
clear wa_header.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
* i_logo = 'Z_LOGO'.
endform.
Thanks,
Sriram Ponna. -
How to get the actual data in ALV report
I am doing some upgradation work in that i am using Submit & And return and also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
With the use of set table for 1st display i got the ALV report but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get the actual data in ALV report, With the use of Any Function Module or with Coding,
with regards,Hi Saravana
I am sure you must be getting the values in tables of table parameters from every FM.
consolidate the values from tables of all FMs in one table and built ALV for that table only.
I hope this way you can show the actual data in ALV.
thanks
Lalit -
Exporting data from ALV Report...
Dear All,
While I am exporting data from ALV report to any other Format (Excel, Txt, HTML) it only export the data of last column, but the heading is comming properly and also the column heading is displaying properly.
So how to rectify it. (the report is Object Oriented).
Regards,
DahrmeshHi Davabap,
Refer this sample program "BCALV_GRID_VERIFY" . I hope it is problem with structure mismatching.
Otherwise can you paste your code ?
Regards,
Vicky
PS: Award points if helpful -
How to save the data of ABAP report into a notepad in desktop location???
HI all,
Can any one tell me how to transfer the data of ABAP report into a Notepad.
Actually I have to schedule a ABAP report in background on daily basis and I want to transfer the
whole record into Notepad.
If any program is available for this..please clearify the relevent code for transferring.
Thanks
Rajeevdeclare a character type internal table.
now move your data from it_data ( internal table with data ) into table itab.
since you are running this report in background, you cannot save it to the desktop. Instead give any app server location
data: itab(400) occurs 0 with header line.
field-symbols: <fs1> type any.
data: gv_file type rlgrap-filename default 'TEST.TXT'.
data: gv_filepath type rlgrap-filename default <path>.
LOOP AT it_data.
DO 100 TIMES.
ASSIGN COMPONENT sy-index OF STRUCTURE it_data TO <fs1>.
IF sy-subrc = 0.
CONCATENATE itab <fs1> INTO itab SEPARATED BY ' '.
ELSE.
EXIT.
ENDIF.
ENDDO.
SHIFT itab LEFT DELETING LEADING ' '.
APPEND itab.
CLEAR itab.
ENDLOOP.
concatenate gv_filepath '/' gv_file into gv_file.
OPEN DATASET gv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
LOOP AT itab.
TRANSFER itab TO gv_file.
ENDLOOP.
CLOSE DATASET gv_file.
ENDIF. -
While deleting the data from cube..getting the following erros...
while deleting the data from cube the below error occured in develoment..any help
i have 4 requets.....2 are deltedd but no records for those...
2 are not deleted and they have some data..
please give me u r inputts pelase
Performing check and potential update for status control table
Message no. RSM1490
Diagnosis
If data is loaded into an InfoCube, or existing data is edited (aggregated/compressed/deleted/got from a DataMart), then there is a change in the potential reportability of the data , or the possibility of deleting data by request, or of aggregating or compressing.
This status of each one of these Cubes is stored in a status table, that is updated when there is any change to the status of a request in the Cube.
The system now analyzes the requests in the Cube and compares the calculated status with the status table.
If deviations from the status table arise then you are given the option of adjusting the status table.
System Response Procedure Procedure for System AdministrationHi,
Did you tried by right click on cube and delete data? are those requests are compressed or roll up? -
How to delete the data from KNVP without using the delete statement
Hello friends,
I have a requirement that I have to delete the data from KNVP table without using any delete statement. For it I have to use the Standard BAPI or any standard program.
Can you please tell me the name of the standard program or BAPI to delete the data .
Thanks in Advance
KuldeepHello Raymond,
I have use the function 'CUSTOMER_UPDATE' in which I only gives the data in T_XKNVP table only but still the data is not get deleting. Please see the code below.
=============================================================
REPORT ZK_TEST2 .
data :
I_KNA1 LIKE KNA1,
I_KNB1 LIKE KNB1,
I_KNVV LIKE KNVV,
I_YKNA1 LIKE KNA1,
I_YKNB1 LIKE KNB1.
Data :
T_XKNAS LIKE FKNAS occurs 0,
T_XKNB5 LIKE FKNB5 occurs 0,
T_XKNBK LIKE FKNBK occurs 0,
T_XKNVA LIKE FKNVA occurs 0,
T_XKNVD LIKE FKNVD occurs 0,
T_XKNVI LIKE FKNVI occurs 0,
T_XKNVK LIKE FKNVK occurs 0,
T_XKNVL LIKE FKNVL occurs 0,
T_XKNVP LIKE FKNVP occurs 0 with header line,
T_XKNVS LIKE FKNVS occurs 0,
T_XKNEX LIKE FKNEX occurs 0,
T_XKNZA LIKE FKNZA occurs 0,
T_YKNAS LIKE FKNAS occurs 0,
T_YKNB5 LIKE FKNB5 occurs 0,
T_YKNBK LIKE FKNBK occurs 0,
T_YKNVA LIKE FKNVA occurs 0,
T_YKNVD LIKE FKNVD occurs 0,
T_YKNVI LIKE FKNVI occurs 0,
T_YKNVK LIKE FKNVK occurs 0,
T_YKNVL LIKE FKNVL occurs 0,
T_YKNVP LIKE FKNVP occurs 0 with header line,
T_YKNVS LIKE FKNVS occurs 0,
T_YKNEX LIKE FKNEX occurs 0,
T_YKNZA LIKE FKNZA occurs 0.
T_XKNVP-KUNNR = '7000002648' .
*T_XKNVP-VKORG = '0001' .
*T_XKNVP-VTWEG = '01' .
*T_XKNVP-SPART = '01' .
T_XKNVP-KZ = 'D' .
append T_XKNVP to T_XKNVP.
CALL FUNCTION 'CUSTOMER_UPDATE'
EXPORTING
I_KNA1 = I_KNA1
I_KNB1 = I_KNB1
I_KNVV = I_KNVV
I_YKNA1 = I_YKNA1
I_YKNB1 = I_YKNB1
TABLES
T_XKNAS = T_XKNAS
T_XKNB5 = T_XKNB5
T_XKNBK = T_XKNBK
T_XKNVA = T_XKNVA
T_XKNVD = T_XKNVD
T_XKNVI = T_XKNVI
T_XKNVK = T_XKNVK
T_XKNVL = T_XKNVL
T_XKNVP = T_XKNVP
T_XKNVS = T_XKNVS
T_XKNEX = T_XKNEX
T_XKNZA = T_XKNZA
T_YKNAS = T_YKNAS
T_YKNB5 = T_YKNB5
T_YKNBK = T_YKNBK
T_YKNVA = T_YKNVA
T_YKNVD = T_YKNVD
T_YKNVI = T_YKNVI
T_YKNVK = T_YKNVK
T_YKNVL = T_YKNVL
T_YKNVP = T_YKNVP
T_YKNVS = T_YKNVS
T_YKNEX = T_YKNEX
T_YKNZA = T_YKNZA
============================================================= -
Automatically delete row data on interactive report
Hi All,
I would like to know it's possible to automatically delete row data on interactive report when the check box is checked.
I'm appreciating if you all can share your opinion or solution.
Thanks a lot in advance!
Best regards,
LizHi,
Why you like have checkbox ?
Is it more clear for user have image/button like my example ?
This is just example you need modify according your needs. Example do not have confirmation dialog.
Page HTML header
<script>
function delIRRow(p_pk_val){
var a = new htmldb_Get(null,null,'APPLICATION_PROCESS=DELETE_ROW');
a.addParam('x01',p_pk_val);
var r=a.get();
if(!r=='1'){alert('Delete operation failed!');}else{gReport.search('SEARCH');}
</script>On Demand process DELETE_ROW
BEGIN
delete from your_table where pk_col = APEX_APPLICATION.G_x01;
htp.p('1');
EXCEPTION WHEN OTHERS THEN
htp.p('0');
END;Change your_table and pk_col according your table name and pk column name.
Call javascript from image/button (IR column link) or checkbox, and send primary key value as parametter
Br,Jari
Edited by: jarola on Jul 5, 2010 11:58 AM -
I want to delete the data content for InfoObject in processchain
Hi Guys,
We have requirement to delete the data content for one InfoObject in processchain(daily) .Could you please tell me is there any function module or abap program or any other alternative to do this and which can be added to processchain.
Thanks
Prasannafm RSDMD_DEL_MASTER_DATA
REPORT Z_DEL_MASTER.
tables : RSDIOBJ.
select-options:
s_iobj for RSDIOBJ-IOBJNM.
start-of-selection.
loop at s_iobj.
call function 'RSDMD_DEL_MASTER_DATA'
exporting
I_IOBJNM = s_iobj-low
I_FLG_DELETE_ALL = 'X'
I_FLG_DELETE_SIDS = 'X'
I_FLG_DELETE_SIDS_ASK
I_FLG_DELETE_TEXTS = 'X'
I_T_CHAVL =
I_FLG_DIALOG = ''
I_FLG_FORCE_DELETE = 'X'.
I_FLG_SIMULATION = ''
I_WITHOUT_PROTOCOL = ''
endloop.
Re: Deleting Master data
Cleanup of Master Data
Re: Functionmodule RSDMD_DEL_MASTER_DATA -
I am trying to delete the data from the info cube.
Hi All,
i am trying to delete the data from the info cube.in cube reporting symbol is availble.when i click on delete button delete symbol is coming again when i click on refresh button request is not deleting .please give me solution .
Thanks,
chanduHi,
Also try to delete in Data Mart Status.
R u deleting particular request or the entire data in cube, if entire data then right click on Cube select Delete Data, it entirely deletes Data.
Hope it helps you...Let us know if you still have any issues.
Reg
Pra -
How to delete the data in a table using function
hi all,
i need to delete the data in a table using four parameters in a function,
the parameters are passed through shell script.
How to write the function
Thanks>
But the only thing is that such function cannot be used in SQL.
>
Perhaps you weren't including the use of autonomous transactions?
CREATE OR REPLACE FUNCTION remove_emp (employee_id NUMBER) RETURN NUMBER AS
PRAGMA AUTONOMOUS_TRANSACTION;
tot_emps NUMBER;
BEGIN
SELECT COUNT(*) INTO TOT_EMPS FROM EMP3;
DELETE FROM emp3
WHERE empno = employee_id;
COMMIT;
tot_emps := tot_emps - 1;
RETURN TOT_EMPS;
END;
SQL> SELECT REMOVE_EMP(7499) FROM DUAL;
REMOVE_EMP(7499)
12
SQL> SELECT REMOVE_EMP(7521) FROM DUAL;
REMOVE_EMP(7521)
11
SQL> SELECT REMOVE_EMP(7566) FROM DUAL;
REMOVE_EMP(7566)
10
SQL> -
Error while deleting the Data Source
Hi gurus,
I am getting an error while deleting a Data Source - "Source system XXXXX not found RSAR205".
but that source system no more available.
Is there any way to delete the Data Source.
Thanks in advance.
CK.Hi,
That source system deleted.
Using RSDS also same error.
Thanks,
CK
Edited by: CK on Oct 3, 2008 11:37 AM
Maybe you are looking for
-
HP LaserJet CP1525nw makes terrible swealing noise when printing
Product: HP LaserJet CP1525nw OS: Windows 7 Error Msg: none The product makes a loud squealing noise when printing. It also leaves streak marks on envelopes. Product was purchased Dec. 21, 2010, so is only a little over one year old, but is out o
-
Visual studio 2008 to visual studio 2013 for Bizunit project
Hi Friends, I am migrating the visual studio2013,biztalk 2013.Part of the I am migrating the solutions in visual studio we have some bizunit projects implemented the VS 2008 now I am planning to migrate the vs2013.I am getting so many errors now. Err
-
Creating context node with dynamic type
When we are creating context node thru wizard, Dictionary type must be filled. I'm trying to create Context node manually.Did any one tried created Context node class with Dynamic type.
-
Personal Oracle8 reinstallation problem
I've had Oracle8 Personal Edition installed on my Win'98. I uninstalled it, and tried installing it again from Oracle8 Enterprise Edition (Win NT) client onto Win'98. It copies all files over, and toward the end, it gives me a message of ORAINST caus
-
6700 - any idea how to get battery out?
Stupid question I know but I've bought a 6700 (off Ebay) and it's arrived with the battery in. I need to release it so I can fit my Sim into it. Any clues? It's driving me mad!