I want to get the Ad Spec and Sub Ad spec what are the essential Tables to use/link up?
Currently the tables I using in SAP Query are:
JHAK - Header Data
JHAP - Media Item
JHAGA - Billing Dataset
JHAMOT - Ad Spec
The linkage as follow:
JHAK >> JHAP >> JHAGA >> JHAMOT
The record as follow:
Order 700002588 contain 2 Ad items, the 1st Ad item have 1 Sub Ad Spec & the 2nd Ad item without any sub Ad Spec.
Order 700002615 contain 1 Ad item with 2 sub Ad Spec.
By tweaking the link , it either I get duplicate records of items to many ad specs/sub ad specs (700002588) and 1 Ad item with Sub Ad Spec (700002615) as shown:
Order Item Ad Spec ======== ==== ======== 70002588 001 000001 70002588 001 000002 70002588 001 000003 70002588 001 000001 70002588 001 000002 70002588 001 000003 70002588 002 000002 70002588 002 000002 70002588 002 000002 70002615 001 000001 70002615 001 000002 70002615 001 000003
Or no duplicate records but an ad item suppose to have many sub ad spec was not shown:
Order Item Ad Spec ======== ==== ======== 70002588 001 000001 70002588 001 000003 70002588 002 000002 70002615 001 000001
Is there any missing tables that i need to link up so as to have the correct number of item with ad spec and sub ad spec without any duplication?