on ‎2021 Feb 16 5:38 PM
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

Request clarification before answering.
hi Pratik,
you can go to class /SCMTMS/CL_UI_VIEWEXIT_PLN, method ADAPT_ACTION_PROPERTIES and enhance it as attached.
Please mark my answer as correct if it works for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 18 | |
| 15 | |
| 7 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.