Application Development 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: 

Value Request Search Help

Former Member
0 Kudos

Hi expert,

i have created a value search help using FM: F4IF_INT_TABLE_VALUE_REQUEST, i m getting the result in Popup but i need to give the heading in the Output Poput , how it can be possible.

Its urgent

7 REPLIES 7

Former Member
0 Kudos

not possiable

Former Member
0 Kudos

Hi

see the fun module doc in SE37

you can give title for the window

see the sample code

See the following ex:

TYPES: BEGIN OF TY_MBLNR,

MBLNR LIKE MKPF-MBLNR,

END OF TY_MBLNR.

DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.

data: it_ret like ddshretval occurs 0 with header line.

At selection-screen on value-request for s_mat-low.

Select MBLNR from mkpf into table it_mblnr.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = 'MBLNR'

  • PVALKEY = ' '

  • DYNPPROG = ' '

  • DYNPNR = ' '

  • DYNPROFIELD = ' '

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = IT_MBLNR

  • FIELD_TAB =

RETURN_TAB = IT_RET

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

IF SY-SUBRC = 0.

read table it_ret index 1.

move it_ret-fieldval to S_mat-low.

ENDIF.

Go through the test program.

REPORT Ztest_HELP .

TABLES : MARA.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

PARAMETERS : P_MATNR(10) TYPE C.

SELECTION-SCREEN END OF BLOCK B1.

DATA : BEGIN OF ITAB OCCURS 0,

MATNR TYPE MATNR,

END OF ITAB.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.

SELECT MATNR

FROM MARA

INTO TABLE ITAB

UP TO 10 ROWS.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'MATERIAL NUMBER'

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'P_MATNR'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = ITAB

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

Regards

Anji

Former Member
0 Kudos

Hi,

Please confirm whether you want to give heading to fields or somewhere because i have written a similar search help and it shows the heading to me. Suppose we execute MM01 and we do F4 on Material so in that case which heading you are talking about. It will give me the idea about your requirement so that i can help you.

Thanks and Regards

Tanweer

0 Kudos

Dear Tanweer,

First heading ...after then the result of f4... like..

<b>Material No detail</b> <----


This heading

Matnr Sernp Maktx

1 x

2 y

3 z

How it can be possible

0 Kudos

Hi,

If you want to give custom title for a seach help then you can pass the title in WINDOW_TITLE parameter of the same FM else if you are using search help FM takes the title from the data element.

Thanks and Regards

Tanweer

0 Kudos

Dear Tanweer,

I m not talking abt the Window Title , my req is to give the Heading after then that ALV which has the result, is there any other FM , which can give result like this.

Thanks for help......plz i m waiting for

varma_narayana
Active Contributor
0 Kudos

Hi Vikranth..

There is no separate parameter available for the Heading.

So you can Store the Field names in the First record of the internal table which is passed to this FM . Then it will be displayed like a Header.

<b>reward if Helpful.</b>