Skip to Content

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

'F4IF_INT_TABLE_VALUE_REQUEST'

DATA : BEGIN OF IT OCCURS 0,

VKBUR LIKE TVKBT-VKBUR, "sales office

BEZEI LIKE TVKBT-BEZEI, "Description of sales office

END OF IT.

SELECT-OPTIONS: P_VKBUR FOR KNVV-VKBUR

NO INTERVALS VISIBLE LENGTH 15.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VKBUR-LOW.

REFRESH IT.

CLEAR IT.

SELECT VKBUR BEZEI FROM TVKBT

INTO TABLE IT

WHERE VKBUR LIKE 'A%'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = 'IT-VKBUR'

  • PVALKEY = ' '

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'P_VKBUR-LOW'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

PVALKEY = 'X'

  • MULTIPLE_CHOICE = 'X'

  • DISPLAY = 'X'

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = IT.

the problem is when the list is comming and i'm choosing a value suppose A10(it-vkbur)

but the field P_vkbur having the value description of that code(it-bezei) only 4 letters but i need the vkbur field on P_vkbur not the description.what will be the solution?

Tags:
Former Member
Former Member replied

HI,

change the highlighted part.

DATA : BEGIN OF IT OCCURS 0,

VKBUR LIKE TVKBT-VKBUR, "sales office

BEZEI LIKE TVKBT-BEZEI, "Description of sales office

END OF IT.

SELECT-OPTIONS: P_VKBUR FOR KNVV-VKBUR

NO INTERVALS VISIBLE LENGTH 15.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VKBUR-LOW.

REFRESH IT.

CLEAR IT.

SELECT VKBUR BEZEI FROM TVKBT

INTO TABLE IT

WHERE VKBUR LIKE 'A%'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

<b>RETFIELD = 'VKBUR'</b>

  • PVALKEY = ' '

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'P_VKBUR-LOW'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

PVALKEY = 'X'

  • MULTIPLE_CHOICE = 'X'

  • DISPLAY = 'X'

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = IT.

rgds,

bharat.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question