Skip to Content
0
Former Member
Apr 22, 2009 at 05:46 AM

IP Planning Function

32 Views

Hi IP experts,

I have a requirement to plan for new stores. I have 100 old stores and 20 new stores.

I should be able to display all my new stores and should ask for a old store(For ex: store 50).

Here store 50 sales should get copied into all new stores. Code I have written is '

DATA EQPLANT TYPE ZPLANT_H.

*to extract old store variable

DATA TPLANT TYPE ZPLANT_H.

  • store

DATA TZSEASNCT TYPE ZSEASNCT.

*season whether it is summer(HKBS) or winter(HKBW)

DATA TZZLAYVR TYPE ZZLAYVR.

*Whether it is of type small store(STORE) or Center(CENTRE)

DATA TZZSTATR TYPE ZZSTATR.

*Whether it is old(EL) or New(NW)

EQPLANT = VARV(ZEQPLNTF).

*To get the variable value of old store

FOREACH TPLANT

IF TZZSTATR EQ NW.

{ZNTSLS_CY,TPLANT_H,HKBS,STORE,NW} = {ZPY_NTSLS,EQPLANT,HKBS,CENTRE,EL}.

{ZNTSLS_CY,TPLANT_H,HKBW,STORE,NW} = {ZPY_NTSLS,EQPLANT,HKBW,CENTRE,EL}.

ENDIF.

ENDFOR.

When I execute this code it is not generating any records, but reading records.

Please help me.

Thanks in Advance,

Pushpa M