stecorp
25th March 2013, 10:59
I am trying to pull the data from the Item Master Plan table based on the user selection as follows, but I am not getting the result even though the data is on the table.
Any help would be great...
1) i.plnc -Scenario
2) i.item.f - Item (zoom field from Item-Planning)
3) i.citg - Item Groups (zoom field from Item-Groups)
4) i.pren - Period (1-12)
select cprmp300.plni,
cprmp300.pern,
cprmp300.demf
from cprmp300
where cprmp300.plni IN (select cprrp100.item from cprrp100
where cplb = :i.citg
and cprrp100.item >=:i.item.f
and cprrp100.item <=:i.item.t)
and cprmp300.plnc = :i.plnc
and cprmp300.pern >= :i.pren
and cprmp300.pern <= :i.pren + 11
regards,
Any help would be great...
1) i.plnc -Scenario
2) i.item.f - Item (zoom field from Item-Planning)
3) i.citg - Item Groups (zoom field from Item-Groups)
4) i.pren - Period (1-12)
select cprmp300.plni,
cprmp300.pern,
cprmp300.demf
from cprmp300
where cprmp300.plni IN (select cprrp100.item from cprrp100
where cplb = :i.citg
and cprrp100.item >=:i.item.f
and cprrp100.item <=:i.item.t)
and cprmp300.plnc = :i.plnc
and cprmp300.pern >= :i.pren
and cprmp300.pern <= :i.pren + 11
regards,