cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP TM Button inactive

0 Likes
2,142

hi experts,

need to create a custom button in the TM cockpit. I have added the button in floorplan manager. I have created a related event with the same name as the action that I have created. When pressing the button, the debugger stops in my code. But, the button shows inactive. I have to go to component customizing and come back and then, it goes active. Of course, I cannot ask users to do that.

can you please give me a hint?

thanks

Petra

Accepted Solutions (0)

Answers (2)

Answers (2)

petra_just
Active Participant
0 Likes

hi Pratik,

you can go to class /SCMTMS/CL_UI_VIEWEXIT_PLN, method ADAPT_ACTION_PROPERTIES and enhance it as attached.

activate-buttons.jpg

Please mark my answer as correct if it works for you.

pbar
Explorer
0 Likes

Hi Petra,

Sorry for the silence from my end. Class /SCMTMS/CL_UI_VIEWEXIT_PLN didnot help.

Ultimately, calling this method 'mo_controller->post_syncup_data' in my Feeder class ADAPT_EVENT method helped.

Best regards

Pratik

petra_just
Active Participant
0 Likes

just a quick update:

have found the answer to this question and updated another question:

https://answers.sap.com/questions/11400579/add-button-in-transportation-cockpit-planning.html

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, it works.

pbar
Explorer
0 Likes

Hi petra.just ,

Thanks for the information on how to add buttons to cockpit. I followed it till step D. I am able to see and press the buttons from the UI and the action gets correclty triggered. But, after the action execution, SAVE button is not active, because of which, I am unable to save the changes of my action.

Also, in Step E, I still cant see my new buttons as checkboxes in the Page Layout Area.

Could you help me with activating the Save button?

Thanks again.

Best regards

Pratik