No Messages in webdynpro
Hi friends,
I have developed webdunpro application.. when i am executing this, i am getting standard message " No messages" on top of application .. I searched many.. But not able to figure out,.. let me know ur ideas..
Thanks,
kani
Hi friends,
can you pls response..
thanks
Similar Messages
-
How to use messages in WebDynpro-ABAP
Hi,
How to use messages in WebDynpro-ABAP.
Does it has any class to manage messages like IWDMessageManager or we can just use standard SAP Message types.. like E,W,X,I,S..
I hope it have a message container to display messages.
Thank U for Ur time.
Cheers,
SamHi Sam,
U can hard code the message or u can use the Assistance class's text elements to store the messages.
1) Code to display hard coded message:
report message
CALL METHOD l_message_manager->report_attribute_error_message
EXPORTING
message_text = "Enter the correct Connection ID"
element = elem_flightinfo
attribute_name = 'CONNID'.
2) Code to display message from text element of assistance class:
lv_text = wd_assist->if_wd_component_assistance~get_text( key = '002' ).
report message
CALL METHOD l_message_manager->report_attribute_error_message
EXPORTING
message_text = lv_text
element = elem_flightinfo
attribute_name = 'CONNID'.
Where Message "Enter the Correct Connection ID" is stored in Text Element with key '002'
Hope this helps, -
Hi,
I'm currently working on developing an ESS scenario for IT0573 Australia (Absences). For this scenario I've not used the FPM completely. The roadmap is as follows:
Overview -> Detail -> Review and Save -> Confirmation.
The node Detail has a sub-roadmap as follows :
Detail -> Popup1 -> Popup2.
The FPM is not used for navigation from the nodes in the sub-roadmap to Detail or Review screens.
For certain conditions, error messages have been raised from webdynpro in the Detail screen. However when I use the previous button to go to the Overview screen, the messages are still persistent.
Is there a way I can counter this issue?
Regards,
Shwetha Sekhar.Hi Chaitanya,
The clearing of the error messages is normally handled by the FPM. Since we have not used the FPM completely, the error messages tend to be persistent. Nevertheless, error messages generated from the front end are cleared. Only the ones generated from the backend are not being cleared. Is there any way to clear these messages? If yes, then where are they stored?
Even if we write the code to clear these error messages in PREVIOUS BUTTON's action, it will be like re-coding the entire FPM for our scenario. Is there any other way to do it?
Regards,
Shwetha. -
Troubles generating an error message in WebDynpro ABAP
Good evening guys.
I set the following code in enhancement method (pre-method) of ONACTIONNAVIGATE method, which is triggered after push the "Review" button in WebDynpro Application FITE_REQUEST:
method PRED78YJIDJ8M8KXTC2MXQI1XK5O . "Exit of ONACTIONNAVIGATE (in ZENH_FITV_FPM_02 )
data: L_CURRENT_CONTROLLER type ref to IF_WD_CONTROLLER,
L_MESSAGE_MANAGER type ref to IF_WD_MESSAGE_MANAGER,
TEKSTO TYPE STRING.
IF NAVIGATION_TYPE = 'FORWARD'.
L_CURRENT_CONTROLLER ?= WD_THIS->WD_GET_API( ).
call method L_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER
receiving
MESSAGE_MANAGER = L_MESSAGE_MANAGER.
report message
CALL METHOD l_message_manager->REPORT_T100_MESSAGE
EXPORTING
MSGID = '00'
MSGNO = '398'
MSGTY = 'E'
P1 = 'Test'
P2 = 'Test2'
P3 =
P4 =
MSG_USER_DATA =
IS_PERMANENT = ABAP_FALSE
SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CONTROLLER
VIEW =
SHOW_AS_POPUP =
CONTROLLER_PERMANENT_MSG =
MSG_INDEX =
CANCEL_NAVIGATION = 'X'
ENABLE_MESSAGE_NAVIGATION =
RECEIVING
MESSAGE_ID =
ENDIF.
endmethod.
Unfortunately, this code is not working, because the message is not appearing. I generated this piece of code with the WebDynpro Code Wizard, but even so is not working.
The standard application generates standard messages an places them in WDR_MESSAGE_AREA WD component, in the View MESSAGE_AREA, regarding blanks in text fields that are located on another WebDynpro component (FITE_VC_GENERAL_DATA, view GENERAL_DATA_VIEW). I put my own code in WD component FITV_FPM, in the LAYOUT_VIEW. But I wanna the messages also appear at WDR_MESSAGE_AREA WD component, MESSAGE_AREA view.
Do you know why I am having trouble generating an error message in this standard Webdynpro? It is not possible to generate an error message to appear in another Webdynpro component, but the same WD application?
Regards guys!Hi
you can store message ID, message no and message type in the context node in ur exit and make this context node interface enabled. Map this node to the component where you want todisplay the message. read the context node .
Call the method for displaying the messages and pass message id, no and type from context node.
invalidate this context node using method "invalidate" from interface if_wd_context_node.
Regards
Vishal kapoor -
hi all,
can any one help me by provinding me with a small example on how to implement messages in a webdynpro application.
Thanks in advance,
chandana.Hi,
Use the IF_WD_MESSAGE_MANAGER interface .
All messages will be displayed in a dedicated message area.
By default the message area appears at the top of the page.
The message are can be moved like a UI element in a view. You find a UI element (Message Area) in the UI library Pattern. Messages will be placed in this area, if it is available.
Use the WD code wizard to create the required coding to report a message. (Generate Message radio button)
Generated/sample code will look like this.....
* get message manager
data: l_current_controller type ref to if_wd_controller,
l_message_manager type ref to if_wd_message_manager.
l_current_controller ?= wd_This->Wd_Get_Api( ).
CALL METHOD l_current_controller->GET_MESSAGE_MANAGER
RECEIVING
MESSAGE_MANAGER = l_message_manager
* report message
CALL METHOD l_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = 'REPORT_ATTRIBUTE_ERROR_MESSAGE'
ELEMENT = Elem_Flights
ATTRIBUTE_NAME = 'CITYFROM'.
Achyut -
Missing Loading Message in webDynpro iview
Hi,
we have developed some WebDynpros. We have created some webdynpro iview to embed these webdnypros into a portal role. When I run the webdynpro without the portal or in the preview of the iview creator, the round role of the loading message is displayed well. But when I embed the iview into the portal role, the loading message is not vissible during the webdynpro picks up the data from backend system.
We are using SAP NW04s SPS10. The parameter of the ivew to show the loading message is still enabled.
Has anyone of you similiar experiences?
Thanks a lot.
Best Regards,Hi Guys
Have u found the solution for the issue..
since i am currently facing the same problem
i am running on NW sp16
it would be highly appreciated if you can share across the solution
Thanks
Kumar T -
Dealing with Popup messages in webdynpro in ECC 6.0
THe backend R/3 has lots of custom popup box ( in user exits ) requesting the user to make a decision. This popup alerts ends up in dumping java error while executing transactions in Portal webdynpro transactions ( create expense report )
Any idea how this should be handled ?Hi,
In order to determine the cause you could catch the error and log the error message.
e.g.
try {
erroneous popup statement
} catch (Exception e) {
// log e.getMessage() here
// or let MessageManager print e.getmessage() -
Print Messages in webdynpro abap
Hi Experts,
I have this requirement to print all the message which are displayed in the message area (top of the page). The user requires to get all messages in a file so that he wants to do the action offline.
Please let me know if there is any way of having a print button on message are just like button "show list" and "reset log".
Thanks & Regards,
TashiHi,
There is no provision to add a Toolbar button in Message Area unless you enhance the WDDOMODIFYVIEW of WDR_MESSAGE_AREA component (or do a modification) of method CREATE_ALL_MSG_TAB( ) of class CL_WDR_MESSAGE_AREA and adding a new toolbar item using add_toolbar_item( ) method.
Please note that the modification/ enhancement will reflect in all the WDA application not just your particular component.
hope this helps u,
Regards,
Kiran -
Localization of form-validation messages in WebDynpro
Hello all,
We're trying to solve this issue:
How to get localized (e.g. Slovak) messages which are result of form validation?
Situation: there is a context atribute, it's type is a simple type and this attribute is bound to an UI input element. When the form is submitted, every such attribute it's checked against it's simple-type.
So the question is how to get these messages - when validating automatically - for example:
"Enter the value in the format 25.11.1987"
in defined language? Is there a way how to configure/translate them?
Thanks a lot!!
RadoHi Radoslav,
You need use Message Pool for showing any data in the WEB Dynpro Applicaiton screen for intenationalization.
Please refer to this link might help in you scenario :
[Developing International Web Dynpro Applications|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/internationalization%20of%20web%20dynpro%20applications.pdf]
Hope it helps
Regards
Arun -
Display of messages in webdynpro ABAP views
Hi,
In a ABAP WD component I have 2 views, connected through a navigation link.
If in the first view, a message is displayed using the message manager, a message area is shown on the top of the view with the message in it.
If now I navigate to the other view, The message area is still being displayed without any message in it.
Perhaps the message log is not empty.I do not wish to display the message area when there are no new message is reported.
How do I go about it?
Regards,
Rahul
Message was edited by: Rahul KumarHi Rahul,
The message area is still displayed, because the message is stored inside of the history. Without displaying the message area, the user won't be able to access the message history. There are plans to allow a developer to switch off the history though (being just plans, so no eta).
Best regards,
Thomas -
To display error message abap webdynpro
Hi,
I need to display an error message when the field is not selected from the drop down list..when the default value - please select-- is there.. n not other value is selected...
I did some coding where in I am getting the message for the first time... when I press a button but when I press the button for the second time after selecting some value from the drop down box.. but when I am changing it again to -
please select----, its not giving me the error message....
any demo code will be very useful.
Thanks and Regards
TenzinHi Tenzin,
Regarding your problem, you can do like this.
When you checking the dropdown value on an action that time you will read the selected value index and then check if index is equal to first 1 i.e. if user has selected the first record then you can raise an error message.
For this try this logic given below :
DATA lo_nd_dropdown1 TYPE REF TO if_wd_context_node.
DATA lo_el_dropdown1 TYPE REF TO if_wd_context_element.
DATA ls_dropdown1 TYPE wd_this->element_dropdown1.
navigate from <CONTEXT> to <DROPDOWN1> via lead selection
lo_nd_dropdown1 = wd_context->get_child_node( name = wd_this->wdctx_dropdown1 ).
@TODO handle not set lead selection
IF lo_nd_dropdown1 IS INITIAL.
ENDIF.
get element via lead selection
lo_el_dropdown1 = lo_nd_dropdown1->get_element( ).
@TODO handle not set lead selection
IF lo_el_dropdown1 IS INITIAL.
ENDIF.
data : lv_index TYPE i.
lv_index = lo_el_dropdown1->get_index( ).
IF lv_index = 1.
report message
lo_message_manager->report_attribute_error_message(
message_text = 'Please select Airline Code'
element = lo_el_dropdown1
attribute_name = 'CARRID' ).
ENDIF.
Hopes this will helps you.
Regard
Manoj Kumar -
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 NHi! 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 -
How to send sms message from webdynpro to mobile
Hi
i am working on QA project.when system QA parameters are above standard values ,then i need to send SMS message to Mobile of supervisor.Can anybody suggest how to implement this?
Thanks
PrasadHai,
Create a web service model for this web servicehttp://www.webservicex.net/SendSMS.asmx?WSDL
this web service provides sms service through india.
But it can only work :If your mobile number is 098XXXXXXXX ,Please enter as 98XXXXXXXX
Create a view with two input fields (ToMobilenumber, from mail Addrees)
Create a textedit Elemnt (Message).
Create a button set the parameters to your web service and execute it.
regards,
Naga Raju -
How to create Notification message in webdynpro?
If an employee return to office after longleave,notification mail should go to chief........
please suggest me the waysHi,
Use GP..
http://help.sap.com/saphelp_nwce10/helpdata/en/44/789ee8d62455cee10000000a1553f6/frameset.htm
Regards,
Sudhir -
Change Msg partner in support desk message
Hi,
I want to change the msg processor in support desk message from webdynpro. Which RFC Function module will be helpful ?
Note : with the following function module we already tried , it is not changing msg processor in solution manager Sup dsk.
crm_order_maintain
crm_order_save
bapi_transaction_commit
Please refer the following code.
FUNCTION zchange_msgpart.
""Local interface:
*" IMPORTING
*" VALUE(OBJECT_ID) TYPE CRMT_OBJECT_ID OPTIONAL
*" VALUE(IT_LINES) TYPE COMT_TEXT_LINES_T OPTIONAL
*" VALUE(I_STATUS) TYPE CRM_J_STATUS OPTIONAL
*" VALUE(REF_PARTNER_NO) TYPE COMT_PARTNER_NUMBER OPTIONAL
*" VALUE(PARTNER_NO) TYPE CRMT_PARTNER_NO OPTIONAL
*" EXPORTING
*" VALUE(ET_EXCEPTION) TYPE CRMT_EXCEPTION_T
*" TABLES
*" RETURN_N STRUCTURE BAPIRET2 OPTIONAL
Import Parameters for CRM_ORDER_MAINTAIN
DATA : lt_status TYPE crmt_status_comt,
lt_text TYPE crmt_text_comt,
lt_partner TYPE crmt_partner_comt,
lt_billing TYPE crmt_billing_comt.
changing Parameters for CRM_ORDER_MAINTAIN
Local fields for CRM_ORDER_MAINTAIN
DATA: lv_guid TYPE crmt_object_guid,
lt_object_to_save TYPE crmt_object_guid_tab,
ls_input_fields TYPE crmt_input_field,
ls_status TYPE crmt_status_com,
ls_field_names TYPE crmt_input_field_names,
lt_field_names TYPE crmt_input_field_names_tab,
it_partner TYPE crmt_partner_comt,
ls_partner TYPE crmt_partner_com,
lt_input_fields TYPE crmt_input_field_tab,
l_logkey TYPE crmt_logical_key,
ls_temp_input_fields TYPE crmt_input_field_tab,
ls_billing TYPE crmt_billing_com,
lt_saved_object TYPE crmt_return_objects,
ls_text TYPE crmt_text_com.
Get the GUID for the Transanction no
SELECT SINGLE guid
INTO lv_guid
FROM crmd_orderadm_h
WHERE object_id = object_id.
CHECK sy-subrc EQ 0.
ls_text-ref_guid = lv_guid.
ls_text-ref_kind = 'A'.
ls_text-tdid = 'SU01'.
ls_text-tdspras = sy-langu.
ls_text-tdstyle = 'SYSTEM'.
ls_text-tdform = 'SYSTEM'.
ls_text-mode = 'A'.
APPEND LINES OF it_lines TO ls_text-lines.
APPEND ls_text TO lt_text.
APPEND lv_guid TO lt_object_to_save.
ls_status-ref_guid = lv_guid.
ls_status-ref_kind = 'A'.
ls_status-status = i_status.
ls_status-user_stat_proc = 'ZENT0001'. "MODIFIED BY SRINIVASULU
ls_status-activate = 'X'.
APPEND ls_status TO lt_status.
ls_input_fields-ref_guid = lv_guid.
ls_input_fields-ref_kind = 'A'.
ls_input_fields-objectname = 'STATUS'.
CONCATENATE ls_status-status ls_status-user_stat_proc INTO l_logkey.
DATA: lf_guidset TYPE crmt_object_guid.
DATA: lf_par_guid TYPE comt_partner_guid.
SELECT SINGLE guid_set FROM crmd_link INTO lf_guidset WHERE guid_hi = lv_guid AND objtype_set = '07'.
SELECT SINGLE partner_guid FROM crmd_partner INTO lf_par_guid WHERE guid = lf_guidset.
for message processor
ls_partner-ref_guid = lv_guid.
ls_partner-ref_partner_no = ref_partner_no.
ls_partner-ref_partner_fct = 'SDSM0004'.
ls_partner-ref_no_type = 'BP'.
ls_partner-ref_display_type = 'BP'.
ls_partner-partner_guid = lf_par_guid.
ls_partner-ref_kind = 'A'.
ls_partner-ref_partner_handle = '0000'.
ls_partner-kind_of_entry = 'C'.
ls_partner-partner_fct = 'SDSM0004' .
ls_partner-partner_no = partner_no.
ls_partner-display_type = 'BP'.
ls_partner-no_type = 'BP'.
ls_partner-mainpartner = 'X'.
APPEND ls_partner TO it_partner.
ls_input_fields-ref_guid = lv_guid.
ls_input_fields-ref_kind = 'A'.
ls_input_fields-objectname = 'PARTNER'.
CONCATENATE ls_partner-ref_partner_handle ls_partner-ref_partner_fct ls_partner-ref_partner_no
ls_partner-ref_no_type ls_partner-ref_display_type INTO ls_input_fields-logical_key.
ls_field_names-fieldname = 'DISPLAY_TYPE'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'NO_TYPE'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'PARTNER_NO'.
APPEND ls_field_names TO lt_field_names.
APPEND LINES OF lt_field_names TO ls_input_fields-field_names.
APPEND ls_input_fields TO lt_input_fields.
CLEAR : ls_input_fields,lt_field_names[].
MOVE l_logkey TO ls_input_fields-logical_key.
ls_field_names-fieldname = 'ACTIVATE'.
CLEAR : ls_field_names,
lt_field_names[],
ls_input_fields,
ls_temp_input_fields[] .
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_text = lt_text
IT_SCHEDLIN_I =
it_partner = it_partner
it_status = lt_status
it_billing = lt_billing
CHANGING
ct_input_fields = lt_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'ZCRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = lt_object_to_save
IV_UPDATE_TASK_LOCAL = '-'
IV_SAVE_FRAME_LOG = TRUE
IV_NO_BDOC_SEND = TRUE
IMPORTING
ET_SAVED_OBJECTS = lt_saved_object
ET_EXCEPTION = et_exception
ET_OBJECTS_NOT_SAVED =
CHANGING
CV_LOG_HANDLE =
EXCEPTIONS
DOCUMENT_NOT_SAVED = 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.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDFUNCTION.
prakashHi Jijo,
a better solution may be to create a custom partner function called Main Message Processor and assign it to SLFN. I'm not sure how to flag one as the main any other way.
regards,
Jason
Maybe you are looking for
-
Modifying a particular line (content) of data in a file.
Hi All, I've a requirement with file modifications, but i'm new to Labview so couldnt correctly fix it... My req is something like this..... I've a file named mytemplate1.txt which is added to this post.... In that i've a line, i.e no. in attacehd is
-
I can't drag and drop from a data CD I recorded
I recently burned some audiobooks files (in mp3 format) as data cd's in Toast 8.0.1. When I go to reload them back onto my 20" 2 Ghz Dual Core Intel I can't drag and drop the files directly into any folder while using the columns view in a finder win
-
SFTP Connetnet Conversion Issue
Hi All, I am using SFTP adapter with content conversion, it is failing with the following error: Message initiation failed: Error during processing local bean: localejbs/AF/Modules/MessageTransformBean Below are the details of the content conversion.
-
Oracle and MySql via ODBC - Field with special characters
Hi, I recentely installed and configured DG4ODBC 11.2 in my environment, with Oracle 10g as Database. I have a working ODBC and I can successfully select from tables@mysql. I have a problem with some fields in the mysql table though: various fields a
-
Hi all, In order to test a normal scenario (for example "File to File"), generally we will place the input file at the specified location. Instead of that if I use "Test Message" in Component Monitoring, <b>what does it mean?</b> and <b>How the messa