cancel
Showing results for 
Search instead for 
Did you mean: 

Put a link when I Create Travel Request in the portal ESS

Former Member
0 Kudos

Dear Experts.

The customer want that I create a link that call a t.code when finished the process of creation of a Travel Request in the portal ESS.

[Process of Creation Travel|http://img594.imageshack.us/img594/2189/createtravel.jpg]

Can anyone help me with suggestions for create this link?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

As i suggested in the other forum you need to enhance then application and add linktourl or linktoaction element

Thanks

Bala Duvvuri

Former Member
0 Kudos

Dear Experts:

The process for Create Travel Request show several screen:

http://img594.imageshack.us/img594/2189/createtravel.jpg

I have the following doubt:

Checking the documentation of help.sap:

http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/51f0e994b85e40e10000000a11466f/frameset.htm

The name of application is: FITE_REQUEST

[packageptrmwebui|http://img545.imageshack.us/img545/7636/packageptrmwebui.jpg]

I want know how can get the iview(screen) or method that I need modify for add a button that call to the t.code that need. In this case the name of the last screen that display the portal when finish the process.

http://img594.imageshack.us/img594/2189/createtravel.jpg

Thanks in advance fot your helps.

Regards

Edited by: Thomas Jung on Oct 28, 2010 9:25 AM - Edited by moderator to remove links to unallowed external websites.

ChrisPaine
Active Contributor
0 Kudos

The problem here is that travel and expense management is the "bastard child" of UI development advances in the business suite.

It started off BSP, then moved partly to WDJ, then back to ABAP and WDA with it's own particular variety of the FPM (which isn't the FPM as everyone else knows it.) I wouldn't be surprised to see it redeveloped to use the "real" FPM in the future.

So trying to understand what it is doing is often hard.

The easiest way to know which WDA is being called is to right click on the screen and choose the "More Field Help" option - this given you some detailed info on which WDA component/view is being called.

In your particular case I believe that this is the view - CONFIRMATION_VIEW of the WDA component FITE_VC_CONFIRMATION

I would enhance it as per the previous suggestion. NB launching the transaction is going to be WebGUI (ugh!)

Cheers,

Chris

Former Member
0 Kudos

Dear Chris.

This is the information when I choosed the "More Field Help" option. My question is:

How can modify this application, and put a link or button in this screen? What are the steps ?

[fitevcconfirmation|http://img2.imageshack.us/img2/8886/fitevcconfirmation.jpg]

Regards

ChrisPaine
Active Contributor
0 Kudos

Hello,

there are multiple resources out there which show you how to enhance a WDA screen, and adding a simple link in is very very simple.

basically find that component and navigate to the view - press the squirly squiggle "Enhance (Ctrl-F4)" and add your link.

Check out the SAP help [Modification-Free Enhancements |http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c5/f4b9422e0fb911e10000000a1550b0/frameset.htm] for more info.

Cheers,

Chris

Former Member
0 Kudos

Dear Chris.

Thank you. I can created the button using Enhancement Implementation for the the view - CONFIRMATION_VIEW of the WDA component FITE_VC_CONFIRMATION.

In the onAction I use the following code:

method ONACTIONLINK .

DATA: lo_window_manager TYPE REF TO if_wd_window_manager,

lo_api_component TYPE REF TO if_wd_component,

lo_window TYPE REF TO if_wd_window,

lv_workorder TYPE aufnr VALUE '0060105926',

lv_url TYPE string.

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

lo_window_manager->create_external_window(

EXPORTING

url = 'http://www.google.com'

RECEIVING

window = lo_window ).

lo_window->open( ).

endmethod.

In this moment, I am using the url = 'http://www.google.com', but I want call a transaction.

I created an Internet Service with the t.code SE80. And with the t.code SICF I create the service (ZTRANSACTION), I am using the following parameter.

~TRANSACTION MyTransaction.

~THEME 99

~SINGLETRANSACTION 1

~NOHEADEROKCODE 1

~WEBGUI_SIMPLE_TOOLBAR 1

~WEBGUI 1

~RECORD 1

How can call this transaction using the Internet Service ZTRANSACTION. For put this in the parameter url of lo_window_manager->create_external_window...

Thanks in advance,

Regards

Former Member
0 Kudos

you can test the service from SICF and get the url from the browser and add it in the code but the problem based on the system url will change.you can create a transaction iview in portal and give the navigation url of the portal in the code

Thanks

Bala Duvvuri

Former Member
0 Kudos

Dear Expert.

I created a transaction iview in portal and give the navigation url of the portal in the code as follow:

method ONACTIONLINK .

DATA: lo_window_manager TYPE REF TO if_wd_window_manager,

lo_api_component TYPE REF TO if_wd_component,

lo_window TYPE REF TO if_wd_window,

lv_workorder TYPE aufnr VALUE '0060105926',

lv_url TYPE string.

lo_api_component = wd_comp_controller->wd_get_api( ).

CONCATENATE 'http://xxxxxxxxxx01.yyyyyyyyyyy.corp:50000/irj/servlet/prt/portal/prtroot/com.sap.portal.pagebuilder.iviewmodeproxy?iview_id=pcd%3aportal_content%2'

'Fcom.Portal_yyyyyyyyyyy.Portal_yyyyyyyyyyy%2Fcom.yyyyyyyyyy.ZZZZZZZZZZ%2Fcom.sap.pct.erp.ess.'

'bp_folder%2Fcom.sap.pct.erp.ess.worksets%2Fcom.sap.pct.erp.ess.area_travel_expenses%2FZSOLICITA_TRANSPORT%2''FZSOLICITA_TRANSPORTE2&iview_mode=default' into lv_url.

lo_window_manager = lo_api_component->get_window_manager( ).

lo_window_manager->create_external_window(

EXPORTING

url = lv_url

RECEIVING

window = lo_window ).

lo_window->open( ).

endmethod.

If I use the lv_url this work fine, put I need that this work in all the clients of Portal in where this datas

http://host:5000/ are different for each client of portal. ie the host and port of the portal of DEV is different to the host and port of QA and PRD.

How can solve this issue. Please can you help me with new suggestions?

Thanks in advance

Regards

ChrisPaine
Active Contributor
0 Kudos

I would assume that the app that you are enhancing with the link is running in the portal.

In which case I would use absolute portal navigation launching in a new window.

get a reference to the component - I'm guessing you're enhancing the view - so


lo_component = wd_comp_controller->wd_get_api( ).

lo_portal_manager = lo_component->get_portal_manager( ).

concatenate 'ROLES://' 'portal_content/com.Portal_yyyyyyyyyyy.Portal_yyyyyyyyyyy/com.yyyyyyyyyy.ZZZZZZZZZZ/com.sap.pct.erp.ess.'
'bp_folder/com.sap.pct.erp.ess.worksets/com.sap.pct.erp.ess.area_travel_expenses/ZSOLICITA_TRANSPORT/ZSOLICITA_TRANSPORTE2'
into l_target .

lo_portal_manager->NAVIGATE_ABSOLUTE( NAVIGATION_TARGET = l_target
                                 NAVIGATION_MODE = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_EXTERNAL_HEADERLESS ).

rather than trying to understand which portal you are actually running in.

BTW - I'd also think of a different way to store that PCD location - in a table rather than in code. 2 often used ways are the ABAP LaunchPad config, or the HomePage Framework (HPF) config. You are also directing the navigation to the iView location rather than the page within the role - which isn't great practice. I'd change that if I were you.

Cheers,

Chris

Former Member
0 Kudos

Dear Chris.

[Application|http://img594.imageshack.us/img594/2189/createtravel.jpg]

The application Standard is:

[Fitevcconfirmation|http://img2.imageshack.us/img2/8886/fitevcconfirmation.jpg]

And this application is running in the portal.

I want use absolute portal navigation launching in a new window.

I am enhancing the view and add a new element button.

You suggestion is store that PCD location - in a table , but how can know What is the Server and port in where I am working ?

Regards

Answers (0)