Skip to Content

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

F4 help based on criteria.

Hi all,

i am using a F4 help for Bplan that is benefit plan but im not grtting the field displayed on the selection screen.

the code used is :

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_benft.

SELECT bplan barea ltext

INTO CORRESPONDING FIELDS OF TABLE it_benefit

FROM t5uca

WHERE barea = 'US'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'BPLAN'

value_org = 'S'

TABLES

value_tab = it_benefit.

this is not working. can anyone suggest something on this??

thanks,

Poonam.

Tags:
Former Member
Former Member replied

i_return should be declared like this

  DATA: i_return LIKE ddshretval OCCURS 1 WITH HEADER LINE.

the i_return table contains the selected value.

Also dont forget to give dynpprog and dynpnr values in exporting parameter.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BPLAN'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = u2018P_BENFTu2019
value_org = 'S'

Cheers,

Kothand

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question