on 03-04-2015 2:05 AM
Hi Experts,
As per requirement, the user will read the bar code(which ll have invoice number),
and the moment he reads invoice details should display in Website to approve it.
We are planning to do like barcode reader->vb script->calling rfc->call web dynpro application->display invoice details.
Is it possible to call web dynpro application from rfc?
Also please suggest me whether the above scenario will work or not?
Thanks in Advance.
Guna
Hi,
You could call the Web Dynpro application using the url and pass the invoice number as parameter to tthe url. Refer this document for reading url parameters: http://scn.sap.com/docs/DOC-45729
And could you please provide more details about your requirement; if you are calling the web dynpro application from vb or the other way - The Web Dynpro application consumes proxy for reading invoice details?
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gunaseelan,
If you are intending to call a webdynpro application from a Function Module, with the barcode input, then better append the barcode input value as a application parameter value to webdynpro application URL and then launch the WebDynpro Application.
DATA: lv_url TYPE string.
DATA: lv_host TYPE string,
lv_port TYPE string,
lv_out_protocol TYPE string.
CALL METHOD cl_http_server=>if_http_server~get_location
IMPORTING
host = lv_host
port = lv_port
out_protocol = lv_out_protocol.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'ZWD_APP_NAME' // Webdynpro Application Name
in_host = lv_host
in_port = lv_port
in_protocol = lv_out_protocol
namespace = 'sap'
IMPORTING
out_absolute_url = lv_url.
call method cl_http_server=>append_field_url
exporting
name = 'BARCODE'
value = lv_value // Bar code input value
changing
url = lv_url.
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
URL = lv_url.
Regards,
Harsha
Hi Harsha,
Thanks for your input.
How ever it calls the cl gui frontend services inside the fm call browser and gives same dump.
Since rfc is been calling from vb, cl gui frontend service will not work, I guess.
I tried with the other way that calling web dynpro application directly from vb, and it is working.
But the problem is data retrieval of invoice details and approver details.
Is there any other way we can do this scenario?
Thanks,
Guna
It works with the below method,
1.bar code reader will store the invoice number into a text file
2.vb script will read invoice number from text file and call rfc with the invoice no, userid, pwd of sap
3.rfc will construct url by giving component name & url with login details are send back to vb
4.web application is called by url from vb script
Thanks all for your support.
Regards,
Guna.
User | Count |
---|---|
85 | |
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.