Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Experts,
Help with expression where v_FTM_FIRSTDATE=01/04/2014 and v_FTM_DATE=current month date. But still gives result for current month instead of whole range.
=sum({<PMCO_WERKS= {$(vWERKS)} >}{<ZDATE = {'>=$(v_FTM_FIRSTDATE)<=$(v_FTM_DATE)'}>}{<PMCO.ACPOS={'400'}>} PMCO.AMOUNT)/amt
HI,
Try like this
v_FTM_FIRSTDATE= MakeDate(2014, 4, 1)
v_FTM_DATE= Today()
=sum({<PMCO_WERKS= {$(vWERKS)} , ZDATE = {'>=$(=v_FTM_FIRSTDATE)<=$(=v_FTM_DATE)'}, PMCO.ACPOS={'400'}>} PMCO.AMOUNT)/amt
Also make sure that v_FTM_DATE and ZDATE values are in the same format.
Hope this helps you.
Regards,
Jagan.
Hi,
Can you remove the single quotes in the ZDATE?
thanks,
Rajesh Vaswani
try this:
=Sum({<PMCO_WERKS= {$(vWERKS)} >}{<ZDATE = {>=$(v_FTM_FIRSTDATE)<=$(v_FTM_DATE)}>}{<PMCO.ACPOS={'400'}>} PMCO.AMOUNT)/amt
Thanks Enrique
but expression is showing error. Not working.
Regards
Ashif
Hi,
Please check this, the flower brackets seem to be not placed correctly.
=sum({<PMCO_WERKS= {$(vWERKS)},ZDATE = {>=$(v_FTM_FIRSTDATE)<=$(v_FTM_DATE)},PMCO.ACPOS={'400'}>} PMCO.AMOUNT)/amt
thanks,
Rajesh Vaswani
HI,
Try like this
v_FTM_FIRSTDATE= MakeDate(2014, 4, 1)
v_FTM_DATE= Today()
=sum({<PMCO_WERKS= {$(vWERKS)} , ZDATE = {'>=$(=v_FTM_FIRSTDATE)<=$(=v_FTM_DATE)'}, PMCO.ACPOS={'400'}>} PMCO.AMOUNT)/amt
Also make sure that v_FTM_DATE and ZDATE values are in the same format.
Hope this helps you.
Regards,
Jagan.
Thanks Rajesh,
Just check the snap. If you could help me out.
Regards
Ashif
Can you check if PMCO.ACPOS is a valid field name? You can for now remove that, as well please check if PMCO.AMOUNT is a valid field name.
Thanks,
Rajesh Vaswani
It seems your expression is correct only introduce this in the expression
ZDATE = { ">=$(=v_FTM_FIRSTDATE) <=$(=v_FTM_DATE)" }
Also cehck the fields name weather it should be PMCA_ACPOS={'400'} AND PMCO_AMOUNT
Regards
Anand
=sum({<PMCO_WERKS= {$(vWERKS)} , ZDATE = {'>=$(=v_FTM_FIRSTDATE)<=$(=v_FTM_DATE)'}, PMCO.ACPOS={'400'}>} PMCO.AMOUNT)/amt
this should work..
thanks
sudhanshu shrivas