Skip to Content
author's profile photo Former Member
Former Member

REG : IP PLANNING fUNCTION

Dear IP Experts,

I have a requirement to plan for all new stores based on already Existing Stores. My Sales for New store will be copy of my existing stores. If I have 10 New stores and 200 Existing Stores. Each new store I will select a Existing store and copy the notional sales. So I have created 2 variables One for New Store and the other for Existing store.Code written is

DATA EQPLANT TYPE ZPLANT_H.

DATA NWPLANT TYPE ZPLANT_H.

EQPLANT = VARV(ZV1_EQSTR).

NWPLANT = VARV(ZV1_NWSTR).

{ZNTSLS_CY,NWPLANT,NW} = {ZNTSLS_CY,EQPLANT,EL}.

If I have values for the variables zv1_eqstr as 10 and zv1_nwstr as 20 then

sales value(ZNTSLS_CY) for store 20 is equal to the value of store 10.

When I execute the plannning sequence at backend it is working fine. But when the same thing included in WAD and executing it is throwing me an error

"Variable ZV1_EQSTR should be restricted to a single value"

"Variable ZV1_NWSTR should be restricted to a single value". Please help me in this.

Regards,

Pushpa M

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2009 at 02:45 PM

    Hi,

    You have two options for WAD integration

    1) Please restrict your input variables to single values by a filter in the aggregation level and bind to WAD by data provider.

    2) Consider to create a FROM / TO Variables based in the filter by aggregation level and then create one data provider for each one and then bind to a list/combo options selectors.

    Obviously, you need to modify your FOX function in order to include your range values...something like this...

    DATA EQPLANT TYPE ZPLANT_H.
    DATA NWPLANT TYPE ZPLANT_H.
    
    DATA TO_EQPLANT TYPE ZPLANT_H.
    DATA FR_EQPLANT TYPE ZPLANT_H
    
    *From and to variables for existing plant
    FR_EQPLANT = VARV(ZV1_FREQSTR).
    TO_EQPLANT = VARV(ZV1_TOEQSTR).
    *Same destination...
    NWPLANT = VARV(ZV1_NWSTR).
    
    FOREACH PLANT.
      IF PLANT >= FR_EQPLANT AND PLANT <= TO_EQPLANT.
         {ZNTSLS_CY,NWPLANT,NW} = {ZNTSLS_CY, PLANT, EL}.
      ENDIF.
    ENDOR.
    
    

    Hope this helps...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2009 at 05:50 AM

    I have taken two variable nd retrieved values for both of them then proceeded.

    Regards,

    Pushpa

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.