cancel
Showing results for 
Search instead for 
Did you mean: 

Add button in Transportation Cockpit (Planning)

Former Member
0 Kudos

Experts,

Can someone help me with Transportation Cockpit on SAP TM?

I need to add a Z button in the transportation cockpit  screen as in the following image.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Renato,

Have you read the TM Enhancement Guide?

http://scn.sap.com/docs/DOC-56676

For changes in the cockpit I also recomend to read the note 1818803. TM cockpit is very critical screen besides following the TM Enhcament guide is necessary to extend some special strucutres.

Best regards,

Thiago Bohn

Former Member
0 Kudos

Hi, Thiago!!!

Thanks for your help!

I learned many things with the mentioned material, but I still can't add the button.

I created a action and I created a enhancement to Customize the Component, but when I'm creating the new button in the tool bar I can't see my created action to be able to link it to the button.

Where did I go wrong? Or, what might be missing?

Do you have some idea?

Thanks in advance.

Renato Depicoli

Answers (3)

Answers (3)

petra_just
Active Participant
0 Kudos

Hi user,

to add a custom button to the TM cockpit, you have to do the following:

A create an enhancement + action in BOBX for object /SCMTMS/PLN node TORACT(for example ZENH_SEND_TO_CARRIER for custom message)
B Use SPRO Customizing in Planning -> general settings -> Define settings for Page Layout

1. create a button in the last point (the button must have the same name as the enhancement)

2. select content object, choose nr 2 for freight order area, assign the button just created in local toolbar buttons

C open the cockpit using floor plan manager and insert a new button in Tool bar menu
on the left side, you will see the z-name of your enhancement action, choose it (it becomes the event id in the details). you have to provide a description. you can assign an image.

D go to application admin -> layouts -> synchronize customizing

E go to the page layout and look for the freight order area and go to the detail area using display. your button will appear as a tick box. tick it.

Go to the cockpit and check. have done it many times, it works.

In version TM 9.5, the enhancement /SCMTMS/CL_UI_VIEWEXIT_PLN, method adat-action_properties has to be enhanced as attached and as described above by Dragos.

Petra

Former Member
0 Kudos

Hi Renato

Please give us a feedback! If it is the case mark this thread with a Correct Answer and Helpful Answer where appropriate.


See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why  


Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.


Best regards

Eduardo Chagas

[SCN Moderator]

Former Member
0 Kudos

Hi, Eduardo!

I still can't create the button. I tried to follow the advice of experts here and I tried to follow the guide, but I still didn't get success.

If anyone has a step by step or some new tip, this will be very helpful.

Dragoș
Employee
Employee
0 Kudos

Hi Renato,

The Transportation Cockpit is a special case in TM, and some generally valid concepts from the enhancement guide do not apply entirely.

Its appearance  is controlled by the so called Page Layouts, which dynamically modify the layout.

There are two particular areas of interest:

(1) the OVP is completely built dynamically, so every customisation of the floorplan configuration /SCMTMS/WDCC_PLN is discarded.

(2) for some list, including the one where you have problems, the visibility of the buttons too is controlled by the page layouts.

For you situation, I suggest you to set a BP in the method /BOFU/IF_FBI_VIEW_EXITINTF_RUN~ADAPT_ACTION_PROPERTIES of class /SCMTMS/CL_UI_VIEWEXIT_PLN and check the "visible" and "enabled" property of your button in the parameter CT_ACTION_USAGE. If the button is deactivated at this point, you can add a POST exit to the said method and "correct" the properties.

The program will stop at that BP more than once (since that class runs for most lists from cockpit) - check out the attribute mv_list_object - for the list of freight units it should have the value 01.

Regards,

Dragos

Former Member
0 Kudos

Hi, Dragos!

You are sure, the OVP is completely built dynamically.

But before, my problem is I can't include the button.

I created an action and an enhancement to the component, but when I've tried to create the button in the toolbar, I can't see the action.

I don't know if I've created correctly the action or lack something to the action appear in the  button creation moment.

In the next screen, I believe that my action should appear. But...

Do you have any Idea why doesn't it appear?

Thanks in advance.

Dragoș
Employee
Employee
0 Kudos

Where did you create the action? In the FBI view?

I just checked the coding of method GET_ACTIONS_FU_LIST, and indeed, the list of action is hardcoded completely. So the enhancements made as per Enh. Guide are not taken into account.

You must enhance this method - then you'll be able to see the button in FPM configurator.

Former Member
0 Kudos

Hi, Dragos!

I created an enhancement in the BO /SCMTMS/TOR and I've created the action there.

I'm thinking that could be something about a feeder class that is missing I do.

But I don't know how can I do this.