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

How to join BALDAT & BALHDR

Former Member
0 Likes
2,637

Hi there!

I already wrote this question in the BI General Forum but perhaps here would be the right place to ask... (Or not?)

I am working on the reorganization of the basis tables of SAP and need to analyze the table BALDAT (Application Logs). I would like to know what years the data in BALDAT is from, but therefore I need to do a join.

But how to join these to tables? It can't be done directly...

Can anyone help me? Does anyone know?

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,754

You can use the filed LOG_HANDLE for join condition.

Edited by: Sandeep Kumar on Feb 3, 2009 1:35 PM

Hi there!

I already wrote this question in the BI General Forum but perhaps here would be the right place to ask... (Or not?)

I am working on the reorganization of the basis tables of SAP and need to analyze the table BALDAT (Application Logs). I would like to know what years the data in BALDAT is from, but therefore I need to do a join.

But how to join these to tables? It can't be done directly...

Can anyone help me? Does anyone know?

4 REPLIES 4
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,755

You can use the filed LOG_HANDLE for join condition.

Edited by: Sandeep Kumar on Feb 3, 2009 1:35 PM

Read only

Former Member
1,754

Hi.

Use Inner join like this

select f1~baldat f2~baldat f1~balhdr into corresponding fields of table it
form baldat
inner join balhdr on ( baldat~log_handle = balhdr~log_handle ).

Read only

Former Member
0 Likes
1,754

Hi

Use the field LOG_HANDLE in join condition.

You can create a view with the above join condition using SE11.

Then you need to retrieve data from the view in your code wihout having to write the query.

Hope this helps

Regards,

Jayanthi.K

Read only

Former Member
0 Likes
1,754

Oh, I just thought too complicated... I thought I had to join over bal_indx or something like this...

Thanks a lot to all of you!