cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Function using variables

Former Member
0 Kudos

HI All,

Im new one in Integrated Planning so i need to resolve some basic thing in order to get the Copy Function.

This is my req:

  • I have a plan query using a initial filter (ready for imput) in Version infoobject, is a single value.

  • I need to use the standard copy function in order to Copy data from the version that was selected in the query to another version selected by the user.

I have tried :

  • Create the copy function in RSPLAN

  • From -> Same variable that i use in the plan query

  • To -> Another variable

*Create a Web template, add a button group and selected "execute_planning_function_simple"

Off course my copy function didnt work, so can anybody help me in order to understand the step by step to create a copy function using variables and binding by a web template.

Regards !!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi.

1. In the query restrict the version by an input ready variable (let's say ZFROM_VER)

2. Create a filter with one characteristic (version) and restrict it by another variable (let's say ZTO_VER)

3. Create planning function (standard copy) and restrict from and to sections by the variables mentioned above.

4. Create planning sequence that contains fiter and function mentioned above.

5. Goto WAD and add drodown web item (for terget version selection). Goto webitem properties->data binding, select "fixed list of options" and add fixed values for target version (this is very simplyfied scenario with fixed values).

6. Add button and attach ti it command "execute planning sequence simiple".

7. In planning equence command goto data binding and ZTO_VER in variable section, variable type = SELECTION_BINDING, Binding type=Web Item Selection, Web Item = early created drop down item. This way you will pass the selected value in dropdown list to the variable ZTO_VER and execute planning sequence that will copy from ZFROM_VER to ZTO_VER.

Regards.

Former Member
0 Kudos

Hi Andrey,

I did what you mentioned but whe i push the button in orde to execute the planning function appear the variable screen dialog with the variable ZFROM_VER.

I need to skip the vairable dialogo in orde to copy the entire data set using:

FROM VERSION : The one that was selected in the initial filter (i dont wat to fill the variable dialog again)

TO : Combobox (this works perfect)

Any idea?

Former Member
0 Kudos

Hi,

Did you restrict the Planning function you created with both variables for Version?

Remember the From should be restriceted by your From Variable and

To should be restricted by your To Varible.

If you still can't get it to work, please send the screenshot of your planning fucntion to my Email. I can spot the issue.

Also if you are using WAD , make sure Use variable once Option is turned on.

Arun

Edited by: Arun Prakash on Nov 2, 2011 5:16 PM

Former Member
0 Kudos

Hi.

You should do data binding also for FROM variable (as you have done for TO variable).

But data binding for FROM variable shoud be a little different: variable type = SELECTION_BINDING, Binding type=VARIABLE, Variable = your FROM variable.

This way you won't get the variable screen.

Regards.

Former Member
0 Kudos

Hi !!

I did what you mentioned but the screen variable still appears but this time the "from" value is auto-filled with the correct value.

Is it possible that i cant skip the variable screen because my "from" variable is mandatory in the report? Any idea how can i skip this screen under this situation?

Regards

Former Member
0 Kudos

Hi.

Goto paramerets of command (the screen where you define data bindings) and ensure that "Behavior->Display Variable Screen" is UNCHECKED - OFF

This should avoid variable screen ...

Regards.

Former Member
0 Kudos

Hi,

Its set it OFF and still showing... :0(

If you want i can send you the screen of this customizing to your mail in order find out my mistake....

Thanks a lot !!!

Former Member
0 Kudos

This message was moderated.

Answers (3)

Answers (3)

Former Member
0 Kudos

Solved

Former Member
0 Kudos

Hi Marcos,

Check the below link, here they are talking about the same requirement as you have.

[http://help.sap.com/saphelp_nw70/helpdata/en/43/1c3da031b70701e10000000a422035/content.htm]

Regards,

Durgesh.

Former Member
0 Kudos

Hi,

below link will help you.

{http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90d200f5-c832-2e10-02ac-ac23f6544eb4].