Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ChooseFromList

Hi

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

Former Member
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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question