cancel
Showing results for 
Search instead for 
Did you mean: 

Moving to second screen of SAP GUI from webdynpro application

0 Kudos

Hi friends,

I want to open the secatt applications second screen from webdynpro UI. For this I am using the following code on webdynpro side

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = 'appname'

IMPORTING

out_absolute_url = lv_final_url.

SPLIT lv_final_url AT 'webdynpro' INTO lv_first_url lv_second_url.

SPLIT lv_second_url AT 'ztwb_tor' INTO lv_final_url lv_apostrophe.

CLEAR lv_final_url.

CONCATENATE lv_first_url '/gui/sap/its/webgui?TRANSACTION=secatt&RB_TEST_CONFIG=X&RB_ECATT_SCRIPT=& ECTC_VER-NAME =' ls_ztwb_test_case-testcase '&okcode=ECOB_SHOW' lv_apostrophe

INTO lv_final_url.

CALL METHOD lo_window_manager->create_external_window

EXPORTING

url = lv_final_url

RECEIVING

window = lo_window.

lo_window->open( ).

But I am still able to open the first screen of secatt and not the second screen with the relevant testcase datails.

But if I try to open the second screen of SCAT transaction I am able to open it using the following url.

CONCATENATE lv_first_url '/gui/sap/its/webgui?TRANSACTION=SCAT&*CATA-ABLNR=' ls_ztwb_test_case-testcase '&okcode=ZEIG' lv_apostrophe

INTO lv_final_url.

Is there anything else that I need to pass as parameters in SECATT transaction.

The program of SCAT transaction is a module pool program.

The program of secatt transaction is a function pool program.

Thank you.

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Hi Saravanan ,

Can you please let me know how to move to the landing screen and pass parameters.

Thanks,

Mohsin.

saravanan_narayanan
Active Contributor
0 Kudos

Hello Mohsin,

I checked the program of SECATT. its just uses the workbench manager to start the respective GUI screen and its not passing any parameters. So I doubt whether you can pass parameters or OKcode to the SECATT tcode.

What you can do is to identify the respective landing screen of SECATT tcode and invoke them by passing parameters.

BR, Saravanan

0 Kudos

Hi Saravanan ,

I tried this but it is still opening the first screen of the SAP GUI. Is there any other way.

Thanks,

Mohsin.

former_member199125
Active Contributor
0 Kudos

Hi Mohsin,

U have to place astrik in front of transaction code value. and keep ;after the parameters. and for ok code use,

dynp_okcode

Regards

Srinivas

saravanan_narayanan
Active Contributor
0 Kudos

Hello Mohsin.

the parameter ~okcode is obsolete. Have a look at the following link

http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375

And also the parameters should be separated by ';'. check it out.

BR ,Saravanan