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

about selection criteria

Former Member
0 Likes
646

hi

how to save selection criteria into a ztable?

thanks in advance

hi

how to save selection criteria into a ztable?

thanks in advance

4 REPLIES 4
Read only

former_member386202
Active Contributor
0 Likes
626

Hi,

Usually Selection criteria stores in table TVARV . U can select that from TVARV table insert into z table.

Regards,

Prashant

Read only

Former Member
0 Likes
626

TVARV Table contains the selection criteria.

Type is the field where we give type of variant i.e. Select-Options (S) or Parameters(P).

Awrd Points if useful

Bhupal

Read only

Former Member
0 Likes
626

Hi vinatha,

*Get the list of selection parameters

v_prog_name = sy-repid.

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

EXPORTING

curr_report = v_prog_name

TABLES

selection_table = lt_seltab

EXCEPTIONS

not_found = 1

no_report = 2.

IF sy-subrc <> 0.

"Do nothing

ENDIF.

Here, u can get selet options variables and values using SELNAME,SIGN, OPTION, LOW, HIGH

like,

LOOP AT lt_seltab INTO lwa_seltab.

..........

..........

ENDLOOP.

and then insert in to Ztable.

Points if useful !!

REgards,

Nimesh

Read only

0 Likes
626

hi, nimesh

my ztable contains Fields

MANDT

LGNUM

LFART

ROUTE

LGORT

VSTEL

and my internal table for collecting select-options is of structure rsparms with fields selname, kind, sign, option, high and low.

i have internal table with sturcure of my ztable.

once i collect the values in internal table(rsparms struct)

how do i pass them to my internal table (ztable sturct)??

i want all the range of that select options to be passed to my ztable ,

it wud be of great help.

thanx.