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

Empty mtart when joining MARA and MAKT tables

maybeabapjunior
Discoverer
0 Likes
1,564

Hi,

I've been trying to do a join between the MARA and MAKT tables on a help view with a where condition on mtart must be equal to 2 material types.

The result should be display the matnr, mtart and maktx fields of all the materials that have these 2 types, but when I display the search help on a select options it shows the materials with these 2 material types plus some materials with an empty mtart field.

How can I do the where condition to not display these materials with empty mtart?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
1,478

Basically, look at definition of help view

  • Table/join Conditions (between MARA and MAKT)
  • Selection Conditions (MAKT-SPRAS and MARA-MTART < some AND/OR typo?)
5 REPLIES 5
Read only

xiaosanyu
Participant
0 Likes
1,478

Please provide your SQL code.

Read only

adityaIngale66
Active Participant
1,478

Hi maybeabapjunior,

Add one more condition
where mtart NE ' '.


Regards,
Aditya

Read only

FredericGirod
Active Contributor
0 Likes
1,478

Maybe you have set an AND between the two MTART selection criterias

Read only

xiswanto
Active Participant
0 Likes
1,478

if search help is your issue, then use a custom search help or declare inline search help instead of using the standard one.

Read only

RaymondGiuseppi
Active Contributor
1,479

Basically, look at definition of help view

  • Table/join Conditions (between MARA and MAKT)
  • Selection Conditions (MAKT-SPRAS and MARA-MTART < some AND/OR typo?)