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

Table maintenance

Former Member
0 Likes
1,591

Dear Friends,

i have to link following tables to the maintenance view.

my problem is i have to link one table for two fields like Cost center from and cost center to

so please guide me how can i achieve this?


Id	Label	                        Table	                Field	
1	Business Site   	        ZBC_APPRVRS_LIST	Z_BUSINESS_SITE
2	Description	                ZBC_BUSNS_SITES	        Z_BUS_SITE_DESC
3	Controlling Area	        ZBC_APPRVRS_LIST	KOKRS
4	Cost Center From	        ZBC_APPRVRS_LIST	Z_KOSTL_FROM
5	Description	                CSKS	                LTEXT
6	Cost Center To	                ZBC_APPRVRS_LIST	Z_KOSTL_TO
7	Description	                CSKS	                LTEXT
8	Second Level Approver	        ZBC_APPRVRS_LIST	Z_SECOND_APPROVER
9	Complete name	                ADRP	                NAME_TEXT
10	Third Level Approver	        ZBC_APPRVRS_LIST	Z_THIRD_APPROVER
11	Complete name	                ADRP	                NAME_TEXT

thanks in advance

18 REPLIES 18
Read only

lijisusan_mathews
Active Contributor
0 Likes
1,553

if you have linked the tables using the keys, then you simply need to add the fields from the different tables? Whats the problem with having to get Cost center from and to ?

Read only

0 Likes
1,553

Suzie,

i have linked 1st table with CSKS

but how can i select relevant description field.

Read only

0 Likes
1,553

Along with this you can again link the 1 st table to the description too. Did you try doing it ?

Read only

0 Likes
1,553

yes friend,

but for the join conditions it takes only one field (from)

other field (to) is display as Relationships with unsuitable cardinality in relationship side.

Read only

0 Likes
1,553

Which is the case table you have used to link these tables?

And ZBC_APPRVRS_LIST contains both the from and to fields.. right ? and are they the fields to link it with the other tables?

Can you give me the keys of all these tables and the fields you are using to link these table respectively.

Read only

0 Likes
1,553

Hi

assume we can user select statement like this

Select bDescription cDescription

into (desc1,desc2)

from tbID as a on id1 =

inner join des1 as b on aid1 = bid

inner join des1 as c on aid1 = cid

is it possible to to do in maintenance view?

Read only

0 Likes
1,553

Hi.. first of all, i believe maintenance views create outer joins. Only database views create inner joins..

Second, if you are writing this to finally use it in select statements, you can perform select statements on database n projection views..

Read only

0 Likes
1,553

Hi

no i wrote this to you for understand the situation.

Read only

0 Likes
1,553

ok.. did you try this way..

In se11 on creation of maintenance view.. first enter table A..

Then click relation ships and give table B.

Then select A and again give relationships and select C

Is this what you tried to do in Se11?

Read only

0 Likes
1,553

Hi

table B and C are same table not deferent

Read only

0 Likes
1,553

if the table is same, and field is the same, y do you want different join conditions?

Read only

0 Likes
1,553

then use and to join .

Edited by: koolspy on Jul 25, 2011 1:11 PM

Read only

0 Likes
1,553

Dear try to understand the situation

base table have two fields ID1 and ID2

text table(Description) have Fields ID & Description

i want to get descriptions for two IDs (ID1 & ID2)

so for ID1 description pass ID1 to text table ID and get description

for ID2 description pass ID2 to text table ID and get there description

i wanna know how can i do in maintenance view,

Read only

0 Likes
1,553

Why don't you use EVENTS( 01 or 05 ) in Table maintenance generator and get the descriptions using select query

Thanks,

K.Kiran

Read only

0 Likes
1,553

Do you want to use maintenance view itself. Because what you are looking for can be achieved if you use a Database View. Do you want to be able to maintain the records? If not try database view.

Read only

koolspy_ultimate
Active Contributor
0 Likes
1,553

HI,

please visit this link, it might be usefull to you [click here|http://www.youtube.com/watch?v=4Je5EsM-vAY]

Read only

0 Likes
1,553

hi koolspy

this is youtube link

Read only

0 Likes
1,553

yes this shows you about maintenance view