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

F4 help value restriction

Former Member
0 Likes
1,142

I want to add a value box(max. no. of hits) in my F4 help list. But it is not allowing to give selection screen. Pls suggest.

*********

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

SELECT MONAT FROM BSIS INTO TABLE T_PERIOD.

SORT T_PERIOD BY MONAT.

DELETE ADJACENT DUPLICATES FROM T_PERIOD.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'MONAT'

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'PRD'

WINDOW_TITLE = 'Period'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = T_PERIOD

EXCEPTIONS

OTHERS = 3.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR PRD-HIGH.

SELECT MONAT FROM BSIS INTO TABLE T_PERIOD.

SORT T_PERIOD BY MONAT.

DELETE ADJACENT DUPLICATES FROM T_PERIOD.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'MONAT'

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'PRD'

WINDOW_TITLE = 'Period'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = T_PERIOD

EXCEPTIONS

OTHERS = 3.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
924

Please check [Search help with value restriction |]

Hope this helps.

6 REPLIES 6
Read only

Former Member
0 Likes
925

Please check [Search help with value restriction |]

Hope this helps.

Read only

0 Likes
924

Thanks for your prompt reply. But i want to add a box in the search help, where an user can mention the max. no. of hits e.g. - 200 hits or 500 hits etc..

Read only

0 Likes
924

HI Vishal,

Check the Below thread

[F4IF_INT_TABLE_VALUE_REQUEST with Maximum Number of Hits.|;

Hope this serves your purpose

Cheerz

Ram

Read only

0 Likes
924

Thanks a ton .

Read only

0 Likes
924

Hi Vishal,

Check this one

REPORT  zcall_back.
" This is a test code just copy and execute
"Close both the threads if your Issue is Served
PARAMETERS matnr TYPE matnr.
 DATA : BEGIN OF itab OCCURS 0,
    matnr TYPE matnr,
    END OF itab.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR matnr.


  SELECT matnr FROM mara INTO TABLE itab UP TO 1500 ROWS.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*       DDIC_STRUCTURE         = ' '
      retfield               = 'MATNR'
*       PVALKEY                = ' '
       DYNPPROG               = SY-REPID
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = 'MATNR'
     value_org              = 'S'
     CALLBACK_PROGRAM       = SY-REPID
     callback_form          = 'CALL_BACK'
    TABLES
      value_tab              = itab
   EXCEPTIONS
     parameter_error        = 1
     no_values_found        = 2
     OTHERS                 = 3
            .

" form call_back. "
FORM call_back TABLES record_tab STRUCTURE seahlpres " Need to consider these 
CHANGING shlp TYPE shlp_descr " This one
callcontrol LIKE ddshf4ctrl.  " and this one 
" Put a break point here and test your break point reach here
shlp-intdescr-dialogtype = 'C'. 
callcontrol-no_maxdisp = ''. 
callcontrol-MAXRECORDS = 30. " Add this one to Get no of Records
ENDFORM.

Read only

0 Likes
924

Thankyou very very much. The code is working perfectly fine now.