Skip to Content
author's profile photo Former Member
Former Member

SAP Query: Duplicte records after joining table CSKT

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. or is it possible to edit the code in system generated program(AQL4TAS_CO=====ZPLAN)

I have gone thru most of the SDN threads but could not find the answer.

Please help us.

Thanks in Advace.

Shreyansh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 05, 2011 at 02:31 PM

    Moderator message - Cross post locked

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.