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

Search Help

Former Member
0 Likes
334

Hi,

I need search help for absence type and Employee sub group based on the country selected by the user in the selection screen. The country selections are in radio button.

I heard that the following Function Module can be used to do that,

DD_SHLP_CALL_FROM_DYNP

Can anyone tell how to use it or any other way to give search help.

thanks and Regards,

Arunsri

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
289

Hi,

Use the follwoing function module, you get search help. But you have to pass your table name, field names below.

data: it_itab type help_info,

rsmdy_ret type rsmdy.

data: it_itab1 type table of dselc initial size 0,

it_itab2 type table of dval initial size 0.

it_itab-tabname = 'GMGR'. " Table Name

it_itab-fieldname = 'GRANT_NBR'. " Field Name

it_itab-MCOBJ = 'GMGRANT'. " Name of the Search Help

it_itab-TCODE = 'CJ20N'. " Transaction Code

&----


& &*

& Function Module for calling Search Helps from DYNPRO &

&----


&

CALL FUNCTION 'DD_SHLP_CALL_FROM_DYNP'

EXPORTING

HELP_INFOS = it_itab

IMPORTING

SELECT_VALUE = SELECT_VALUE

RSMDY_RET = RSMDY_RET

TABLES

DYNPSELECT = it_itab1

DYNPVALUETAB = it_itab2

exceptions

others = 1 .

Pass the search help value to a temporary variable

l_temp = select_value.

Hope it helps you.

Regards,

KUmar

1 REPLY 1
Read only

Former Member
0 Likes
290

Hi,

Use the follwoing function module, you get search help. But you have to pass your table name, field names below.

data: it_itab type help_info,

rsmdy_ret type rsmdy.

data: it_itab1 type table of dselc initial size 0,

it_itab2 type table of dval initial size 0.

it_itab-tabname = 'GMGR'. " Table Name

it_itab-fieldname = 'GRANT_NBR'. " Field Name

it_itab-MCOBJ = 'GMGRANT'. " Name of the Search Help

it_itab-TCODE = 'CJ20N'. " Transaction Code

&----


& &*

& Function Module for calling Search Helps from DYNPRO &

&----


&

CALL FUNCTION 'DD_SHLP_CALL_FROM_DYNP'

EXPORTING

HELP_INFOS = it_itab

IMPORTING

SELECT_VALUE = SELECT_VALUE

RSMDY_RET = RSMDY_RET

TABLES

DYNPSELECT = it_itab1

DYNPVALUETAB = it_itab2

exceptions

others = 1 .

Pass the search help value to a temporary variable

l_temp = select_value.

Hope it helps you.

Regards,

KUmar