cancel
Showing results for 
Search instead for 
Did you mean: 

Paste button for multiple selection pop-up of selection field

former_member186607
Active Contributor
0 Kudos

Hi,

I have the following requirement:

I have a selection field for multiple input of type CL_WDR_SELECT_OPTIONS like for Freight Order in the screenshot below:

When opening the 'Advanced Options' to enter multiple values the following pop-up opens:


My question is now if it is possible to add an additional button in the toolbar here, e.g. a button for 'Paste' values (a.k.a. 'Upload or Copy from Clipboard') like available for multiple selection in backend dynpros:

Thanks and best regards, Daniel

Accepted Solutions (1)

Accepted Solutions (1)

former_member197475
Active Contributor
0 Kudos

Hi Daniel,

Yes there is an option, but it is quite a big headache.

I did the same requirement some times back for my custom application. The thing I did was, I copied the existing component WDR_SELECT_OPTIONS to a Z one and did the modification in view EXTENDED_OPTIONS.

Here you can add a custom toolbar button and implement your own logic. Only thing that you need to make sure that your select option component will be a new Z one.

Just try it up.

BR,

RAM.

former_member186607
Active Contributor
0 Kudos

Hi,

thanks for your input, but my requirements would be to stay in the standard and only enhancing the standard coding where needed.

I also played around a bit now and at least it was possible to make the button visible by implementing post-exit enhancement for method INIT_EXTENDED_OPTIONS of class CL_WDR_SELECT_OPTIONS:

But, of course, to get the functionality behind it as well seems to be a bit more complicated. Maybe you can share some details on your Z-coding regarding this?

For web dynpro component WDR_SELECT_OPTIONS view EXTENDED_OPTIONS the method ONACTIONON_TBBTN_IM_CLIPBRD is available, but empty in the standard. I hope it should be possible to enhance this method to get the paste functionality implemented. Any help on this appreciated.

Thanks and best regards, Daniel

former_member197475
Active Contributor
0 Kudos

Daniel,

But you may face lot of problem on your design.

See if you implement the logic on the existing SAP component, you need to make sure that this enhancement should work only for your application. Because WDR_SELECT_OPTIONS is a global component which relies on so many applications as well

But guess, method ONACTIONON_TBBTN_IM_CLIPBRD won't help. Because here you need to create an onaction event for your custom button and you need to handle the logic there.

BR,

RAM.

Answers (0)