For Refreshing a table display in ALV when data is chngd in maintainance vi
Hi All,
I am displaying the fields of a Ztable in a ALV report. A maintainance view call button is attached to that report through which data of Ztable can be changed.Prolem is that when after changing the data when I return back to report, changes are not reflected.
Kindly suggest to solve this problem.
I am using ALV display through class.
I have already used these functions in the else condition of IF GO_CUSTOM_CONTAINER IS INITIAL.
CALL METHOD go_grid->refresh_table_display.
CALL METHOD cl_gui_cfw=>flush.
For maintainance view I am using the function as
VIEW_MAINTENANCE_CALL on double clicking the maintain button.
Kindly suggest.
Ashutosh Kumar
Ashutosh,
Just calling the REFRESH method will not work. You need to re-fetch the data into the same internal table which you using the displaying the data in the grid.
Probably you can write this data fetching as a subroutine and call this as soon as come back from the Maintenance screen. And updating the internal table, call the REFRESH method.
This should work.
Regards,
Ravi
Note : Please reward points if this helps.
Similar Messages
-
My Initials for Game Center are displaying as DC when they should be NC how do I change them ?
My Initials for Game Center are displaying as DC when they should be NC how do I change them ? This makes it confusing for people to add me and is an annoyance please help.
That's because you scanned them as B/W photos and iPhoto 08 doesn't support the grayscale color profile. You can either rescan them as color photos or export them as originals out of iPhoto to a folder on the desktop and applhy this Automator application, Convert to JPG and Embed sRGB Profile, on them and then remimport into iPhoto. You can download it from Toad's Cellar . Be sure to read the warning on the website about not applying it on your only copies.
OT -
No column text displayed in alv when i use dynamic internal table
Hi friends,
when I use dynamic internal table to display the fields in ALV formant, field column text was not displaying ,
total row of column text was blank.
can u sujjest me in this...
with regards,
prasad.Hi
That depends on how you've filled the catalog table, here u need to insert the description for the labels (short, medium and long) and the description for the layout variant management.
So u make sure to fill the fields like
SCRTEXT_L
SCRTEXT_M
SCRTEXT_S
REPTEXT
Max -
Totals for the internal table field in alv
Hi Gurus,
I have an issue in displaying the totals in alv.
I have an internal table with the three fields like below.
scrap_code_001 like afru-xmnga, " Scrap Reason Qty.
scrap_code_002 like afru-xmnga, " Scrap Reason Qty.
scrap_code_003 like afru-xmnga, " Scrap Reason Qty.
In the output table which i am passing to the fieldcatlog is having the three above fields with values 10,3,4 respectively.
I am looping at the internal table
loop at gt_grund.
gv_tabix = sy-tabix.
i_fieldcat-no_zero = gc_x.
i_fieldcat-do_sum = gc_x.
perform assign_alv_qty_format.
if gt_grund-grund is initial.
gt_grund = 'NONE'.
gv_text = gt_grund.
else.
gv_text = gt_grund-grdtx.
endif.
gv_tabixn = gv_tabix.
gv_scrap_code+11(03) = gv_tabixn.
gv_fieldname = gv_scrap_code.
translate gv_fieldname to upper case.
perform bild_fieldcat using
gv_fieldname 'GT_REPORT' 'AFRU' gv_text 'QUAN' '12' ' ' .
endif.
endloop.
But in the output I am getting the totals but it displays totals for all the three columns as 17,17,17 (summing 10,3,4).
How do I display total as 10,3,4 for each column separately.
I appreciate you help and award points for the answerHi,
Please check if value fields i_fieldcat-ref_fieldname and i_fieldcat-ref_tabname regard to numc or curr type.
EX: i_fieldcat-ref_fieldname = 'WRBTR'
I_fieldcat-ref_tabname = 'BSEG'.
Regards,
Fernando -
Regarding table display in ALV header
Hi,
I have a requirement please check the attached jpeg file.
Could any say how can i proceed with the layout to be displayed in the ABAP Report output.Hi Goutham,
Use system fields SY-VLINE and SY-ULINE for designing output.
Here is one simple example to make you understand.
Classical report with sort option - Code Gallery - SCN Wiki
You can search for many examples in scn search also.
You have to put some of effort to achieve your design, but it is can be done using classical reporting.
thanks,
vidyasagar -
How to display success message when data is changed in the custom tab in MM
Hi,
I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
Thanks in advance,
sudhanvaHi Sudhanva,
The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
But the message issued by SAP is not related to this Function Exit.
If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will not issue the message.
In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
Hope this helps.
Regards,
Abhisek. -
How to Display Confirmation message when data is stored in DB ?
Hello.
I am persisting user entered data to database table. But I want to display custom message like "Stored successfully" or "Not Stored".
I am using following approach in my controller and AM impl
in PFR:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
am.invokeMethod("insertDataToDeviceDetailsTable") ;
in AM Impl :
public void insertDataToDeviceDetailsTable(){
getDBTransaction().commit();
//delegating control to Device Details Page
How to do it ? and also what is the best way to show messages in this scenario. As in some pages a dialogue box appears and the page become inactive.
waiting for reply..
Regards,
AjayHi,
You can pint message after am.invoke method:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
am.invokeMethod("insertDataToDeviceDetailsTable") ;
throw new OAException("Stored successfully", OAException.INFORMATION);
in AM Impl :
public void insertDataToDeviceDetailsTable(){
getDBTransaction().commit();
--Sushant -
Table display in Selection Screen
In upper part of selection screen, there would be 2 parameters.
In lower part of selection screen, there would be 2 table display side by side. Data of these two tables can be changed from here.
Parameters are not related with tables data.
After executing the program, all the data from those Database table will be shown into selection-screen's individual table area.
After changing data, while click to 'save' button, changes would reflect into database.
Can any one please help on this matter?HI,
You can do in the following way.
You have to create a different screen for holding the table control.. When the checkbox is ticked just call the screen using CALL SCREEN or LEAVE SCREEn in your program which will display your table control.
or else
Go with module pool program.
Design the screen as your requirement.
Under PBO write the bleow code.
Create a module like MODULE_DEACTIVATE_TC.
write the below code to invisible TC initially.
IF CHECKBOX IS INITIAL.
LOOP AT SCREEN.
IF SCREEN-NAME = 'TC'.
SCREEN-INPUT = '0'.
SCREEN_INVISIBLE = '1'.
MODIFY SCREEN.
ENDIF.
ENDIF.
Create module inder PAI,to acivate TC
MODULE ACTIVE_TC.
inside module write bleow code.
IF CHECKBOX EQ 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'TC'.
SCREEN-INPUT = '1'.
SCREEN_INVISIBLE = '0'.
MODIFY SCREEN.
ENDIF.
ENDIF.
Regards,
Pavan. -
How to find out when data was deleted from table in oracle and Who deleted that
HI Experts,
Help me for below query:
how to find out when data was deleted from table in oracle and Who deleted that ?
I did that to fidn out some data from dba_tab_modifications, but I m not sure that what timestamp shows, wether it shows for update,insert or delete time ?
SQL> select TABLE_OWNER,TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP,DROP_SEGMENTS,TRUNCATED from dba_tab_modifications where TABLE_NAME='F9001';
TABLE_OWNER TABLE_NAME INSERTS UPDATES DELETES TIMESTAMP DROP_SEGMENTS TRU
PRODCTL F9001 1683 46 2171 11-12-13 18:23:39 0 NO
Audit is enable in my enviroment?
customer is facing the issue and data missing in the table and I told him that yes there is a delete at 11-12-13 18:23:39 in table after seeing the DELETS column and timestamp in dba_tab_modifications, but not sure I am right or not
SQL> show parameter audit
NAME TYPE VALUE
audit_file_dest string /oracle/admin/pbowe/adump
audit_sys_operations boolean TRUE
audit_syslog_level string
audit_trail string DB, EXTENDED
please help
Thanks
SamLOGMiner --> Using LogMiner to Analyze Redo Log Files
AUDIT --> Configuring and Administering Auditing -
Need Help in Field Symbol for Dynamically passing table field value
Hi All,
In my internal table I am having data.
I am dynamically forming table field name and substitute for the another table field name to pass DATA.
but I am getting the Variable name insted of Value ie Data.
I am using Field Symbol for this.
data:
Field-symbols <TS> type any.
field1 type string.
LOOP AT TABLEFIELDS INTO WA_TABLEFIELDS.
READ TABLE TEST WITH KEY NAME = WA_TABLEFIELDS-FIELDNAME.
IF SY-SUBRC = 0.
CONCATENATE 'WA_' WA_TABLEFIELDS-TABNAME '-' WA_TABLEFIELDS-FIELDNAME INTO Field1.
Assign Field1 to <TS>.
ALL_VAL-VALUE = <TS>
"After substituting the <TS> into ALL_VAL-VALUE field I need a DATA to be passed but the variable name is appending"*
APPEND ALL_VAL.
ENDIF.
ENDLOOP.
kindly how to pass the value into the table.
Thanks in advance.
SanHi,
pls assign a break point in
CONCATENATE 'WA_' WA_TABLEFIELDS-TABNAME '-' WA_TABLEFIELDS-FIELDNAME INTO Field1.
Assign Field1 to <TS>.
ALL_VAL-VALUE = <TS>
" Put a break point here and check for the value in <TS>.
if <TS> contains value then create a work area for ALL_VAL AND PASS the Field-Symbol to that and then append thw wa into the table...
Hope this works out!!
thanks -
Default partition name for Interval partitioned tables
Hi ,
Can we change the default partition names which are generated by Oracle.
For Example :
CREATE TABLE part_interval (
id NUMBER,
created_date DATE
PARTITION BY RANGE (created_date)
INTERVAL (NUMTOYMINTERVAL(1,'MONTH'))
PARTITION part_01 values LESS THAN (TO_DATE('01-NOV-2007','DD-MON-YYYY'))
Now if I insert values which doesn't fall in the 01-NOV-2007 date, a new partition is created like SYS_P43. Can I change this default partition name in the SQL statement itself . Not through procedures or functions.
Regards,
Raghunathan A
Edited by: 869187 on Jun 29, 2011 6:08 AM869187 wrote:
Hi ,
Can we change the default partition names which are generated by Oracle. post SQL & results that show you can change partition names generated by YOU. -
Help on ALV GRID display outputting format for 2 internal tables
Hi,
I have requirement in ALV GRID where I need to display the data from 2 internal tables. The first internal table has the content of Delivery due list data and second the internal table has the corresponding stock transfer data of the Delivery Due list. I have a checbox on my selection screen, when unchecked it should output the 1st internal table data, i.e for Delivery due list. When it is checked then it should output 1st Internal table data + 2nd internal table data of stock transfer. For example, 1 document delivery due list data and 2nd line for that document should show the stock transfer data. You can also check the transaction code VL10E for that will show a delivery due list...and for stock tranfer,you need to check with Purchase order in in the USer Role tabstrip. Pls suggest.
Regards,
MiraHi,
U can try out this code
REPORT zzz_test NO STANDARD PAGE HEADING
MESSAGE-ID zz.
The Data Declarations
INCLUDE zzm_test_alv_data.
The Selection Screen Definition
INCLUDE zzm_test_alv_selscrn.
The definition and implementation of the event reciever class
INCLUDE zzm_test_alv_class.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM f1000_load_itabs.
END-OF-SELECTION
END-OF-SELECTION.
IF NOT cb_disp IS INITIAL.
CALL SCREEN 9001.
ENDIF.
Include for getting data
INCLUDE zzm_test_alv_forms.
Include for PAI and PBO of screen
INCLUDE zzm_test_alv_screen.
INCLUDE ZZM_TEST_ALV_DATA *
This include has all the data declaration defined
Author............: Judith Jessie Selvi
Creation Date.....: 28/03/2005
Table Declarations:
TABLES: mara,
makt.
Internal Tables:
The following structure type must be defined in the data dictionary
DATA: i_fieldcat TYPE lvc_t_fcat,
i_fieldcat1 TYPE lvc_t_fcat,
i_output1 TYPE STANDARD TABLE OF mara,
i_output2 TYPE STANDARD TABLE OF makt,
Work Areas:
w_output1 TYPE STANDARD TABLE OF mara,
w_output2 TYPE STANDARD TABLE OF makt.
Variable:
DATA: lv_repid LIKE sy-repid.
lv_repid = sy-repid.
INCLUDE ZZM_TEST_ALV_SELSCRN *
Author............: Judith Jessie Selvi
Creation Date.....: 28/03/2005
SELECTION-SCREEN BEGIN OF BLOCK b_main WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS: cb_disp AS CHECKBOX.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN END OF BLOCK b_main.
INCLUDE ZZM_TEST_ALV_CLASS *
This include has all the data declaration defined for ALV
Author............: Judith Jessie Selvi
Creation Date.....: 28/03/2005
INCLUDE <icon>.
Predefine a local class for event handling to allow the
declaration of a reference variable before the class is defined.
DATA : o_alvgrid1 TYPE REF TO cl_gui_alv_grid ,
o_alvgrid2 TYPE REF TO cl_gui_alv_grid ,
cont_for_cognos1 TYPE scrfname VALUE 'BCALC_GRID_01_9100',
cont_for_cognos2 TYPE scrfname VALUE 'BCALC_GRID_01_9200',
custom_container1 TYPE REF TO cl_gui_custom_container,
custom_container2 TYPE REF TO cl_gui_custom_container,
Work Area
w_layout TYPE lvc_s_layo ,
w_variant TYPE disvariant.
Constants
CONSTANTS : c_lay(1) TYPE c VALUE 'A' . " All Layouts
CONSTANTS: BEGIN OF c_main_tab,
tab1 LIKE sy-ucomm VALUE 'MAIN_TAB_FC1', "
tab2 LIKE sy-ucomm VALUE 'MAIN_TAB_FC2', "
END OF c_main_tab.
INCLUDE ZZM_TEST_ALV_FORMS *
This Include has the various forms used in the program
Author............: Judith Jessie Selvi
Creation Date.....: 28/03/2005
*& Form f9001_build_field_cat
To Build Field Catalog
-->P_I_FIELDCAT text
-->P_0021 text
FORM f9001_build_field_cat TABLES p_fieldcat STRUCTURE lvc_s_fcat
USING value(p_structure).
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = p_structure
CHANGING
ct_fieldcat = p_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE i005 WITH 'Error in ALV field catalogue creation'.
" text-e05.
LEAVE LIST-PROCESSING.
ENDIF.
ENDFORM. " f9001_build_field_cat
*& Form f9000_objects_create
For creating Custom Containers
--> p1 text
<-- p2 text
FORM f9000_objects_create.
CREATE OBJECT custom_container1
EXPORTING
container_name = cont_for_cognos1
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
CREATE OBJECT custom_container2
EXPORTING
container_name = cont_for_cognos2
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc NE 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = lv_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
CREATE OBJECT o_alvgrid1
EXPORTING i_parent = custom_container1.
CREATE OBJECT o_alvgrid2
EXPORTING i_parent = custom_container2.
ENDFORM. " f9000_objects_create
*& Form f9003_layout
To define the layout
-->P_SY_TITLE text
-->P_0030 text
-->P_0031 text
-->P_0032 text
FORM f9003_layout USING value(ptitle)
value(pzebra)
value(pmode)
value(pwidth).
w_layout-grid_title = ptitle.
w_layout-zebra = pzebra.
w_layout-sel_mode = pmode.
w_layout-cwidth_opt = pwidth.
w_variant-report = sy-repid.
ENDFORM. " f9003_layout
*& Form f9006_error_handle
To handle event
-->P_PTEXT text
FORM f9006_error_handle USING value(ptext).
IF sy-subrc NE 0.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = text-e03 " Error Note
txt2 = sy-subrc
txt1 = ptext.
ENDIF.
ENDFORM. " f9006_error_handle
FORM EXIT_PROGRAM *
FORM exit_program.
CALL METHOD custom_container1->free.
CALL METHOD custom_container2->free.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc NE 0.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = lv_repid
txt2 = sy-subrc
txt1 = 'Error in FLush'(500).
ENDIF.
ENDFORM.
*& Form f1000_load_itabs
Select from Database
--> p1 text
<-- p2 text
form f1000_load_itabs.
SELECT * FROM mara
INTO TABLE i_output1
UP TO 50 rows.
SELECT * FROM makt
INTO TABLE i_output2
UP TO 50 rows.
endform. " f1000_load_itabs
INCLUDE ZZM_TEST_ALV_SCREEN *
2/ Description / Include functions
This include contains PBO and PAI events for the screen of report
ZZZJJ_TEST_ALV
3/ Responsibility
Author............: Judith Jessie Selvi
Creation Date.....: 28/03/2005
DATA FOR TABSTRIP 'MAIN_TAB'
CONTROLS: main_tab TYPE TABSTRIP.
DATA: BEGIN OF i_main_tab,
subscreen LIKE sy-dynnr,
prog LIKE sy-repid VALUE
'ZZZ_TEST',
pressed_tab LIKE sy-ucomm VALUE c_main_tab-tab1,
END OF i_main_tab.
*& Module STATUS_9001 OUTPUT
text
MODULE status_9001 OUTPUT.
IF custom_container1 IS INITIAL.
SET PF-STATUS 'ZSTATUS'.
SET TITLEBAR 'ZTITLE'.
Creating Object
PERFORM f9000_objects_create.
Building the field catalog
PERFORM f9001_build_field_cat TABLES i_fieldcat
USING 'MARA'.
PERFORM f9001_build_field_cat TABLES i_fieldcat1
USING 'MAKT'.
Modifying the field catalog
PERFORM f9002_modify_field_cat TABLES i_fieldcat.
For Layout
PERFORM f9003_layout USING sy-title 'X' 'B' 'X'.
ENDIF.
ENDMODULE. " STATUS_9001 OUTPUT
*& Module MAIN_TAB_ACTIVE_TAB_SET OUTPUT
Call method to display in the output grid
MODULE main_tab_active_tab_set OUTPUT.
main_tab-activetab = i_main_tab-pressed_tab.
CASE i_main_tab-pressed_tab.
WHEN c_main_tab-tab1.
To display report
i_main_tab-subscreen = '9100'.
CALL METHOD o_alvgrid1->set_table_for_first_display
EXPORTING
is_variant = w_variant
i_save = c_lay
is_layout = w_layout
CHANGING
it_outtab = i_output1[]
it_fieldcatalog = i_fieldcat[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE i000 WITH text-e06."Error in ALV report display
LEAVE LIST-PROCESSING.
ENDIF.
WHEN c_main_tab-tab2.
To display report
i_main_tab-subscreen = '9200'.
CALL METHOD o_alvgrid2->set_table_for_first_display
EXPORTING
is_variant = w_variant
i_save = c_lay
is_layout = w_layout
CHANGING
it_outtab = i_output2[]
it_fieldcatalog = i_fieldcat1[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE i005 WITH text-e06."Error in ALV report display
LEAVE LIST-PROCESSING.
ENDIF.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE. MAIN_TAB_ACTIVE_TAB_SET OUTPUT
*& Module MAIN_TAB_ACTIVE_TAB_GET INPUT
Check & Process the selected Tab
MODULE main_tab_active_tab_get INPUT.
CASE sy-ucomm.
WHEN c_main_tab-tab1.
i_main_tab-pressed_tab = c_main_tab-tab1.
WHEN c_main_tab-tab2.
i_main_tab-pressed_tab = c_main_tab-tab2.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE. MAIN_TAB_ACTIVE_TAB_GET INPUT
*& Module USER_COMMAND_9001 INPUT
User Command
MODULE user_command_9001 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
PERFORM exit_program.
SET SCREEN '0'.
WHEN 'EXIT' OR 'CANC'.
PERFORM exit_program.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. USER_COMMAND_9000 INPUT
*& Module MAIN_TAB_ACTIVE_TAB_SET INPUT
Set sunscreen
MODULE main_tab_active_tab_set INPUT.
main_tab-activetab = i_main_tab-pressed_tab.
CASE i_main_tab-pressed_tab.
WHEN c_main_tab-tab1.
i_main_tab-subscreen = '9100'.
WHEN c_main_tab-tab2.
i_main_tab-subscreen = '9200'.
WHEN OTHERS.
DO NOTHING
ENDCASE.
ENDMODULE. MAIN_TAB_ACTIVE_TAB_SET INPUT
Thanks & Regards,
Judith. -
Table Display in for OO ALV Grid
Hello All,
I have an internal table with the following setup:
DATA: BEGIN OF mat_locs OCCURS 0,
matid LIKE /sapapo/matloc-matid,
locid LIKE /sapapo/matloc-locid,
pegids TYPE /sapapo/om_pegid_tab,
END OF mat_locs.
The PEGIDS is a Table of GUIDs. It is possible that the PEGIDS table can have more than one entry for each MATID and LOCID. Currently, I am only able to have one line item appear in the ALV grid when there are two in PEGIDS. Is there a setting that I am missing to display this correctly? Thanks for your help in advance.
JohnHi,
I am not sure how to display second level internal table in an ALV grid..
But I can suggest you one thing..
Create an internal table with the following fields..
DATA: BEGIN OF ITAB OCCURS 0,
matid LIKE /sapapo/matloc-matid,
locid LIKE /sapapo/matloc-locid.
INCLUDE STRUCTURE /sapapo/om_pegid. "GIVE THE STRUCTURE and not the table type..
DATA: END OF ITAB.
Populate the data..
Create a sort order for the fields matid & locid..And then display the records..
Thanks,
Naren -
Need to remove space for a field when displayed in ALV Report
Hi,
I have material field of length 18, but the content is only 10 char. I need to remove the extra space when it is displayed on ALV Report.
Is there any option in ALV field catalogueuse statement condense.
condense zmatnr.
also giv output lenth of alv column as 10. -
Refreshing ALV when action is triggered using button
Hello Friends,
I have a drop down list having 3 values "Last 30 Days", "Last 60 Days" and "Last 90 Days". If I select Last 30 Days and click on button "Search" it gives me record for the last 30 days. But, if I click again on "Last 60 Days" it duplicates the record that was already in. So it does not refresh the previous result. I have added the code as below to refresh ALV but, it refresh the table but not the ALV. My View name is "MY PO INVOICES" and the context node name is 'MY_PO_INV' .
DATA ln_node type REF TO if_wd_context_node.
ln_node = wd_context->get_child_node( 'MY_PO_INV' ).
ln_node->invalidate( ).
Please let me know how do I refresth the result in the ALV display when I trigger the event.
Thks & Rgds,
HemalHello All,
Thanks very much for your responses. I tried to bind the alv table. But, I think I am doing some thing wrong here. Below is my code. Please let me know where I am doing wrong. Appreciate your help.
lv_thirtydays = 'LAST 30 DAYS'.
lv_sixtydays = 'LAST 60 DAYS'.
lv_ninetydays = 'LAST 90 DAYS'.
if ZDAYS = lv_thirtydays.
lv_zpostingdate = sy-datum - 30.
ENDIF.
lv_zpostingdate_to = sy-datum.
if ZDAYS = lv_sixtydays.
lv_zpostingdate = sy-datum - 60.
ENDIF.
if ZDAYS = lv_ninetydays.
lv_zpostingdate = sy-datum - 90.
ENDIF.
ln_node = wd_context->get_child_node( 'MY_PO_INV' ).
ln_node->invalidate( ).
LOOP AT lt_context_value_set INTO cocd_context_value_set.
lv_zcompany = cocd_context_value_set-text.
lv_zusername = username.
lv_zdays = ZDAYS.
CALL FUNCTION 'ZEBP_MY_PO_INV_SEARCH'
EXPORTING
bldat = lv_zpostingdate
bldat_to = lv_zpostingdate_to
bukrs = lv_zcompany
usnam = lv_zusername
ZDAYS = lv_zdays
tables
invsrch = zsearch.
ln_node->bind_table( zsearch ) .
SORT zsearch BY zcompany.
DATA lo_nd_get_po_inv TYPE REF TO if_wd_context_node.
lo_nd_get_po_inv = wd_context->get_child_node( name = wd_this->wdctx_my_po_inv ).
CALL METHOD lo_nd_get_po_inv->bind_table
EXPORTING
new_items = zsearch.
ENDLOOP.
Thks & Rgds,
Hemal
Maybe you are looking for
-
ITunes 8 not compatable with XP SP3?
today I updated my iTunes using the apple software update and it said during the install that the software did not clear the windows testing. when the install finished I restarted the computer like it said too.Now when ever I try to open iTunes I get
-
ISight problem with photobooth, skype, etc
Hi everyone, I've been having a problem with iSight recently. Whenever I try to use it for Skype or PhotoBooth, the green light turns on but all I see is a black screen. It works with flash based websites on Chrome though. I have the Gmail video plug
-
Some artists missing from the "following" list
I noticed that there are some artists that I follow who do not appear in the "following" list of my profile. This is a problem when I forget the name of some of my followed artists and I don't find them no longer on the list, loosing this way the pos
-
Hi folks, I have a huge problem here. I have a apache 2.0.50 on a Linux system that is to act as a reverse proxy for an enterprise portal. I have set up the apache to do reverse proxying and so far I have made first success. I can get to the login pa
-
How can i recover my security questions and answer
How can i recover my security questions and answer?