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

Re: search help

Former Member
0 Likes
625

hi to all,

how to create search help with the required columns in the output display when we press f4 option.

hi ravi

i had two fields namely(vbpa-pernr)i.e customs representative (ZG) and service representative(ZQ).

for these two fields i want to add a F4 option based on

search by partner function and select the data for input.

please help me in this regard.

thanks

sun

Message was edited by: sun deep

4 REPLIES 4
Read only

Former Member
0 Likes
584

In SE11, when you are creating a search help, you can specify which fields you want to be displayed.

Regards,

Ravi

Read only

Former Member
Read only

0 Likes
584

'F4IF_INT_TABLE_VALUE_REQUEST'

try this FM, see its documentation

Read only

Former Member
0 Likes
584

Check the below code,

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001

NO INTERVALS.

PARAMETERS: p_ym TYPE buper .

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ym.

PERFORM f4_ym.

&----


*& Form f4_ym

&----


  • F4 for Year and Month

----


FORM f4_ym .

DATA: li_ret_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

tabname = ' '

fieldname = ' '

searchhelp = 'BU_DATE_CHAR'

TABLES

return_tab = li_ret_tab

EXCEPTIONS

field_not_found = 1

no_help_for_field = 2

inconsistent_help = 3

no_values_found = 4

OTHERS = 5.

IF sy-subrc IS INITIAL.

READ TABLE li_ret_tab INDEX 1.

IF sy-subrc IS INITIAL.

CONCATENATE li_ret_tab-fieldval6(4) li_ret_tab-fieldval3(2)

INTO p_ym.

ENDIF.

ENDIF.

ENDFORM. " f4_ym

Regards,

Prakash