cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Select Options via Function Module

IanStubbings
Active Participant
0 Kudos

I contrast to the previous posting, I would like to update the single values for a select option. I am attempting to use the DYNP_VALUES_UPDATE, but I can only update the value on the screen and not the underlying structure. I have also tried using the RD_SELECTIONSCREEN_UPDATE but with no success either. Has anyone tried this before?

I am using a bespoke screen (ALV with multiple row selection) as the F4 dropdown which works fine and I have my values but cannot then update the selection screen.

I am on 4.6C.

Thanks in advance

Ian

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ian,

We used DYNP_VALUES_UPDATE and it worked for us. Are you using this in any of the selection-screen events, or outside of those events? We used it in selection-screen event, in fact, we used it in "at selection-screen on value-request for <param>" event only.

Srinivas

IanStubbings
Active Participant
0 Kudos

I am using it in the 'at selection screen on value request'. A colleague has suggested just updating the select option internal table. I will try this in the morning.

Many thanks for your help.

Ian

Former Member
0 Kudos

Hello Ian,

The option of updating the select-options internal tabler seems right for the description of your requirement. However, I would like just give you a word of caution here - <i>Do that in your <b>initialization</b> event</i>.

Example:


tables mara.
select-options s_matnr for mara-matnr.

initialization.
  s_matnr-sign = 'I'.
  s_matnr-option = 'EQ'.

  s_matnr-low = <Value1>.
  append s_matnr.

  s_matnr-low = <Value2>.
  append s_matnr.



  s_matnr-low = <ValueN>.
  append s_matnr.

Hope this helps,

Regards,

Anand Mandalika.