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

Search help - help

Former Member
0 Likes
1,214

I am trying to create a search help which will run in MMBE for available batches with available quantity. I am having problem in that creating the view using tables MCHA, MCHB, and RESB uses an inner join. This causes issues because if there is no record in RESB, then no values are returned. Can anyone help with a way to get this to work correctly?

9 REPLIES 9
Read only

former_member156446
Active Contributor
0 Likes
1,156

when there is not matching record, its obvious no data will be poped up..

machb-matrn = resb-matnr
machb-werks = resb-werks
            lgort =             lgort
             charg = charg

Read only

0 Likes
1,156

I understand this, as it is stated in my question. The goal is to show "available batches" = clabs - bdmng, in the search help. I have the calculation to work but am unsure of how to get the data needed for all cases. How is this possible?

Read only

prasenjit_sharma
Active Contributor
0 Likes
1,156

Hi,

Use left outer join for the table RESB.

Regards

Prasenjit

Read only

Former Member
0 Likes
1,156

Hi Justin,

Better use left outer join for the table RESB in ur case, since you need the records which are not matching with other table.

Try this, you may find solution.

Regards,

Sujatha

Read only

0 Likes
1,156

>

> Hi Justin,

>

> Better use left outer join for the table RESB in ur case, since you need the records which are not matching with other table.

>

> Try this, you may find solution.

>

> Regards,

> Sujatha

As my knowledge, We can not create left outter join in a search help view.

For this situation, you can create a search help exit. It may solve problem

Regards,

Thien

Read only

former_member156446
Active Contributor
0 Likes
1,156

[Creating Views|http://help.sap.com/saphelp_nwce711/helpdata/en/48/57a333956b72d0e10000000a42189c/content.htm]

Read only

Former Member
0 Likes
1,156

in that case rather make and exit dan using view. use inner join and make ranges in select query

Read only

Former Member
0 Likes
1,156

I have tried creating a view as a "help view" which should be outer join, but the cardinality does not allow the tables to be joined. You can only go RESB to MCHA OR MCHB to MCHA, but not all three Can you pull new information into a search help exit or does it only use the data that is in the view? Sorry, I am traveling and am unable to try this at the moment.

Read only

Former Member
0 Likes
1,156

You should create a search help exit. Then select from first two tables and add values that are not in the list.