‎2009 Jul 31 8:50 AM
Hi All.
In MIGO , when we click on Distribute Quantity Button, we want to call custom search help for BATCH ,
which should return QUANTITY (unrestricted quantity) , batch and creation date.
At present MCH1 search help is being called from Function module VB_SEARCH_HELP_ADAPT .
How to call my custom search help ?
How to call and back populate batch and quantity fields from my custom search help ?
Yogesh
‎2009 Jul 31 1:21 PM
Hi
check the FM F4IF_FIELD_VALUE_REQUEST to assign your search help to the field you want .
sample code :
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CLASS-HIGH.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = 'CABN'
FIELDNAME = 'ATNAM'
SEARCHHELP = 'SEARCH HELP NAME '
SHLPPARAM = ' '
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'ATNAM'
STEPL = 0
VALUE = ' '
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
TABLES
RETURN_TAB =
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Poornima