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

Syntax

Former Member
0 Likes
555

Hi ,

The values from a select option are moving into an internal table .How should I check the first 2 places of the low and high values of the selection screen.

Please tell me the syntax.

Thank you.

Message was edited by:

bharat pkm

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
530

You can loop at the select option.

loop at s_bukrs.

   if s_bukrs-low(2) = 'XX'.

  endif.

   if s_bukrs-high(2) = 'XX'.

  endif.

endloop.

Regards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
531

You can loop at the select option.

loop at s_bukrs.

   if s_bukrs-low(2) = 'XX'.

  endif.

   if s_bukrs-high(2) = 'XX'.

  endif.

endloop.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
530

Hi,

select-options:

s_rsdat for edids-creDAT,

LOOP AT s_rsdat.

S_RSDAT-LOW WILL GIVE YOU LOW VALUE

s_rsdat-HIGH WILL GIVE YOU HIGH VALE.

Thanks

Read only

Former Member
0 Likes
530

Do this way...

loop at <slection-field>.

if <selection-field>-low(2) = 'XX'.

<condition>

endif.

if <selection-field>-high(2) = 'XX'.

<condition>

endif.

endloop.

Read only

Former Member
0 Likes
530
loop at s_matnr.

   if s_matnr-low+0(2)  = '12'.
        *write ur code here
   endif.

     if s_matnr-high+0(2)  = '12'.
        *write ur code here
   endif.

endloop.