I would like to find whether a follow up contract exists for a certain contract based on the vendor in the contract.
All data about the contracts is stored in Contract_Info
Contract Number: "CONTRACT_INFO"."CONTRACT_EBELN"
Contract Vendor: "CONTRACT_INFO"."LIFNR"
Contract Start: "CONTRACT_INFO"."TS_KDATB"
Contract End: "CONTRACT_INFO"."TS_KDATE"
What I would like to see is:
For “Contract Number A” give me “Contract Number B” matched on “Contract Vendor” when “Contract END A” < “Contract END B”
I have tried quite some PQL / PU function, however I am not able to get near to the data I want to see.