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

select-option regarding

Former Member
0 Likes
619

hi,

how to write code for the following?

select-options with selection range.

regards,

priya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
605

Hi,

Check the code:

REPORT DEMO.

DATA WA_CARRID TYPE SPFLI-CARRID.

SELECT-OPTIONS AIRLINE FOR WA_CARRID.

LOOP AT AIRLINE.

WRITE: / 'SIGN:', AIRLINE-SIGN,

'OPTION:', AIRLINE-OPTION,

'LOW:', AIRLINE-LOW,

'HIGH:', AIRLINE-HIGH.

ENDLOOP.

Regards,

Bhaskr

5 REPLIES 5
Read only

Former Member
0 Likes
605

select-options: S_BUKRS FOR EKKO-BUKRS . "Company Code

Read only

0 Likes
605

S_BUKRS-HIGH "HIGHER END,

S_BUKRS-LOW "LOWER END

Read only

Former Member
0 Likes
605

Describe Select-Options

select-options: sel_opt for sy-datum.

.

.

.

loop at sel_opt.

perform describe_select_options using 'Date'

sel_opt-sign

sel_opt-option

sel_opt-low

sel_opt-high

changing datedesc.

write: / datedesc.

endloop.

.

.

.

u can find the entire code on this link

http://www.erpgenie.com/abap/code/abap39.htm

do reward if helpful

Read only

Former Member
0 Likes
605

selection-screen begin of block b1.

select-options: p_vbeln for vbak-vbeln.

selection-screen end of block b1.

select * from vbak into table itab where vbeln in p_vbeln.

regards,

Ajay

Read only

Former Member
0 Likes
606

Hi,

Check the code:

REPORT DEMO.

DATA WA_CARRID TYPE SPFLI-CARRID.

SELECT-OPTIONS AIRLINE FOR WA_CARRID.

LOOP AT AIRLINE.

WRITE: / 'SIGN:', AIRLINE-SIGN,

'OPTION:', AIRLINE-OPTION,

'LOW:', AIRLINE-LOW,

'HIGH:', AIRLINE-HIGH.

ENDLOOP.

Regards,

Bhaskr