Application Development 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: 

Module Pool........

Former Member
0 Kudos

Hi friends,

In top of my screen....i have two fields...

customer no (kna1-kunnr) &

enquiry no (vbak-vbeln).....

I need to get enquiry no based on customer no selected.

For these two i need to have search helps....How to do it...

Pls help....

5 REPLIES 5

Former Member
0 Kudos

Hi,

In your text field attributes window you have search help option.

provide the search help name for the field

regards

padma

Former Member
0 Kudos

Hi,

You may attach Function Module

F4IF_INT_TABLE_VALUE_REQUEST

to your fields

Anirban

Former Member
0 Kudos

Hi Hosmath,

We have an Event in Module pool as POV, which i used to provide the value help.

In your scenario use the standard Data element for the first field, but for the second field if you want search help then you have to write coding for the same.

To call the F4 help. In POV write a select statement where Customer number is equal to input. Then pass this value to function module(F4IF_INT_TABLE_VALUE_REQUEST

) Then you can get the solution for the issue.

Correct me if i am wrong.

Thanks & Regards,

M.Ramana Murthy

Edited by: Ramana Murthy on Sep 2, 2008 9:31 AM

Former Member
0 Kudos

Hi,

Please check the below example

In the flow logic of the screen, write :

PROCESS ON VALUE-REQUEST.

FIELD <field_name> MODULE <module_name>

( field _name is <workarea-fieldname>).

In the module_name definition write :

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

TABNAME = table_name " In single quotes

FIELDNAME = fieldname " In single quotes

DYNPPROG = 'SY-CPROG'

DYNPNR = screen number "in single quotes

DYNPROFIELD = 'X'

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.

I hope this will help you.

Regards

Natasha Garg

Former Member
0 Kudos

Hi,

First create Z-search help in SE11. In the first screen of the search help creation, you will find a field 'Selection Method'. there you mention VBAK . In the same screen below one table named parameter is there. There you mention vbeln , tick both the check box, give 1 in field LPos and SPos and in the 2nd line kunnr, give 2 in field LPos and SPos. Then save and activate the search help.

Then you mention the search help in the vbeln field property.

Thanks....