2016 Jun 15 10:34 PM
Hi Gurus,
I'm in the need of your help, it's possible to call a search help defined in the ABAP Dictionary with a custom status-gui button (So i got no parameter for it), in a standard program(SAPMM06E - ME42) ?, i need to implement this and then get the value from the search help.
PS: I'm doing the logic for the custom status-gui button on Include ZXM06I01 - SAPMM06E..
thanks in advance.
2016 Jun 16 9:00 PM
If you need to do the same you can implement this function DD_SHLP_CALL_FROM_DYNP here's an example code, this is made in a PAI i can even get the selected value with the variable 'SELECT_VALUE'.
data: help_info type help_info,
SELECT_VALUE type HELP_INFO-FLDVALUE,
DYNPSELECT type DSELC occurs 0 with header line,
DYNPVALUETAB type DVAL occurs 0 with header line.
*initialization.
HELP_INFO-CALL = 'V'.
HELP_INFO-OBJECT = 'F'.
HELP_INFO-PROGRAM = sy-repid.
HELP_INFO-DYNPRO = sy-dynnr.
HELP_INFO-TABNAME = 'ZMMTB_ALRT'.
HELP_INFO-FIELDNAME = 'ZPRIOR'.
HELP_INFO-FIELDTYPE = 'ZPRIOR'.
HELP_INFO-FIELDLNG = '05'.
HELP_INFO-SPRAS = 'E'.
HELP_INFO-MENUFUNCT = 'HC'.
*start-of-selection .
CALL FUNCTION 'DD_SHLP_CALL_FROM_DYNP'
EXPORTING
help_infos = help_info
IMPORTING
SELECT_VALUE = SELECT_VALUE
TABLES
dynpselect = dynpselect
dynpvaluetab = dynpvaluetab.
Hi Gurus,
I'm in the need of your help, it's possible to call a search help defined in the ABAP Dictionary with a custom status-gui button (So i got no parameter for it), in a standard program(SAPMM06E - ME42) ?, i need to implement this and then get the value from the search help.
PS: I'm doing the logic for the custom status-gui button on Include ZXM06I01 - SAPMM06E..
thanks in advance.
2016 Jun 16 9:00 PM
If you need to do the same you can implement this function DD_SHLP_CALL_FROM_DYNP here's an example code, this is made in a PAI i can even get the selected value with the variable 'SELECT_VALUE'.
data: help_info type help_info,
SELECT_VALUE type HELP_INFO-FLDVALUE,
DYNPSELECT type DSELC occurs 0 with header line,
DYNPVALUETAB type DVAL occurs 0 with header line.
*initialization.
HELP_INFO-CALL = 'V'.
HELP_INFO-OBJECT = 'F'.
HELP_INFO-PROGRAM = sy-repid.
HELP_INFO-DYNPRO = sy-dynnr.
HELP_INFO-TABNAME = 'ZMMTB_ALRT'.
HELP_INFO-FIELDNAME = 'ZPRIOR'.
HELP_INFO-FIELDTYPE = 'ZPRIOR'.
HELP_INFO-FIELDLNG = '05'.
HELP_INFO-SPRAS = 'E'.
HELP_INFO-MENUFUNCT = 'HC'.
*start-of-selection .
CALL FUNCTION 'DD_SHLP_CALL_FROM_DYNP'
EXPORTING
help_infos = help_info
IMPORTING
SELECT_VALUE = SELECT_VALUE
TABLES
dynpselect = dynpselect
dynpvaluetab = dynpvaluetab.