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 in ALV

Former Member
0 Likes
3,134

Hi Guru,

I am displaying one ALV using class.

I am displaying F4 help but UAER wants like transaction MM03 for MATNR.

Is there any filed in fieldcatalog so that I can pass that filed as match code.

I am using fieldcatalog of type LVC_S_FCAT.

Thanks,

Sandeep Garg

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,922

hi Try this,

DATA: fieldcat TYPE lvc_t_fcat WITH HEADER LINE.

fieldcat-ref_field = 'MATNR'.

fieldcat-ref_table = 'MARA'.

Regards,

Madhu

2 REPLIES 2
Read only

Former Member
0 Likes
1,923

hi Try this,

DATA: fieldcat TYPE lvc_t_fcat WITH HEADER LINE.

fieldcat-ref_field = 'MATNR'.

fieldcat-ref_table = 'MARA'.

Regards,

Madhu

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,922

MM03 use the MAT1 search help which is associated with the MATNR data element (and many others) so you need to link to a table/field which has this data element like MARA-MATNR, fill the LVC_S_FCAT fields REF_TABNAME and REF_FIELDNAME if different from FIELDNAME.

NB: In some case it is not so easy and you need to manage a HANDLER for event ONF4.

Regards