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: 

F4 Help

Former Member
0 Kudos

Hello,

in my customized table i ve material field MATNR but im not using existing data element.

now i want to attach a F4 help to it.....like the one for the field MARA-MATNR.

Kindly help.

Thank u in advance .

Regards

Pranali.

Message was edited by:

Pranali

1 ACCEPTED SOLUTION

former_member196299
Active Contributor
0 Kudos

Create a search help for that field in se11 and use it as match-code for that field , u;ll get the f4 help ..

Regards,

Ranjita

9 REPLIES 9

former_member196299
Active Contributor
0 Kudos

Create a search help for that field in se11 and use it as match-code for that field , u;ll get the f4 help ..

Regards,

Ranjita

0 Kudos

Hi,

Copy the exisitng search help, S_MAT1 or MAT1 and modify it according to your need.

Regards,

Sesh

Former Member
0 Kudos

Hi,

Alternatively you can create a domain and assign the value table to it. Use this domain for your new data element. This will give you an F4 help.

Regards,

Shruthi R

Former Member
0 Kudos

Attach the search help 'MAT1' to your table field.

Regards,

A.Singh

former_member235056
Active Contributor
0 Kudos

Hi,

Just attach the search help as u attach to any table in se11 but do not forget to check the domain and data elemnt to be activated.

Regards,

Ameet

former_member196299
Active Contributor
0 Kudos

hi ,

Is your problem solved ?

Regards,

Ranjita

Former Member
0 Kudos

Hi,

Find the code for your help.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.

<b>SELECT  MATNR 
        FROM <ZTABLE> INTO CORRESPONDING FIELDS OF TABLE ITAB_HELP.</b>        

SORT ITAB_HELP BY MATNR.

DELETE ADJACENT DUPLICATES FROM ITAB_HELP.



<b>CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'</b>
  EXPORTING
*   DDIC_STRUCTURE         = ' '
    retfield               = 'MATNR'
*   PVALKEY                = ' '
   DYNPPROG               = SY-REPID
   DYNPNR                 = '1000'
   DYNPROFIELD            = 'P_UNIQUE'
*   STEPL                  = 0
*   WINDOW_TITLE           = ' '
*   VALUE                  = ' '
   VALUE_ORG              = 'S'
*   MULTIPLE_CHOICE        = ' '
*   DISPLAY                = ' '
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               =
* IMPORTING
*   USER_RESET             =
  tables
    value_tab              = itab_help
*   FIELD_TAB              =
*   RETURN_TAB             =
*   DYNPFLD_MAPPING        =
* 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.

<i><b>Reward point for helpful answer.

Debjani Lahiri</b></i>

Former Member
0 Kudos

Anyway you are saying that you are not using the Exsisting data element for you MARA-MATNR .

then Create one new search help and attach to that it the data element in the se11 .

save and activate it in the se11 .

so that where ever you use it it will give you the F4 help .

reward points if it is usefull....

Girish

Former Member
0 Kudos

thank u all