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

Get values from Search Help

former_member221372
Participant
0 Likes
1,828

Hi,

I have 2 Tables, KNVP & KNA1.

Have data base view for these tables.

KNVP-KUNNR & KUNN2

KNA1 - KUNNR & NAME1

I have to get output like this

KUNNR    Name 1    KUNN2    Name 2

Both KUNNR & KUNN2 are there in KNA1 as KUNNR. So unable to get  Name 2

I am getting like this now

KUNNR    Name 1    KUNN2    Name 1

I want the output like this

KUNNR    Name 1    KUNN2    Name 2

Cheers,

Bharath

Hi,

I have 2 Tables, KNVP & KNA1.

Have data base view for these tables.

KNVP-KUNNR & KUNN2

KNA1 - KUNNR & NAME1

I have to get output like this

KUNNR    Name 1    KUNN2    Name 2

Both KUNNR & KUNN2 are there in KNA1 as KUNNR. So unable to get  Name 2

I am getting like this now

KUNNR    Name 1    KUNN2    Name 1

I want the output like this

KUNNR    Name 1    KUNN2    Name 2

Cheers,

Bharath

7 REPLIES 7
Read only

Florian
SAP Champion
SAP Champion
0 Likes
1,720

Hi Bharath,

you need to join another table into it. KNA1 is linked to ADRC trough ADDRNUMBER

Here you will find everything you need. NAme1 and NAme2

By the way: To be sure having always the correct data is anyway necessary to link to ADRC

~Florian

Read only

0 Likes
1,720

Hi Florian,

In that case also I will get KUNNR - NAME1 Only, not KUNN2, as I will join based on any one of the field.

Bharath

Read only

0 Likes
1,720

Ahh... got name2 in my mind..

So what is the problem with it. You need to have a full qualified key? Just add it...

Otherwise if I'm right kunn2 ends always in one kna1-kunnr. But of course the number could be more often included...

~Florian

Read only

0 Likes
1,720

Hi Florian,

Created a scenario. PFA.

Now my requirement is to get the Name of KUNN2 as a 4th Column

Cheers,

Bharath

Read only

Former Member
0 Likes
1,720

Hi,

Take Name2 from kna1.

Read only

0 Likes
1,720

Hi noufal,

I'm not sure if you are familiar with the SAP-concepts of addresshandling. If so, take some time and work through the official sites to learn more about that. Your suggestion is against best practise.

Have a look here:

Central Address Management (BC-SRV-ADR) - SAP Library

~Florian

Read only

0 Likes
1,720

Hi Expert Florian,

Thanks for your advice.I APPRECIATE IT