Application Development 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: 

SAP Query: Duplicte records after joining table CSKT

Former Member
0 Kudos

Guru's,

We have created a query in SQ02 for Z table which has fields with KOKRS and KOSTL as well.

Ztable fields:

PLAN_TYPE

PLAN_PROCESS

...

...

KOKRS

KOSTL

...

...

...

We want to display cost center description. SO joining this Z table with CSKT(KOKRS,KOSTL). We are getting duplicate records in output because CSKT has duplicate KOSTL.To solve this, we want fetch Latest KOSTL comparing DATBI GE SY-DATUM.

Can anybody help us how to code this logic in Query. I have gone thru most of the SDN threads but could not find the answer.

Please help us.

Thanks in Advace.

Shreyansh

1 REPLY 1

Former Member
0 Kudos

Moderator message - Duplicate post locked