Skip to Content

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

'F4IF_INT_TABLE_VALUE_REQUEST

HI,

I am writing the value request help for one field which is selection screen.

I am able to populate the Values in the help screen , i want the texts for values . I am writinf belwo.

it_loekz-loekz = 'S'.

append it_loekz.

clear it_loekz.

it_loekz-loekz = 'L'.

append it_loekz.

clear it_loekz.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'LOEKZ'

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = LW_FIELD_NAME

VALUE_ORG = 'S'

TABLES

VALUE_TAB = it_loekz.

I want the Vales like below

S Locked

L Deleted

regards,

Ajay reddy

Tags:
Former Member
replied

Hello AJay,

Can u please try this:

PARAMETERS : p_loekz TYPE loekz.

DATA : BEGIN OF it_loekz OCCURS 0 ,

loekz TYPE loekz,

text TYPE dd07v-ddtext,

END OF it_loekz.

DATA: lt_return TYPE TABLE OF ddshretval WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_loekz.

it_loekz-loekz = 'S'.

it_loekz-text = 'TEST'.

APPEND it_loekz.

CLEAR it_loekz.

it_loekz-loekz = 'L'.

it_loekz-text = 'NEW'.

APPEND it_loekz.

CLEAR it_loekz.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'LOEKZ'

value_org = 'S'

TABLES

value_tab = it_loekz

return_tab = lt_return

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

READ TABLE lt_return INDEX 1.

WRITE lt_return-fieldval TO p_loekz.

Hope this helps.

Regards,

Sandeep

0 View this answer in context

Helpful Answer

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