How to display popup messages in webdynpro
Hi all,
I have an application which has continue button.if the userclicks on this button a pop has to come with the msg as "Do u want to continue" ..followed by Yes and No....
how to show popup msgs in my webdynpro application
Regards
Padma N
Hi! padma,
please go through the following tutorial, you will get a good idea..
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#23">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#23</a>
you need to create an object of IWDConfirmationDialog and also the eventHandle.
regards,
Mithileshwar Sahu
Similar Messages
-
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---- -
How to display a message in an audit report?
hello all,
i would like to ask how do display a message in an audit report. here is my code...
CALL TRANSACTION tcode USING i_bdcdata
MODE c_n
MESSAGES INTO i_error2.
IF sy-subrc EQ 0.
ENDIF.
CLEAR i_error2.
LOOP AT i_error2.
IF i_error2-msgtyp EQ c_e.
MOVE v_pernr TO i_bdcerror2-pernr.
MOVE c_infotype TO i_bdcerror2-infty.
MOVE 'Error' TO i_bdcerror2-msgtype.
<b> SELECT SINGLE text
INTO v_msgtxt
FROM t100
WHERE sprsl = i_error2-msgspra
AND arbgb = i_error2-msgid
AND msgnr = i_error2-msgnr.
MOVE v_msgtxt TO i_bdcerror2-msgtxt.</b>
APPEND i_bdcerror2.
ENDIF.
ENDLOOP.
DESCRIBE TABLE i_bdcerror LINES v_bdcerrors.
IF v_bdcerrors <> 0.
SKIP 1.
WRITE: 'BDC Error Report'.
SKIP 1.
WRITE: 'PERNR',
'INFOTYPE',
'MESSAGE TYPE',
'MESSAGE TEXT'.
ULINE.
LOOP AT i_bdcerror.
WRITE: / i_bdcerror-pernr,
13 i_bdcerror-infty,
22 i_bdcerror-msgtype,
35 <b>i_bdcerror-msgtxt</b>.
ENDLOOP.
ENDIF.
the message text that i was getting contains &1, &2 and so on. how would i be able to replace it with the original value?
thanks!
-annAfter calling the transaction, this is what I do.
a) Call the function module, <b>MESSAGE_TEXT_BUILD</b> and pass the following values from <b>BDCMSGCOLL</b> or the internal table where you collect the messages.
i) MSGID
ii) MSGNR
iii) MSGV1
iv) MSGV2
v) MSGV3
vi) MSGV4
There is no need to fetch data using select from table t100.
It builds the message and returns in MESSAGE_TEXT_OUTPUT which can be then displayed to user.
Regards,
Subramanian V. -
How to display error message in Shopping Cart?
How to display error message in Shopping Cart and stop the shopping cart for further processing? I try MESSAGE w001(zshop) or MESSAGE e001(zshop). But it is causing run-time error.
Hi Paul,
In the DOC_CHECK or DOC_SAVE BADI, you have a global internal table named et_messages. The structure of this table is 'bbp_smessages_badi'. You can append your error message here by inputting the message type, ID and number. The message type is either 'E' for error or 'W' for warning and the number would depend on your message class(ID). You will be able to see the error message on top of the screen, can be a red or yellow highlight depending on your appended message. I don't think creating the error message via the MESSAGE syntax will be successful, maybe this is why you are getting a runtime error.
Regards,
Noel -
How to display success message in function module
Hi Experts,
I am developing new function module regarding URL finder. As per my requirement ,
If USER ID is not provided -display SUCCESS MESSAGE and Provide sy-uname.
how to display success message.if possible can You write the code.
Thanks
rajuHello,
We can use an exporting parameter like single character field like 'S' for success and 'E' for error instead of a message.
Another option is you can use the Tables parameter and populate Return table with error or success message. Return table of type 'BAPIRET2'.
Hope this might help you!
Regards,
MM Jaffer. -
How to display a message dialog box
I need to know how to display a message box from my application.
Anyone can help me?
Thanks in advanceDear Zennen,
Use JOptionPane.
Ex
JOptionPane.showMessageDialog(this,"message","title",JOptionPane.INFORMATION_MESSAGE); Thanks
Joey -
How to create popup in ABAP webdynpro.
Hi,
I found lot of examples to create a popup/ model window for java webdynpro.
Could anyone give a pointer to an example which explains how to create popup in ABAP webdynpro??
Kind Regards
ShahulHi Thomas:
It worked fine the 1st time. Second time when the user clicks on the button to open up the popup it dumps.
Here is the code in the action for popup:
data: l_cmp_api type ref to if_wd_Component,
l_window_manager type ref to if_wd_window_manager,
l_api type ref to if_wd_View_controller,
l_text type string_table.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
if wd_this->m_popup is initial.
wd_this->m_popup = l_window_manager->create_window(
window_name = 'DOCQSOW'
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none ).
component_usage_name = 'DOCQUERY_USAGE_1'
l_api = wd_this->wd_get_api( ).
wd_this->m_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Transfer'
action_name = 'POPUP_CLOSED'
action_view = l_api ) .
wd_this->m_popup->SET_REMOVE_ON_CLOSE( abap_true ).
endif.
wd_this->m_popup->open( ).
Second time when the popup tries to open, I get the following error:
Method: RENDER_WINDOW of program CL_WDR_WINDOW_RENDERER========CP
Method: RENDER_WINDOW of program CL_WDR_CLIENT_SSR=============CP
Method: RENDER_POPUP_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_RESPONSE_RENDERER~RENDER_VIEWS of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_RESPONSE_RENDERER~RENDER_USER_INTERFACE_UPDATES of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_SSR=============CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Is there a way to destroy the instance of the m_popup?
Any help is appreciated!
Thanks -
How to display the message along with a value using BBP_CHECK_BADI
Hi Gurus,
I need to display a message dynamically when the user create's a shopping cart. I am using Check_badi for this. i.e., I need to display the buyer number and amount left for him dynamically. I am storing both of them in variables and don't know how to display the messages laong with some message " the amount left for <XXXXXX> is <$$$$$$$$>". Can you help me out.
Thanks,
NeelimaHi,
you can use the function module 'BBP_PD_MSG_ADD'. This is the function module normally used for the displaying the error messages in SRM.
See wether you can use already available error messages , use the transaction SE91 , and the message class being BBP_PD -
How to display the Message Pool Messages in CE 7.2
Hi Experts,
Please let me know how to display the Message Pool Messages in CE 7.2.
I have tried with reportContextAttributeMessage, but it is deprecated in CE 7.2.
Please do the needful.Its Urgent.
Thanks & Regards,
SatheshKumar RHi Sathesh,
Do the following steps:
1.) After creating a component, under it you will see Message Pools. Double click and open it.
2).Click "Add Message" and add a new message. (Give a message key, type of message (either warning, error etc ) and message text).
3). Save the metadata.
4). Raise this message where all you want by using following code(For example, on click of a button) :
IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
msgnr.reportMessage(IMessage<component name>.<message>,null,true);
For example, I have a component name TestAppComp and under message pool I have message called message1, then use lik this:
IWDMessageManager msgnr = wdThis.wdGetAPI().getComponent().getMessageManager();
msgnr.reportMessage(IMessageTestAppComp.MESSAGE1,null,true);
Reply me if you any doubt.
Regards,
Jithin -
How to display a message after button press ?
Hi,
I created a jspx page with a button.
When that button is pressed, a lot of stuff is going to happen in my backing bean.
This can take up to 30 seconds. (soap call etc ... )
Meanwhile, the pressed button stays greyed out. When the action is finished, the button
is available again.
I want to display a message saying the action was succesfull or not, after that button is available again.
Can anyone help me how I can make this ?
Greetz.Why not opening a popup from your backing bean?
Add a popup to your page:
<af:popup id="yourID" bindings="#{yourBean.popup}">
</af:popup>Open this in your backing bean:
public void OpenPopup(String popupID) {
FacesContext facesContext = FacesContext.getCurrentInstance();
ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
service.addScript(facesContext,"AdfPage.PAGE.findComponent('"+this.getPopup().getClientId(facesContext) + "').show();");
}This way you can add anything you want in your popup. forms, messages, images,... -
Display popup message on SRM portal
Hi,
I need to display a popup message on the SRM portal while doing a PO confirmation. Can you please guide me how to do it?
Do I need to modify the templates or can it be done using a BADI?
Thanks in advance.Hi,
Try using CHANGE badi.
See these related threads also for more pointers:
Error in pop up (dialog box)
Customized Pop-up window in Shopping Cart
POPUP window in shopping cart during Order
BR,
Disha. -
How to display confirmation message in SPItemEventReceivers
Is there a way to display confirmation message in ItemAdding event?
I would like to display confirmation message and based on user input proceed with the other steps.
public override void ItemAdding(SPItemEventProperties properties)
// Display confirmation message
if(OKClicked)
// Do something
else
// Cancel Operation
Thanks in advance,
dhijithttp://sharepoint.stackexchange.com/questions/32055/creating-event-handler-feature-ondeleting
http://social.technet.microsoft.com/Forums/lync/en-US/39115b48-873b-462e-aa16-a7f7ce5c91d8/sharepoint-2013-online-office-365-list-item-added-event-receiver-how-to-sow-confirmation-message?forum=sharepointdevelopment
http://social.msdn.microsoft.com/forums/sharepoint/en-US/2941f80e-37c9-4b83-a41c-a9cc712d2e18/display-message-from-itemadded-event-receiver
http://sharepoint.stackexchange.com/questions/65858/confirmation-message-as-a-popup-for-itemupdating-in-event-receivers
http://stackoverflow.com/questions/11999312/popup-alert-message-using-event-receiver-in-sharepoint-2010 -
5800 Keeps Displaying Popup "Message: number"
Hi,
I've had a 5800 for nearly a year now, and love it. However, for the past 2 days, its been doing something weird, and I'm not sure why. Randomly, and for no reason at all, it will get a popup message on the screen which says 'Message: 0771xxxxx' (my mobile number). Anyone know why? I've not asked it to display, or request my number from Vodafone or anything, this just randomly pops up!
Any suggestions on how to stop this?
Cheers
Bendoes ure country have something like .. STOP or STOP ALL and send to a specific gateway? .. if so, try tat, u can disable any notification msgs from ure telco.
I'm an Xploit - Please feel free to post your issues, feedbacks in this discussion forum and I'll do my level best to help, otherwise my knowledged friends whom are around willing to help you. Thank you ! -
How to display a image in webdynpro view using a bytearry
Hi Frndz..
How to display an image in a view using webdynpro java ..i have bytearry object in context ..like
*byte[] img = wdContext.nodeYywwwdataImport_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();*_
by using this i need to show image in view..
Kindly help me ....
Thankas in Advance
Regards
RajeshHi,
byte[] img = wdContext.nodeYywwwdata_Import_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();
use this code to create resource and you need to set this value to the context created to display the image suppose in the image UI and set the source property with this attribute:-
IWDResource res=WDResourceFactory.createCachedResource(b,"MyImage",WDWebResourceType.JPG_IMAGE);
IPrivateAppView.IVn_ImageTabElement imageEle=wdContext.createVn_ImageTabElement();
imageEle .setVa_Name(res.toString());
wdContext.nodeVn_ImageTab().addElement(imageEle);
Hope this may help you.
Deepak -
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.
Maybe you are looking for
-
I have downloaded several books into ibooks. Started reading one and closed it when I was done reading for the day. Now I want to access other books and when I open ibooks it goes directly to that first book. It does not give me the shelf to choos
-
Last night my PowerMac G5 seemed like it was hung up. I had to shut it off to get it to do anything. It hasn't booted since. I went through all the diagnostic BS, verified the disk, checked the permissions, booted in verbose mode and it end up hangin
-
Updated video asset will not update on track
Most frustrating is DVDSP4 says that the video file has been changed and after answering yes, it shows me black thumbnails on the track and black drop zones in the template. I have deleted the Par folder, re-imported the asset and most of the time I
-
File sent by email is not opening.
To whom it may concern, I am running on Adobe Reader XI. I have a friend who sent me three .pdf files only one of the files works. It gives me a message that the file is not supported or corrupted Why? What is the solution to the problem? Sincerely,
-
Hi, I have purchased a 10USD credit for Friendcaller app. My receipt No.176037635953Friday, August 16, 2012. Please check my receipt as I have not received the credit on my account on friendcaller app. Thanks