Skip to Content
0
Former Member
Mar 25, 2009 at 09:35 AM

IP : Type xxxx not permitted

81 Views

Dear Fellow IP-ers

I have a planning function that loops through purchase orders (type ZCH_PAGR) and looks up the start and end date of the order. I need to distribute the total PO value across the relevant 0CALMONTH's.

here is the code:

line no

1 DATA PO TYPE ZCH_PAGR.

2 DATA START_DATE TYPE ZCH_VALFR.

3 DATA END_DATE TYPE ZCH_VALTO.

4

5 FOREACH PO.

6

7 START_DATE = ATRV('ZCH_VALFR',PO).

8 END_DATE = ATRV('ZCH_VALTO', PO).9

10 MESSAGE I001 UPF WITH ' PO is: ' PO.

11 MESSAGE I001 UPF WITH ' START_DATE is: ' START_DATE.

12 MESSAGE I001 UPF WITH ' END_DATE is: ' END_DATE.

..... more code here to distribute the PO value across relevant months derived from start and end date.

N ENDFOR.

When I check this formula I get : Formula error: Type ZCH_VALFR is not permitted.

I have double checked the syntax and am running this as part of a planning sequence where I filter to just one PO which I know has values in the attributes.

If I change LINEs 2 and three to:

2 DATA START_DATE TYPE D

3 DATA END_DATE TYPE D

It compiles but when I run it the attribute value is not picked up from the PO attribute.

PO is S-G1448/000019

START_DATE is . .

END_DATE is . .

Does anyone have any ideas? are ther any settings I need to make the the ZCH_VALFR and ZCH_VALTO characterisitcs? do they need to be in the Aggregation Level???

hope you can help

Duncan.