on 06-09-2010 9:06 AM
From my webdynpro i want to display a pdf file, in de FM a url is constructed, does anybody know where i can change the fact a url is http or https.
CALL FUNCTION 'WDY_CONSTRUCT_URL'
EXPORTING
application = 'ZHF_PDF'
PARAMETERS = lt_params
IMPORTING
out_url = lv_url
EXCEPTIONS
invalid_application = 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.
Consider using CL_WD_UTILITIES=>CONSTRUCT_WD_URL instead. There is an importing parameter IN_PROTOCOL that will let you choose HTTP vs. HTTPS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
where can i change http to https, in our production system the location is http while it should be https
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
data out_host type string.
data out_port type string.
data out_protocol type string.
call method cl_http_server=>if_http_server~get_location
exporting
server = cl_wdr_task=>server
importing
host = out_host
port = out_port
out_protocol = out_protocol.
out_protocol will have 'HTTP' or 'HTTPS'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.