cancel
Showing results for 
Search instead for 
Did you mean: 

Hide "Create Plan" button without disabling Travel Planning

Former Member
0 Kudos

Hi Experts

We are using integration into the backend to simulate Travel Planning from the Travel Agent.

The user shouldn't have the ability to click on the "Create Travel Plan" button in the "My Trips and Expenses" iview.

Can someone tell me how I can hide the "Create Travel Plan" without disabling Travel Planning in Config.

For info on the Travel Plan button:

General Information About the Application and Component

Application: FITV_POWL_TRIPS

Web Dynpro Component: SALV_WD_TABLE

Window Information: TABLE

View Information: VIEW_TABLE

Configuration ID: F200702020732285378330

Information on Field

Field ID: F_CREATE_TP

Type of UI Element: TOOLBAR_BUTTON

UI Element Library: STANDARD

Thanks in advance

Anton

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you can hide travel plan button from preview the iView.

go through Content Administration - Portal Content then find the iView then right click choose preview

on the button that you would like to hide, click Ctrl + Right Click

then you can hide button, make it invisible

hope it helps

thanks

Former Member
0 Kudos

Actually no, the button isn't visible in the preview.

The button is generated dynamically in the code based on whether Planning is activated in config.

The button cannot be hidden in Personalization.

Former Member
0 Kudos

Only solution was to enhance the code in the feeder class to the POWL to ignore the action of displaying the button.

Lukas_Weigelt
Active Contributor
0 Kudos

Could you please elaborate on how exactly you did this? I'm having the exacmt same problem at the moment.

regards, Lukas

Former Member
0 Kudos

Hi Lukas

See class CL_FITV_POWL_FEEDER_TRIPS

Debug the methods in that class. There are only about 5 so shouldn't take long.

You should be able to remove the entry in an internal table where it lists all possible actions.

Anton

Lukas_Weigelt
Active Contributor
0 Kudos

Hi Anton,

I enhanced Method IF_POWL_FEEDER~GET_ACTIONS in the said class.

DELETE c_action_defs WHERE actionid = 'CREATE_TP'.

Works perfectly. Thanks you very much! It's a pity I can't give you points in your own thread

best regards, Lukas

Former Member
0 Kudos

Thanks Lukas.

Don't worry about the points. I don't.