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

Calling search helps dynamically in module pool program

Former Member
0 Likes
1,795

Hi Experts,

I have created two search helps. I need to call these search helps in my module pool program dynamically for a single field (i.e ZMATNR).

you might be known... if it is a single search help, we can assign that in field attributes.

But here... I need to call different search helps for a single field based on the condition.

Pls help me.

Thanks

Raghu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,078

Hi,

Have a look at url

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/frameset.htm

<< Unformattable tet removed >>

Other FM that may be used to provide input help is HELP_START .

Regards

Himanshu

Edited by: Rob Burbank on Apr 13, 2009 1:42 PM

6 REPLIES 6
Read only

Former Member
0 Likes
1,078

Hi,

Call the appropriate search help in the event PROCESS ON VALUE-REQUEST ...based on the condition..

Please check this link of how to call the search help..

Thanks

Naren

Read only

Former Member
0 Likes
1,078

HI what is your condition is it something entered at your selection screen or something coming up from some table?

you can do this way:

PARAMETERS p_carrid TYPE s_carr_id

MATCHCODE OBJECT <demo_f4>.

at-selection screen.

If your condition.

demo_f4 = " your first F4 help name.

else.

demo_f4 = " your second F4 help name.

endif.

note: when you define demo_f4 set one of your F4 help name as its default.

Hope this works.

Please get back in case of some other requirement.

Regards,

Lalit Mohan Gupta.

Read only

Former Member
0 Likes
1,078

Hi,

Can you explain the condition for calling multiple search Help on a Single field? Is it based on the user input of the screen ?

Thanks,

Samantak

Read only

Former Member
0 Likes
1,078

Use FM 'F4IF_INT_TABLE_VALUE_REQUEST' in the event Process on value-request

Read only

Former Member
0 Likes
1,078

Hi,

Use the below function module and pass the search help created in search help field according to the condition.



Process on Value-request.
if condition = A.

call function " F4IF_FIELD_VALUE_REQUEST"
TABNAME           =                                                          
FIELDNAME        =                                                        
SEARCHHELP     =  "Mention search help created                                                           

Elseif  Conditon =B.
call function " F4IF_FIELD_VALUE_REQUEST"
TABNAME           =                                                          
FIELDNAME        =                                                        
SEARCHHELP     =  "Mention search help created       
Endif.

Regards,

Prabhudas

Read only

Former Member
0 Likes
1,079

Hi,

Have a look at url

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/frameset.htm

<< Unformattable tet removed >>

Other FM that may be used to provide input help is HELP_START .

Regards

Himanshu

Edited by: Rob Burbank on Apr 13, 2009 1:42 PM