Is it possible to create a 'New' button in choosefromlist for custom UDO?
I have created a choosefromlist on a edittext and link it to a masterdata UDO. But the 'New' button is not there. But if i link it to for example the business partnet object, the 'New' button is there.
Do i have to create the new button or is there a way to enable the new button? some sample source code would help. thanks
Rasmus Wulff Jensen replied
The chooseFromlist window is a form as every other window in SAP so you could catch the FORM_LOAD and place your own button... ChooseFromList have two version (FormType 9999 for the one without the new-button and 10001 for the one with the new-button)... A CFL linked to a UDO use formtype 9999, but problem is that all search CFL also use this fortype so if you place a button it will appear on every CFL-window in SAP...
A workaround would be to use a global variable to set when catching your own CFL and use this variable to determine if the button should be shown...
Haven't tested this but I'll guess it could be done.