CodeMonkey
CodeMonkey

Reputation: 1107

Filling parameter with value from Zeconfig_var table

I have the following selection parameter:

PARAMETERS: p_ver(2)   AS LISTBOX VISIBLE LENGTH 5.

I would like to populate it with the results from a ZECONFIG_VAR table.

At what point would I do this. Selection Screen Output, Start of Selection, or other. I am trying to allow users the ability to decide what version of the web service they would like to call. The config table will have different url's for the different versions.

I have looked at this Answer and the tutorial provided does not make sense to me.

Upvotes: 1

Views: 571

Answers (2)

Esti
Esti

Reputation: 3687

I would do it at the event INITIALIZATION

However, it may be even easier to just create a search-help, and assign it to p_ver using the following:

parameters: p_ver(2) visible lenghth 5 MATCHCODE OBJECT zshelpname.

Upvotes: 2

mydoghasworms
mydoghasworms

Reputation: 18613

Esti is right that you probably want to fill an internal table from the DB table during INITIALIZATION.

But to the populate the listbox parameter, you need to put the call to VRM_SET_VALUES in AT SELECTION-SCREEN OUTPUT.

Upvotes: 1

Related Questions