Skip to Content

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

Parameters Issue

Hi All,

How we can set default values in PARAMETER Like

PARAMETER: P like Ztable-gendre.

When user put the cursor on the selection Box it Should get MALE

FEMALE.

Regards

Vikas

Tags:
Former Member
Former Member replied

you just paste code REPORT ZTESTRE.

TYPE-POOLS : vrm.

DATA : it_vrm TYPE vrm_values,

x_vrm like line of it_vrm.

PARAMETER: P(10) as listbox visible length 10."Ztable-gendre

INITIALIZATION.

x_vrm-key = '1'.

x_vrm-text = 'MALE'.

APPEND x_vrm TO it_vrm.

x_vrm-key = '2'.

x_vrm-text = 'FEMALE'.

APPEND x_vrm TO it_vrm.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'P'

values = it_vrm

EXCEPTIONS

id_illegal_name = 1

OTHERS = 2.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question