Web Dynpro, Popups
Hi all,
I'd like to have in popup-windows buttons (Ok, No, Cancel) that look like normal buttons or UI elements of the type "Button". What I'm seeing now is the underline names (Ok, No, Cancel) on the right edge of the popup-view.
I use
cl_wd_popup_factory=>popup
and
create_popup_to confirm of the window manager.
How can I get the buttons that look like normal buttons? Perhaps do I need an update (e.g. EhP1)?
Kind regards,
Oleksandr
Create your own view .
Create a window. Embed View in this window.
Now write the following code in the OnAction method.
* Data declarations for window
DATA: lo_window_manager TYPE REF TO if_wd_window_manager ,
lo_api_component TYPE REF TO if_wd_component ,
lo_window TYPE REF TO if_wd_window ,
l_api TYPE REF TO if_wd_view_controller.
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 = 'Window Name'
message_display_mode = if_wd_window=>co_msg_display_mode_selected
message_type = if_wd_window=>co_msg_type_none
lo_window->open( )
Similar Messages
-
Web Dynpro popup & popup with table
Hi forum,
need an example of a web dynpro popup & popup with table.
Thanks!
Edited by: Stanley Marsh on Nov 10, 2008 4:21 PMTry to use if_wd_window_manager
Please check this link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e242bf5-0901-0010-c99c-83c180163c73
a® -
Interaction ABAP Web Dynpro popup with Windows
Hello,
I have made a view Z_Y in Web dynpro for ABAP. In this view I call a standard external window with the statement:
lo_window = lo_window_manager->create_external_window( url = lf_url ).
lo_window->open( ).
The lf_url field is a location on the Windows(XP) network. It could happen that the file doesnt exist. In this case I get a standard Windows error message in a popup that the directory cant be found with a OK button. When I click OK the popup is closed and I can use other functionality of the ABAP dynpro view.
I integrate view Z_Y in another dynpro window (W_WINDOW) that is called as a popup using the following statement:
create popup window **********************************************************************
DATA: l_window_manager TYPE REF TO if_wd_window_manager.
DATA: l_api_componentcontroller TYPE REF TO if_wd_component.
l_api_componentcontroller = wd_comp_controller->wd_get_api( ).
l_window_manager = l_api_componentcontroller->get_window_manager( ).
wd_this->m_popup_window = l_window_manager->create_window(
close_button = abap_false
button_kind = '2'
modal = 'X'
window_name = 'W_WINDOW'
title = 'Popup' ). "#EC NOTEXT
wd_this->m_popup_window->open( ).
Then I call from view Z_Y the external window using this statement again:
lo_window = lo_window_manager->create_external_window( url = lf_url ).
lo_window->open( ).
If the directory doesnt exist I get the same standard Windows error message in a popup that the directory cant be found with an OK button. But when I click OK I cant get back to the web dynpro application. I get a throbber/popup please wait and I have no interaction anymore with the button close of the dynpro popup. The buttoner size still works.
Can someone help me?
Kind regards,
Yan CazarellyHi
You ca use this function to Create a new window..
CALL METHOD wd_window->create_window
EXPORTING
modal = abap_true
window_name = 'MMPUR_CPPR_RFQ_WDW'
title = lv_otr_text
close_button = abap_true
button_kind = 3
close_in_any_case = abap_true
RECEIVING
window = wd_comp_controller->window.
wd_comp_controller->window->open( ).
here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
CALL METHOD wd_comp_controller->window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'RFQ_WT_VENDOR'
action_view = l_api
is_default_button = abap_false
button_text = lv_otr_text
tooltip = lv_otr_text.
wd_comp_controller->window->open( ).
Please let me know if you have any issue. Please reword if its solve your problem.
Regards
Satrajit -
Hi all,
i have the following problem:
on a standard BSP by customizing, I've added a button, that opens a popup when clicked .
The popup is developed as a Web Dynpro java and it works fine. But when I fire an event inside the web dynpro I need to close the browser popup and notify the standard BSP of the popup closure.
can anyone help me?
Best Regards,
Raffaele.Hi Raffaele,
You can well on action of a button in the Web Dynpro Project trigger a portal event using EPCF for the BSP application and then navigate the flow to a static html page within the WD development component and in turn write javascript in HTML to the close the window. This way, even the HTML page would not be visible to the user but would carry the flow to close the window.
Or without using the HTML Page, directly you can trigger EPCF for the BSP by writing the code in wdDoExit() of the Component Controller. And even any button wont be required on WD screen asking the user to click to close the window.
Regards,
Tushar Sinha -
How to display a window in clicking a button in abap web dynpro(popup wind)
Hi i am using a button 'click' in view1 ,
if i click the button then a new window should be popup.Hi
You ca use this function to Create a new window..
CALL METHOD wd_window->create_window
EXPORTING
modal = abap_true
window_name = 'MMPUR_CPPR_RFQ_WDW'
title = lv_otr_text
close_button = abap_true
button_kind = 3
close_in_any_case = abap_true
RECEIVING
window = wd_comp_controller->window.
wd_comp_controller->window->open( ).
here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
CALL METHOD wd_comp_controller->window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'RFQ_WT_VENDOR'
action_view = l_api
is_default_button = abap_false
button_text = lv_otr_text
tooltip = lv_otr_text.
wd_comp_controller->window->open( ).
Please let me know if you have any issue. Please reword if its solve your problem.
Regards
Satrajit -
ABAP Web Dynpro Window Inactive After Closing Popup Window
Hello ABAP'ers
I have a custom ABAP Web dynpro applications that uses multiple tiers of popup windows. This application was functioning properly in our ECC6.0, Basis release 7.00 Service level 15 environment. However, we are currently installing EHP4 and moving or basis release to 7.01 service level 5. In this new environment, when multiple popup window tiers are closed simultaneously, the underlining window is not re-activated.
Here's a more specific description:
The application starts with a control panel window presenting a series of buttons. Selecting one of these buttons activates a modal (I know... all web dynpro popups are modal) popup window for the purpose of maintaining some object. If the user attempts to exit this window without saving the changes, another popup window appears asking if they want to save their changes. If they say no, both the popup window asking the question and the popup maintenance window are closed, thus returning the user to the switchboard.
The problem is that none of the functionality on the switchboard is active. the user must manually refresh the URL to "reactivate" the switchboard.
When only a single popup window is closed, the underlying window is properly reactivated. The problem only occurs when multiple popups are closed together.
Has anybody else seen this occur? Any ideas / notes around to correct it?
Any info is greatly appreciated.
R/
Jim MHello Jim, hello everyone,
I am encountering the same issue.
Is a solution known already?
Thanks
Johannes -
UWL - Records not getting into LeaveRequestApproval web dynpro screen
Hi,
We are on EP7 sp9 and ECC 6.0. We are working with UWL. In UWL, we downloaded the standard XML file and done changes for removing the other tabs except the 'Tasks' tab and also placed the refresh button on main screen. It looks fine. Now, the problem is the web dynpro screen is not pulling data from backend. Previously, when we click on 'LeaveRequestApproval' work item, we use to get ITS screen. at backend we did changes in SWFVISU transaction to get web dynpro popup screen when user clicks on 'LeaveRequestApproval' work item. We could able to get the popup web dynpro screen, but it is not pulling any records from backend.
Now, let us know where we are doing mistake? do we need any more configuration at backend? If so, let us know the work around for it.
Thanks in advance.
Kind regards,
Raj.Hi,
But are you able to see the labels, buttons etc ? Or is it that the entire page itself is not visible ?
Please check the log file and see what is the error you get there ? Or probably check on the backend side if there is a dump.
You can also check with the debugger on the backend side...see what exactly happens on the backend when the page is getting loaded.
Cheers,
Sunil
PS: Reward points for helpful answers. -
How to create ALV as a POPUP in abap web dynpro?
I have a requirement to display an ALV report as a popup for ESS application in HR module. Data fetching and binding is done in component controller
WDINIT method and it is displaying ALV in ESS. Now my requirement is to show this alv as a popup in ESS, I have used the method "Generate_Popup" using wizard however it is showing error that "Instance is already used for window".
Please let me know how to create POPUP alv where data fetching is done in "Component controller" hence I have only 1 view and 1 window in my web dynpro program.
Below is the logic for data fetching and data binding in WDINIT method of "Component controller":
method WDDOINIT .
DATA: lv_pernr type p0105-PERNR,
lv_user TYPE P0105-USRID.
lv_user = sy-uname.
CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'
EXPORTING
begda = sy-datum
endda = sy-datum
usrid = lv_user
usrty = '0001'
IMPORTING
USR_PERNR = lv_pernr
EXCEPTIONS
RETCD = 1
OTHERS = 2.
IF sy-subrc = 0.
TYPES: BEGIN OF ty_pa2001,
PERNR TYPE PERSNO,
SUBTY TYPE SUBTY,
ENDDA TYPE ENDDA,
BEGDA TYPE BEGDA,
END OF ty_pa2001.
DATA: lt_pa2001 TYPE TABLE OF ty_pa2001.
"Changes by shiromani
DATA lo_nd_node_pernr TYPE REF TO if_wd_context_node.
DATA lo_el_node_pernr TYPE REF TO if_wd_context_element.
DATA ls_node_pernr TYPE wd_this->element_node_pernr.
* navigate from <CONTEXT> to <NODE_PERNR> via lead selection
lo_nd_node_pernr = wd_context->get_child_node( name = wd_this->wdctx_node_pernr ).
* get element via lead selection
lo_el_node_pernr = lo_nd_node_pernr->get_element( ).
* @TODO handle not set lead selection
IF lo_el_node_pernr IS INITIAL.
ENDIF.
* get all declared attributes
lo_el_node_pernr->get_static_attributes(
IMPORTING
static_attributes = ls_node_pernr ).
SELECT PERNR
SUBTY
ENDDA
BEGDA FROM pa2001
INTO CORRESPONDING FIELDS OF TABLE lt_pa2001
WHERE pernr = lv_pernr AND subty = 'ITEL'.
if sy-subrc = 0.
DATA lo_nd_node_details TYPE REF TO if_wd_context_node.
DATA lo_el_node_details TYPE REF TO if_wd_context_element.
DATA ls_node_details TYPE wd_this->element_node_details.
* navigate from <CONTEXT> to <NODE_DETAILS> via lead selection
lo_nd_node_details = wd_context->get_child_node( name = wd_this->wdctx_node_details ).
* get element via lead selection
lo_el_node_details = lo_nd_node_details->get_element( ).
lo_nd_node_details->bind_table( lt_pa2001 ).
* alternative access via index
ENDIF.
ENDIF.
endmethod.Hi
You ca use this function to Create a new window..
CALL METHOD wd_window->create_window
EXPORTING
modal = abap_true
window_name = 'MMPUR_CPPR_RFQ_WDW'
title = lv_otr_text
close_button = abap_true
button_kind = 3
close_in_any_case = abap_true
RECEIVING
window = wd_comp_controller->window.
wd_comp_controller->window->open( ).
here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
CALL METHOD wd_comp_controller->window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'RFQ_WT_VENDOR'
action_view = l_api
is_default_button = abap_false
button_text = lv_otr_text
tooltip = lv_otr_text.
wd_comp_controller->window->open( ).
Please let me know if you have any issue. Please reword if its solve your problem.
Regards
Satrajit -
How to display Popup message in ABAP Web Dynpro
Hi All,
Is it possible to display popup messages like SAP to collect information from the user? is it possible to display information messages like SAP? If possible, Please let me know how to handle in Web Dynpro.
Thanks & Regards,
IA Kumar.Agree with the two firend on my head :).
you can find a demo from: SWDP_TEST(package)--> WDR_TEST_POPUPS also.
I have a lazy idea, two step:
1. create a popup function module;
2.call the function module;
function module:--Begin--
FUNCTION ZFUNM_CONFIRM .
""Local interface:
*" IMPORTING
*" REFERENCE(P_API) TYPE REF TO IF_WD_VIEW_CONTROLLER
*" REFERENCE(P_CMP_API) TYPE REF TO IF_WD_COMPONENT
DATA:
L_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER,
L_CMP_API TYPE REF TO IF_WD_COMPONENT,
L_API_MAIN TYPE REF TO IF_WD_VIEW_CONTROLLER,
L_POPUP TYPE REF TO IF_WD_WINDOW,
L_TEXT TYPE STRING_TABLE.
wd_this type ref to IF_MAIN,
wd_comp_controller TYPE REF TO IG_COMPONENTCONTROLLER.
l_api_main = wd_this->wd_get_api( ).
l_cmp_api = wd_comp_controller->wd_get_api( ).
L_WINDOW_MANAGER = P_CMP_API->GET_WINDOW_MANAGER( ).
APPEND 'POPUP text' TO L_TEXT.
L_POPUP = L_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM(
TEXT = L_TEXT
BUTTON_KIND = 4
MESSAGE_TYPE = 1
CLOSE_BUTTON = ''
WINDOW_TITLE = 'messagebox Title'
WINDOW_LEFT_POSITION = L_CONF_CONTEXT-WINDOW_LEFT_POSITION
WINDOW_TOP_POSITION = L_CONF_CONTEXT-WINDOW_TOP_POSITION
WINDOW_POSITION = L_CONF_CONTEXT-WINDOW_POSITION
WINDOW_WIDTH = L_CONF_CONTEXT-WINDOW_WIDTH
WINDOW_HEIGHT = L_CONF_CONTEXT-WINDOW_HEIGHT
L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
BUTTON = IF_WD_WINDOW=>CO_BUTTON_YES
ACTION_NAME = 'YES'
ACTION_VIEW = P_API
IS_DEFAULT_BUTTON = ABAP_TRUE ).
L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
BUTTON = IF_WD_WINDOW=>CO_BUTTON_NO
ACTION_NAME = 'NO'
ACTION_VIEW = P_API
IS_DEFAULT_BUTTON = ABAP_FALSE ).
L_POPUP->OPEN( ).
ENDFUNCTION.
function module:--End--
call the function module Begin----
METHOD ONACTIONDELETE .
DATA:
L_API TYPE REF TO IF_WD_VIEW_CONTROLLER,
L_CMP_API TYPE REF TO IF_WD_COMPONENT,
NODE_ZTAB_PROJ TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_ZTAB_PROJ TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_ZTAB_PROJ TYPE IF_ZV_PROJ_DISPLAY=>ELEMENT_ZTAB_PROJ,
SELECTED_ELEM TYPE WDR_CONTEXT_ELEMENT_SET .
navigate from <CONTEXT> to <ZTAB_PROJ> via lead selection
L_API = WD_THIS->WD_GET_API( ).
L_CMP_API = WD_COMP_CONTROLLER->WD_GET_API( ).
CALL FUNCTION 'ZFUNM_CONFIRM'
EXPORTING
P_API = L_API
P_CMP_API = L_CMP_API.
IF WD_THIS->A_DEL = ''.
EXIT.
ENDIF.
NODE_ZTAB_PROJ = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_ZV_PROJ_DISPLAY=>WDCTX_ZTAB_PROJ ).
IF ( NODE_ZTAB_PROJ IS INITIAL ).
EXIT.
ENDIF.
ELEM_ZTAB_PROJ = NODE_ZTAB_PROJ->GET_LEAD_SELECTION( ).
ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
IMPORTING
STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
DELETE FROM ZTAB_PROJ
WHERE COMCODE = STRU_ZTAB_PROJ-COMCODE
AND PROJID = STRU_ZTAB_PROJ-PROJID.
WD_THIS->ONACTIONSELECT(
WDEVENT = WDEVENT " Ref to cl_Wd_Custom_Event
LOOP AT selected_elem .
ENDLOOP.
ELEM_ZTAB_PROJ
@TODO handle not set lead selection
alternative access via index
Elem_Ztab_Proj = Node_Ztab_Proj->get_Element( Index = 1 ).
@TODO handle non existant child
if ( Elem_Ztab_Proj is initial ).
endif.
get all declared attributes
ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
IMPORTING
STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
ENDMETHOD.
call the function module End---- -
Popup message handling in ABAP web dynpro
Hi,
I need to show on popup in my web dynpro application, when any thing updated on the view and press the exit button from that view.
I need to handle accordingly if message is "want to exit" if "yes" then close the applicatio if no then reset the view to original.
Please guide
Thanks!
PiyushSo which part of what you describe are you asking for help on?
Creating the dialog?
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b9487601602fe2e10000000a42189d/frameset.htm
Restoring the previous version of the context values (I would suggest the context change log to help with this)?
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a8e5d273b12fe2e10000000a42189d/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ae/eb56bd5dce494ebc89d55ebfc1fa96/frameset.htm
Or exiting the application?
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm -
F4 help popup to browse file path in web dynpro
I need F4 help popup to browse file path in Web dynpro (for example C:\dir\file.xls). Popup should come like FM "F4_FILENAME" in report programming.
Am i need to create another window or is there any other standard functionality there for this help.
Please give your view to achieve this.
Thanks
GokulHello Arun & Abhi,
File upload UI element has showing File browse pop up. But i want to download file from an internal table to Excel. User need to give file path so that the directory selection needs to be done. And also the user will select the directory and type the file name (File so far not exist) for download.
If i add UI element 'File Download' I am getting a link and i cant browse directory and give file.
Give your suggesions.
Thanks
Gokul -
Web Dynpro Abap popup doesn't display in portal
Hi all. A wierd issue here. We have a couple fields within a web dynpro abap application that use search helps. These search helps work fine when the application is run outside of the portal, but when run within the portal we get a javascript error about a 'null' object. Any ideas of what may be going on? I am thinkning there is some security feature suppressing the popup of the search helps.
Thanks so much...Good news. Our basis team fixed the problem. There were some security settings on our apache server we use that caused the problem. Thought I would post the fix. Thanks for replies.
-
Popup Window (Web Dynpro for ABAP)
Hi.^^
Is it possible to locate a popup window where it show?
This window is not dialog type.
I have tried to do this sometimes using window->set_window_position( xxx) and window->set_window_position_control( xxx ).
I think that these method call is available to dialog box type window.
Is it right?
Plz. help that.Hi Etnaya,
It is currently not possible to specify the size nor the position of a popup in Web Dynpro ABAP. There has been a revamp regarding popups last year December to make them more user friendly and to offer advanced features, like having popups in the portal that are not trapped inside of an iView on the portal. We are in the process of reimplementing the size/position features - but I am not able to provide an eta on them. Nonetheless, there is some relief: The size of popups is now calculated automatically.
Best regards,
Thomas -
Popup window of Web Dynpro hangs up by Clicking the ESC button
Hello!
I have the trouble in Web Dynpro while using the Firefox browser.
All the popup windows hang up when user clicks the ESC button.
Can you please suggest how to avoid this bug?
Thanks,
Mariya.Hi Maria,
There are quite a lot of things which would bring the issue to the limelight.
First and foremost, check the version of Firefox. Firefox 3 has come up with some new features which support Series based web browsers. Also, as the firefox is the open source, there is a possibility that many other codes might be running in the background paralelly while working with WDA.
For the most ERP based applications, IE6 from SP1 is best supported and mostly preferable.
Please check the same.
Regards,
-Syed. -
[Integration] Web Dynpro ABAP calling Flex in Popup (without Flash Islands)
Hi,
We do not intend to install Enhancement Package 1 in a near future.
Nevertheless, we do have requirements where Flex should be integrated with Web Dynpro ABAP (Flex components embedded or 'attached' to Web Dynpro ABAP applications).
I would like to open a popup showing a Flex component. Then, the user validates and the Web DYnpro ABAP application is resumed. All this integrated within EP 7.0.
What, according to you, would be the most effective combination :
- Suspend / Resume plug
- Server-side cookies
- iFrame (although it is deprecated)
Given what I have read so far, it seems encapsulating the .swf within a BSP application would be the best shot. Could it be possible to get rid of this 'additional layer' ?
Thanks in advance.
Best regards,
GuillaumeWeb Dynpro ABAP
Define a suspend and a resume plug.
BSP
Retrieve the parameters sent by WDA either by AUTO attributes or the following code
CONSTANTS: c_resume_name TYPE string VALUE `sap-wd-resumeurl`.
DATA: lt_tihttpnvp TYPE tihttpnvp.
FIELD-SYMBOLS: <fs_httpnvp> LIKE LINE OF lt_tihttpnvp,
<fs_dept_magasin> LIKE LINE OF t_dept_magasins.
** Lecture des paramètres envoyés (par le WD ABAP)
CALL METHOD request->get_form_fields
CHANGING
fields = lt_tihttpnvp.
READ TABLE lt_tihttpnvp ASSIGNING <fs_httpnvp> WITH KEY name = c_resume_name.
IF sy-subrc = 0.
e_url = <fs_httpnvp>-value.
ENDIF.
Flex
To return to the Web DYnpro ABAP, call a Javascript function within the BSP using this kind of code :
jsReturn = ExternalInterface.call("sendBackToSAP", selectedDepartmentsParam, orderParam);
BSP
First, to react to the user action in the Flex component, define a Javascript function in the
function sendBackToSAP(departements, ordre) {
fireServerEvent(departements, ordre);
return("Done");
To fire a server-event (in order for BSP to call the WDA resume plug), I use this declaration :
<!-- Event used by the Javascript to trigger OnInputProcessing so as to create
the server-side cookie -->
<bsp:htmlbEvent name= "fireServerEvent"
id = "flexAction"
p1 = "departements"
p2 = "ordre"></bsp:htmlbEvent>
Last, I simply call the URL that the WDA gives me first :
navigation->goto_page( e_url ).
If people are interested in a more detailed presentation, feel free to reply to this post, and I will write a blog about this. Nevertheless, it should become pretty obsolete with the Flash Islands release...
Edited by: Guillaume Garcia on Oct 11, 2008 11:13 AM
Maybe you are looking for
-
Connecting My Nano To My Friend's Computer
I am going to think about getting some of my friend's music to my iPod by connecting my Nano to his computer. We would manually manage our songs. I have some worries about this. Do I have to install my iPod software on his computer, so it will detect
-
Hi everyone looking for some advice where possible. I returned home from work yesterday and i had a pop up on the general freeview channels advising Low signal but the internet channels were all ok so i reset and retuned but still only have the 60 o
-
Hi Experts, What document that can affect the total balance of the vendor ? I want to know if there are another documents beside invoices, payment on account and credit memo that can make the balance increase or decrease. Please give adv. Thanks in a
-
HU - inbound delivery in HU managed Sloc at IM level after GR from prod.
hi experts , we do GR of process order in HU Sloc . so inbound delivery is created after 101 movement . i want auto packing & GR of inbound delivery in back ground w/o manual intervention : requirement is : 1. i want to do auto packing . we can hav
-
How to clear cache of messageChoice?
Hi all, In my application I am using a messageChoice which will display the list of available items. After delteing a particular item from that list ,the changes are reflected in the database but the deleted item is still displayed in the messagechoi