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

'F4IF_INT_TABLE_VALUE_REQUEST' is not returning any value when selecting da

Former Member
0 Likes
1,039

*Hello Guys.*

*I hv inserted search help in an field of screen exit in T-code IW21. Its showing value properly when i press f4 but when selecting value its nt returning any value properly....*

*I am pasting code ..please help me out*

*. Process of value Request*

*field <fieldname> module F4_AGENCY*

*MODULE F4_AGENCY INPUT.*

*DATA: IT_AGENCY TYPE TABLE OF ZF4_AGENCY WITH HEADER LINE,*

*it_FIELD_TAB type table of DFIES WITH HEADER LINE,*

*IT_DDSHRETVAL TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.*

*REFRESH : IT_AGENCY[].*

*clear : VIQMEL-ZZAGENCY.*

**SELECT * FROM ZF4_AGENCY INTO TABLE IT_AGENCY.**

*CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'*

*EXPORTING*

      • DDIC_STRUCTURE = 'ZF4_AGENCY'**

*RETFIELD = 'ZZAGENCY'*

      • PVALKEY = ' '**

*DYNPPROG = sy-cprog "'SAPLXQQM'*

*DYNPNR = sy-dynnr "'0101'*

*DYNPROFIELD = 'VIQMEL-ZZAGENCY'*

      • STEPL = sy-stepl**

*VALUE_ORG = 'S'*

*TABLES*

*VALUE_TAB = IT_AGENCY[]*

*FIELD_TAB = it_FIELD_TAB[]*

*RETURN_TAB = IT_DDSHRETVAL[]*

      • 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.*

*....*

*wating for any reply*

*Hello Guys.*

*I hv inserted search help in an field of screen exit in T-code IW21. Its showing value properly when i press f4 but when selecting value its nt returning any value properly....*

*I am pasting code ..please help me out*

*. Process of value Request*

*field <fieldname> module F4_AGENCY*

*MODULE F4_AGENCY INPUT.*

*DATA: IT_AGENCY TYPE TABLE OF ZF4_AGENCY WITH HEADER LINE,*

*it_FIELD_TAB type table of DFIES WITH HEADER LINE,*

*IT_DDSHRETVAL TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.*

*REFRESH : IT_AGENCY[].*

*clear : VIQMEL-ZZAGENCY.*

**SELECT * FROM ZF4_AGENCY INTO TABLE IT_AGENCY.**

*CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'*

*EXPORTING*

      • DDIC_STRUCTURE = 'ZF4_AGENCY'**

*RETFIELD = 'ZZAGENCY'*

      • PVALKEY = ' '**

*DYNPPROG = sy-cprog "'SAPLXQQM'*

*DYNPNR = sy-dynnr "'0101'*

*DYNPROFIELD = 'VIQMEL-ZZAGENCY'*

      • STEPL = sy-stepl**

*VALUE_ORG = 'S'*

*TABLES*

*VALUE_TAB = IT_AGENCY[]*

*FIELD_TAB = it_FIELD_TAB[]*

*RETURN_TAB = IT_DDSHRETVAL[]*

      • 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.*

*....*

*wating for any reply*

1 REPLY 1
Read only

Former Member
0 Likes
520

Did you take a look at the help for FM? pass the hardcoded value for DYNPPROG and DYNNR (and see if that works)

DYNPPROG and DYNNR cannot be passed as SY-REPID and SY-DYNNR because they are only analyzed after the function module has been called. Instead, first copy the SY fields to local variables and then pass them to the function module.