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

match code objects

Former Member
0 Likes
691

Hi gurus,

i created a match code object/search help for the required field. but i am getting only the values but not the description for that respective field. how to get that short text. its very urgent.

the table i used if s063 and fields are fegrp, fecod , surcod , urgrp. (i created each match code obj for the field as user req)

regards,

kumar.

6 REPLIES 6
Read only

Former Member
0 Likes
632

Hi Kumar,

Did you included you text field value as 'Search Help Parameter' with 'IMP' check box enabled?

Regards,

Ramki.

Read only

0 Likes
632

Hi ramki,

i done that too also but i its not showing that. I think there may be some other way to get that. normally when we see the hit list we get the description like that i want.

regards,

kumar

Read only

0 Likes
632

Hi Kumar,

Did you assigned Standard Search Help exit FM or you have created on your own. I have tried it & its working fine.

Regards,

Ramki.

Read only

Former Member
0 Likes
632

hi,

you would have attached a check table for the search help of yours, but that check table wil contain only values of that field. if you want to add the description also for that fields, create a internal table with those values and description for those values of that field and attach this internal table to your search help.

hope this wil help.

Read only

anversha_s
Active Contributor
0 Likes
632

hi sree kumar,

create a dynamic f4 help. that has more control.

chk this sample

tables: mara, makt.

data: begin of itab occurs 0,
matnr like mara-matnr,
end of itab.


data : begin of btab occurs 0,
maktx like makt-maktx,
end of btab.

data mak like makt-maktx.

DATA : return like ddshretval occurs 0 with header line.

data: begin of dynpfields occurs 0.
include structure dynpread.
data: end of dynpfields.

parameters: p_matnr like mara-matnr,
p_maktx like makt-maktx.

Initialization.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.

REFRESH ITAB.
SELECT matnr FROM mara INTO TABLE ITAB.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR '
dynprofield = 'P_MATNR '
dynpprog = sy-REPID
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = ITAB
return_tab = return.

select single maktx from makt into mak where matnr = return-fieldval.

p_matnr = return-fieldval.

refresh return.
clear return.

move 'P_MAKTX' to dynpfields-fieldname.
move mak to dynpfields-fieldvalue.
append dynpfields.


CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      dyname               = sy-cprog
      dynumb               = sy-dynnr
    TABLES
      dynpfields           = dynpfields
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      undefind_error       = 7
      OTHERS               = 8.

.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

refresh return.
clear return.

rgds

Anver

Read only

Former Member
0 Likes
632

hi

i will try one of those you suggested and thanks for in time help.

with regards,

sree kumar