cancel
Showing results for 
Search instead for 
Did you mean: 

How to call SAP std R/3 transaction through Non-SAP Portal

Former Member
0 Kudos

Hi Friends

I need to display std. R/3 transaction 'CV04N' on client's intranet site which is a Non-SAP portal.Please guide me how can I achieve the same.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use an URL to call your transaction.

http:///sap/bc/gui/sap/its/webgui?transaction=<your_transaction>&parameter=<transaction_parameters_if_needed>&okcode=

You can read next blog:

/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008

Hope this helps,

Iván.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Ivan

Your answer was quite useful.Have rewarded you for the same.

Nice to get an answer from someone in the same organisation.

Following webdynpro ABAP code was developed by me for the same :

DATA: lv_url TYPE string,

lv_trans_code TYPE url_param,

lo_cmp_api TYPE REF TO if_wd_component,

lo_window_manager TYPE REF TO if_wd_window_manager,

lo_window TYPE REF TO if_wd_window.

DATA: lv_host TYPE string,

lv_port TYPE string,

lv_out_protocol TYPE string.

CONSTANTS: lc_its_service_name TYPE url_param

VALUE '/sap/bc/gui/sap/its/webgui/',

lc_sys_clnt TYPE url_param VALUE '!?sap-client=',

lc_its_transaction TYPE url_param VALUE '&noheaderokcode=1&transaction=',

lc_web TYPE char04 VALUE '://',

lc_vf_tran_field TYPE url_param VALUE 'CV04N',

lc_ok_code TYPE char16 VALUE '&~okcode=%20',

lc_colon TYPE char01 VALUE ':'.

CALL METHOD cl_http_server=>if_http_server~get_location

IMPORTING

host = lv_host

port = lv_port

out_protocol = lv_out_protocol.

CONCATENATE lc_vf_tran_field

lc_ok_code

INTO lv_trans_code.

CONCATENATE lv_out_protocol

lc_web

lv_host

lc_colon

lv_port

lc_its_service_name

lc_sys_clnt

lc_its_transaction

lv_trans_code

INTO lv_url.

lo_cmp_api = wd_comp_controller->wd_get_api( ).

IF lo_cmp_api IS NOT BOUND.

RETURN.

ENDIF.

lo_window_manager = lo_cmp_api->get_window_manager( ).

IF lo_window_manager IS NOT BOUND.

RETURN.

ENDIF.

CALL METHOD lo_window_manager->create_external_window

EXPORTING

url = lv_url

is_resizable = abap_true

RECEIVING

window = lo_window.

lo_window->open( ).