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

Limiting the hit list

Former Member
0 Likes
473

Hi all,

I’m writing a pricing report which has a field condition type on the selection screen.

I want to limit the hit list of this field to merely display the condition types with usage A, application M when user clicks F4.

What should I do? Should I use matchcode?

Thanks in advance.

Hi all,

I’m writing a pricing report which has a field condition type on the selection screen.

I want to limit the hit list of this field to merely display the condition types with usage A, application M when user clicks F4.

What should I do? Should I use matchcode?

Thanks in advance.

1 REPLY 1
Read only

athavanraja
Active Contributor
0 Likes
323

you can use the following FM to provide your own values to the F4

F4IF_INT_TABLE_VALUE_REQUEST

check out this link for sample code

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap faqs.faq#q-9

<b><u>alternate method.</u></b>


wf_repid = sy-repid.
  wf_dynnr = sy-dynnr.

  call function 'F4IF_FIELD_VALUE_REQUEST'
    exporting
      tabname                   = 'TKA03'
      fieldname                 = 'STAGR'
      searchhelp                = 'Y_TKA03'
*   SHLPPARAM                 = ' '
      dynpprog                  = wf_repid
      dynpnr                    = wf_dynnr
      dynprofield               = 'WF_F_STAGR'
*   STEPL                     = 0
      value                     = 'HC*'
*   MULTIPLE_CHOICE           = ' '
*   DISPLAY                   = ' '
*   SUPPRESS_RECORDLIST       = ' '
*   CALLBACK_PROGRAM          = ' '
*   CALLBACK_FORM             = ' '
* TABLES
*   RETURN_TAB                =
* EXCEPTIONS
*   FIELD_NOT_FOUND           = 1
*   NO_HELP_FOR_FIELD         = 2
*   INCONSISTENT_HELP         = 3
*   NO_VALUES_FOUND           = 4
*   OTHERS                    = 5 .


<b>This would return values starting with HC*</b>

Regards

Raja