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: 

Empty mtart when joining MARA and MAKT tables

maybeabapjunior
Discoverer
0 Kudos
481

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

raymond_giuseppi
Active Contributor
395

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

xiaosanyu
Participant
0 Kudos
395

Please provide your SQL code.

adityaIngale
Active Participant
395

Hi maybeabapjunior,

Add one more condition
where mtart NE ' '.


Regards,
Aditya

FredericGirod
Active Contributor
0 Kudos
395

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

xiswanto
Active Participant
0 Kudos
395

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

raymond_giuseppi
Active Contributor
396

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?)