cancel
Showing results for 
Search instead for 
Did you mean: 

Call transaction in Portal using if_wd_portal_integrati->navigate_absolute

senthil_kumar29
Participant
0 Kudos

Hi Guys,

I am calling a transaction in portal using the following code.

CALL METHOD l_portal_manager->navigate_absolute

EXPORTING

navigation_target = 'pcd:portal_content/com.csa.Prototype/com.csiro.Page/SAPWebGUI/sap_transaction_html_gui'

navigation_mode = if_wd_portal_integration=>co_show_external

WINDOW_FEATURES = 'TOOLBAR=FALSE,LOCATION=FALSE,RESIZABLE'

business_parameters = bparams

launcher_parameters = lparams.

But when I test in portal, its pop up a page and shows message No Page Found.

Any idea what should be done.

Thanks

Senthil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Use Transactional IView & also pass all required parameters such as TCode, User Name, Password etc...

Best Regards

Ravi Golla

Former Member
0 Kudos

Hi,

Have you created the Iview in the portal.

Please check the applicaition name and the parameters are you passing if any.

Check the target path you have specified is correct or not.

Try to test the portal with the pcd path you have given.

Regards,

Lekha.

senthil_kumar29
Participant
0 Kudos

Hi Lekha,

I am not sure abt existence of the iView in Portal.

Is there any way I can check this with Application name.

Do you mean SAP GUI Transaction iView in Portal for the tcode ?

Cheers

Senthil

Former Member
0 Kudos

Hi,

To call a transaction in portal You go for the Transactional Iview where you give the Tcode and run it.

You don't directly call the Tcode from the WDA. Please refer the related threads as it is explained many a time.

Regards,

Lekha.

senthil_kumar29
Participant
0 Kudos

Hi,

Is this Transactional iView needs to be ABAP WebDynpro template type.

Thanks

Senthil

Former Member
0 Kudos

Hi,

In the Portal, You can directly create the Transaction Iview template under the Webdynpro ABAP.

It will be a wizard kind to run the transaction from portal rather creating it in WDA.

As I posted earlier, calling a Tcode in WDA is not suggestible.

Regards,

Lekha.

Former Member
senthil_kumar29
Participant
0 Kudos

Hi Lekha,

Here is the existing code

l_api_component = wd_comp_controller->wd_get_api( ).

l_portal_manager = l_api_component->get_portal_manager( ).

MOVE 'OkCode' TO param-key.

MOVE '/00' TO param-value.

APPEND param TO lparams.

MOVE 'TCode' TO param-key.

MOVE 'MRBR' TO param-value.

APPEND param TO lparams.

MOVE 'SO_BELNR-LOW' TO param-key.

MOVE stru_invoice-belnr TO param-value.

APPEND param TO bparams.

MOVE 'SO_GJAHR-LOW' TO param-key.

MOVE stru_invoice-gjahr TO param-value.

APPEND param TO bparams.

CALL METHOD l_portal_manager->navigate_absolute

EXPORTING

    • navigation_target = 'pcd:portal_content/com.csiro.Prototype/com.csi.Page/SAPWebGUI/sap_transaction_html_gui'

navigation_target = 'ROLES://portal_content/com.csiro.Prototype/com.csi.Page/SAPWebGUI/sap_transaction_html_gui'

navigation_mode = if_wd_portal_integration=>co_show_external

WINDOW_FEATURES = 'TOOLBAR=FALSE,LOCATION=FALSE,RESIZABLE'

business_parameters = bparams

launcher_parameters = lparams.

Here they trying to call sap_transaction_html_guilink and giving tcode as a parameter.

Does it work ?

Thanks

Senthil

Former Member
0 Kudos

Hi ,

Use this FM to get the navigation target

CALL FUNCTION 'HRXSS_SER_GETAREALINK'

EXPORTING

AREAGROUPKEY = STRU_SETTINGS-HOME_SERVICE

AREAKEY = STRU_SETTINGS-AREA_SERVICE

PORTALCONTEXT = 'X'

PERSONNELNUMBER = STRU_SETTINGS-PERSONNELNUMBER

COUNTRYGROUPING = COUNTRYGROUPING

IMPORTING

AREALINK = AREALINK

EXCEPTIONS

AREAGROUPKEY_INVALID = 1

AREAKEY_INVALID = 2.

pass the AREALINK-LINKPCDPAGE to navivigation target of method

L_API = WD_COMP_CONTROLLER->WD_GET_API( ).

L_PORTAL_MANAGER = L_API->GET_PORTAL_MANAGER( ).

L_PORTAL_MANAGER->NAVIGATE_ABSOLUTE(

NAVIGATION_TARGET = AREALINK-LINKPCDPAGE

NAVIGATION_MODE = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_INPLACE

HISTORY_MODE = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES

).