Close Pop Up alv
Hi,
I have a popup which has a ALV grid control. My requirement is that when i click on the button "X" positioned on the top of page at right(CLOSE), popup should be close.
Part of code
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gv_gd_repid
i_callback_pf_status_set = 'SET_STATUS_101' "status
i_callback_user_command = 'USER_COMMAND'
i_grid_title = ''
i_callback_html_end_of_list = 'END_OF_LIST_HTML'
is_layout = gv_gd_layout
it_fieldcat = gv_fieldcatalog[]
i_screen_start_column = 5
i_screen_start_line = 5
i_screen_end_column = 100
i_screen_end_line = 20
it_event_exit = it_event_exit[]
Thanks in advance.
Salvatore
Hi,
Check the below code.....
DATA gt_outtab TYPE TABLE OF mara.
SELECT * FROM mara INTO TABLE gt_outtab UP TO 20 ROWS.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_structure_name = 'MARA'
i_screen_start_column = 10
i_screen_start_line = 5
i_screen_end_column = 80
i_screen_end_line = 15
TABLES
t_outtab = gt_outtab
EXCEPTIONS
program_error = 1
OTHERS = 2.
Cheers,
Jose.
Similar Messages
-
Regarding POP-UP ALV..
Hi..
How can display the data in POP-UP using ALV.
If I clicked on purchase order number , then I want to display Item data in POP-UP ALV.
Which function module I can use.
If any one is having sample code.
Please send me.
Regards
Sandeep.sandeep,
Step 1:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = ws_repid
i_callback_user_command = 'USER_COMMAND'
is_layout = gs_layout
it_fieldcat = i_fcat
TABLES
t_outtab = i_final.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&IC1'.
READ TABLE i_final INTO i_final INDEX rs_selfield-
tabindex.
Here you will get the seleted po number in internal table
i_final.
based on i_final-purchase order number
select item data into one more internal table
and again declare field catelog for your popup.
and use again below FM
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = ws_repid
i_callback_user_command = 'USER_COMMAND'
is_layout = gs_layout
it_fieldcat = i_fcat
TABLES
t_outtab = new_internal table item data.
Don't forget to reward if useful.....
ENDCASE.
ENDFORM. "user_command -
How to close pop up error messages
Hi,
I am running a sequence that contains sub-sequences. Sometimes an error may occur and a 'System Level Exception Handling' pop up error message will appear. I want the pop up window to be recognised so that my sequence doesn't hang waiting for a user to hit a button on the pop up window. Is there a way to be able to close pop up windows (e.g. error messages from windows) from TestStand?
Thanks a lot,Hello,
It really depends on the source of the error messages. If the error messages are coming from TestStand, you can turn off the error handling dialogs from the Station Options screen. You can also customize your error processing by overriding the SequenceFilePostStepRuntimeError Engine Callback. However, if the error message is being generated by one of your code modules, then it is outside of TestStand's control and you'll have to implement proper error handling procedures in the code module.
Regards,
Ryan K. -
Open and Close Pop-up Window??
Hi,
I have to components consiider A and B.
I want to open window B as pop-up window when I click a button on window A.
After that again I have to close that pop-up window(i.e. B) and return back to window A.
Thanks and Regards,
RahulHi Rahul,
In the onAction event of the button for component A you could use the following code :
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(wdComponentAPI.getComponentInfo().findInWindows("Window B"));
window.setWindowPosition(270,120);
((Window)window).setTitle("My Window");
window.open();
wdContext.currentPopUpElement().setWindowInstance(window);
In the onAction button event for component B to close the window you could use the following code :
IWDWindow window = wdContext.currentPopUpElement().getWindowInstance();
window.destroy();
You could create a Value Node named Popup which contains a VA WindowInstance of type IWDWindow and define the context mapping.
Hope this helps. -
Help,how close pop-up window ,and open another view
Hello,
How click the pop-up window button ,then close the pop-up window .
At the same time open another VIEW,and transfer PO number to the VIEW.
thanksHi,
First step is set the SCREEN TYPE as "Modal Dialog Box" in screen property tab.
Then in PBO of the popup screen take a new GUI status and select DIALOG BOX as status type.
Then assign some function code in 'X' button say 'CANCEL'.
the put ur logic like below :
PBO
module gui_status.
PAI.
module user_command.
module gui_status.
set pf-status 'ZPOPUP'.
endmodule.
module user_command.
if ok_popup = 'CANCEL'. " Where ok_popup is the ok_code variable in ur popup screen , also define it in TOP include
leave to screen 0.
endif.
endmodule.
Hope this will solve your problem and help you to put your logic.
Thanks -
hello people! So far I have done some good progress regarding this thanks to many of you people. I do have some hurdles and one of them involves ALV Reports. So far I use
WWW_LIST_TO_HTML - to temporarly store the list report to a table known as ihtml.
and Open/Transfer/Close data set to send the file to the application server using the syntax below
<b>OPEN DATASET file FOR OUTPUT IN BINARY MODE.
LOOP AT ihtml.
TRANSFER ihtml TO file.
ENDLOOP.
CLOSE DATASET file.</b>
So far the program works fine in the report with the expection if its one that generates an ALV Report.
My question is that is there a way to successfully run the program the way it was mentioned above using ALV? If so what techniques do you guys suggest?
<b>Note:</b> Also please note the report and transfering/writing of the file has to be done during background processing.
Hope I get some replies soon as many of you have been most helpful thank you and good day.Hi chad,
1. yes u are right
2. it will give this error only.
3. the reason is, the www_list_to_html
is exected after list display,
4. the code comes there when
we press BACK, and at that time
no list is there in memory.
<b>5. So we have to use some workaround.
6. END_OF_LIST
7. We have to use this EVENT
and inside this event,
we have to export to HTML.</b>
8. I tried and it works FANTASTIC
9. Just copy paste this program.
(it will show a alv list of t001,
and write the HTML file also)
( i have used END_OF_LIST event)
10.
REPORT abc.
TYPE-POOLS : slis.
Data
DATA : BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE t001.
DATA : END OF itab.
DATA : alvfc TYPE slis_t_fieldcat_alv.
Select
SELECT * FROM t001 INTO TABLE itab.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'ITAB'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
DATA : alvev TYPE slis_t_event .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = alvev.
PERFORM alv_setevent USING 'END_OF_LIST' 'ITAB'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = alvfc
i_callback_program = SY-REPID
i_callback_user_command = alvcallback_formname
it_events = alvev[]
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
form itab_end_of_list.
Display
data : ht like table of W3HTML.
CALL FUNCTION 'WWW_LIST_TO_HTML'
EXPORTING
list_index = sy-lsind
TABLES
HTML = ht
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = 'd:\my.html'
tables
data_tab = ht
endform.
*=============This Function Links the Event Name To The Specified Form
FORM alv_setevent USING value(eventname) value(alvitabname).
DATA: tempev TYPE slis_alv_event.
DATA : formname(30) TYPE c.
TRANSLATE eventname TO UPPER CASE.
CONCATENATE alvitabname '_' eventname INTO formname.
TRANSLATE formname TO UPPER CASE.
LOOP AT alvev INTO tempev WHERE name = eventname.
tempev-form = formname.
MODIFY alvev FROM tempev.
ENDLOOP.
ENDFORM. "alv_setevent
regards,
amit m. -
Dear experts,
we are facing the following issue:
we create an external window using window manager.
wd_this->go_window = lo_window_manager->create_window(
window_name = 'WI_XXX
title = XXX
* close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none
* default_button = if_wd_window=>co_button_ok
* default_button = if_wd_window=>co_buttons_okcancel
We assigned an action to the pop up ok button.
wd_this->go_window->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
action_name = 'POPUP_OK_XXX
action_view = lo_view_controller "wd_this->wd_get_api( )
is_default_button = abap_true ).
Clicking on OK Button, the action fires - the code is working fine.
But: after our code is finished, the screen has to be refreshed. We fired an exit plug of the current window, providing the url of the current application. This is working fine too, but the pop up window is still open and modal, even if we invoke the close method of the popup window directly before fireing the exit plug. In the background we can see the refreshed application, but it is not possible to do anything.
Does anyone have a solution for this?
We tried setting close_in_any_case to true and so on ... but nothing works.
The problem occurs both create_window and pop_up_to_confirm ...
Regards, FlorianHi,
alright..in this case i would say create your own close btn on the view you are embeding inside this pop-up window and try to close the window in its action method....
here is the code to get rid of all the standard btns:
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'POPUP_WINDOW'
title = title_txt
* close_in_any_case = abap_false
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_false
* button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none
* default_button = if_wd_window=>co_button_ok
wd_comp_controller->lo_popup_window = lo_window.
lo_window->open( ).
Thanks..
AS -
Hi,
I am getting an alv grid output....and when i double click on a field i want a POP UP GRID ALV to be shown on that same screen.....
Thanks in advance......You have to capture the double click event in the alv grid, then call function 'POPUP_FOR_INFORMATION' or some related to make the popup.
To capture the event in the ALV:
CLASS lcl_event_handler DEFINITION .
PUBLIC SECTION .
DATA: e_row_id TYPE REF TO lvc_s_row.
DATA: e_column_id TYPE REF TO lvc_s_col.
DATA: es_row_no TYPE lvc_s_roid.
DATA: es_col_id TYPE REF TO lvc_s_col.
*Double-click control
METHODS handle_button_click
FOR EVENT button_click OF cl_gui_alv_grid
IMPORTING es_col_id es_row_no. " E_COLUMN_ID.
PRIVATE SECTION.
ENDCLASS. "lcl_event_handler DEFINITION
CLASS lcl_event_handler IMPLEMENTATION .
*Handle Hotspot Click
METHOD handle_hotspot_click .
PERFORM handle_hotspot_click USING e_row_id e_column_id.
ENDMETHOD . "handle_hotspot_click
*Handle Button Click
METHOD handle_button_click .
PERFORM handle_button_click USING es_col_id es_row_no.
ENDMETHOD . "handle_Button_click
ENDCLASS . "lcl_event_handler IMPLEMENTATION
Then the form to make the popup:
FORM handle_button_click USING es_col_id TYPE lvc_s_col
es_row_no TYPE lvc_s_roid.
ENDFORM. " handle_double_click
Regards -
Hi Friends,
I want to know how I can close a pop up on clicking a button on the pop up. please helpHi,
Try the below code
CALL METHOD comp_controller->window_manager->create_popup_2_confirm
EXPORTING
iv_title = 'your window title'
iv_text = 'any text in the popup screen?'
iv_btncombination = if_bsp_wd_window_manager=>CO_BTNCOMB_YESNO
RECEIVING
rv_result = m_popup.
IF m_popup IS BOUND.
m_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
m_popup->set_window_height( 140 ).
m_popup->set_window_width( 250 ).
m_popup->SET_ON_CLOSE_EVENT( IV_EVENT_NAME = 'CONFIRM_POPUP_CLOSED' IV_VIEW = ME ). "#EC NOTEXT
ENDIF.
m_popup->open( ).
the above code you need to put in the button event handler again to close the pop up you need to create a new event handler like in above code Confirm_popup_closed and put you code there.
METHOD eh_onconfirm_popup_closed.
DATA: lv_answer TYPE string,
lv_save_result TYPE abap_bool,
lr_application TYPE REF TO cl_crm_bol_entity,
lr_tx TYPE REF TO if_bol_transaction_context,
lr_coco TYPE REF TO cl_crmcmp_g_bspwdcompone0_impl.
INCLUDE: crm_object_types_con.
* Retrieve the answer
* this is where you can tell which button has been hold
lv_answer = confirm_popup->get_fired_outbound_plug( ).
CASE lv_answer.
WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_yes.
*put your logic
WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_no.
WHEN OTHERS.
ENDCASE.
ENDMETHOD.
Hope it will be helpful.
Thanks,
Shobhit -
Newbie: How to close pop-up when movie ends
Hi.
I'm new to AS3. So please bare with me.
I am creating a touch screen interactive for a museum. I have a AS2 button opening a AS3 swf file popup (no html). This AS3 file shows a movie. How can I get the pop-up to close down when the move has finished without the use of a button. I have a button option too.
The movie is an FLVPlayback obviously linked fro an FLV file. (so only 1 frame is showing)
Any ideas. This is the only thing I can't work out. It's the last thing on the project.
Thanks for any help.Sorry if I've not been clear. I want to leave the AS2 swf open as the main page. The buttton in the AS2 open the AS3 swf pop-up. The AS3 pop-up, plays it's movie. At the end of the movie I want the AS3 to close automatically. then on screen will be the AS2 file, in full screen which was always open from before.
It's the AS3 i need to close itself after it's movie has been played. So is some script I need help with which will close the AS3 swf file (in a pop up) after it has finished. eg I want the AS3 to close itself down. Nothing to do with the AS2 window which is always open (behind) -
Can't close pop up ad in Words with Friends
IWhile playing Words With Friends got a pop up ad for Verizon that will not close and can't continue playing. Clicking on top right hand close X does not work
I have noticed the same problem when using Win 8 Pro. Works fine with Win 7 Pro. CHrome also doesn't work from Win 8 but Sarfari works partially. Problem with it is you need to refresh (F5) the screen after each completed play.
-
Re: Safari locked down, wouldn't close, & pop up about encrypted data?
I had a similar experience, except that even after force quitting Safari & booting the machine, Safari remains locked down. Do I have to hard boot with Safari open? Will even that work now that I've used the soft boot? Is there a way to reload Safari?
Quit and relaunch Safari while holding down the shift.
-
Hi all,
How to trigger a pop-up alv report upono double click on a row in a report developed using OO ALV.
Do i need to trigger any method and call fm REUSE ALV POP UP? Please help!
Helpful answers will be rewarded.
Thanks,
SandeepHi Sandeep,
This might help:
User selects infotypes from a pop up alv .The details of
*infotypes selected are displayed in a ALV dialog box.
REPORT ZALV_POPDIALOG.
*Type pools for ALV declarations
TYPE-POOLS : slis.
*Internal table and wa declarations for T582A.
DATA : it_t582a TYPE STANDARD TABLE OF t582a INITIAL SIZE 0,
wa_t582a TYPE t582a.
*Internal table and wa declarations for T582S.
DATA : it_text TYPE STANDARD TABLE OF t582s,
wa_text TYPE t582s.
*Structure declaration for output
TYPES : BEGIN OF ty_output,
infty TYPE infty,
zeitb TYPE dzeitb,
itext TYPE intxt,
pnnnn TYPE pnnnn_d,
dname TYPE dianm,
namst TYPE namst,
edynr TYPE edynp,
ldynr TYPE ldynp,
stypt TYPE stypt,
sytxt TYPE sytxt,
zbtab TYPE dzbtab,
checkbox(1),
END OF ty_output.
*Internal table and work area declaration for output in pop up
DATA : it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
wa_output TYPE ty_output.
*Internal table and workarea declaration for alv dialog display
DATA : it_display TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
wa_display TYPE ty_output.
*data declarations for ALV
DATA:ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv,
ls_fieldcatlog TYPE slis_fieldcat_alv,
lt_fieldcatlog TYPE slis_t_fieldcat_alv,
lt_layout TYPE slis_layout_alv.
*Initialization event
INITIALIZATION.
*Start of selection event
START-OF-SELECTION.
*Select to fetch all the infotypes and details in sap system
SELECT *
FROM t582a
INTO CORRESPONDING FIELDS OF TABLE it_t582a.
*Select to fetch the infotypes text
IF it_t582a[] IS NOT INITIAL.
SELECT * FROM t582s INTO CORRESPONDING FIELDS OF TABLE it_text
FOR ALL ENTRIES IN it_t582a WHERE infty = it_t582a-infty
AND sprsl = 'E'.
ENDIF.
*Appending the selected values to the output table
LOOP AT it_t582a INTO wa_t582a.
wa_output-infty = wa_t582a-infty.
wa_output-zeitb = wa_t582a-zeitb.
wa_output-pnnnn = wa_t582a-pnnnn.
wa_output-dname = wa_t582a-dname.
wa_output-namst = wa_t582a-namst.
wa_output-edynr = wa_t582a-edynr.
wa_output-ldynr = wa_t582a-ldynr.
wa_output-stypt = wa_t582a-stypt.
wa_output-sytxt = wa_t582a-sytxt.
wa_output-zbtab = wa_t582a-zbtab.
READ TABLE it_text INTO wa_text WITH KEY infty = wa_t582a-infty.
wa_output-itext = wa_text-itext.
APPEND wa_output TO it_output.
CLEAR wa_output.
ENDLOOP.
*Subroutine to display the pop up values.
PERFORM popup_display.
*Subroutine to display the ALV dialog display
PERFORM alv_output.
Form popup_display
FORM popup_display.
*field catalogue for pop up
CLEAR ls_fieldcat.
ls_fieldcat-row_pos = '1'.
ls_fieldcat-col_pos = '1'.
ls_fieldcat-fieldname = 'CHECKBOX'.
ls_fieldcat-tabname = 'IT_OUTPUT'.
ls_fieldcat-seltext_m = 'SELECT'.
APPEND ls_fieldcat TO lt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-row_pos = '1'.
ls_fieldcat-col_pos = '2'.
ls_fieldcat-fieldname = 'ITEXT'.
ls_fieldcat-tabname = 'IT_OUTPUT'.
ls_fieldcat-seltext_m = 'DESCRIPTION'.
ls_fieldcat-outputlen = 50.
APPEND ls_fieldcat TO lt_fieldcat.
Display data in a POPUP
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_zebra = 'X'
it_fieldcat = lt_fieldcat
i_tabname = 'IT_OUTPUT'
i_checkbox_fieldname = 'CHECKBOX'
TABLES
t_outtab = it_output.
*Appending the selected infotypes only to internal table
LOOP AT it_output INTO wa_output WHERE checkbox = 'X'.
wa_display-itext = wa_output-itext.
wa_display-infty = wa_output-infty.
wa_display-zeitb = wa_output-zeitb.
wa_display-pnnnn = wa_output-pnnnn.
wa_display-dname = wa_output-dname.
wa_display-namst = wa_output-namst.
wa_display-edynr = wa_output-edynr.
wa_display-ldynr = wa_output-ldynr.
wa_display-sytxt = wa_output-sytxt.
wa_display-stypt = wa_output-stypt.
wa_display-zbtab = wa_output-zbtab.
APPEND wa_display TO it_display.
CLEAR wa_display.
ENDLOOP.
ENDFORM. " popup_display
*& Form alv_output
FORM alv_output .
*fieldcatalogue for ALV dialog
PERFORM build_fieldcat.
*Layout for ALV dialog
PERFORM build_layout.
**ALV dialog output
PERFORM alv.
ENDFORM. " alv_output
*& Form build_fieldcat
FORM build_fieldcat .
*fieldcatalogue for alv dialog
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '1'.
ls_fieldcatlog-fieldname = 'INFTY'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'Infotype'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '2'.
ls_fieldcatlog-fieldname = 'ITEXT'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'Description'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '3'.
ls_fieldcatlog-fieldname = 'ZEITB'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'TimeConstraint'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '4'.
ls_fieldcatlog-fieldname = 'PNNNN'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'Structure'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '5'.
ls_fieldcatlog-fieldname = 'DNAME'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'DialogModule'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '6'.
ls_fieldcatlog-fieldname = 'NAMST'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'Subtypefield'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '7'.
ls_fieldcatlog-fieldname = 'EDYNR'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'Singlescreenno'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '8'.
ls_fieldcatlog-fieldname = 'LDYNR'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'Listscreenno'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '9'.
ls_fieldcatlog-fieldname = 'STYPT'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'SubtypTable'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '10'.
ls_fieldcatlog-fieldname = 'SYTXT'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'Subtyptexttable'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
CLEAR ls_fieldcatlog.
ls_fieldcatlog-row_pos = '1'.
ls_fieldcatlog-col_pos = '11'.
ls_fieldcatlog-fieldname = 'ZBTAB'.
ls_fieldcatlog-tabname = 'IT_DISPLAY'.
ls_fieldcatlog-seltext_m = 'SubtypeTCTable'.
APPEND ls_fieldcatlog TO lt_fieldcatlog.
ENDFORM. " build_fieldcat
*& Form build_layout
*Layout for ALV dialog
FORM build_layout .
lt_layout-zebra = 'X'.
lt_layout-colwidth_optimize = 'X'.
ENDFORM. " build_layout
*& Form alv
*Alv dialog output.
FORM alv .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_grid_title = 'INFOTYPE DETAILS'
is_layout = lt_layout
it_fieldcat = lt_fieldcatlog
i_screen_start_column = 10
i_screen_start_line = 20
i_screen_end_column = 100
i_screen_end_line = 40
TABLES
t_outtab = it_display
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.
ENDFORM. " alv -
Selection screen in ALV output
Hi Experts,
My requirement is - A selection screen should pop up on the click of a button in the ALV output. Using the parameters I input on the selection screen anothor ALV should be displayed on the same page at the bottom. I'm displaying ALV using cl_gui_alv_grid.
Thanks.
AjithHi Nimesh,
The requirement has slightly been updated so as to display the 2nd ALV is another screen.
As you suggested I used the call selection screen. How ever I did not use events for the same. I called the selection screen on checking sy-ucomm in PAI.
After I input the values in the pop up selection screen , even if I click the cancel button(at bottom) or the close button( top corner) the execution still follows and the second ALV is displayed.
Please help me in this so that If I click on cancel or close the second ALV is not displayed and the control remains in the first ALV
Thank you.
Edited by: Ajith Krishna on Oct 31, 2008 10:24 PM -
ALV grid to list processing and GUI status
Hi,
In a customized program the report output is in ALV grid which is interactive. On selecting a record and pressing SAVE button a BAPI runs in background. In order to display BAPI error message the leave to list-processing has been used. But GUI status is not working in list display and can not exit or go back from here to main selection screen.
when try to see program name & screen no it displays
Program - SAPLKKBL
Menu - STANDARD_FULLSCREEN
pls advise how to go back from list to main screen or ALV output.
thanks
anyaHi Anya,
As per my understanding, this is your prog flow:
*Main ALV Display.
*Select record.
*Click on Button SAVE.
*Handle Event.
*Call BAPI for processing based on selection.
Now at this point why dont you colect the error messages from the BAPI, and display it in a POP-UP ALV display?
You need not e very much worried about the PF status and all. Also this POP-UP will be placed on the MAIN ALV. So when you close the POP-UP it will come back to the main ALV.
By this when you press the BACK button of the main ALV, it will take you back to the selection scree.
Please let me know if i am missing something.
ags
Maybe you are looking for
-
Multiple columns and rows in MessageService
I am attempting to create a message (via MessageService) which has multiple lines of data, and each line has multiple data columns. Background: My program reads data from a web store, and creates Sales Orders in SBO. A single run might process mult
-
How to insert into default values in onli 1 column of a table
if u create a table with onli 1 column which can accept a default value of say only 100. then how do u actualli enter values into the table. is there any data dictionary which stores details about default values of a table
-
New ABAP ENGINE NSP 6.40 and BSP error
Hi, after a clean new install that went nearly perfect, I'll managed to get a license and a developer key (Kudo's to all who worked on the new release, the new system looks really like a smooth runner). I'll activated the BSP services with SICF, stil
-
I built an ad using layers saved it and then converted it to a jpeg. Now when I go into elements 11 to do anything else it will not allow to copy and paste to create a new layer. What am I missing?
-
Apache personal web server not working anymore
Originally, when I typed in either 127.0.0.1 or localhost, I got the Apache test page. Now I get in Safari: Safari can't open the page "http://localhost/" because it could not connect to the server "localhost". I have modified the following files (to