10-03-2007 9:24 AM
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
10-03-2007 9:27 AM
10-03-2007 9:27 AM
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
10-03-2007 9:47 AM
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
10-03-2007 9:56 AM
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
10-03-2007 10:27 AM
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
10-03-2007 10:33 AM
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
10-03-2007 10:43 AM
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>