Application Development and Automation 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: 
Read only

Call Search Help With Button No Parameter Dependant

Former Member
0 Likes
864

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
678

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.

1 REPLY 1
Read only

Former Member
0 Likes
679

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.