on 04-05-2013 8:14 AM
Hi,
I m working on booking tickets application. If i select few seats and click on submit button,
it show display a succuss message along with the selected seat numbers.
So how to get the seat numbers with using report_succuss method.
Kindly help me regarding this.
Best regards,
Narasimha
Hi Narasimha,
In addition to method report_success, IF_WD_MESSAGE_MANAGER also has methods that allow you to specify a T100 message (messages created using transaction SE91):
Another option then is you could create a T100 message and pass the seat numbers as a message parameter, for example:
DATA ls_t100_msg TYPE symsg.
ls_t100_msg-msgid = message_class.
ls_t100_msg-msgno = message_number.
ls_t100_msg-msgty = message_type.
ls_t100_msg-msgv1 = number_of_seats.
message_manager->report_attribute_t100_message(
msg = ls_t100_msg
element = lo_element
attribute_name = 'ATTRIBUTE'
).
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Simplest way of displaying the message in the required format is to do concatenation.
Get the selected seat numbes into a varibale. Concatenate the variables with the string variable along with the message you want. Then pass the string variable to the method report_success.
Sample code:
data : lv_message type string value 'You have selected'.
Concatenate lv_message lv_seatno into lv_message seperated by space.
call method lo_message_manger->report_sucess( message = lv_message ).
Best Regards,
Arun Krishnamoorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Report_success method will display the text passing as message. You have to concatenate the seat numbers to the text and pass it to report_success message.
get the selected seats using get_attributes method then concatenate the seat numbers to the message text ( say lv_text ).
now pass the lv_text to the report success message .
Hope this helps u.,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.