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
804

In a custom table I need to provide a search help.

The requirement is: The field payment term will list all the possible values of payment term along with the description defined for 'Account type-customer"(The F4 help will list all values of T052-ZTERMS for which T052-KOART = 'D'.

I have created the search help but I am not able to incorporate the logic of this specific selection criteria values of T052-ZTERMS for which T052-KOART = 'D'.). Where I have to specify this condition....

Thanks in advance ,

Sudipto

6 REPLIES 6
Read only

Former Member
0 Likes
695

hi,

If u r going to call a FM for Search help which contribute the a ztable value then it should be assoicated with via foreign key.

and if you doing in itself ur program then plz use following styles

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'AUTHSIGN'

value_org = 'S'

TABLES

value_tab = IT_ZAUTHSIGN

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Regards

Ricky

Read only

Former Member
0 Likes
695

Hi,

While creating the search help, in the Selection method give the table name (T052 in your case) from which you are going to read the values from. In the search help parameters, Give the two fields. The first parameter should be KOART and the second parameter ZTERMS. Now give KOART as import/export parameter but KOART just as an export parameter (select the corresponding checkbox). in the LPOS and SPOS give 1,1 and 2,2 respectively. The selection will be taken care of based on the KOART value and the corresponding ZTERMS values will be displayed.

Defining the Search help parameters as Import/Export parameters holds the key for the selection.

Read only

0 Likes
695

but the search help should not fetch all the value from t-052-koart, should only fetch for which it is 'D'

Read only

0 Likes
695

Just filter the data befor passing the value (coolect the value with D only in int table ) to FM?

Read only

0 Likes
695

For such a requirement you will have to go for a Search help exit.

Try going through SAP help,

http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm

Read only

Former Member
0 Likes
695

Hi ,

You can create search help from the tcode SE11.

At tcode SE11 there is one radio button SEARCH HELP. From there you can creat search help as u want.

This is one of the option you can do with this also...

Regards,

Jayshree.