Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

select-options

hi all,

in selection when i press on f4 .

field is assiging as jan , feb....

but it should take 01, 02...

below code will refer to that....

please tell me how to get only numbers

DATA:BEGIN OF itab OCCURS 0,

mnr like t247-mnr,

KTX like t247-KTX,

END OF itab.

select-options : mnr for t247-mnr obligatory.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_month-low.

SELECT ktx mnr FROM t247 INTO CORRESPONDING FIELDS OF TABLE itab WHERE spras = 'EN'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 's_MONTH-low'

dynpprog = sy-cprog

dynpnr = sy-dynnr

dynprofield = 's_MONTH-low'

value_org = 'S'

display = 'F'

TABLES

value_tab = itab.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_month-high.

SELECT mnr ktx FROM t247 INTO CORRESPONDING FIELDS OF TABLE itab WHERE spras = 'EN'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 's_MONTH-high'

dynpprog = sy-cprog

dynpnr = sy-dynnr

dynprofield = 's_MONTH-high'

value_org = 'S'

display = 'F'

TABLES

value_tab = itab.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question