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
576

hi all,

how do i hide fields of search help premn.

actually im usuing transaction iw26.here i have attached a search help to a screen field.But i dont need to display all the fileds of the search help(premn) i rewuire only specific fields and hence need to hide the other fields.so i do i hide these feilds.please can u help me out .its an urgent issue.

thanks a lot in advance,

seema.

4 REPLIES 4
Read only

Former Member
0 Likes
513

I think you will have to create your own search help for this purpose.Sample code is as follows :

FORM PRIORITY_GET .

TYPES :

BEGIN OF TY_PR,

PRIOK LIKE T356_T-PRIOK,

PRIOKX LIKE T356_T-PRIOKX,

END OF TY_PR.

DATA:

LT_PR TYPE STANDARD TABLE OF TY_PR,

LWA_PR TYPE TY_PR,

BEGIN OF LT_FIELD_HELP OCCURS 0,

VALUE LIKE HELP_INFO-FLDVALUE,

END OF LT_FIELD_HELP,

LT_FIELDVALUES LIKE DDSHRETVAL OCCURS 0,

LS_FIELDVALUES LIKE DDSHRETVAL,

LT_FIELDS LIKE DFIES OCCURS 0 WITH HEADER LINE.

*Select the priority

SELECT PRIOK PRIOKX FROM T356_T INTO CORRESPONDING FIELDS OF TABLE

LT_PR WHERE ARTPR = 'QM' AND SPRAS = 'EN'.

IF NOT LT_PR[] IS INITIAL.

SORT LT_PR BY PRIOK.

LOOP AT LT_PR INTO LWA_PR.

LT_FIELD_HELP-VALUE = LWA_PR-PRIOK.APPEND LT_FIELD_HELP.

LT_FIELD_HELP-VALUE = LWA_PR-PRIOKX.APPEND LT_FIELD_HELP.

ENDLOOP.

CLEAR LT_FIELDS.

LT_FIELDS-TABNAME = 'T356_T'.

LT_FIELDS-FIELDNAME = 'PRIOK'.

APPEND LT_FIELDS.

CLEAR LT_FIELDS.

LT_FIELDS-TABNAME = 'T356_T'.

LT_FIELDS-FIELDNAME = 'PRIOKX'.

APPEND LT_FIELDS.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = 'PRIOK'

  • PVALKEY = ' '

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

DYNPROFIELD = 'PRIOK'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

  • VALUE_ORG = 'C'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = LT_FIELD_HELP

FIELD_TAB = LT_FIELDS

RETURN_TAB = LT_FIELDVALUES

  • DYNPFLD_MAPPING =

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3

.

ENDIF.

ENDFORM. " PRIORITY_GET

Read only

Former Member
0 Likes
513

Hi

You have to delete those fields from sel and/or hit list by trx Se11, but you should change a std help to do that.

Max

Read only

Former Member
0 Likes
513

open ur search help and which ever fields u donot want to see just uncheck the check box of desired fields

thats going to reflect in ur program

Read only

Former Member
0 Likes
513

hi

good

go through this link, which ll help you to solve your problem.

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm

thanks

mrutyun^