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

List values between LOW and HIGH

Former Member
0 Likes
2,251

Hi,

Is it possible to list (with a MF) all the values contained on a select options or range ?

Let imagine i have select option or range like

LOW VALUE : SU51

HIGH VALUE : SU56

I want to list SU51, SU52, SU53, SU54, SU55 and SU56 ?

Thanks a lot.

Hi,

Is it possible to list (with a MF) all the values contained on a select options or range ?

Let imagine i have select option or range like

LOW VALUE : SU51

HIGH VALUE : SU56

I want to list SU51, SU52, SU53, SU54, SU55 and SU56 ?

Thanks a lot.

6 REPLIES 6
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,773

If this field is stored in some amster table do a select there for range and list down all data...and if it suppose to be only for display no reference then you can use the last two characters and use concept of offset

Nabheet

Read only

Former Member
0 Likes
1,773

Hi,

Select-options: s_vbeln for vbak-vbeln default SU51 to SU56.

or

initialization.

s_vbeln-sign = 'I'.

s_vbeln-options = 'BT'.

s_vbeln-low = 'SU51'.

s_vbeln-high = 'SU56'.

append s_vbeln.

Thanks & regards.

Read only

Former Member
0 Likes
1,773

Hi,

To brings records between LOW and HIGH. try the following code.

tables : spfli.

select-options: s_carrid for spfli-carrid.

initialization.

s_carrid-low = 'AA'.

s_carrid-high = 'LH'.

s_carrid-sign = 'I'.

s_carrid-option = 'BT'.

append s_carrid.

start-of-selection.

data: t_spfli like standard table of spfli with header line.

select * from spfli into table t_spfli where carrid in

s_carrid.

loop at t_spfli.

write 😕 t_spfli-carrid,t_spfli-connid,t_spfli-cityfrom.

endloop.

Regards,

Saravana.S

Edited by: saravanasap on Jan 9, 2012 1:57 PM

Read only

Former Member
0 Likes
1,773

Many thx for all you proposal, but in fact i'am not directly connected to SAP (i use external scripting language) that why i need a MF.

I have try with RFC_READ_TABLE and working pretty good, if you have any others solutions....

Thx.

Read only

0 Likes
1,773

- In some cases you could also use BAPI_HELPVALUES_GET, HelpValues.GetList()

(Read [Providing Input Help (F4 Help)|http://help.sap.com/saphelp_nw73/helpdata/en/4d/624199885f1d6ee10000000a42189c/frameset.htm])

- Look also via BAPI transaction at the many GetList methods

Regards,

Raymond

Read only

0 Likes
1,773

RFC_READ_TABLE is good... just pass the table name as TSTC and get the tcodes in that range..