Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Join help

Hi All,

Please help me on this requirement.

I have a table pa_master_details and lov_details.


In the pa_master_details table, I have role_comp_emp_final_rating and role_comp_lm_final_rating columns.

In the lov_details table I have a column rating lov_value and lov_text_en.

I need to like this

EmpNo   EmpRating      LMRating     Emptext     LMText

I need to join role_comp_emp_final_rating with the lov_value column to get lov_text_en Based on this lov_value, I need to show lov_text_en from the lov_details table.

So I wrote a query like this and am getting the result for emp rating:

SELECT p.employee_number,

p.role_comp_emp_final_rating,

lov_text_en,

p.role_comp_lm_final_rating

FROM pa_master_details P, lov_details L

WHERE p.role_comp_emp_final_rating = l.lov_value

AND p.employee_number = 34570

Similarly, I need to show lov_text_en for role_comp_lm_final_rating from the lov_details table by joining role_comp_lm_final_rating with lov_value in the same query.

How do I do it?

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question