‎2007 Apr 04 3:32 PM
Hi to all,
1.) Plz tell me how to impose search help in module pool program fields.
2.) how to use process on value request and process on help request.
Where it is used.
Thanks
Regards
Anubhav
‎2007 Apr 06 6:28 AM
Hi i tell u the ease way to get search help .
1) create search help in se11 .
2) on the sc5reen after u have inserted the field's I/O box then double click on it
and u land into the properties window then in the properties window there as u go down there u find three tabs right there on the first tab there is a field called Ref Field just insert the name of ur search help there .
u will get ur search help
‎2007 Apr 04 3:35 PM
Check the demo programs:
DEMO_DYNPRO_F4_HELP_MODULE
DEMO_DYNPRO_F1_HELP
Regards,
Ravi
‎2007 Apr 04 3:35 PM
Hi,
Create a search help in SE11 and attach it in the attributes of the field in the SE51 screen layout.
for F4:
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.
reward if useful
regards,
Anji
‎2007 Apr 06 5:44 AM
HI Anji,
Thanks for your answer.
I am getting the search help when pressing f4 key.
But when i am using start-of selection it is not triggering.
Why it happen .
Bye..
‎2007 Apr 06 5:46 AM
Hi, hows start-of-selection in module pool?
You are trying to call a screen in report?
rgds
Nishant
‎2007 Apr 06 5:56 AM
HI nishant,
I am using process on value request in report program .
Code :
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.
After that I want to display the contents of table Itab using
LOOP AT IT_MBLNR.
WRITE 😕 IT_MBLNR-MBLNR.
ENDLOOP.
BUT NOT GETTING THE OUTPUT.
Thanks..
‎2007 Apr 06 6:26 AM
Hi,
This will not work b'coz u r trying to generate a list.
If you want to do that you have to call another FM and try... this will be very complex
Try using this FM 'F4IF_FIELD_VALUE_REQUEST'.
You cna do a where used and find out how that is used.
In case of doubts let me know.
Hope this helps
Rgds
Nishant
‎2007 Apr 05 7:59 AM
hi,
In SE51 under flow logic you write
PROCESS ON VALUE-REQUEST
Module Value_help.
In se38 ,write the coding for the module Value_help.
Reward if it is helpful
Regards,
Sangeetha.A
‎2007 Apr 06 6:28 AM
Hi i tell u the ease way to get search help .
1) create search help in se11 .
2) on the sc5reen after u have inserted the field's I/O box then double click on it
and u land into the properties window then in the properties window there as u go down there u find three tabs right there on the first tab there is a field called Ref Field just insert the name of ur search help there .
u will get ur search help
‎2007 Apr 06 6:42 AM
Hi Anubhav,
If you need search help on selection screen then use "AT SELECTION-SCREEN ON VALUE REQUEST FOR ,field>"
and if you need search help for SCREEN field then use search help in REF FIELD attribute of that field or use "PROCESS ON VALUE-REQUEST" (POV)
Thanks,
Chetan Shah