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-options variable to be displayed ,remove 'IEQ'

Former Member
0 Likes
1,861

I'm getting plants as an input range.

Select-options: PLANTS for T001W-WERKS.

since its stored as IEQFD01 internally ,

what should be done to remove this IEQ and display as FD01.

how to display the from and to range like Plant range : FD01 to CH03.

Thanks.

I'm getting plants as an input range.

Select-options: PLANTS for T001W-WERKS.

since its stored as IEQFD01 internally ,

what should be done to remove this IEQ and display as FD01.

how to display the from and to range like Plant range : FD01 to CH03.

Thanks.

4 REPLIES 4
Read only

amit_khare
Active Contributor
0 Likes
901

It is not saved like that internally, what you are seeing is the value you got in debugging mode.

Just use PLANTS-LOW & PLANTS-HIGH for display.

e.g. - write:/ PLANTS-LOW, 'TO', PLANTS-HIGH.

Read only

0 Likes
901

that was not in debug mode.

even if it's displayed using write 😕 plants. you can see IEQ.

Thanks for suggestion.

Read only

JozsefSzikszai
Active Contributor
0 Likes
901

for single value:

WRITE : selectoption-low.

for range:

WRITE : selectoption-low, 'to' , selectoption-high.

the select option is an internal table in fact (with fields: sign, option, low and high), so you have to LOOP AT it.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
901

Use something like :

 LOOP AT PLANTS.
* sign I, E
  CASE PLANTS-SIGN
  WHEN 'I'.
     WRITE: / 'including'.
  WHEN 'E'.
     WRITE: / 'excluding'.
  ENDCASE.
* options EQ LT BT CP GE GT LE NB NE NP
  CASE PLANTS-OPTION.
  WHEN 'EQ'.
    WRITE 'equal'.
  WHEN 'LT'.
     WRITE 'lower than'.
  WHEN 'BT'.
    WRITE 'between'
    (...)
  ENDCASE.
  WRITE plants-low.
  IF plants-option EQ 'BT' or plants-option EQ 'NB'.
    WRITE: 'and', plants-high.
  ENDIF.
ENDLOOP.

Regards