on 01-02-2009 1:04 PM
Hi all,
I have a few clarifications in webdyn pro.
1.) What is a service call?
as far as i understand its just calling a function module from webdynpro
2.) Suppose if there is exception thrown by a FM(or service call which i am unclear ) when calling it,
I get a error message.
The following error text was processed in the system NSP : Exception ALREADYEXISTS that Is Not Class-Based Occurred
How can i catch this exception and process with my normal operation?
Thanks,
Bala.
Hi Bala
1:Service call creates a context node and a method, which has piece of code regarding to that service.
Service can be a function module or a class method or a web service proxy.
Base on your choice: method, context and attribute of that context are created as per the importing exporting parameters of your method/FM/Service proxy.
2: to handle exception in your F.M instead of using T100 type mesage syntex you need to pass the message details to a Web dynpro method to handle.
Ex:
F.M call
if sy-subrc NE 0.
write this code generated using code wizard button
get message manager
data lo_api_controller type ref to if_wd_controller.
data lo_message_manager type ref to if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
call method lo_api_controller->get_message_manager
receiving
message_manager = lo_message_manager
.
report message
call method lo_message_manager->report_t100_message
exporting
msgid = SY-MSGID
msgno = SY-MSGNO
msgty = SY-MSGTY
p1 =
p2 =
p3 =
p4 =
msg_user_data =
view =
show_as_popup =
is_permanent =
scope_permanent_msg =
controller_permanent_msg =
msg_index =
cancel_navigation =
.
endif.
Thanks
Vishal Kapoor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bala,
A webService can be created in several ways, and one of them is using an RFC.
We create a RFC, and then, from Utilities we create a webservice.
I can put in simple words and let you know what a Webservice can do.
The scenario is like this:
If you want to open a PDF and wants to submit the data to R/3 tables on click of the Submit button in the PDF.
To acheiev this we can create a PDF from SFP tcode, and on Submit you will be calling a Webservice.
This webservice enables the user to update the data in DB without logging into SAP and doing it.
Not only this, like validating EMAIL address etc in PDF and so, can be done using this webserives.
I hope i am clear wuith the explanation..
Regards,
Shashikanth, D
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.