Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Variants in dynpro

Former Member
0 Likes
382

hi all,

I have a range object.

RANGES:LT001_BUKRS FOR T001-BUKRS

and when i click button on screen the below popup will come to fill the range.

So i will get values in range object LT001_BUKRS.

DATA: STR_TAB_FIELD TYPE RSTABFIELD.

STR_TAB_FIELD-FIELDNAME = 'BUKRS'.

STR_TAB_FIELD-TABLENAME = 'T001'.

CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'

EXPORTING

TITLE = ' '

TEXT = 'COMPANIES'

SIGNED = 'X'

LOWER_CASE = ' '

NO_INTERVAL_CHECK = 'X'

JUST_DISPLAY = ' '

JUST_INCL = ' '

EXCLUDED_OPTIONS =

DESCRIPTION =

HELP_FIELD =

SEARCH_HELP =

TAB_AND_FIELD = STR_TAB_FIELD

TABLES

RANGE = LT001_BUKRS

EXCEPTIONS

NO_RANGE_TAB = 1

CANCELLED = 2

INTERNAL_ERROR = 3

INVALID_FIELDNAME = 4

OTHERS = 5.

I just want to store these range values to a variant programatically to avoid user to select companies everytime.

Thanks in advance

Jose

hi all,

I have a range object.

RANGES:LT001_BUKRS FOR T001-BUKRS

and when i click button on screen the below popup will come to fill the range.

So i will get values in range object LT001_BUKRS.

DATA: STR_TAB_FIELD TYPE RSTABFIELD.

STR_TAB_FIELD-FIELDNAME = 'BUKRS'.

STR_TAB_FIELD-TABLENAME = 'T001'.

CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'

EXPORTING

TITLE = ' '

TEXT = 'COMPANIES'

SIGNED = 'X'

LOWER_CASE = ' '

NO_INTERVAL_CHECK = 'X'

JUST_DISPLAY = ' '

JUST_INCL = ' '

EXCLUDED_OPTIONS =

DESCRIPTION =

HELP_FIELD =

SEARCH_HELP =

TAB_AND_FIELD = STR_TAB_FIELD

TABLES

RANGE = LT001_BUKRS

EXCEPTIONS

NO_RANGE_TAB = 1

CANCELLED = 2

INTERNAL_ERROR = 3

INVALID_FIELDNAME = 4

OTHERS = 5.

I just want to store these range values to a variant programatically to avoid user to select companies everytime.

Thanks in advance

Jose

1 REPLY 1
Read only

Former Member
0 Likes
359

You could define your own "Z" DB table with UserID + seq (for uniqueness) plus the range structure fields i.e. sign, option, low, and high - and then load these into the range table at run time.

Jonathan